query
stringlengths 9
43.3k
| document
stringlengths 17
1.17M
| metadata
dict | negatives
sequencelengths 0
30
| negative_scores
sequencelengths 0
30
| document_score
stringlengths 5
10
| document_rank
stringclasses 2
values |
---|---|---|---|---|---|---|
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\n\t\t$tests = array();\n\t\tforeach (Group::all() as $test) {\n\t\t\t$class = preg_replace('/(tests\\\\\\[a-z]+\\\\\\|Test$)/', null, $test);\n\t\t\t$tests[$class] = $test;\n\t\t}\n\n\t\tforeach($testables as $count => $path) {\n\t\t\t$coverage = null;\n\n\t\t\tif($hasTest = isset($tests[$path])) {\n\t\t\t\t$report = Dispatcher::run($tests[$path], array(\n\t\t\t\t\t'format' => 'txt',\n\t\t\t\t\t'filters' => array('Coverage')\n\t\t\t\t));\n\t\t\t\t$coverage = $report->results['filters']['lithium\\test\\filter\\Coverage'];\n\t\t\t\t$coverage = isset($coverage[$path]) ? $coverage[$path]['percentage'] : null;\n\t\t\t}\n\n\t\t\tif ($coverage >= $this->_greenThreshold) {\n\t\t\t\t$color = 'green';\n\t\t\t} elseif ($coverage === null || $coverage === 0) {\n\t\t\t\t$color = 'red';\n\t\t\t} else {\n\t\t\t\t$color = 'yellow';\n\t\t\t}\n\n\t\t\tif($coverage == null || $coverage <= $this->threshold) {\n\t\t\t\t$this->out(sprintf('%10s | %7s | %s',\n\t\t\t\t\t$hasTest ? 'has test' : 'no test',\n\t\t\t\t\tis_numeric($coverage) ? sprintf('%.2f%%', $coverage) : 'n/a',\n\t\t\t\t\t$path\n\t\t\t\t), $color);\n\t\t\t}\n\t\t}\n\n\t}",
"public function run($path) \n {\n if ($this->_genCoverageReport === true) \n {\n //exclude Framework\n $filter = new PHP_CodeCoverage_Filter();\n $filter->addDirectoryToBlacklist( dirname(__FILE__) . '/../../Core/Framework/');\n $coverage = new PHP_CodeCoverage(null, $filter);\n $coverage->start('TestReport');\n }\n// $this->_findEmptyTables();\n $this->_testAll($path);\n //if we started the PHP coverage already\n if ($coverage instanceof PHP_CodeCoverage) \n {\n $coverage->stop();\n $writer = new PHP_CodeCoverage_Report_HTML;\n $writer->process($coverage, dirname(__FILE__) . $this->_coverageReportPath);\n }\n }",
"public function test()\n {\n exit\n (\n $this->taskPHPUnit()\n ->arg('./tests')\n ->option('coverage-clover', './build/logs/clover.xml')\n ->run()->getExitCode()\n );\n }",
"function startTest()\n {\n // to be able to specify $autoConnect => false\n $config =& new GOOGLE_ANALYTICS_CONFIG();\n $this->db =& new GoogleAnalyticsSource(\n $config->googleAnalytics_test, false);\n }",
"public function startTest() {}",
"protected function _coverage()\n {\n return Filters::run($this, 'coverage', [], function ($chain) {\n if (!$this->commandLine()->exists('coverage')) {\n return;\n }\n $reporters = $this->reporters();\n $driver = null;\n\n if (PHP_SAPI === 'phpdbg') {\n $driver = new Phpdbg();\n } elseif (extension_loaded('xdebug')) {\n $driver = new Xdebug();\n } else {\n fwrite(STDERR, \"ERROR: PHPDBG SAPI has not been detected and Xdebug is not installed, code coverage can't be used.\\n\");\n exit(1);\n }\n $srcDirs = $this->commandLine()->get('src');\n foreach ($srcDirs as $dir) {\n if (!file_exists($dir)) {\n fwrite(STDERR, \"ERROR: unexisting `{$dir}` directory, use --src option to set a valid one (ex: --src=app).\\n\");\n exit(1);\n }\n }\n $coverage = new Coverage([\n 'verbosity' => $this->commandLine()->get('coverage') ?? 1,\n 'driver' => $driver,\n 'path' => $srcDirs,\n 'colors' => !$this->commandLine()->get('no-colors')\n ]);\n $reporters->add('coverage', $coverage);\n });\n }",
"public function start()\n {\n XhprofRun::start($this->flag, $this->ignoreFunctions);\n }",
"public function start(): void\n {\n $this->testBootstrap(ROOT_DIR, ROOT_DIR . '/vendor/', CLASS_DIR);\n }",
"function coverageAll($request) {\n\t\tself::use_test_manifest();\n\t\t$this->all($request, true);\n\t}",
"public function run()\n {\n $test_suites = [\n [\n 'name' => 'sysbench',\n 'url' => 'https://github.com/akopytov/sysbench'\n ],\n [\n 'name' => 'Geekbench',\n 'url' => 'http://geekbench.com'\n ],\n [\n 'name' => 'Redis Benchmark',\n 'url' => 'https://redis.io/topics/benchmarks'\n ],\n [\n 'name' => 'Speedtest',\n 'url' => 'https://github.com/sivel/speedtest-cli'\n ],\n ];\n\n foreach($test_suites as $test_suite) {\n TestSuite::create($test_suite);\n }\n }",
"protected function _execute()\n {\n // xdebug is mandatory for code coverage test\n if (!extension_loaded('xdebug')) {\n throw new \\Exception(\"The Xdebug extension is not loaded.\");\n }\n\n // scan for phpunit configuration\n $this->_moduleNames = XmlReader::getModuleNames($this->_extensionPath);\n if (!empty($this->_moduleNames)) {\n try {\n $this->_setupUnitTestEnvironment($this->_extensionPath);\n } catch (\\Exception $e) {\n $this->setUnfinishedIssue();\n $this->_cleanTestEnvironment();\n Logger::log(implode(PHP_EOL, $e->getMessage()));\n Logger::error('Magento installation failed', array(), false);\n return ;\n }\n\n $this->_evaluateTestCoverage($this->_extensionPath);\n }\n }",
"public function runningUnitTests()\n {\n }",
"public function runningUnitTests()\n {\n }",
"function coverageModule($request) {\n\t\t$this->module($request, true);\n\t}",
"function browse() {\n\t\tself::use_test_manifest();\n\t\tself::$default_reporter->writeHeader();\n\t\tself::$default_reporter->writeInfo('Available Tests', false);\n\t\tif(Director::is_cli()) {\n\t\t\t$tests = ClassInfo::subclassesFor('SapphireTest');\n\t\t\t$relativeLink = Director::makeRelative($this->Link());\n\t\t\techo \"sake {$relativeLink}all: Run all \" . count($tests) . \" tests\\n\";\n\t\t\techo \"sake {$relativeLink}coverage: Runs all tests and make test coverage report\\n\";\n\t\t\techo \"sake {$relativeLink}module/<modulename>: Runs all tests in a module folder\\n\";\n\t\t\tforeach ($tests as $test) {\n\t\t\t\techo \"sake {$relativeLink}$test: Run $test\\n\";\n\t\t\t}\n\t\t} else {\n\t\t\techo '<div class=\"trace\">';\n\t\t\t$tests = ClassInfo::subclassesFor('SapphireTest');\n\t\t\tasort($tests);\n\t\t\techo \"<h3><a href=\\\"\" . $this->Link() . \"all\\\">Run all \" . count($tests) . \" tests</a></h3>\";\n\t\t\techo \"<h3><a href=\\\"\" . $this->Link() . \"coverage\\\">Runs all tests and make test coverage report</a></h3>\";\n\t\t\techo \"<hr />\";\n\t\t\tforeach ($tests as $test) {\n\t\t\t\techo \"<h3><a href=\\\"\" . $this->Link() . \"$test\\\">Run $test</a></h3>\";\n\t\t\t}\n\t\t\techo '</div>';\n\t\t}\n\t\t\n\t\tself::$default_reporter->writeFooter();\n\t}",
"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\t$this->onPass($test.\", \".$this->getDuration($start));\n\t\t\t}\n\t\t\tcatch (ExceptionAssertionFail $e){\n\t\t\t\t$this->onFail($test.\" \".TEST_CASE_ASSERTION_FAILED);\n\t\t\t}\n\t\t\tcatch (Exception $e) {\n\t\t\t\t$this->onFail($test.\" \".TEST_CASE_EXCEPTION_CAUGHT.\" (\".$e->getMessage().\")\");\n\t\t\t}\n\t\t}\n\t\t$this->onEnd('Test end');\n\t}",
"public function test()\n {\n $this->taskServer(9987)\n ->dir('app')\n ->host('127.0.0.1')\n ->background()\n ->run();\n\n //Start Selenium\n $this->taskExec('sh ./run/start_selenium.sh')\n ->arg('mac')\n ->background()\n ->idleTimeout(10)\n ->run();\n\n //Starts Weinre for mac in background, @http://127.0.0.1:7890\n $this->taskExec('weinre --boundHost 127.0.0.1 --httpPort 7890')\n ->background()\n ->idleTimeout(10)\n ->run();\n\n //Starts tests in parallel\n $this->taskParallelExec()\n ->process('./bin/behat --tags \"@metrics\" -p local_chrome')\n ->process('./bin/behat --tags \"@initial\" -p local_chrome')\n ->idleTimeout(10)\n ->run();\n\n //Copy and move over report\n $this->taskExec('mv ./reports/saucey_report.html ./reports/saucey_report_basic_test.html && open ./reports/saucey_report_basic_test.html')\n ->run();\n }",
"public static function stop()\n {\n self::$coverage->writeUntouched();\n self::$coverage->stopCoverage();\n #echo 'Code Coverage stopped!';\n }",
"public function indexAction()\n {\n $this->view->coveragePath = \"/app/tests/_output/coverage/Users.php.html\";\n $this->view->coverageHeight = 800;\n }",
"public function coverage($verbose = true)\n {\n $h = $this->getHarness();\n\n $c = new lime_coverage($h);\n $c->extension = '.php';\n $c->verbose = $verbose;\n $c->base_dir = $this->root . '/lib/';\n\n $c->register(sfFinder::type('file')->name('*.class.php')->prune('vendor')->in($c->base_dir));\n $c->run();\n }",
"function main()\n{\n if (!file_exists(MERGE_DIR)) {\n mkdir(MERGE_DIR, 0777, true);\n }\n\n $fileCount = count(scandir(SRC_DIR));\n $currentFile = 0;\n $counter = 0;\n\n $coverage = [];\n\n foreach (scandir(SRC_DIR) as $file) {\n printf(\"\\nReading ($currentFile/$fileCount)\\n\");\n $currentFile += 1;\n if (pathinfo($file)['extension'] !== 'cov') {\n continue;\n }\n\n print_mem('readCoverageFromFolder: ' . $file);\n $fileCoverage = readCoverage(SRC_DIR . $file);\n print_mem('readCoverageFromFolder: executed readCoverage');\n $coverage = mergeCoverageData($coverage, $fileCoverage);\n print_mem('readCoverageFromFolder: merged coverage');\n\n if ($currentFile % MERGE_SIZE == 0) {\n writeCovFile(MERGE_DIR . 'mg' . strval($counter) . '.cov', $coverage);\n $coverage = [];\n $counter += 1;\n }\n }\n\n if ($currentFile % MERGE_SIZE != 0) {\n writeCovFile(MERGE_DIR . 'mg' . strval($counter) . '.cov', $coverage);\n }\n}",
"public function __construct()\n {\n $this->modifiedSince = time() - ( 60 * 86400 );\n $this->tempDirectory = sys_get_temp_dir() . '/php-change-coverage/';\n\n if ( stripos( PHP_OS, 'win' ) === 0 )\n {\n $this->phpunitBinary .= '.bat';\n }\n }",
"function runtests() {\n\t\t// This is blank, just here when I need it.\n\t}",
"public function run(): bool\n {\n $this->assertions = 0;\n $this->failures = 0;\n $this->current_test = null;\n $this->last_test = null;\n\n if ($this->strict) {\n set_error_handler(function ($errno, $errstr, $errfile, $errline) {\n $error = new ErrorException($errstr, 0, $errno, $errfile, $errline);\n\n if ($error->getSeverity() & error_reporting()) {\n throw $error;\n }\n });\n }\n\n if ($this->coverage) {\n $this->coverage->start('test');\n }\n\n foreach ($this->tests as $title => $function) {\n $this->current_test = $title;\n\n $thrown = null;\n\n try {\n if ($this->setup) {\n call_user_func($this->setup);\n }\n\n call_user_func($function);\n\n if ($this->teardown) {\n call_user_func($this->teardown);\n }\n } catch (Exception $e) {\n $this->printResult(false, \"UNEXPECTED EXCEPTION\", $e);\n\n $thrown = $e;\n } catch (Error $e) {\n $this->printResult(false, \"UNEXPECTED EXCEPTION\", $e);\n\n $thrown = $e;\n }\n\n if ($thrown && $this->throw) {\n throw new Exception(\"Exception while running test: {$title}\", 0, $thrown);\n }\n }\n\n if ($this->coverage) {\n $this->coverage->stop();\n }\n\n if ($this->strict) {\n restore_error_handler();\n }\n\n $this->current_test = null;\n\n if ($this->coverage) {\n $this->printCodeCoverageResult($this->coverage);\n\n if ($this->coverage_output_path) {\n $this->outputCodeCoverageReport($this->coverage, $this->coverage_output_path);\n\n echo \"\\n* code coverage report created: {$this->coverage_output_path}\\n\";\n }\n }\n\n $this->printSummary();\n\n return $this->failures === 0;\n }",
"public function handleCoverageIndex() {\n\t\t// Get list of directories with clover.xml\n\t\t$cloverFiles = glob( $this->coverageDir . '/*/clover.xml' );\n\t\t$this->embedCSS( file_get_contents( __DIR__ . '/cover.css' ) );\n\n\t\t$sortParam = isset( $_GET['sort'] ) ? (string)$_GET['sort'] : null;\n\t\t$sortKey = null;\n\n\t\t$intro = <<<HTML\n<blockquote>\n<p>\nTest coverage refers to measuring how much a software program has been\nexercised by tests. Coverage is a means of determining the rigour with\nwhich the question underlying the test has been answered.\n</p>\n– <a href=\"https://en.wikipedia.org/w/index.php?title=Fault_coverage&oldid=675795947\">Wikipedia</a>\n</blockquote>\nHTML;\n\t\t$this->addHtmlContent( $intro );\n\n\t\tif ( $this->pageName === 'Test coverage' ) {\n\t\t\t$breadcrumbs = <<<HTML\n<ul class=\"wm-nav cover-nav\">\n\t<li><a href=\"#\" class=\"wm-nav-item-active\">Coverage home</a></li>\n\t<li><a href=\"/cover-extensions/\">MediaWiki extensions</a></li>\n\t<li><a href=\"/cover-skins/\">MediaWiki skins</a></li>\n</ul>\nHTML;\n\t\t} elseif ( $this->pageName === 'MediaWiki extension test coverage' ) {\n\t\t\t$breadcrumbs = <<<HTML\n<ul class=\"wm-nav cover-nav\">\n\t<li><a href=\"/cover/\">Coverage home</a></li>\n\t<li><a href=\"#\" class=\"wm-nav-item-active\">MediaWiki extensions</a></li>\n\t<li><a href=\"/cover-skins/\">MediaWiki skins</a></li>\n</ul>\nHTML;\n\t\t} else {\n\t\t\t// } elseif ( $this->pageName === 'MediaWiki skin test coverage' ) {\n\t\t\t$breadcrumbs = <<<HTML\n<ul class=\"wm-nav cover-nav\">\n\t<li><a href=\"/cover/\">Coverage home</a></li>\n\t<li><a href=\"/cover-extensions/\">MediaWiki extensions</a></li>\n\t<li><a href=\"#\" class=\"wm-nav-item-active\">MediaWiki skins</a></li>\n</ul>\nHTML;\n\t\t}\n\n\t\t$this->addHtmlContent( $breadcrumbs );\n\n\t\tif ( $sortParam === 'cov' ) {\n\t\t\t$sortNav = <<<HTML\n\t\t<a role=\"button\" class=\"wm-btn\" href=\"./\">Sort by name</a>\n\t\t<a role=\"button\" class=\"wm-btn wm-btn-active\" href=\"./?sort=cov\">Sort by coverage percentage</a>\n\t\t<a role=\"button\" class=\"wm-btn\" href=\"./?sort=mtime\">Sort by modified time</a>\nHTML;\n\t\t\t$sortKey = 'percent';\n\t\t} elseif ( $sortParam === 'mtime' ) {\n\t\t\t$sortNav = <<<HTML\n\t\t<a role=\"button\" class=\"wm-btn\" href=\"./\">Sort by name</a>\n\t\t<a role=\"button\" class=\"wm-btn\" href=\"./?sort=cov\">Sort by coverage percentage</a>\n\t\t<a role=\"button\" class=\"wm-btn wm-btn-active\" href=\"./?sort=mtime\">Sort by modified time</a>\nHTML;\n\t\t\t$sortKey = 'mtime';\n\t\t} else {\n\t\t\t$sortNav = <<<HTML\n\t\t<a role=\"button\" class=\"wm-btn wm-btn-active\" href=\"./\">Sort by name</a>\n\t\t<a role=\"button\" class=\"wm-btn\" href=\"./?sort=cov\">Sort by coverage percentage</a>\n\t\t<a role=\"button\" class=\"wm-btn\" href=\"./?sort=mtime\">Sort by modified time</a>\nHTML;\n\t\t}\n\n\t\t$this->addHtmlContent( \"<hr>$sortNav\" );\n\t\t$this->addHtmlContent( '<ul class=\"wm-nav cover-list\">' );\n\t\t$html = '';\n\t\t$clovers = [];\n\t\tforeach ( $cloverFiles as $cloverFile ) {\n\t\t\t$clover = file_get_contents( $cloverFile );\n\t\t\tif ( !$clover ) {\n\t\t\t\t// Race condition?\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$clovers[$cloverFile] = $this->parseClover( $clover ) + [\n\t\t\t\t'mtime' => stat( $cloverFile )['mtime'],\n\t\t\t];\n\t\t}\n\t\tif ( $sortKey !== null ) {\n\t\t\tuasort( $clovers, static function ( $a, $b ) use ( $sortKey ) {\n\t\t\t\tif ( $a[$sortKey] === $b[$sortKey] ) {\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\n\t\t\t\treturn ( $a[$sortKey] < $b[$sortKey] ) ? -1 : 1;\n\t\t\t} );\n\t\t}\n\n\t\tforeach ( $clovers as $cloverFile => $info ) {\n\t\t\t$dirName = htmlspecialchars( basename( dirname( $cloverFile ) ) );\n\t\t\t$modifiedTime = date( DateTimeInterface::ATOM, $info['mtime'] );\n\t\t\t$percent = (string)round( $info['percent'] );\n\n\t\t\t$lowThreshold = self::COVERAGE_LOW;\n\t\t\t$highThreshold = self::COVERAGE_HIGH;\n\t\t\t$html .= <<<HTML\n<li>\n\t<a class=\"cover-item\" href=\"./$dirName/\">\n\t\t<span class=\"cover-item-meter\">\n\t\t\t<meter min=\"0\" max=\"100\" low=\"$lowThreshold\" high=\"$highThreshold\" optimum=\"99\" value=\"$percent\">$percent%</meter><span> $percent%</span>\n\t\t</span>\n\t\t<span>$dirName</span>\n\t\t<span class=\"cover-mtime\">$modifiedTime</span>\n\t</a>\n\t<span class=\"cover-extra\">(<a href=\"./$dirName/clover.xml\">xml</a>)</span>\n</li>\nHTML;\n\t\t}\n\t\t$this->addHtmlContent( \"$html</ul>\" );\n\t}",
"function startTest($method) {\n\t}",
"public function run()\n {\n $this -> call(MainTest::class);\n\n\n }",
"public function run()\n {\n $codeigniter_sample_project_path = BASE_PATH . DIRECTORY_SEPARATOR . 'codeigniter';\n if (is_dir($codeigniter_sample_project_path))\n {\n ApplicationHelpers::delete_dir($codeigniter_sample_project_path);\n }\n\n fwrite(STDOUT, 'Bootstrapping Fire...' . PHP_EOL);\n if (GithubHelpers::git_clone($this->get_github_repo_link(), $codeigniter_sample_project_path) === FALSE)\n {\n throw new RuntimeException(\"Unable to clone the sample CodeIgniter project from Github\");\n }\n else\n {\n if (php_uname(\"s\") === \"Windows NT\")\n {\n $message = \"\\tFire Bootstrapped\" . PHP_EOL;\n }\n else\n {\n $message = \"\\t\" . ApplicationHelpers::colorize('Fire', 'green') . ' Bootstrapped' . PHP_EOL;\n }\n\n fwrite(STDOUT, $message);\n }\n }",
"public static function main()\n {\n\t\t$suite = new PHPUnit_Framework_TestSuite('Tine 2.0 Sales Contract Backend Tests');\n PHPUnit_TextUI_TestRunner::run($suite);\n\t}",
"public function run( array $argv )\n {\n $this->printVersionString();\n\n try\n {\n $this->handleArguments( $argv );\n\n $arguments = $this->extractPhpunitArguments( $argv );\n }\n catch ( InvalidArgumentException $e )\n {\n $exception = $e->getMessage();\n $arguments = array( '--help' );\n }\n\n $phpunit = new PHP_ChangeCoverage_PHPUnit( $this->phpunitBinary );\n $phpunit->run( $arguments );\n\n if ( $phpunit->isHelp() )\n {\n $this->writeLine();\n $this->writeLine();\n $this->writeLine( 'Additional options added by PHP_ChangeCoverage' );\n $this->writeLine();\n $this->writeLine( ' --temp-dir Temporary directory for generated runtime data.' );\n $this->writeLine( ' --phpunit-binary Optional path to phpunit\\'s binary.' );\n $this->writeLine( ' --modified-since Cover only lines that were changed since this date.' );\n $this->writeLine( ' This option accepts textual date expressions.' );\n $this->writeLine( ' --unmodified-as-covered Mark all unmodified lines as covered.' );\n\n if ( isset( $exception ) )\n {\n $this->writeLine();\n $this->writeLine( $exception );\n return 2;\n }\n }\n else if ( file_exists( $this->temporaryClover ) )\n {\n PHP_Timer::start();\n\n $report = $this->createCoverageReport();\n $codeCoverage = $this->rebuildCoverageData( $report );\n\n $this->writeCoverageClover( $codeCoverage );\n $this->writeCoverageHtml( $codeCoverage );\n\n PHP_Timer::stop();\n $this->writeLine( PHP_Timer::resourceUsage() );\n\n unlink( $this->temporaryClover );\n }\n \n return $phpunit->getExitCode();\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.56370956",
"0.56302947",
"0.5610343",
"0.5601743",
"0.55747354",
"0.5565369",
"0.5561755",
"0.5559666",
"0.55262697"
] | 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 function stop();",
"public function stop();",
"public function stop();",
"public function stop();",
"public function stop();",
"public function stop();",
"public function stop()\n {\n $this->driver->quit();\n\n $this->process->stop();\n }",
"public function stop() {\n $this->halt = true;\n }",
"public function stop()\n {\n }",
"public function stop()\n {\n }",
"protected function _stop()\n {\n $this->core->stop = TRUE;\n }",
"protected function stop() {\n\t$this->_stop = true;\n}",
"public function onRunnerEnd()\n {\n $this->footer();\n\n $output = $this->getCoverageReporter()->process($this->coverage, true);\n $this->eventEmitter->emit('code-coverage.end', [$this]);\n\n $this->output->writeln($output);\n }",
"protected function _stop()\n {\n return Filters::run($this, 'stop', [], function ($chain) {\n $this->suite()->stop();\n });\n }",
"function debug_stop()\n {\n \\O2System\\Gear\\Debugger::stop();\n die;\n }",
"function stop() {\r\n $this->_stop = TRUE;\r\n }",
"public function stop() {\n\n $args = $this->args;\n $args[ \"method\" ] = __FUNCTION__;\n\n $res = $this->call($args);\n if ($res)\n return $res[ \"result\" ];\n }",
"public function stop()\n {\n $this->setStatus(StatusInterface::STOPPING);\n }",
"public function stopTest()\n {\n $questions = Session::get('testing.questions');\n $answered = Session::get('testing.answers');\n\n // STOP THE TEST\n // Is there a test attempt, and some questions?\n if ($this->id && ! empty($questions)) {\n // Save the answers in DB \n // Stored in answers as json \n $this->answers = json_encode($answered);\n $this->end_time = date('Y-m-d H:i:s');\n $this->save();\n \n // Score the test behind the scenes\n $this->score();\n\n // Rid session of any testing stuff\n Session::forget('testing');\n Session::forget('disable_menu');\n }\n }",
"public function stop()\n {\n $payload = '';\n\n $this->sendRequest(self::FUNCTION_STOP, $payload);\n }",
"public function stop() {\n $this->running = false;\n }",
"public function __destruct()\n {\n $this->stop(true);\n }",
"protected function tearDown()\n {\n $this->process->stop();\n }",
"public function afterScenario(ScenarioTested $event): void\n {\n if (!$this->coverage) {\n return;\n }\n\n $this->coverage->stop();\n }",
"public static function finish()\n {\n // Check DISABLE_TOOL\n if( ! Config::get(Config::ENABLE_TOOL))\n return;\n\n $performance = self::getPerformance();\n $performance->finish();\n }",
"public function stopSelenium()\n {\n fwrite(STDOUT, \"Stopping selenium\\n\");\n $this->process->close();\n }"
] | [
"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.61808795",
"0.6164514",
"0.616412",
"0.61224324",
"0.60768574",
"0.6072248",
"0.6050904",
"0.6020514",
"0.6007299",
"0.60012233"
] | 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\n\t\t$tests = array();\n\t\tforeach (Group::all() as $test) {\n\t\t\t$class = preg_replace('/(tests\\\\\\[a-z]+\\\\\\|Test$)/', null, $test);\n\t\t\t$tests[$class] = $test;\n\t\t}\n\n\t\tforeach($testables as $count => $path) {\n\t\t\t$coverage = null;\n\n\t\t\tif($hasTest = isset($tests[$path])) {\n\t\t\t\t$report = Dispatcher::run($tests[$path], array(\n\t\t\t\t\t'format' => 'txt',\n\t\t\t\t\t'filters' => array('Coverage')\n\t\t\t\t));\n\t\t\t\t$coverage = $report->results['filters']['lithium\\test\\filter\\Coverage'];\n\t\t\t\t$coverage = isset($coverage[$path]) ? $coverage[$path]['percentage'] : null;\n\t\t\t}\n\n\t\t\tif ($coverage >= $this->_greenThreshold) {\n\t\t\t\t$color = 'green';\n\t\t\t} elseif ($coverage === null || $coverage === 0) {\n\t\t\t\t$color = 'red';\n\t\t\t} else {\n\t\t\t\t$color = 'yellow';\n\t\t\t}\n\n\t\t\tif($coverage == null || $coverage <= $this->threshold) {\n\t\t\t\t$this->out(sprintf('%10s | %7s | %s',\n\t\t\t\t\t$hasTest ? 'has test' : 'no test',\n\t\t\t\t\tis_numeric($coverage) ? sprintf('%.2f%%', $coverage) : 'n/a',\n\t\t\t\t\t$path\n\t\t\t\t), $color);\n\t\t\t}\n\t\t}\n\n\t}",
"protected function createCoverageReport()\n {\n return $this->getReportFactory()->createReport( $this->temporaryClover );\n }",
"public function run($path) \n {\n if ($this->_genCoverageReport === true) \n {\n //exclude Framework\n $filter = new PHP_CodeCoverage_Filter();\n $filter->addDirectoryToBlacklist( dirname(__FILE__) . '/../../Core/Framework/');\n $coverage = new PHP_CodeCoverage(null, $filter);\n $coverage->start('TestReport');\n }\n// $this->_findEmptyTables();\n $this->_testAll($path);\n //if we started the PHP coverage already\n if ($coverage instanceof PHP_CodeCoverage) \n {\n $coverage->stop();\n $writer = new PHP_CodeCoverage_Report_HTML;\n $writer->process($coverage, dirname(__FILE__) . $this->_coverageReportPath);\n }\n }",
"public function outputCodeCoverageReport($coverage, $coverage_output_path)\n {\n $report = new Report\\Clover();\n\n $report->process($coverage, $coverage_output_path);\n }",
"public function generateReport()\n {\n $this->generatedReport = true;\n $this->report->generate($this->results);\n }",
"protected function createCoverageReporter()\n {\n return new Text(50, 90, true, false);\n }",
"public function coverage()\n {\n\n $self = 'coverage';\n if (Auth::user()->username !== 'admin') {\n $get_perm = Permission::permitted($self);\n\n if ($get_perm == 'access denied') {\n return redirect('permission-error')->with([\n 'message' => language_data('You do not have permission to view this page'),\n 'message_important' => true\n ]);\n }\n }\n\n $country_codes = IntCountryCodes::all();\n return view('admin.coverage', compact('country_codes'));\n }",
"public function indexAction()\n {\n $this->view->coveragePath = \"/app/tests/_output/coverage/Users.php.html\";\n $this->view->coverageHeight = 800;\n }",
"public function handleCoverageIndex() {\n\t\t// Get list of directories with clover.xml\n\t\t$cloverFiles = glob( $this->coverageDir . '/*/clover.xml' );\n\t\t$this->embedCSS( file_get_contents( __DIR__ . '/cover.css' ) );\n\n\t\t$sortParam = isset( $_GET['sort'] ) ? (string)$_GET['sort'] : null;\n\t\t$sortKey = null;\n\n\t\t$intro = <<<HTML\n<blockquote>\n<p>\nTest coverage refers to measuring how much a software program has been\nexercised by tests. Coverage is a means of determining the rigour with\nwhich the question underlying the test has been answered.\n</p>\n– <a href=\"https://en.wikipedia.org/w/index.php?title=Fault_coverage&oldid=675795947\">Wikipedia</a>\n</blockquote>\nHTML;\n\t\t$this->addHtmlContent( $intro );\n\n\t\tif ( $this->pageName === 'Test coverage' ) {\n\t\t\t$breadcrumbs = <<<HTML\n<ul class=\"wm-nav cover-nav\">\n\t<li><a href=\"#\" class=\"wm-nav-item-active\">Coverage home</a></li>\n\t<li><a href=\"/cover-extensions/\">MediaWiki extensions</a></li>\n\t<li><a href=\"/cover-skins/\">MediaWiki skins</a></li>\n</ul>\nHTML;\n\t\t} elseif ( $this->pageName === 'MediaWiki extension test coverage' ) {\n\t\t\t$breadcrumbs = <<<HTML\n<ul class=\"wm-nav cover-nav\">\n\t<li><a href=\"/cover/\">Coverage home</a></li>\n\t<li><a href=\"#\" class=\"wm-nav-item-active\">MediaWiki extensions</a></li>\n\t<li><a href=\"/cover-skins/\">MediaWiki skins</a></li>\n</ul>\nHTML;\n\t\t} else {\n\t\t\t// } elseif ( $this->pageName === 'MediaWiki skin test coverage' ) {\n\t\t\t$breadcrumbs = <<<HTML\n<ul class=\"wm-nav cover-nav\">\n\t<li><a href=\"/cover/\">Coverage home</a></li>\n\t<li><a href=\"/cover-extensions/\">MediaWiki extensions</a></li>\n\t<li><a href=\"#\" class=\"wm-nav-item-active\">MediaWiki skins</a></li>\n</ul>\nHTML;\n\t\t}\n\n\t\t$this->addHtmlContent( $breadcrumbs );\n\n\t\tif ( $sortParam === 'cov' ) {\n\t\t\t$sortNav = <<<HTML\n\t\t<a role=\"button\" class=\"wm-btn\" href=\"./\">Sort by name</a>\n\t\t<a role=\"button\" class=\"wm-btn wm-btn-active\" href=\"./?sort=cov\">Sort by coverage percentage</a>\n\t\t<a role=\"button\" class=\"wm-btn\" href=\"./?sort=mtime\">Sort by modified time</a>\nHTML;\n\t\t\t$sortKey = 'percent';\n\t\t} elseif ( $sortParam === 'mtime' ) {\n\t\t\t$sortNav = <<<HTML\n\t\t<a role=\"button\" class=\"wm-btn\" href=\"./\">Sort by name</a>\n\t\t<a role=\"button\" class=\"wm-btn\" href=\"./?sort=cov\">Sort by coverage percentage</a>\n\t\t<a role=\"button\" class=\"wm-btn wm-btn-active\" href=\"./?sort=mtime\">Sort by modified time</a>\nHTML;\n\t\t\t$sortKey = 'mtime';\n\t\t} else {\n\t\t\t$sortNav = <<<HTML\n\t\t<a role=\"button\" class=\"wm-btn wm-btn-active\" href=\"./\">Sort by name</a>\n\t\t<a role=\"button\" class=\"wm-btn\" href=\"./?sort=cov\">Sort by coverage percentage</a>\n\t\t<a role=\"button\" class=\"wm-btn\" href=\"./?sort=mtime\">Sort by modified time</a>\nHTML;\n\t\t}\n\n\t\t$this->addHtmlContent( \"<hr>$sortNav\" );\n\t\t$this->addHtmlContent( '<ul class=\"wm-nav cover-list\">' );\n\t\t$html = '';\n\t\t$clovers = [];\n\t\tforeach ( $cloverFiles as $cloverFile ) {\n\t\t\t$clover = file_get_contents( $cloverFile );\n\t\t\tif ( !$clover ) {\n\t\t\t\t// Race condition?\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$clovers[$cloverFile] = $this->parseClover( $clover ) + [\n\t\t\t\t'mtime' => stat( $cloverFile )['mtime'],\n\t\t\t];\n\t\t}\n\t\tif ( $sortKey !== null ) {\n\t\t\tuasort( $clovers, static function ( $a, $b ) use ( $sortKey ) {\n\t\t\t\tif ( $a[$sortKey] === $b[$sortKey] ) {\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\n\t\t\t\treturn ( $a[$sortKey] < $b[$sortKey] ) ? -1 : 1;\n\t\t\t} );\n\t\t}\n\n\t\tforeach ( $clovers as $cloverFile => $info ) {\n\t\t\t$dirName = htmlspecialchars( basename( dirname( $cloverFile ) ) );\n\t\t\t$modifiedTime = date( DateTimeInterface::ATOM, $info['mtime'] );\n\t\t\t$percent = (string)round( $info['percent'] );\n\n\t\t\t$lowThreshold = self::COVERAGE_LOW;\n\t\t\t$highThreshold = self::COVERAGE_HIGH;\n\t\t\t$html .= <<<HTML\n<li>\n\t<a class=\"cover-item\" href=\"./$dirName/\">\n\t\t<span class=\"cover-item-meter\">\n\t\t\t<meter min=\"0\" max=\"100\" low=\"$lowThreshold\" high=\"$highThreshold\" optimum=\"99\" value=\"$percent\">$percent%</meter><span> $percent%</span>\n\t\t</span>\n\t\t<span>$dirName</span>\n\t\t<span class=\"cover-mtime\">$modifiedTime</span>\n\t</a>\n\t<span class=\"cover-extra\">(<a href=\"./$dirName/clover.xml\">xml</a>)</span>\n</li>\nHTML;\n\t\t}\n\t\t$this->addHtmlContent( \"$html</ul>\" );\n\t}",
"public static function start()\n {\n /**\n * Simpletest Code Coverage depends on xdebug.\n *\n * Ensure that the xdebug extension is loaded.\n */\n if (false === extension_loaded('xdebug')) {\n die('Code Coverage needs Xdebug extension. Not loaded!');\n }\n\n if (false === function_exists(\"xdebug_start_code_coverage\")) {\n die('Code Coverage needs the method xdebug_start_code_coverage. Not found!');\n }\n\n /**\n * Simpletest Code Coverage depends on sqlite.\n *\n * Ensure that the sqlite extension is loaded.\n */\n /*if (false === class_exists('SQLiteDatabase')) {\n echo 'Code Coverage needs the php extension SQLITE. Not loaded!';\n }*/\n\n /**\n * Setup Simpletest Code Coverage.\n */\n require_once 'simpletest/extensions/coverage/coverage.php';\n\n $coverage = new CodeCoverage();\n $coverage->log = 'coverage.sqlite';\n $coverage->root = dirname(__DIR__);\n $coverage->includes[] = '.*\\.php$';\n $coverage->excludes[] = 'simpletest';\n $coverage->excludes[] = 'tests';\n $coverage->excludes[] = 'libraries';\n $coverage->excludes[] = 'vendor';\n $coverage->excludes[] = 'vendors';\n $coverage->excludes[] = 'coverage-report';\n $coverage->excludes[] = 'sweety';\n $coverage->excludes[] = './.*.php';\n $coverage->maxDirectoryDepth = 1;\n $coverage->resetLog();\n $coverage->writeSettings();\n\n /**\n * Finally: let's start the Code Coverage.\n */\n $coverage->startCoverage();\n #echo 'Code Coverage started...';\n\n self::$coverage = $coverage;\n }",
"function createReport()\n\t{\n\t\t$transformer = new CoverageReportTransformer($this);\n\t\t$this->transformers[] = $transformer;\n\t\treturn $transformer;\n\t}",
"function report()\n{\n $page = (new HtmlPage())\n ->withTitle('Conference audit')\n ->withInlineStyle(new StyleElement(file_get_contents('styles.css')));\n\n // Generate the results page.\n $page = $page->withContent($page->getContent() . reportNewSpeakersPerCon());\n\n $page = $page->withContent($page->getContent() . reportTopSpeakers());\n\n file_put_contents('results.html', $page);\n}",
"protected function writeCoverageClover( PHP_CodeCoverage $coverage )\n {\n if ( $this->coverageClover )\n {\n $this->writeLine( 'Writing change coverage data to XML file, this may take a moment.' );\n $this->writeLine();\n\n $clover = new PHP_CodeCoverage_Report_Clover();\n $clover->process( $coverage, $this->coverageClover );\n }\n }",
"public function report()\n {\n //\n }",
"protected function writeCoverageHtml( PHP_CodeCoverage $coverage )\n {\n if ( $this->coverageHtml )\n {\n $this->writeLine( 'Writing change coverage report, this may take a moment.' );\n $this->writeLine();\n\n $html = new PHP_CodeCoverage_Report_HTML(\n 'Coverage Report for files modified since ' . date( 'Y/m/d', $this->modifiedSince ), \n 'UTF-8', \n false, \n false, \n 35,\n 70, \n ' post processed by PHP_ChangeCoverage'\n );\n $html->process( $coverage, $this->coverageHtml );\n }\n }",
"public function report() {\n\t}",
"function main()\n{\n if (!file_exists(MERGE_DIR)) {\n mkdir(MERGE_DIR, 0777, true);\n }\n\n $fileCount = count(scandir(SRC_DIR));\n $currentFile = 0;\n $counter = 0;\n\n $coverage = [];\n\n foreach (scandir(SRC_DIR) as $file) {\n printf(\"\\nReading ($currentFile/$fileCount)\\n\");\n $currentFile += 1;\n if (pathinfo($file)['extension'] !== 'cov') {\n continue;\n }\n\n print_mem('readCoverageFromFolder: ' . $file);\n $fileCoverage = readCoverage(SRC_DIR . $file);\n print_mem('readCoverageFromFolder: executed readCoverage');\n $coverage = mergeCoverageData($coverage, $fileCoverage);\n print_mem('readCoverageFromFolder: merged coverage');\n\n if ($currentFile % MERGE_SIZE == 0) {\n writeCovFile(MERGE_DIR . 'mg' . strval($counter) . '.cov', $coverage);\n $coverage = [];\n $counter += 1;\n }\n }\n\n if ($currentFile % MERGE_SIZE != 0) {\n writeCovFile(MERGE_DIR . 'mg' . strval($counter) . '.cov', $coverage);\n }\n}",
"protected function rebuildCoverageData( PHP_ChangeCoverage_Report $report )\n {\n $codeCoverage = new PHP_CodeCoverage();\n\n\n $factory = new PHP_ChangeCoverage_ChangeSet_Factory();\n vcsCache::initialize( $this->tempDirectory );\n\n $this->writeLine();\n $this->writeLine( 'Collecting commits and meta data, this may take a moment.' );\n $this->writeLine();\n\n $xdebug = new PHP_ChangeCoverage_Xdebug();\n if ( $this->unmodifiedAsCovered )\n {\n $xdebug->setUnmodifiedAsCovered();\n }\n\n foreach ( $report->getFiles() as $file )\n {\n $changeSet = $factory->create( $file );\n $changeSet->setStartDate( $this->modifiedSince );\n \n foreach ( $xdebug->generateData( $changeSet->calculate() ) as $data )\n {\n $codeCoverage->append( $data, md5( microtime() ) );\n }\n }\n\n return $codeCoverage;\n }",
"public function publishReport($type = 'php')\n {\n switch ($type) {\n case 'php':\n $reporter = new \\SebastianBergmann\\CodeCoverage\\Report\\PHP;\n break;\n\n case 'html':\n $reporter = new \\SebastianBergmann\\CodeCoverage\\Report\\Html\\Facade;\n break;\n\n case 'xml':\n $reporter = new \\SebastianBergmann\\CodeCoverage\\Report\\Xml\\Facade('6.5.6');\n break;\n\n case 'clover':\n $reporter = new \\SebastianBergmann\\CodeCoverage\\Report\\Clover;\n break;\n default :\n $reporter = new \\SebastianBergmann\\CodeCoverage\\Report\\PHP;\n }\n\n $reporter->process(\n $this->phpCC, $this->config['path']\n . \"/\"\n . str_replace(\".\", \"\", microtime(true))\n . '.cov'\n );\n\n }",
"public function generate()\n {\n $this->createDirectory();\n $this->formatFile();\n }",
"public function exportXmlAction()\n {\n $fileName = 'coverage.xml';\n $content = $this->getLayout()->createBlock('xcentia_vendors/adminhtml_coverage_grid')\n ->getXml();\n $this->_prepareDownloadResponse($fileName, $content);\n }",
"public function generate() {\n\t\t// generate xml\n\t\t$this->xml();\n\n\t\t// generate csv\n//\t\t$this->csv();\n\t}",
"public function generateAction(){\n $id = (int) $this->params()->fromRoute('id', 0);\n if (!$id) {\n return $this->redirect()->toRoute('report', array(\n 'action' => 'index'\n ));\n }\n\n //Get Property Information\n $property = $this -> getPropertyTable() -> getProperty($id);\n $brand = $this -> getBrandTable() -> getBrand($property -> brand_id);\n\n $error = null;\n \n /***********************MTD***********************/\n //Get Report keys for current year and previous Year\n $cymtdKey = $this -> getReportKey($id, date('m'), 'cy');\n $pymtdKey = $this -> getReportKey($id, date('m'), 'py');\n\n $MTDFinal = array();\n\n //Get report data and keys\n $CYArray = array();\n $CYKey = array();\n if($cymtdKey){\n $CYArray = $this -> getReportData($cymtdKey);\n $CYKey = $this -> getRateCodeKeys($CYArray);\n }\n\n $PYArray = array();\n $PYKey = array();\n if($pymtdKey){\n $PYArray = $this -> getReportData($pymtdKey);\n $PYKey = $this -> getRateCodeKeys($PYArray);\n }\n\n //Add both sets of keys to an array and then parse out duplicates\n $MTDrateCodes = array();\n foreach($CYKey as $c){\n array_push($MTDrateCodes, $c);\n }\n foreach($PYKey as $p){\n array_push($MTDrateCodes, $p);\n }\n \n $MTDrateCodes = array_unique($MTDrateCodes); \n \n //Create final data set\n $MTDFinal = $this -> getFinalData($CYArray, $PYArray, $MTDrateCodes);\n $MTDRateCodeTotals = $this -> getRateCodeCalculations($MTDFinal);\n $MTDTotals = $this -> getFinalCalculations($MTDRateCodeTotals);\n\n /***********************YTD***********************/\n //Get Report Keys for all months within range for current year and previous year\n $cykeys = array();\n $pykeys = array();\n for($i = 1; $i <= date('m'); $i++){\n $ckey = $this -> getReportKey($id, $i, 'cy');\n array_push($cykeys, $ckey);\n $pkey = $this -> getReportKey($id, $i, 'py');\n array_push($pykeys, $pkey);\n }\n\n //Get report data and keys\n $CYData = array();\n $PYData = array();\n \n foreach($cykeys as $c){\n if($c != 0){\n $data = $this -> getReportData($c);\n foreach($data as $d){\n array_push($CYData, $d);\n }\n }\n }\n $CYTDKeys = $this -> getRateCodeKeys($CYData);\n\n foreach($pykeys as $p){\n if($p != 0){\n $pdata = $this -> getReportData($p);\n foreach($pdata as $pd){\n array_push($PYData, $pd);\n }\n }\n }\n $PYTDKeys = $this -> getRateCodeKeys($PYData);\n \n //Add both sets of keys to an array and then parse out duplicates\n $YTDrateCodes = array();\n foreach($CYTDKeys as $c){\n array_push($YTDrateCodes, $c);\n }\n foreach($PYTDKeys as $p){\n array_push($YTDrateCodes, $p);\n }\n $YTDrateCodes = array_unique($YTDrateCodes); \n\n //Create final data set\n $YTDFinal = $this -> getFinalData($CYData, $PYData, $YTDrateCodes);\n $YTDRateCodeTotals = $this -> getRateCodeCalculations($YTDFinal);\n $YTDTotals = $this -> getFinalCalculations($YTDRateCodeTotals);\n\n \n return new ViewModel(array(\n 'property' => $property,\n 'brand' => $brand,\n 'MTDData' => $MTDFinal,\n 'MTDTotals' => $MTDRateCodeTotals,\n 'finalMTD' => $MTDTotals,\n 'YTDData' => $YTDFinal,\n 'YTDTotals' => $YTDRateCodeTotals,\n 'finalYTD' => $YTDTotals,\n ));\n }",
"public function reports()\n {\n //\n }",
"function coverageAll($request) {\n\t\tself::use_test_manifest();\n\t\t$this->all($request, true);\n\t}",
"public function curriculumreport()\n\t{\n\t\t$curriculum_id = $this->uri->segment(3);\n\n\t\t// get data from db\n\t\t$curriculum = $this->CurriculamModel->GetById($curriculum_id);\n\t\t$curriculumapprovalallrecords = $this->CurriculamModel->GetByIdAllRecords($curriculum_id);\n\n\t\t// get approval history\n\t\t$aproval_history = $this->ApprovalProcessModel->getApprovalStatusByField('curriculam_id', $curriculum_id);\n\n\t\t$data = array(\n\t\t\t'curriculum' => $curriculum,\n\t\t\t'curriculumapprovalallrecords' => $curriculumapprovalallrecords,\n\t\t\t'aproval_history' => $aproval_history\n\t\t);\n\n\t\t/// Load curriculum view\n\t\t$html = $this->layout->report_view(\"analysis_and_reporting/curriculum_list\", $data, true);\n\n\t\t$this->pdfgenerator->Generate($html);\n\t}",
"public function generate() {\n $this->generator->generate();\n }",
"public function test()\n {\n exit\n (\n $this->taskPHPUnit()\n ->arg('./tests')\n ->option('coverage-clover', './build/logs/clover.xml')\n ->run()->getExitCode()\n );\n }",
"public function generateResults()\n {\n $path = DATA_PATH . '/' . $this->jobId . '/results';\n\n if (! is_dir($path)) {\n mkdir($path);\n }\n\n $this->writeStats();\n $this->writeCsv();\n $this->writeMzIdentMl();\n $this->writeMgf();\n }",
"public function report()\n {\n $title = 'Report for: ' . $this->report_title;\n $delimiter = \"\\n\" . str_repeat(\"-\", strlen($title)) . \"\\n\";\n $this->report_output = \"\\n\" . $delimiter . $title . $delimiter;\n\n if (empty($this->errors)) {\n $this->report_output .= $this->colorizeOutput(\n $this->test_count . ' tests processed. All tests processed without errors',\n 'green'\n ) . \"\\n\\n\";\n\n print $this->report_output;\n\n return 0;\n }\n\n foreach ($this->errors as $error) {\n $this->report_output .= $error . \"\\n\";\n }\n\n $error_count = count($this->errors) > 1\n ? 'There are ' . count($this->errors) . \" errors\"\n : 'There is one error';\n\n $this->report_output .= $this->colorizeOutput($this->test_count . ' tests processed. ' . $error_count, 'red', true) . \"\\n\";\n\n print $this->report_output;\n\n return 1;\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.55391777",
"0.55331457",
"0.5508068",
"0.5506667",
"0.5463293",
"0.5411382",
"0.54077774",
"0.53787106",
"0.53766936",
"0.5367349"
] | 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',$emails);\r\n \t}else{\r\n \t\techo \"Não existe nenhum e-mail cadastrado\";\r\n\r\n \t}\r\n\r\n }",
"function procesar_cliente($cliente) {\r\necho \"El es cliente: \".$cliente['nombre_c'];\r\necho \"<br> Tiene el codigo: \".$cliente['codigo_c'];\r\necho \"<br> El email\".$cliente[\"email\"];\r\n}",
"public function registrar($empresa)\n {\n $email = new Default_Model_Email($this, $empresa);\n \n\t\tif($this->tipo == 'Servicio'){\n\t\t\t$asunto = 'Consulta de producto';\t\n \tif($email->enviar2($asunto))\n {\n $id = $this->get_max();\n $data = array(\n \"c_id\" => $this->get_max(),\n \"c_codigo\" => $this->get_max(),\n \"c_nombres\" => $this->nombres,\n \"c_apellidos\" => $this->apellidos,\n \"c_email\"=> $this->email,\n \"c_telefono\" => $this->telefono,\n\t\t\t\t\t\"c_mensaje\" => $this->mensaje,\t\t\t\t\t\n \"c_empresa\" => '',\n \"c_ciudad\" => '', \n \"c_tipo\" => $this->tipo, \n \"c_fecha\" => date(\"Y-m-d\"),\n \"c_hora\" => date(\"G:i:s\")\t\t\t\t\t\n );\n \n $this->insert($data);\n \n return true;\n \t}\n else\n {\n return false;\n \t}\n\t\t}else{\n\t\t\t\t\t$asunto = 'Contacto';\t\n \tif($email->enviar($asunto))\n {\n $id = $this->get_max();\n $data = array(\n \"c_id\" => $this->get_max(),\n \"c_codigo\" => $this->get_max(),\n \"c_nombres\" => $this->nombres,\n \"c_apellidos\" => $this->apellidos,\n \"c_email\"=> $this->email,\n \"c_telefono\" => $this->telefono,\n\t\t\t\t\t\"c_mensaje\" => $this->mensaje,\t\t\t\t\t\n \"c_empresa\" => '',\n \"c_ciudad\" => '', \n \"c_tipo\" => $this->tipo, \n \"c_fecha\" => date(\"Y-m-d\"),\n \"c_hora\" => date(\"G:i:s\")\t\t\t\t\t\n );\n \n $this->insert($data);\n \n return true;\n \t}\n else\n {\n return false;\n \t}\n\t\t\n\t\t\n\t\t\n\t\t}\n }",
"function send_email_reserva($dados = array()){\r\n\t\t// Formata o campo para receber os acentos corretamente\r\n\t\t\t\t\r\n\t\t$nome = utf8_encode($dados[0]);\r\n\t\t$acompanhantes = utf8_encode($dados[1]);\r\n\t\t$adultos = utf8_encode($dados[2]);\r\n\t\t$criancas_10 = utf8_encode($dados[3]);\r\n\t\t$criancas_3 = utf8_encode($dados[4]);\r\n\t\t$email = utf8_encode($dados[5]);\r\n\t\t$telefone = utf8_encode($dados[6]);\r\n\t\t$celular = utf8_encode($dados[7]);\r\n\t\t$data_chegada = utf8_encode($dados[8]);\r\n\t\t$data_saida = utf8_encode($dados[9]);\r\n\t\t$data = $dados[11];\r\n\t\t\r\n\t\t\r\n\t\t// Este email será o responsável por enviar o email pelo servidor e deve ser um e-mail válido sobre o dominio em questão;\r\n\t\t$mail_remetente = \"[email protected]\";\r\n\t\t\r\n\t\t// Email que receberá uma cópia;\r\n\t\t//$email_copy = \"[email protected]\";\r\n\t\t\r\n\t\t// Este váriavel e para colocar em qual caixa de email deve chegar a mensagem.\r\n\t\t$__to = \"[email protected]\";\r\n\t\t\r\n\t\t// Titulo da mensagem, observe as regras de SPAN ao montar um titulo\r\n\t\t$__sj = \"Reserva - Portal do Sol Hotel Fazenda\";\r\n\t\t\r\n\t\t// Aqui esta sendo montada a estrutura do e-mail.\r\n\t\t$html = $this->html_head;\r\n\t\t// Está parte do código deve ser ajustado conforme a necessidade de casa formulário.\r\n\t\t$html .= \"\r\n\t\t\t<center>\r\n\t\t\t\t<table border='0' cellspacing='3' cellpadding='0' id='tab' align='center'>\r\n\t\t\t\t\t <tr>\r\n\t\t\t\t\t\t<td colspan='4'><img src='http://www.portaldosolhotelfazenda.com.br/imagens/estrutura/cabecalho-email-contato.jpg' alt='Imagem de Socorro - Cabeçalho da página contato' title='Imagem de Socorro - Cabeçalho da página contato' /></td>\r\n\t\t\t\t\t </tr>\r\n\t\t\t\t\t <tr>\r\n\t\t\t\t\t\t<td colspan='4' class='titulo'><h1>Reserva | Portal do Sol Hotel Fazenda</h1></td>\r\n\t\t\t\t\t </tr>\r\n\t\t\t\t\t <tr>\r\n\t\t\t\t\t\t<th scope='row' align='right' width='45%' class='td'>Nome:</th>\r\n\t\t\t\t\t\t<td colspan='3' align='left' class='td'>$nome</td>\r\n\t\t\t\t\t </tr>\r\n\t\t\t\t\t <tr>\r\n\t\t\t\t\t\t<th scope='row' align='right' class='td'>Número de acompanhantes:</th>\r\n\t\t\t\t\t\t<td colspan='3' align='left' class='td'>$acompanhantes</td>\r\n\t\t\t\t\t </tr>\r\n\t\t\t\t\t <tr>\r\n\t\t\t\t\t\t<th scope='row' align='right' class='td'>Número de adultos:</th>\r\n\t\t\t\t\t\t<td colspan='3' align='left' class='td'>$adultos</td>\r\n\t\t\t\t\t </tr>\r\n\t\t\t\t\t <tr>\r\n\t\t\t\t\t\t<th scope='row' align='right' class='td'>Crianças de 4 a 10 anos:</th>\r\n\t\t\t\t\t\t<td colspan='3' align='left' class='td'>$criancas_10</td>\r\n\t\t\t\t\t </tr>\r\n\t\t\t\t\t <tr>\r\n\t\t\t\t\t\t<th scope='row' align='right' class='td'>Crianças até 3 anos:</th>\r\n\t\t\t\t\t\t<td colspan='3' align='left' class='td'>$criancas_3</td>\r\n\t\t\t\t\t </tr>\r\n\t\t\t\t\t <tr>\r\n\t\t\t\t\t\t<th scope='row' align='right' class='td'>Email:</th>\r\n\t\t\t\t\t\t<td colspan='3' align='left' class='td'><a href='mailto:$email'>$email</a></td>\r\n\t\t\t\t\t </tr>\r\n\t\t\t\t\t <tr>\r\n\t\t\t\t\t\t<th scope='row' align='right' class='td'>Telefone:</th>\r\n\t\t\t\t\t\t<td colspan='3' align='left' class='td'>$telefone</td>\r\n\t\t\t\t\t </tr>\r\n\t\t\t\t\t <tr>\r\n\t\t\t\t\t\t<th scope='row' align='right' class='td'>Celular:</th>\r\n\t\t\t\t\t\t<td colspan='3' align='left' class='td'>$celular</td>\r\n\t\t\t\t\t </tr>\r\n\t\t\t\t\t <tr>\r\n\t\t\t\t\t\t<th scope='row' align='right' class='td'>Data de chegada:</th>\r\n\t\t\t\t\t\t<td colspan='3' align='left' class='td'>$data_chegada</td>\r\n\t\t\t\t\t </tr>\r\n\t\t\t\t\t <tr>\r\n\t\t\t\t\t\t<th scope='row' align='right' class='td'>Data de saída:</th>\r\n\t\t\t\t\t\t<td colspan='3' align='left' class='td'>$data_saida</td>\r\n\t\t\t\t\t </tr>\r\n\t\t\t\t\t <tr>\r\n\t\t\t\t\t\t<th scope='row' align='right' class='td'>Data e Hora:</th>\r\n\t\t\t\t\t\t<td colspan='3' align='left' class='td'>$data</td>\r\n\t\t\t\t\t </tr>\r\n\t\t\t\t\t <tr>\r\n\t\t\t\t\t\t<td colspan='4' align='left' class='rodape'><a href='mailto:[email protected]'>Agência WebSocorro</a></td>\r\n\t\t\t\t\t </tr>\r\n\t\t\t\t </table>\r\n\t\t\t\t </center>\r\n\t\t\t </body>\r\n\t\t </html>\";\t\r\n\t\t\t\t\t\r\n\t\t\t// Verifica qual o sistema operacional que estará enviando o e-mail, para formatar as quabras de linhas\t\t\r\n\t\t\tif(PHP_OS == \"Linux\") $snap = \"\\n\"; //Se for Linux\r\n\t\t\telseif(PHP_OS == \"WINNT\") $snap = \"\\r\\n\"; // Se for Windows\r\n\t\t\telse die(\"Este script nao esta preparado para funcionar com o sistema operacional de seu servidor\");\r\n\t\t\t\t// Configura a versão do cab_emais\r\n\t\t\t\t$head = \"MIME-Version: 1.1\".$snap;\r\n\t\t\t\t// Recebe as váriaveis de quem recebe o e-mail\r\n\t\t\t\t$head.= \"From: \". $mail_remetente . $snap;\r\n\t\t\t\t// Recebe a váriavel de qual e-mail será utilizado para resposta do e-mail, no caso o email de quem preencheu o formulário.\r\n\t\t\t\t$head.= \"Reply-To: \". $email . $snap;\r\n\t\t\t\t// Recebe a váriavel de qual e-mail será enviado uma cópia do e-mail.\r\n\t\t\t\tif(empty($email_copy)){\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t$head.= \"Bcc: \".$email_copy . $snap;\r\n\t\t\t\t}\r\n\t\t\t\t$head.= \"Content-type: text/html; charset=utf-8\".$snap;\r\n\t\t\t\t\r\n\t\t\tif(!mail($__to, $__sj, $html, $head ,\"-r\".$mail_remetente)){ // Se for Postfix\r\n\t\t\t\t$head .= \"Return-Path: \" . $mail_remetente . $snap;\r\n\t\t\t\tmail($__to, $__sj, $html, $head);\r\n\t\t\t}\r\n\t}",
"public function data_email()\n {\n $query = $this->db->query('select nap, doc_type, valid_until, due_date, remarks, nomor_plat, code_unit, COALESCE(no_ref_sr,\"-\") no_ref_sr , COALESCE(no_ref_ppd, \"-\") no_ref_ppd FROM\n(SELECT a.id_document, a.no_ref_sr, a.no_ref_ppd, a.doc_no, b.nomor_plat, b.code_unit, a.nap, a.doc_type, a.remarks, a.valid_until, DATEDIFF(a.valid_until, CURDATE()) AS due_date, a.status, CASE\n WHEN DATEDIFF(a.valid_until, CURDATE()) <= 60 THEN \"1\"\n \n ELSE \"0\"\n END AS show_notif FROM document_vehicle a, vehicle_master b\n WHERE a.nap = b.nap\n AND a.status NOT IN (\"closed\",\"approve\")\n AND DATEDIFF(a.valid_until, CURDATE()) > 0) a\n WHERE a.show_notif = 1 ORDER BY valid_until');\n return $query->result();\n }",
"function registrarUsuario($email,$matricula,$contrasena){\n \t\t\n \t}",
"function Ingresar_cliente($rut, $nombre_razon, $direccion, $contacto, $comuna, $ciudad, $rubro, $coreo, $telefono, $celular,$web,$condicion_pago, $giro, $vendedor_rut, $lista_precios_lista_precio ){\n $data = array(\n 'rut' => $rut,\n 'nombre_razon' => $nombre_razon,\n 'direccion' => $direccion,\n 'contacto' => $contacto,\n 'comuna' => $comuna,\n 'ciudad' => $ciudad,\n 'rubro' => $rubro,\n 'correo' => $coreo,\n 'telefono' => $telefono,\n 'celular' => $celular,\n 'web' => $web,\n 'condicion_pago' => $condicion_pago,\n 'giro' => $giro,\n 'campo3' => \" X \",\n 'campo4' => \" X \",\n 'vendedor_rut' => $vendedor_rut,\n 'lista_precios_lista_precio' => $lista_precios_lista_precio\n );\n $this->db->insert('Cliente',$data);\n }",
"function Validar_datos_registro($nombres, $apellidos, $email)\n{\n $estado = array();\n //En caso de tener espacios se quitan\n $nombres = trim($nombres);\n $apellidos = trim($apellidos);\n $email = trim($email);\n \n $alerta_registro = false;\n //Validar los parametros recividos y se le asigna un estado segun el caso\n //Si no hay ningun error la funcion devolvera una variable vacia, de no ser asi devolvera el array con los errores correspondientes\n if (!empty($nombres) && !is_numeric($nombres) && !preg_match(\"/[0-9]+/\", $nombres)) {\n $alerta_registro = true;\n } else {\n $estado[\"nombres\"] = \"El nombre no es valido\";\n }\n\n if (!empty($apellidos) && !is_numeric($apellidos) && !preg_match(\"/[0-9]+/\", $apellidos)) {\n $alerta_registro = true;\n } else {\n $estado[\"apellidos\"] = \"El apellido no es valido\";\n }\n\n if (!empty($email) && filter_var($email, FILTER_VALIDATE_EMAIL)) {\n $alerta_registro = true;\n } else {\n $estado[\"email\"] = \"El email no es valido\";\n }\n\n return $estado;\n\n}",
"function reporteOtrosIngresos(){\n //Definicion de variables para ejecucion del procedimiento\n $this->procedimiento='plani.ft_planilla_sel';// nombre procedimiento almacenado\n $this->transaccion='PLA_RP_OTROS_ING_SEL';//nombre de la transaccion\n $this->tipo_procedimiento='SEL';//tipo de transaccion\n $this->setCount(false);\n\n //$this->setParametro('fecha_ini','fecha_ini','date');\n //$this->setParametro('fecha_fin','fecha_fin','date');\n $this->setParametro('gestion','gestion','integer');\n $this->setParametro('periodo','periodo','integer');\n //$this->setParametro('tipo','tipo','varchar');\n\n //defino varialbes que se capturan como retorno de la funcion\n\n\n $this->captura('nombre_empleado','text');\n $this->captura('id_funcionario','integer');\n $this->captura('sistema_fuente','varchar');\n $this->captura('monto','numeric');\n $this->captura('ci','varchar');\n $this->captura('cargo','varchar');\n $this->captura('contrato','varchar');\n $this->captura('categoria','varchar');\n $this->captura('area','varchar');\n $this->captura('regional','varchar');\n $this->captura('c31','varchar');\n $this->captura('fecha_pago','date');\n $this->captura('tipo','varchar');\n $this->captura('estado','varchar');\n $this->captura('tasa_nacional','numeric');\n $this->captura('tasa_internacional','numeric');\n $this->captura('importe_retencion','numeric');\n $this->captura('orden','varchar');\n $this->captura('ref_sep','numeric');\n $this->captura('id_fuente','integer');\n //$this->captura('prima','numeric');\n //$this->captura('retro','numeric');\n\n\n //Ejecuta la funcion\n $this->armarConsulta();\n //echo $this->getConsulta(); exit;\n $this->ejecutarConsulta();\n return $this->respuesta;\n }",
"function e12cMaisDetalhesFinanceiro($s_usuario, $codigo,$pagadora,$beneficiario,$valor,$emissao,$vencimento,$mensagem,$id_msg){\n $query = \"SELECT TOP 1\n e.id_usuario AS id_para\n ,e.nome AS nome_para\n ,e.sobrenome AS sobrenome_para\n ,e.email AS email_para\n ,u.id AS id_de\n ,u.nome AS nome_de\n ,u.sobrenome AS sobrenome_de\n ,u.usuario AS email_de\n ,CONVERT(varchar,GETDATE(),105) AS dataAprov\n FROM configuracao_email_disparo AS e\n LEFT JOIN usuario AS u ON u.id = ?\n WHERE tipo_disparo=410\n ORDER BY e.id \";\n $params = array($s_usuario);\n $resul = sqlsrv_query($this->link, $query, $params);\n $linha = sqlsrv_fetch_object($resul);\n $id_de = $linha->id_de;\n $nome_de = $linha->nome_de;\n $sobrenome_de = $linha->sobrenome_de;\n $email_de = $linha->email_de;\n $id_para = $linha->id_para;\n $nome_para = $linha->nome_para;\n $sobrenome_para = $linha->sobrenome_para;\n $email_para = $linha->email_para;\n $dt_aprov = $linha->dataAprov;\n //\n $tituloEmail = 'Notificação financeira - Solicitação de maiores detalhes do título ['.$codigo.']';\n //\n\n $corpo = file_get_contents(\"../pages/email/e12c_fin_det.html\", true);\n $corpo = str_replace(\"[[NOME_PARA]]\", $nome_para.' '.$sobrenome_para, $corpo);\n $corpo = str_replace(\"[[NOME_DE]]\", $nome_de.' '.$sobrenome_de, $corpo);\n $corpo = str_replace(\"[[EMAIL_DE]]\", $email_de, $corpo);\n $corpo = str_replace(\"[[PAGADORA]]\", $pagadora, $corpo);\n $corpo = str_replace(\"[[BENEFICIARIO]]\", $beneficiario, $corpo);\n $corpo = str_replace(\"[[VALOR]]\", $valor, $corpo);\n $corpo = str_replace(\"[[EMISSAO]]\", $emissao, $corpo);\n $corpo = str_replace(\"[[VENCIMENTO]]\", $vencimento, $corpo);\n $corpo = str_replace(\"[[CODIGO]]\", $codigo, $corpo);\n $corpo = str_replace(\"[[MENSAGEM]]\", $mensagem, $corpo);\n\n //enviando email\n $objEmail = new email();\n $val1id_email = $objEmail->enviaEmailCopia($tituloEmail, $corpo, $nome_para, $email_para,$nome_de, $email_de);\n\n //3-GRAVANDO LOG\n $objLog = new log();\n $valid_Log=$objLog->logEmailMaisDetalhesFinanceiro($s_usuario,$id_de,$id_para,$id_msg);\n\n if ($val1id_email == 1 && $valid_Log==1) {\n return 1;\n }else{\n return 0;\n }\n\n }",
"function solicitarReposicao($identificacao,$faltas, $nOrden,$tipo,$dataLocal,$email){\n //primeira mensagem do array\n $mensagem =\"<html>\n <head>\n <meta charset='UTF-8'>\n <link rel='stylesheet' href='stilo.css'>\n <!-- Meta tags Obrigatórias -->\n <meta name='viewport' content='width=device-width, initial-scale=1, shrink-to-fit=no'>\n <!-- Bootstrap CSS -->\n <link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css' integrity='sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm' crossorigin='anonymous'>\n\n </head>\n <body>\n <h3 class='text-center'>Solitação de Reposição da \".$tipo.\"</h3>\n <table class='table table-striped ' border='1' cellpadding='13' cellspacing='2' >\n <tr >\n <td colspan='2' '>Nome: \".$identificacao[\"enfermagem\"].\"</td>\n <td >Numero de ordem: \".$nOrden.\" </td>\n\n </tr>\n\n <tr>\n <td >Viatura: \".$identificacao[\"vtr\"].\" </td>\n <td >Lacre: \".$identificacao[\"lacre\"].\" </td> \n <td> \". $identificacao[\"plantao\"].\"</td>\n </tr>\n\n \";\n //segunda mensagem do array\n $resposta = array($mensagem);\n\n foreach ($faltas as $key => $value) {\n $inserir= \"<tr><td colspan='3'>\".$value.\"</td></tr>\";\n array_push($resposta,$inserir);\n\n }\n //finaliza a mensagem\n $inserir2=\"</table></body></html>\";\n array_push($resposta,$inserir2);\n ;\n\n foreach ($resposta as $key => $value) {\n\n $mensa =$mensa.$value; \n\n\n }\n\n //echo($mensa);\n $to = $email;\n //Assunto do email\n $subject= \"Reposição da \".$tipo.\" - \" .$dataLocal.\" - \" .$identificacao[\"enfermagem\"];\n\n //Mensagem em HTML uso o array $novo para identifica o que tem e o que está em \n //falta no checklist\n //headers mime mais utf-8 cabeçalhos para o entendimento do gmail\n $headers = 'MIME-Version: 1.0' . \"\\r\\n\";\n $headers .= 'Content-type: text/html; charset=UTF-8' . \"\\r\\n\";\n //Variavel que recebe o envio do email\n $sucess = mail ($to , $subject , $mensa , $headers);\n //Verifica se o email foi mandado com sucesso \n if(!$sucess) {\n echo 'Não foi possível enviar a mensagem.<br>';\n $errorMessage = error_get_last()['message'];\n echo $errorMessage;\n\n\n } else {\n //email enviado com sucesso alert JS\n echo \"<script>alert('Reposição enviada com Sucesso')</script>\";\n // echo \" location.href='http://starhealth.com.br/checkNova/checklist.php';\";\n\n } \n //Documento HTML que exibe os itens que precisam ser reposto\n\n\n return $resposta;\n}",
"function ConsultaEmail(){\r\n // $query = \"SELECT ID_Usuario, US_Nombres, US_Apellidos, US_Direccion, US_Fecha_Nacimiento, US_Nacionalidad, US_Telefono, US_Email FROM \" . $this->table_name . \" WHERE ID_Usuario = ?\";\r\n $query = \"SELECT\r\n `ID_Usuario`, `US_Nombres`, `US_Apellidos`, `US_Direccion`, `US_Fecha_Nacimiento`, `US_Nacionalidad`, `US_Telefono`, `US_Email`\r\n FROM\r\n \" . $this->table_name . \" \r\n WHERE\r\n US_Email='\".$this->US_Email.\"'\";\r\n $stmt = $this->conn->prepare($query);\r\n // execute query\r\n $stmt->execute();\r\n return $stmt;\r\n }",
"function send_email_registro($id,$email,$nombre,$sucursal,$nroticket,$monto,$fecha) {\n\t\t $fechahora = $fecha;\n\n\t\t $texto_mail = '\n\t\t <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional //EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n\n\t\t <html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:o=\"urn:schemas-microsoft-com:office:office\" xmlns:v=\"urn:schemas-microsoft-com:vml\">\n\n\t\t <head>\n\t\t <!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]-->\n\t\t <meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-Type\" />\n\t\t <meta content=\"width=device-width\" name=\"viewport\" />\n\t\t <!--[if !mso]><!-->\n\t\t <meta content=\"IE=edge\" http-equiv=\"X-UA-Compatible\" />\n\t\t <!--<![endif]-->\n\t\t <title></title>\n\t\t <!--[if !mso]><!-->\n\t\t <!--<![endif]-->\n\t\t <style type=\"text/css\">\n\t\t body {\n\t\t margin: 0;\n\t\t padding: 0;\n\t\t }\n\n\t\t table,\n\t\t td,\n\t\t tr {\n\t\t vertical-align: top;\n\t\t border-collapse: collapse;\n\t\t }\n\n\t\t * {\n\t\t line-height: inherit;\n\t\t }\n\n\t\t a[x-apple-data-detectors=true] {\n\t\t color: inherit !important;\n\t\t text-decoration: none !important;\n\t\t }\n\t\t </style>\n\t\t <style id=\"media-query\" type=\"text/css\">\n\t\t @media (max-width: 920px) {\n\t\t .block-grid,\n\t\t .col {\n\t\t min-width: 320px !important;\n\t\t max-width: 100% !important;\n\t\t display: block !important;\n\t\t }\n\t\t .block-grid {\n\t\t width: 100% !important;\n\t\t }\n\t\t .col {\n\t\t width: 100% !important;\n\t\t }\n\t\t .col>div {\n\t\t margin: 0 auto;\n\t\t }\n\t\t img.fullwidth,\n\t\t img.fullwidthOnMobile {\n\t\t max-width: 100% !important;\n\t\t }\n\t\t .no-stack .col {\n\t\t min-width: 0 !important;\n\t\t display: table-cell !important;\n\t\t }\n\t\t .no-stack.two-up .col {\n\t\t width: 50% !important;\n\t\t }\n\t\t .no-stack .col.num4 {\n\t\t width: 33% !important;\n\t\t }\n\t\t .no-stack .col.num8 {\n\t\t width: 66% !important;\n\t\t }\n\t\t .no-stack .col.num4 {\n\t\t width: 33% !important;\n\t\t }\n\t\t .no-stack .col.num3 {\n\t\t width: 25% !important;\n\t\t }\n\t\t .no-stack .col.num6 {\n\t\t width: 50% !important;\n\t\t }\n\t\t .no-stack .col.num9 {\n\t\t width: 75% !important;\n\t\t }\n\t\t .video-block {\n\t\t max-width: none !important;\n\t\t }\n\t\t .mobile_hide {\n\t\t min-height: 0px;\n\t\t max-height: 0px;\n\t\t max-width: 0px;\n\t\t display: none;\n\t\t overflow: hidden;\n\t\t font-size: 0px;\n\t\t }\n\t\t .desktop_hide {\n\t\t display: block !important;\n\t\t max-height: none !important;\n\t\t }\n\t\t }\n\t\t </style>\n\t\t </head>\n\n\t\t <body class=\"clean-body\" style=\"margin: 0; padding: 0; -webkit-text-size-adjust: 100%; background-color: #FFFFFF;\">\n\t\t <!--[if IE]><div class=\"ie-browser\"><![endif]-->\n\t\t <table bgcolor=\"#FFFFFF\" cellpadding=\"0\" cellspacing=\"0\" class=\"nl-container\" role=\"presentation\" style=\"table-layout: fixed; vertical-align: top; min-width: 320px; Margin: 0 auto; border-spacing: 0; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; background-color: #FFFFFF; width: 100%;\" valign=\"top\" width=\"100%\">\n\t\t <tbody>\n\t\t <tr style=\"vertical-align: top;\" valign=\"top\">\n\t\t <td style=\"word-break: break-word; vertical-align: top;\" valign=\"top\">\n\t\t <!--[if (mso)|(IE)]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td align=\"center\" style=\"background-color:#FFFFFF\"><![endif]-->\n\t\t <div style=\"background-color:transparent;\">\n\t\t <div class=\"block-grid\" style=\"Margin: 0 auto; min-width: 320px; max-width: 900px; overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; background-color: transparent;\">\n\t\t <div style=\"border-collapse: collapse;display: table;width: 100%;background-color:transparent;\">\n\t\t <!--[if (mso)|(IE)]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"background-color:transparent;\"><tr><td align=\"center\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"width:900px\"><tr class=\"layout-full-width\" style=\"background-color:transparent\"><![endif]-->\n\t\t <!--[if (mso)|(IE)]><td align=\"center\" width=\"900\" style=\"background-color:transparent;width:900px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;\" valign=\"top\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;\"><![endif]-->\n\t\t <div class=\"col num12\" style=\"min-width: 320px; max-width: 900px; display: table-cell; vertical-align: top; width: 900px;\">\n\t\t <div style=\"width:100% !important;\">\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t <div style=\"border-top:0px solid transparent; border-left:0px solid transparent; border-bottom:0px solid transparent; border-right:0px solid transparent; padding-top:5px; padding-bottom:5px; padding-right: 0px; padding-left: 0px;\">\n\t\t <!--<![endif]-->\n\t\t <div align=\"center\" class=\"img-container center autowidth\" style=\"padding-right: 0px;padding-left: 0px;\">\n\t\t <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr style=\"line-height:0px\"><td style=\"padding-right: 0px;padding-left: 0px;\" align=\"center\"><![endif]--><img align=\"center\" alt=\"Image\" border=\"0\" class=\"center autowidth\" src=\"https://ganaenlaferiacorona.com/img/mail/header-mail-100.jpg\" style=\"text-decoration: none; -ms-interpolation-mode: bicubic; border: 0; height: auto; width: 100%; max-width: 900px; display: block;\" title=\"Image\" width=\"900\" />\n\t\t <!--[if mso]></td></tr></table><![endif]-->\n\t\t </div>\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t </div>\n\t\t <!--<![endif]-->\n\t\t </div>\n\t\t </div>\n\t\t <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\n\t\t <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->\n\t\t </div>\n\t\t </div>\n\t\t </div>\n\t\t <div style=\"background-color:transparent;\">\n\t\t <div class=\"block-grid\" style=\"Margin: 0 auto; min-width: 320px; max-width: 900px; overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; background-color: transparent;\">\n\t\t <div style=\"border-collapse: collapse;display: table;width: 100%;background-color:transparent;\">\n\t\t <!--[if (mso)|(IE)]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"background-color:transparent;\"><tr><td align=\"center\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"width:900px\"><tr class=\"layout-full-width\" style=\"background-color:transparent\"><![endif]-->\n\t\t <!--[if (mso)|(IE)]><td align=\"center\" width=\"900\" style=\"background-color:transparent;width:900px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;\" valign=\"top\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;\"><![endif]-->\n\t\t <div class=\"col num12\" style=\"min-width: 320px; max-width: 900px; display: table-cell; vertical-align: top; width: 900px;\">\n\t\t <div style=\"width:100% !important;\">\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t <div style=\"border-top:0px solid transparent; border-left:0px solid transparent; border-bottom:0px solid transparent; border-right:0px solid transparent; padding-top:5px; padding-bottom:5px; padding-right: 0px; padding-left: 0px;\">\n\t\t <!--<![endif]-->\n\t\t <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Verdana, sans-serif\"><![endif]-->\n\t\t <div style=\"color:#3b5998;font-family:Verdana, Geneva, sans-serif;line-height:1.2;padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px;\">\n\t\t <div style=\"font-size: 14px; line-height: 1.2; font-family: Verdana, Geneva, sans-serif; color: #3b5998; mso-line-height-alt: 17px;\">\n\t\t <p style=\"font-size: 18px; line-height: 1.2; word-break: break-word; text-align: center; font-family: Verdana, Geneva, sans-serif; mso-line-height-alt: 22px; margin: 0;\"><span style=\"font-size: 18px;\">Hola <strong>'.$nombre.'</strong> gracias por registrar tu ticket. Estos son los datos que registraste:</span></p>\n\t\t </div>\n\t\t </div>\n\t\t <!--[if mso]></td></tr></table><![endif]-->\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t </div>\n\t\t <!--<![endif]-->\n\t\t </div>\n\t\t </div>\n\t\t <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\n\t\t <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->\n\t\t </div>\n\t\t </div>\n\t\t </div>\n\t\t <div style=\"background-color:transparent;\">\n\t\t <div class=\"block-grid\" style=\"Margin: 0 auto; min-width: 320px; max-width: 900px; overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; background-color: transparent;\">\n\t\t <div style=\"border-collapse: collapse;display: table;width: 100%;background-color:transparent;\">\n\t\t <!--[if (mso)|(IE)]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"background-color:transparent;\"><tr><td align=\"center\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"width:900px\"><tr class=\"layout-full-width\" style=\"background-color:transparent\"><![endif]-->\n\t\t <!--[if (mso)|(IE)]><td align=\"center\" width=\"900\" style=\"background-color:transparent;width:900px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;\" valign=\"top\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;\"><![endif]-->\n\t\t <div class=\"col num12\" style=\"min-width: 320px; max-width: 900px; display: table-cell; vertical-align: top; width: 900px;\">\n\t\t <div style=\"width:100% !important;\">\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t <div style=\"border-top:0px solid transparent; border-left:0px solid transparent; border-bottom:0px solid transparent; border-right:0px solid transparent; padding-top:5px; padding-bottom:5px; padding-right: 0px; padding-left: 0px;\">\n\t\t <!--<![endif]-->\n\t\t <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Verdana, sans-serif\"><![endif]-->\n\t\t <div style=\"color:#3b5998;font-family:Verdana, Geneva, sans-serif;line-height:1.2;padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px;\">\n\t\t <div style=\"font-size: 14px; line-height: 1.2; font-family: Verdana, Geneva, sans-serif; color: #3b5998; mso-line-height-alt: 17px;\">\n\t\t <p style=\"font-size: 15px; line-height: 1.2; word-break: break-word; text-align: center; font-family: Verdana, Geneva, sans-serif; mso-line-height-alt: 18px; margin: 0;\"><span style=\"font-size: 15px;\">Sucursal: <strong>'.$sucursal.'</strong></span></p>\n\t\t </div>\n\t\t </div>\n\t\t <!--[if mso]></td></tr></table><![endif]-->\n\t\t <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Verdana, sans-serif\"><![endif]-->\n\t\t <div style=\"color:#3b5998;font-family:Verdana, Geneva, sans-serif;line-height:1.2;padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px;\">\n\t\t <div style=\"font-size: 14px; line-height: 1.2; font-family: Verdana, Geneva, sans-serif; color: #3b5998; mso-line-height-alt: 17px;\">\n\t\t <p style=\"font-size: 15px; line-height: 1.2; text-align: center; font-family: Verdana, Geneva, sans-serif; word-break: break-word; mso-line-height-alt: 18px; margin: 0;\"><span style=\"font-size: 15px;\">ID Ticket: <strong>'.$nroticket.'</strong></span></p>\n\t\t </div>\n\t\t </div>\n\t\t <!--[if mso]></td></tr></table><![endif]-->\n\t\t <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Verdana, sans-serif\"><![endif]-->\n\t\t <div style=\"color:#3b5998;font-family:Verdana, Geneva, sans-serif;line-height:1.2;padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px;\">\n\t\t <div style=\"font-size: 14px; line-height: 1.2; font-family: Verdana, Geneva, sans-serif; color: #3b5998; mso-line-height-alt: 17px;\">\n\t\t <p style=\"font-size: 15px; line-height: 1.2; word-break: break-word; text-align: center; font-family: Verdana, Geneva, sans-serif; mso-line-height-alt: 18px; margin: 0;\"><span style=\"font-size: 15px;\">Monto Ticket: <strong>$'.$monto.'</strong></span></p>\n\t\t </div>\n\t\t </div>\n\t\t <!--[if mso]></td></tr></table><![endif]-->\n\t\t <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Verdana, sans-serif\"><![endif]-->\n\t\t <div style=\"color:#3b5998;font-family:Verdana, Geneva, sans-serif;line-height:1.2;padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px;\">\n\t\t <div style=\"font-size: 14px; line-height: 1.2; font-family: Verdana, Geneva, sans-serif; color: #3b5998; mso-line-height-alt: 17px;\">\n\t\t <p style=\"font-size: 15px; line-height: 1.2; word-break: break-word; text-align: center; font-family: Verdana, Geneva, sans-serif; mso-line-height-alt: 18px; margin: 0;\"><span style=\"font-size: 15px;\">Fecha y Hora de Registro: <strong>'.$fechahora.'</strong></span></p>\n\t\t </div>\n\t\t </div>\n\t\t <!--[if mso]></td></tr></table><![endif]-->\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t </div>\n\t\t <!--<![endif]-->\n\t\t </div>\n\t\t </div>\n\t\t <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\n\t\t <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->\n\t\t </div>\n\t\t </div>\n\t\t </div>\n\t\t <div style=\"background-color:transparent;\">\n\t\t <div class=\"block-grid\" style=\"Margin: 0 auto; min-width: 320px; max-width: 900px; overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; background-color: transparent;\">\n\t\t <div style=\"border-collapse: collapse;display: table;width: 100%;background-color:transparent;\">\n\t\t <!--[if (mso)|(IE)]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"background-color:transparent;\"><tr><td align=\"center\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"width:900px\"><tr class=\"layout-full-width\" style=\"background-color:transparent\"><![endif]-->\n\t\t <!--[if (mso)|(IE)]><td align=\"center\" width=\"900\" style=\"background-color:transparent;width:900px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;\" valign=\"top\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 0px; padding-left: 0px; padding-top:20px; padding-bottom:5px;\"><![endif]-->\n\t\t <div class=\"col num12\" style=\"min-width: 320px; max-width: 900px; display: table-cell; vertical-align: top; width: 900px;\">\n\t\t <div style=\"width:100% !important;\">\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t <div style=\"border-top:0px solid transparent; border-left:0px solid transparent; border-bottom:0px solid transparent; border-right:0px solid transparent; padding-top:20px; padding-bottom:5px; padding-right: 0px; padding-left: 0px;\">\n\t\t <!--<![endif]-->\n\t\t <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Verdana, sans-serif\"><![endif]-->\n\t\t <div style=\"color:#0069b3;font-family:Verdana, Geneva, sans-serif;line-height:1.2;padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px;\">\n\t\t <div style=\"font-size: 14px; line-height: 1.2; font-family: Verdana, Geneva, sans-serif; color: #0069b3; mso-line-height-alt: 17px;\">\n\t\t <p style=\"font-size: 12px; line-height: 1.2; text-align: center; font-family: Verdana, Geneva, sans-serif; word-break: break-word; mso-line-height-alt: 14px; margin: 0;\"><span style=\"font-size: 12px;\"><strong>Visita Nuestra Página de la Promoción</strong></span></p>\n\t\t </div>\n\t\t </div>\n\t\t <!--[if mso]></td></tr></table><![endif]-->\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t </div>\n\t\t <!--<![endif]-->\n\t\t </div>\n\t\t </div>\n\t\t <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\n\t\t <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->\n\t\t </div>\n\t\t </div>\n\t\t </div>\n\t\t <div style=\"background-color:transparent;\">\n\t\t <div class=\"block-grid three-up\" style=\"Margin: 0 auto; min-width: 320px; max-width: 900px; overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; background-color: transparent;\">\n\t\t <div style=\"border-collapse: collapse;display: table;width: 100%;background-color:transparent;\">\n\t\t <!--[if (mso)|(IE)]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"background-color:transparent;\"><tr><td align=\"center\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"width:900px\"><tr class=\"layout-full-width\" style=\"background-color:transparent\"><![endif]-->\n\t\t <!--[if (mso)|(IE)]><td align=\"center\" width=\"300\" style=\"background-color:transparent;width:300px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;\" valign=\"top\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;\"><![endif]-->\n\t\t <div class=\"col num4\" style=\"max-width: 320px; min-width: 300px; display: table-cell; vertical-align: top; width: 300px;\">\n\t\t <div style=\"width:100% !important;\">\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t <div style=\"border-top:0px solid transparent; border-left:0px solid transparent; border-bottom:0px solid transparent; border-right:0px solid transparent; padding-top:5px; padding-bottom:5px; padding-right: 0px; padding-left: 0px;\">\n\t\t <!--<![endif]-->\n\t\t <div></div>\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t </div>\n\t\t <!--<![endif]-->\n\t\t </div>\n\t\t </div>\n\t\t <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\n\t\t <!--[if (mso)|(IE)]></td><td align=\"center\" width=\"300\" style=\"background-color:transparent;width:300px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;\" valign=\"top\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;\"><![endif]-->\n\t\t <div class=\"col num4\" style=\"max-width: 320px; min-width: 300px; display: table-cell; vertical-align: top; width: 300px;\">\n\t\t <div style=\"width:100% !important;\">\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t <div style=\"border-top:0px solid transparent; border-left:0px solid transparent; border-bottom:0px solid transparent; border-right:0px solid transparent; padding-top:5px; padding-bottom:5px; padding-right: 0px; padding-left: 0px;\">\n\t\t <!--<![endif]-->\n\t\t <div align=\"center\" class=\"img-container center fixedwidth\" style=\"padding-right: 0px;padding-left: 0px;\">\n\t\t <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr style=\"line-height:0px\"><td style=\"padding-right: 0px;padding-left: 0px;\" align=\"center\"><![endif]-->\n\t\t <a href=\"https://ganaenlaferiacorona.com\" style=\"outline:none\" tabindex=\"-1\" target=\"_blank\"><img align=\"center\" alt=\"Image\" border=\"0\" class=\"center fixedwidth\" src=\"https://ganaenlaferiacorona.com/img/mail/visita-full-8.png\" style=\"text-decoration: none; -ms-interpolation-mode: bicubic; border: 0; height: auto; width: 100%; max-width: 180px; display: block;\" title=\"Image\" width=\"180\" /></a>\n\t\t <!--[if mso]></td></tr></table><![endif]-->\n\t\t </div>\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t </div>\n\t\t <!--<![endif]-->\n\t\t </div>\n\t\t </div>\n\t\t <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\n\t\t <!--[if (mso)|(IE)]></td><td align=\"center\" width=\"300\" style=\"background-color:transparent;width:300px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;\" valign=\"top\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;\"><![endif]-->\n\t\t <div class=\"col num4\" style=\"max-width: 320px; min-width: 300px; display: table-cell; vertical-align: top; width: 300px;\">\n\t\t <div style=\"width:100% !important;\">\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t <div style=\"border-top:0px solid transparent; border-left:0px solid transparent; border-bottom:0px solid transparent; border-right:0px solid transparent; padding-top:5px; padding-bottom:5px; padding-right: 0px; padding-left: 0px;\">\n\t\t <!--<![endif]-->\n\t\t <div></div>\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t </div>\n\t\t <!--<![endif]-->\n\t\t </div>\n\t\t </div>\n\t\t <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\n\t\t <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->\n\t\t </div>\n\t\t </div>\n\t\t </div>\n\t\t <div style=\"background-color:transparent;\">\n\t\t <div class=\"block-grid\" style=\"Margin: 0 auto; min-width: 320px; max-width: 900px; overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; background-color: transparent;\">\n\t\t <div style=\"border-collapse: collapse;display: table;width: 100%;background-color:transparent;\">\n\t\t <!--[if (mso)|(IE)]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"background-color:transparent;\"><tr><td align=\"center\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"width:900px\"><tr class=\"layout-full-width\" style=\"background-color:transparent\"><![endif]-->\n\t\t <!--[if (mso)|(IE)]><td align=\"center\" width=\"900\" style=\"background-color:transparent;width:900px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;\" valign=\"top\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;\"><![endif]-->\n\t\t <div class=\"col num12\" style=\"min-width: 320px; max-width: 900px; display: table-cell; vertical-align: top; width: 900px;\">\n\t\t <div style=\"width:100% !important;\">\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t <div style=\"border-top:0px solid transparent; border-left:0px solid transparent; border-bottom:0px solid transparent; border-right:0px solid transparent; padding-top:5px; padding-bottom:5px; padding-right: 0px; padding-left: 0px;\">\n\t\t <!--<![endif]-->\n\t\t <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Verdana, sans-serif\"><![endif]-->\n\t\t <div style=\"color:#3b5998;font-family:Verdana, Geneva, sans-serif;line-height:1.2;padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px;\">\n\t\t <div style=\"font-size: 14px; line-height: 1.2; font-family: Verdana, Geneva, sans-serif; color: #3b5998; mso-line-height-alt: 17px;\">\n\t\t <p style=\"font-size: 14px; line-height: 1.2; word-break: break-word; text-align: center; font-family: Verdana, Geneva, sans-serif; mso-line-height-alt: 17px; margin: 0;\">Dale <strong>Like a Corona México</strong></p>\n\t\t </div>\n\t\t </div>\n\t\t <!--[if mso]></td></tr></table><![endif]-->\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t </div>\n\t\t <!--<![endif]-->\n\t\t </div>\n\t\t </div>\n\t\t <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\n\t\t <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->\n\t\t </div>\n\t\t </div>\n\t\t </div>\n\t\t <div style=\"background-color:transparent;\">\n\t\t <div class=\"block-grid three-up\" style=\"Margin: 0 auto; min-width: 320px; max-width: 900px; overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; background-color: transparent;\">\n\t\t <div style=\"border-collapse: collapse;display: table;width: 100%;background-color:transparent;\">\n\t\t <!--[if (mso)|(IE)]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"background-color:transparent;\"><tr><td align=\"center\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"width:900px\"><tr class=\"layout-full-width\" style=\"background-color:transparent\"><![endif]-->\n\t\t <!--[if (mso)|(IE)]><td align=\"center\" width=\"300\" style=\"background-color:transparent;width:300px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;\" valign=\"top\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;\"><![endif]-->\n\t\t <div class=\"col num4\" style=\"max-width: 320px; min-width: 300px; display: table-cell; vertical-align: top; width: 300px;\">\n\t\t <div style=\"width:100% !important;\">\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t <div style=\"border-top:0px solid transparent; border-left:0px solid transparent; border-bottom:0px solid transparent; border-right:0px solid transparent; padding-top:5px; padding-bottom:5px; padding-right: 0px; padding-left: 0px;\">\n\t\t <!--<![endif]-->\n\t\t <div></div>\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t </div>\n\t\t <!--<![endif]-->\n\t\t </div>\n\t\t </div>\n\t\t <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\n\t\t <!--[if (mso)|(IE)]></td><td align=\"center\" width=\"300\" style=\"background-color:transparent;width:300px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;\" valign=\"top\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;\"><![endif]-->\n\t\t <div class=\"col num4\" style=\"max-width: 320px; min-width: 300px; display: table-cell; vertical-align: top; width: 300px;\">\n\t\t <div style=\"width:100% !important;\">\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t <div style=\"border-top:0px solid transparent; border-left:0px solid transparent; border-bottom:0px solid transparent; border-right:0px solid transparent; padding-top:5px; padding-bottom:5px; padding-right: 0px; padding-left: 0px;\">\n\t\t <!--<![endif]-->\n\t\t <div align=\"center\" class=\"img-container center fixedwidth\" style=\"padding-right: 0px;padding-left: 0px;\">\n\t\t <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr style=\"line-height:0px\"><td style=\"padding-right: 0px;padding-left: 0px;\" align=\"center\"><![endif]-->\n\t\t <a href=\"https://www.facebook.com/CoronaInspiraMX/\" style=\"outline:none\" tabindex=\"-1\" target=\"_blank\"><img align=\"center\" alt=\"Image\" border=\"0\" class=\"center fixedwidth\" src=\"https://ganaenlaferiacorona.com/img/mail/face-8.png\" style=\"text-decoration: none; -ms-interpolation-mode: bicubic; border: 0; height: auto; width: 100%; max-width: 60px; display: block;\" title=\"Image\" width=\"60\" /></a>\n\t\t <!--[if mso]></td></tr></table><![endif]-->\n\t\t </div>\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t </div>\n\t\t <!--<![endif]-->\n\t\t </div>\n\t\t </div>\n\t\t <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\n\t\t <!--[if (mso)|(IE)]></td><td align=\"center\" width=\"300\" style=\"background-color:transparent;width:300px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;\" valign=\"top\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;\"><![endif]-->\n\t\t <div class=\"col num4\" style=\"max-width: 320px; min-width: 300px; display: table-cell; vertical-align: top; width: 300px;\">\n\t\t <div style=\"width:100% !important;\">\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t <div style=\"border-top:0px solid transparent; border-left:0px solid transparent; border-bottom:0px solid transparent; border-right:0px solid transparent; padding-top:5px; padding-bottom:5px; padding-right: 0px; padding-left: 0px;\">\n\t\t <!--<![endif]-->\n\t\t <div></div>\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t </div>\n\t\t <!--<![endif]-->\n\t\t </div>\n\t\t </div>\n\t\t <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\n\t\t <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->\n\t\t </div>\n\t\t </div>\n\t\t </div>\n\t\t <div style=\"background-color:transparent;\">\n\t\t <div class=\"block-grid\" style=\"Margin: 0 auto; min-width: 320px; max-width: 900px; overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; background-color: transparent;\">\n\t\t <div style=\"border-collapse: collapse;display: table;width: 100%;background-color:transparent;\">\n\t\t <!--[if (mso)|(IE)]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"background-color:transparent;\"><tr><td align=\"center\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"width:900px\"><tr class=\"layout-full-width\" style=\"background-color:transparent\"><![endif]-->\n\t\t <!--[if (mso)|(IE)]><td align=\"center\" width=\"900\" style=\"background-color:transparent;width:900px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;\" valign=\"top\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;\"><![endif]-->\n\t\t <div class=\"col num12\" style=\"min-width: 320px; max-width: 900px; display: table-cell; vertical-align: top; width: 900px;\">\n\t\t <div style=\"width:100% !important;\">\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t <div style=\"border-top:0px solid transparent; border-left:0px solid transparent; border-bottom:0px solid transparent; border-right:0px solid transparent; padding-top:5px; padding-bottom:5px; padding-right: 0px; padding-left: 0px;\">\n\t\t <!--<![endif]-->\n\t\t <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Verdana, sans-serif\"><![endif]-->\n\t\t <div style=\"color:#808080;font-family:Verdana, Geneva, sans-serif;line-height:1.2;padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px;\">\n\t\t <div style=\"font-size: 14px; line-height: 1.2; font-family: Verdana, Geneva, sans-serif; color: #808080; mso-line-height-alt: 17px;\">\n\t\t <p style=\"font-size: 12px; line-height: 1.2; word-break: break-word; text-align: center; font-family: Verdana, Geneva, sans-serif; mso-line-height-alt: 14px; margin: 0;\"><span style=\"font-size: 12px;\"><a href=\"https://ganaenlaferiacorona.com/ganadores.php\" rel=\"noopener\" style=\"text-decoration: underline; color: #0068A5;\" target=\"_blank\">Ver Ganadores Del Día</a> | <a href=\"https://ganaenlaferiacorona.com/legales/Terminos_Condiciones_Promocion.pdf\" rel=\"noopener\" style=\"text-decoration: underline; color: #0068A5;\" target=\"_blank\">Ver Términos y Condiciones</a> | Corona México © 2020</span></p>\n\t\t </div>\n\t\t </div>\n\t\t <!--[if mso]></td></tr></table><![endif]-->\n\t\t <!--[if (!mso)&(!IE)]><!-->\n\t\t </div>\n\t\t <!--<![endif]-->\n\t\t </div>\n\t\t </div>\n\t\t <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\n\t\t <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->\n\t\t </div>\n\t\t </div>\n\t\t </div>\n\t\t <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\n\t\t </td>\n\t\t </tr>\n\t\t </tbody>\n\t\t </table>\n\t\t <!--[if (IE)]></div><![endif]-->\n\t\t </body>\n\t\t </html>\n\t\t ';\n\n\t $para \t\t= $email;\n\t $de \t\t=\"[email protected]\"; // email que envia\n\t $titulo ='=?UTF-8?B?'.base64_encode(\"Corona Registro de ticket\").'?=';\n\n\t // Para enviar un correo HTML mail, la cabecera Content-type debe fijarse\n\t $cabeceras = 'MIME-Version: 1.0' . \"\\r\\n\";\n\t $cabeceras .= 'Content-type: text/html; charset=iso-8859-1' . \"\\r\\n\";\n\t $cabeceras .= 'Content-Transfer-Encoding: 7bit' . \"\\r\\n\";\n\t $cabeceras .= 'From: Gana con Corona '. $de . \"\\r\\n\";\n\n\t // con copia oculta\n\t $cabeceras .= 'BCC: [email protected]';\n\t //echo $para.' '.$titulo.' '. $cabeceras,'<br>';\n\t mail($para, utf8_decode($titulo), utf8_decode($texto_mail), $cabeceras);\n\t // fin envio email\n\n \t\t$accion='Email enviado de registro id: '.$id;\n\t log_write($accion);\n\n\t\t\tupdate_registro_emailregistro($id);\n\t}",
"function Datos($header){\n\n //get de los dato\n $con = new Conexion();\n $conexion = $con->get_Conexion();\n\n //se crea la sentencia SQL\n $sql = \"SELECT NOM_CLIENTE, COD_CLIENTE, CEDULA, NUM_TELEFONO1, NUM_TELEFONO2, NUM_FAX, EMAIL, DIRECCION_ENVIO, FREC_ESTADO FROM GEN_CLIENTE WHERE COD_CLIENTE = ?\";\n\n //se prepara el statement con la sentencia previamente creada\n $stmt = $conexion->prepare($sql);\n\n if ($stmt) {\n //se realiza un execute y un fetch donde se obtienen los datos de la primera fila\n //que coincida con el usuario y la clave ademas del cia.\n //en el execute se agregan las variables por medio de un array.\n $stmt->execute(array($this->COD_CLIENTE));\n $result = $stmt->fetch();\n $this->Cell(45,5);\n $this->Cell(100,5,$result[0],'TLR');\n $this->Ln();\n $this->Cell(45,5);\n $this->Cell(100,5,\"Codigo de Cliente: \".$result[1],'LR');\n $this->Ln();\n $this->Cell(45,5);\n $this->Cell(100,5,\"Cedula: \".$result[2],'LR');\n $this->Ln();\n $this->Cell(45,5);\n $this->Cell(100,5,\"Numero de Telefono Primario: \".$result[3],'LR');\n $this->Ln();\n $this->Cell(45,5);\n $this->Cell(100,5,\"Numero de Telefono Secundario: \".$result[4],'LR');\n $this->Ln();\n $this->Cell(45,5);\n $this->Cell(100,5,\"Numero de Fax: \".$result[5],'LR');\n $this->Ln();\n $this->Cell(45,5);\n $this->Cell(100,5,\"Email: \".$result[6],'LR');\n $this->Ln();\n $this->Cell(45,5);\n $this->Cell(100,5,\"Frecuencia de envio de Estados de Cuenta: \".$result[8],'LR');\n $this->Ln();\n $this->Cell(45,5);\n $this->MultiCell(100,5,\"Direccion de Envio: \".$result[7],'BLR');\n $this->Ln();\n $this->Ln();\n $this->Ln();\n $this->Ln();\n\n //se cierra la conexion\n $conexion = null;\n\n }else{\n //si el statement da error\n echo \"<script>console.log( 'Debug Objects: \" . \"falso\". \"' );</script>\";\n }\n }",
"function SEND_EMAIL_INSCRIPTION_NOUVEAU($connection_database2, $id_affiliate, $serveur, $link_webinar, $mode, $texte_complement, $titre)\n{\n\n // 1. INFORMATIONS SUR LE DESTINATAIRE\t \n mysql_query('SET NAMES utf8');\n $result = mysql_fetch_array(mysql_query(\" SELECT first_name, last_name, zip_code, email, city, id_affiliate FROM affiliate_details where id_affiliate =\".$id_affiliate.\" \")) or die(\"Requete pas comprise - #31! \");\n\t $mail = $result['email'];\n $first_name = ucwords(strtolower($result['first_name']));\n\t $last_name = $result['last_name'];\n\t $zip_code = $result['zip_code'];\n\t $city = $result['city'];\t \t \n\n\t // 2. INFORMATIONS SUR LE PARRAIN\n\t List($id_parrain, $id_partenaire, $first_name_p, $last_name_p, $email_p, $phone_number_p) = RETURN_INFO_AFFILIATE( RETURN_ID_PARRAIN($id_affiliate) );\n\t $mail_cc = $email_p.\", [email protected] \"; //[email protected] \n\t\n // 2. INFORMATIONS SUR UN TEXTE SPÉCIFIQUE À AFFICHER\t \t \n\t $texte_complement = trim(stripslashes($texte_complement));\n\t $texte_complement = addslashes($texte_complement);\n\t IF ( $texte_complement == \"10 JOURS\" ) \n\t { \n $texte_complement = \"<b>$first_name_p</b> vient de vous offrir une de ses places pour utiliser l'Appli qui rend service et vous rémunère. <br/>\n\t\t\t\t <br/>\n\t\t\t\t\t\t Vous avez <b>10 jours</b> pour valider votre compte gratuit en inscrivant un ami.<br/>\n <br/> \n Vous n’avez que <b>5 places</b>, elles sont précieuses, alors choisissez des personnes en qui vous croyez.\n <br/>\";\n\t }\n\t ELSE IF ( $texte_complement == \"48 HEURES\" ) \n\t { \n $texte_complement = \"<b>$first_name_p</b> vous a offert une de ses places pour utiliser l'Appli qui rend service et vous rémunère. <br/>\n\t\t\t\t <br/>\n\t\t\t\t\t\t $first_name, il vous reste <b>48 heures</b> pour inscrire une personne sur NosRezo.<br/>\n <br/> \n Vous n’avez que <b>5 places</b>, elles sont précieuses, alors choisissez des personnes en qui vous croyez.\n <br/>\";\n\t }\n\t\t \n\n\t // 3. INFORMATION SUR LE MOT DE PASSE POUR UNE PREMIERE CONNECTION\n \t $dn2 = mysql_fetch_array(mysql_query('SELECT password FROM affiliate WHERE id_affiliate = \"'.$id_affiliate.'\" ')) or die(\".\"); \n $mdp = $dn2['password'];\n\t \n\t \n\t // 4. FILTRE SPECIFIQUE POUR LES TESTS\n IF ( $mode == \"TEST\") // TESTER L'ENVOI DU MAIL\n {\n $mail = \"[email protected]\"; \t \n $mail_cc = \"[email protected]\"; // , [email protected]\n }\n\t \n\t // 5. GESTION DU TITRE DU MAIL\n\t IF ( $titre == \"\" ) { $titre = \"Activation de votre compte provisoire NosRezo\"; }\n\t \n\t\t \nIF (!preg_match(\"#^[a-z0-9._-]+@(hotmail|live|msn).[a-z]{2,4}$#\", $mail)) // On filtre les serveurs qui rencontrent des bogues.\n {$passage_ligne = \"\\r\\n\";}\nelse\n {$passage_ligne = \"\\n\"; }\n \n //<u>Votre ville</u> : <b> $zip_code $city </b> <br />\n //<u>Votre Parrain</u> : <b> $first_name_p $last_name_p </b> <br />\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n$message_txt = \"script PHP.\";\n$message_html = \"\n\n<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\n<html xmlns='http://www.w3.org/1999/xhtml'>\n\n<head>\n <meta http-equiv='X-UA-Compatible' content='IE=edge' />\n <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\n <meta name='viewport' content='width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1' />\n <title>NosRezo</title>\n <style type='text/css'>\n.ReadMsgBody { width: 100%; background-color: #ffffff; }\n.ExternalClass { width: 100%; background-color: #ffffff; }\n.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div { line-height: 100%; }\nhtml { width: 100%; }\nbody { -webkit-text-size-adjust: none; -ms-text-size-adjust: none; margin: 0; padding: 0; }\ntable { border-spacing: 0; border-collapse: collapse; table-layout: fixed; margin: 0 auto; }\ntable table table { table-layout: auto; }\nimg { display: block !important; over-flow: hidden !important; }\ntable td { border-collapse: collapse; }\n.yshortcuts a { border-bottom: none !important; }\nimg:hover { opacity:0.9 !important;}\na { color: #14c1e0; text-decoration: none; }\nspan { font-weight: 600 !important; }\n.textbutton a { font-family: 'open sans', arial, sans-serif !important; color: #ffffff; }\n.preference a { color: #14c1e0 !important; text-decoration: underline !important; }\n\n/*Responsive*/\n@media only screen and (max-width: 640px) {\nbody { width: auto !important; }\ntable[class='table-inner'] { width: 90% !important; }\ntable[class='table-full'] { width: 100% !important; text-align: center !important; }\n/* Image */\nimg[class='img1'] { width: 100% !important; height: auto !important; }\n}\n\n@media only screen and (max-width: 479px) {\nbody { width: auto !important; }\ntable[class='table-inner'] { width: 90% !important; }\ntable[class='table-full'] { width: 100% !important; text-align: center !important; }\n/* image */\nimg[class='img1'] { width: 100% !important; height: auto !important; }\n}\n</style>\n</head>\n\n<body>\n <table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='#FAFAFA'>\n <tr>\n <td align='center' height='25'></td>\n </tr>\n <tr>\n <td align='center'>\n <table align='center' class='table-inner' width='500' border='0' cellspacing='0' cellpadding='0'>\n <!--Header Logo-->\n <tr>\n <td align='left' style='line-height: 0px;'><img style='display:block; line-height:0px; font-size:0px; border:0px;' src='http://www.nosrezo.com/fichiers/images_email/logo.png' alt='logo' width='150' height='50' /></td>\n </tr>\n <!--end Header Logo-->\n <tr>\n <td height='5'></td>\n </tr>\n <!--slogan-->\n <tr>\n <td align='left' style=\\\"font-family: 'Open Sans', Arial, sans-serif; color:#898989; font-size:11px;line-height: 28px; font-style:; font-weight:200;\\\">\n\t\t\t Vous êtes inscrit à la communauté NosRezo</td>\n </tr>\n <!--end slogan-->\n <tr>\n <td height='20'></td>\n </tr>\n </table>\n <table bgcolor='#14c1e0' background='http://www.nosrezo.com/fichiers/images_email/container-bg.png' style='border-top-left-radius:6px;border-top-right-radius:6px; background-size:100% auto; background-repeat:repeat-x;' width='500' border='0' align='center' cellpadding='0' cellspacing='0' class='table-inner'>\n <tr>\n <td height='50'></td>\n </tr>\n <tr>\n <td align='center'>\n <table class='table-inner' align='center' width='400' border='0' cellspacing='0' cellpadding='0'>\n <!--title-->\n <tr>\n <td align='center' style=\\\"font-family: 'Century Gothic', Arial, sans-serif; color:#ffffff; font-size:24px;font-weight: bold; letter-spacing: 1px;\\\">\n\t\t\t\t Bienvenue $first_name,</td>\n </tr>\n <!--end title-->\n <tr>\n <td height='30'></td>\n </tr>\n <!--content-->\n <tr>\n <td align='center' style=\\\"font-family: 'Open sans', Arial, sans-serif; color:#ffffff; font-size:13px; line-height: 24px; font-weight: 200;\\\"> \n\t\t\t\t $texte_complement \n\t\t\t\t\t \n\t\t\t\t\t </td>\n </tr>\n <tr>\n <td height='20'></td>\n </tr>\n <tr>\n <td align='center' style=\\\"font-family: 'Open sans', Arial, sans-serif; color:#ffffff; font-size:13px; line-height: 24px; font-weight: 200;\\\">\n <u>Votre identifiant</u> : <b> <font color=#2d5f8b> $id_affiliate </font></b> <br />\n <u>Mot de passe</u> : <b> <font color=#2d5f8b> $mdp </font></b> <br /> \n\t\t\t\t\t\t\t\t\t<br/>\t\t\t\t \n\t\t\t\t </td>\n </tr>\n\n \n <tr>\n <td height='5'></td>\n </tr>\n\n\t\t\t\t\n\t\t\t\t<tr>\n <!--image-->\n\t\t\t\t\t<td align='center' style='line-height: 0px;'>\n\t\t\t\t\t\t<a href='https://www.youtube.com/watch?v=_XzbcUfpoAI' style='text-decoration: none; color: #ffffff; font-family: Helvetica, Arial, sans-serif; font-size: 20px;'> <img style='display:block; line-height:0px; font-size:0px; border:0px;' class='img1' src='http://www.nosrezo.com/assets/img/email/video.jpg' alt='img' width='100%' height='auto' /></a>\t\t\t\t\t\t\t\n\t\t\t\t\t</td>\n <!--end image-->\n\t\t\t\t</tr>\t\t\t\t\n\t\t\t\t\n\n <td height='40'></td>\n\t\t\t\t \n </tr>\n </table>\n </td>\n </tr>\n </table>\n\t\t\n\t\t\n\t\t\n\t\t\n <table bgcolor='#FFFFFF' style='border-bottom-left-radius:6px;border-bottom-right-radius:6px;' align='center' class='table-inner' width='500' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <td height='35'></td>\n </tr>\n <tr>\n <td align='center'>\n <table align='center' class='table-inner' width='420' border='0' cellspacing='0' cellpadding='0'>\n <!--content-->\n <tr>\n <td align='center' style=\\\"font-family: 'Open sans', Arial, sans-serif; color:#7f8c8d; font-size:12px; line-height: 20px; font-weight:200;\\\">\n\t\t\t\t\t\t Une inactivité lors de ces 10 premiers jours entraîne la désactivation <b>définitive</b> de votre compte gratuit : \n seule possibilité ensuite, attendre la version Premium payante de Septembre 2017.<br/>\n\t\t\t\t\t\t <br/>\n\t\t\t\t\t\t Lors de votre première connexion, nous vous conseillons de personnaliser votre mot de passe et de remplir votre profil depuis l'onglet Mon profil. </td>\n </tr>\n <!--end content-->\n <tr>\n <td height='25'></td>\n </tr>\n <!--button-->\n <tr>\n <td align='center'>\n <!--left-->\n <table width='420' border='0' align='left' cellpadding='0' cellspacing='0' class='table-full'>\n <tr>\n <td align='center'>\n <table class='table-full' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='#14c1e0' style='border-radius:4px;'>\n <tr>\n <td class='textbutton' height='40' align='center' style=\\\"font-family: 'Open sans', Arial, sans-serif; color:#FFFFFF; font-size:14px;padding-left: 20px;padding-right: 20px; font-weight:200;\\\"><a href='http://www.nosrezo.com/login.php?id_affiliate=$id_affiliate&token=$mdp' >Se connecter</a></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td> \n </tr>\n <tr>\n <td height='40'></td>\n </tr>\n \n <table class='buttonbox' border='0' align='center' cellpadding='0' cellspacing='0'>\n <tr>\n <td>\n <!--left-->\n <table width='150' align='left' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <!--image-->\n <td align='center' style='line-height: 0px;'><a href='https://itunes.apple.com/fr/app/nosrezo-france/id1054618680?mt=8' target='_blank'><img style='display:block; line-height:0px; font-size:0px; border:0px;' class='img1' src='http://www.nosrezo.com/fichiers/images_email/logo_apple.png' alt='img' width='150' height='auto' /></a></td> \n <!--end image-->\n </tr>\n </table>\n <!--end left-->\n <!--Space-->\n <table width='1' border='0' cellpadding='0' cellspacing='0' align='left'>\n <tr>\n <td height='30' style='font-size: 0;line-height: 0px;border-collapse: collapse;'>\n <p style='padding-left: 20px;'> </p>\n </td>\n </tr>\n </table>\n <!--End Space-->\n <!--right-->\n <table width='150' align='right' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <!--image-->\n <td align='center' style='line-height: 0px;'><a href='https://play.google.com/store/apps/details?id=com.nosrezo.appnosrezo2&hl=fr' target='_blank'><img style='display:block; line-height:0px; font-size:0px; border:0px;' class='img1' src='http://www.nosrezo.com/fichiers/images_email/logo_android.png' alt='img' width='150' height='auto' /></a></td> \n <!--end image-->\n </tr>\n </table>\n <!--end right-->\n </td>\n </tr>\n <tr>\n <td height='40'></td>\n </tr>\n </table>\n \n <!--end button-->\n </table>\n </td>\n </tr>\n <tr>\n <td height='45'></td>\n </tr>\n </table>\n <table align='center' class='table-inner' width='500' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <td height='10'></td>\n </tr>\n <tr>\n <td align='left' class='preference' style=\\\"font-family: 'Open sans', Arial, sans-serif; color:#95a5a6; font-size:10px; line-height:14px; font-weight:100;\\\"> Ce message a été envoyé à <a href='mailto:$mail'>$mail</a>. Si vous ne souhaitez plus recevoir nos e-mails, vous pouvez modifier vos préférences dans votre profil.\t\n </td>\n </tr>\n <tr>\n <td height='10'></td>\n </tr>\n <tr>\n \n <td align='left'>\n <!--social-->\n <table width='60' border='0' align='left' cellpadding='0' cellspacing='0'>\n <tr>\n <td align='left' style='line-height: 0px;'>\n <a href='https://www.facebook.com/Nosrezo-331807033627841/'> <img style='display:block; line-height:0px; font-size:0px; border:0px;' src='http://www.nosrezo.com/fichiers/images_email/facebook.png' alt='img' /> </a>\n </td>\n <td width='5'></td>\n <td align='left' style='line-height: 0px;'>\n <a href='https://twitter.com/NosRezeaux'> <img style='display:block; line-height:0px; font-size:0px; border:0px;' src='http://www.nosrezo.com/fichiers/images_email/twitter.png' alt='img' /> </a>\n </td>\n <td width='5'></td>\n <td align='left' style='line-height: 0px;'>\n <a href='https://www.linkedin.com/company/10423174?trk=tyah&trkInfo=clickedVertical%3Acompany%2CclickedEntityId%3A10423174%2Cidx%3A1-1-1%2CtarId%3A1454885076375%2Ctas%3Anosrezo'> <img style='display:block; line-height:0px; font-size:0px; border:0px;' src='http://www.nosrezo.com/fichiers/images_email/linkedin.png' alt='img' /> </a>\n </td>\n </tr>\n </table>\n <!--end social-->\n </td>\n \n </tr>\n <tr>\n <td height='30'></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n</body>\n\n</html> \";\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n \n//========== Création de la boundary\n$boundary = \"-----=\".md5(rand());\n//==========\n \n//========== Définition du sujet.\n$sujet = $titre ;\n//========= \n \n//========== Création du header de l'e-mail.\n$header = \"From: \\\"NosRezo.com\\\"<[email protected]>\".$passage_ligne;\n$header.= \"Cc:\".$mail_cc.\"\".$passage_ligne;\n$header.= \"Reply-to: \".$mail_cc.$passage_ligne;\n$header.= \"MIME-Version: 1.0\".$passage_ligne;\n$header.= \"Content-Type: multipart/alternative;\".$passage_ligne.\" boundary=\\\"$boundary\\\"\".$passage_ligne;\n//==========\n \n//========== Création du message.\n$message = $passage_ligne.\"--\".$boundary.$passage_ligne;\n//=====Ajout du message au format texte.\n$message.= \"Content-Type: text/plain; charset=\\\"utf-8\\\"\".$passage_ligne;\n$message.= \"Content-Transfer-Encoding: 8bit\".$passage_ligne;\n$message.= $passage_ligne.$message_txt.$passage_ligne;\n//==========\n$message.= $passage_ligne.\"--\".$boundary.$passage_ligne;\n//=====Ajout du message au format HTML\n$message.= \"Content-Type: text/html; charset=\\\"utf-8\\\"\".$passage_ligne;\n$message.= \"Content-Transfer-Encoding: 8bit\".$passage_ligne;\n$message.= $passage_ligne.$message_html.$passage_ligne;\n//==========\n$message.= $passage_ligne.\"--\".$boundary.\"--\".$passage_ligne;\n$message.= $passage_ligne.\"--\".$boundary.\"--\".$passage_ligne;\n\n//==========\n \n//========== Envoi de l'e-mail.\n if ($serveur == 'PRODUCTION')\n {\n if(mail($mail, $sujet, $message, $header))\n {echo '';}\n\t }\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}",
"public function RegisterEnterprise()\n {\n $data = $_POST[\"data\"];\n\n $complemento = $_POST[\"complemento\"];\n\n $comprobeIdEnterprise = $data[0];\n\n $comprobeEmailEnterprise = $data[5];\n\n $result = $this->registerenterprise->ValidateEnterpriseEmail($comprobeEmailEnterprise);\n\n $result2 = $this->registerenterprise->ValidateEnterpriseId($comprobeIdEnterprise);\n\n $result3 = $this->registerenterprise->ValidateEnterpriseEmail2($comprobeEmailEnterprise);\n\n $result4 = $this->registerenterprise->ValidateEnterpriseId2($comprobeIdEnterprise);\n\n $emailvalidio = filter_var($data[5], FILTER_SANITIZE_EMAIL);\n\n $nit = $data[0].\"-\".$complemento;\n\n $datos = array($nit, $data[1], $data[2], $data[3], $data[4], $data[5], $data[6]);\n\n print_r($datos);\n\n // if($data[0] == \"\")\n // {\n // echo '<script language=\"javascript\">alert(\"Se debe completar el campo NIT o ID de la empresa\");</script>';\n // echo \"<script>history.back(1)</script>\";\n // }\n // elseif($result4[0] == $comprobeIdEnterprise)\n // {\n // echo '<script language=\"javascript\">alert(\"Ya existe una empresa/usuario registrado con ese NIT/ID\");</script>';\n // echo \"<script>history.back(1)</script>\";\n // }\n // elseif($result2[0] == $comprobeIdEnterprise)\n // {\n // echo '<script language=\"javascript\">alert(\"Ya existe una empresa/usuario registrado con ese NIT/ID\");</script>';\n // echo \"<script>history.back(1)</script>\";\n // }\n // elseif(!is_numeric($data[0]))\n // {\n // echo '<script language=\"javascript\">alert(\"Solo puede ingresar datos numéricos en el campo NIT O ID de la empresa\");</script>';\n // echo \"<script>history.back(1)</script>\";\n // }\n // elseif($result[0] == $comprobeEmailEnterprise)\n // {\n // echo '<script language=\"javascript\">alert(\"Ya existe una empresa/usuario registrado con ese correo electronico\");</script>';\n // echo \"<script>history.back(1)</script>\";\n // }\n // elseif($data[1] == \"\")\n // {\n // echo '<script language=\"javascript\">alert(\"Se debe completar el campo Nombre de la empresa\");</script>';\n // echo \"<script>history.back(1)</script>\";\n // }\n // elseif(strstr($data[1],\"1\") or strstr($data[1],\"2\") or strstr($data[1],\"3\") or strstr($data[1],\"4\") or strstr($data[1],\"5\"))\n // {\n // echo '<script language=\"javascript\">alert(\"Solo se puede ingresar letras en el campo Nombre de la empresa\");</script>';\n // echo \"<script>history.back(1)</script>\";\n // }\n // elseif(strstr($data[1],\"6\") or strstr($data[1],\"7\") or strstr($data[1],\"8\") or strstr($data[1],\"9\") or strstr($data[1],\"0\"))\n // {\n // echo '<script language=\"javascript\">alert(\"Solo se puede ingresar letras en el campo Nombre de la empresa\");</script>';\n // echo \"<script>history.back(1)</script>\";\n // }\n // elseif($data[3] ==\"\")\n // {\n // echo '<script language=\"javascript\">alert(\"Se debe completar el campo Descripcion de la empresa\");</script>';\n // }\n // elseif(!is_numeric($data[4]))\n // {\n // echo '<script language=\"javascript\">alert(\"Solo puede ingresar datos numéricos en el campo Telefono\");</script>';\n // echo \"<script>history.back(1)</script>\";\n // }\n // elseif($data[5] ==\"\")\n // {\n // echo '<script language=\"javascript\">alert(\"Se debe completar el campo Correo electronico de la empresa\");</script>';\n // echo \"<script>history.back(1)</script>\";\n // }\n // elseif(!filter_var($emailvalido, FILTER_VALIDATE_EMAIL))\n // {\n // echo '<script language=\"javascript\">alert(\"Ingrese una direccion de correo electronico valida\");</script>';\n // echo \"<script>history.back(1)</script>\";\n // }\n // elseif($data[6] ==\"\")\n // {\n // echo '<script language=\"javascript\">alert(\"Se debe completar el campo Contraseña\");</script>';\n // echo \"<script>history.back(1)</script>\";\n // }\n // elseif(strlen($data[6]) < 8)\n // {\n // echo '<script language=\"javascript\">alert(\"La contraseña debe ser minimo 8 caracteres\");</script>';\n // echo \"<script>history.back(1)</script>\";\n // }\n // elseif(!preg_match('/(?=[a-z])/', $data[6]))\n // {\n // echo '<script language=\"javascript\">alert(\"La contraseña debe contener al menos una letra\");</script>';\n // echo \"<script>history.back(1)</script>\";\n // }\n // elseif(!preg_match('/(?=\\d)/', $data[6]))\n // {\n // echo '<script language=\"javascript\">alert(\"La contraseña debe contener al menos una número\");</script>';\n // echo \"<script>history.back(1)</script>\";\n // }\n // else\n // {\n\n\n //el result accede a la funcion del modelo donde vamos a insertar los datos que pasamos por el formulario\n //en este caso los datos los contenemos en la variable $data o $datos y es lo que ponemos en el parentesis\n $result = $this->registerenterprise->RegisterNewEnterprise($datos);\n $ruta = \"views/modules/Shop_User/$data[1]\";\n $ruta2 = \"$ruta/computadores\";\n $ruta3 = \"$ruta/piezas\";\n if(!file_exists($ruta))\n {\n mkdir($ruta, 0777, true);\n }\n else\n {\n }\n if(!file_exists($ruta2))\n {\n mkdir($ruta2, 0777, true);\n }\n else\n {\n }\n if(!file_exists($ruta3))\n {\n mkdir($ruta3, 0777, true);\n }\n else\n {\n }\n //este script me muestra un mensaje de exito cuando se registra con exito\n //el window.location.href me redirije a una pagina cuando se registra con exito en este caso a main\n echo '<script language=\"javascript\">\n alert(\"Registrado con exito!\");\n window.location.href=\"main\";\n </script>';\n // }\n }",
"function reporteAperturaCierreCaja(){\r\n $this->procedimiento='vef.ft_apertura_cierre_caja_sel';\r\n $this->transaccion='VF_REPAPCIE_SEL';\r\n $this->tipo_procedimiento='SEL';//tipo de transaccion\r\n $this->setCount(false);//tipo de transaccion\r\n\r\n $this->setParametro('id_apertura_cierre_caja','id_apertura_cierre_caja','int4');\r\n\r\n //Definicion de la lista del resultado del query\r\n $this->captura('cajero','varchar');\r\n $this->captura('fecha','varchar');\r\n $this->captura('pais','varchar');\r\n $this->captura('estacion','varchar');\r\n $this->captura('punto_venta','varchar');\r\n $this->captura('obs_cierre','varchar');\r\n $this->captura('arqueo_moneda_local','numeric');\r\n $this->captura('arqueo_moneda_extranjera','numeric');\r\n $this->captura('monto_inicial','numeric');\r\n $this->captura('monto_inicial_moneda_extranjera','numeric');\r\n $this->captura('tipo_cambio','numeric');\r\n $this->captura('tiene_dos_monedas','varchar');\r\n $this->captura('moneda_local','varchar');\r\n $this->captura('moneda_extranjera','varchar');\r\n $this->captura('cod_moneda_local','varchar');\r\n $this->captura('cod_moneda_extranjera','varchar');\r\n\r\n $this->captura('efectivo_boletos_ml','numeric');\r\n $this->captura('efectivo_boletos_me','numeric');\r\n $this->captura('tarjeta_boletos_ml','numeric');\r\n $this->captura('tarjeta_boletos_me','numeric');\r\n $this->captura('cuenta_corriente_boletos_ml','numeric');\r\n $this->captura('cuenta_corriente_boletos_me','numeric');\r\n $this->captura('mco_boletos_ml','numeric');\r\n $this->captura('mco_boletos_me','numeric');\r\n $this->captura('otros_boletos_ml','numeric');\r\n $this->captura('otros_boletos_me','numeric');\r\n\r\n $this->captura('efectivo_ventas_ml','numeric');\r\n $this->captura('efectivo_ventas_me','numeric');\r\n $this->captura('tarjeta_ventas_ml','numeric');\r\n $this->captura('tarjeta_ventas_me','numeric');\r\n $this->captura('cuenta_corriente_ventas_ml','numeric');\r\n $this->captura('cuenta_corriente_ventas_me','numeric');\r\n $this->captura('mco_ventas_ml','numeric');\r\n $this->captura('mco_ventas_me','numeric');\r\n $this->captura('otros_ventas_ml','numeric');\r\n $this->captura('otros_ventas_me','numeric');\r\n /****************AUMENTO DE RECIBOS********************/\r\n $this->captura('efectivo_recibo_ml','numeric');\r\n $this->captura('efectivo_recibo_me','numeric');\r\n $this->captura('tarjeta_recibo_ml','numeric');\r\n $this->captura('tarjeta_recibo_me','numeric');\r\n $this->captura('cuenta_corriente_recibo_ml','numeric');\r\n $this->captura('cuenta_corriente_recibo_me','numeric');\r\n $this->captura('deposito_recibo_ml','numeric');\r\n $this->captura('deposito_recibo_me','numeric');\r\n $this->captura('otros_recibo_ml','numeric');\r\n $this->captura('otros_recibo_me','numeric');\r\n\r\n $this->captura('pago_externo_ml','numeric');\r\n $this->captura('pago_externo_me','numeric');\r\n /******************************************************/\r\n\r\n $this->captura('comisiones_ml','numeric');\r\n $this->captura('comisiones_me','numeric');\r\n $this->captura('monto_ca_recibo_ml','numeric');\r\n $this->captura('monto_ca_recibo_me','numeric');\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $this->ejecutarConsulta();\r\n\r\n\r\n //var_dump($this->respuesta);exit;\r\n //Devuelve la respuesta\r\n return $this->respuesta;\r\n }",
"public static function tblhistoricodeelimi($email,$nombre,$apellido,$nivel,$tabla,$registro,$idRegistro,$fchcreacion,$emailusuacreo,$emailusuaelimino){\n\n\t \t//??OBTENER TODO EL REGISTRO QUE SE VA A ELIMINAR\n\t \t/*\n\t \t$consulta = \"SELECT * FROM $tabla WHERE $nombreIdRegistro = ?\";\n\t\t\n\t\ttry{\n\n\t\t\t$resultado = ConexionDB::getInstance()->getDb()->prepare($consulta);\n\t\t\t$resultado->bindParam(1,$idRegistro,PDO::PARAM_INT);\n\t\t\t$resultado->execute();\n\t\t\t$registroCompleto= $resultado->fetchAll(PDO::FETCH_ASSOC);\n\t\t\tforeach ($resultado as $row) {\n\t\t \t$row[\"Id\"];\n\t\t }\n\n\t\t} catch(PDOException $e){\n\t\t\treturn false;\n\t\t}\n\t\t*/\n\t \t\n\t \t//\n \n $insert =\"INSERT INTO tblhistoricodeelimi (tblhistoricodeelimi_email,tblhistoricodeelimi_nombre,tblhistoricodeelimi_apellido,tblhistoricodeelimi_nivel,tblhistoricodeelimi_tabla,tblhistoricodeelimi_registro,tblhistoricodeelimi_idRegistro,tblhistoricodeelimi_fchcreacion,tblhistoricodeelimi_fchelimino,tblhistoricodeelimi_emailusuacreo,tblhistoricodeelimi_emailusuaelimino) VALUES (?,?,?,?,?,?,?,?,NOW(),?,?)\"; \n \n try{\n\t\t\t$resultado = ConexionDB::getInstance()->getDb()->prepare($insert);\n\t\t\t$resultado->bindParam(1,$email,PDO::PARAM_STR);\n\t\t\t$resultado->bindParam(2,$nombre,PDO::PARAM_STR);\n\t\t\t$resultado->bindParam(3,$apellido,PDO::PARAM_STR);\n\t\t\t$resultado->bindParam(4,$nivel,PDO::PARAM_STR);\n\t\t\t$resultado->bindParam(5,$tabla,PDO::PARAM_STR);\n\t\t\t$resultado->bindParam(6,$registro,PDO::PARAM_STR);\n\t\t\t$resultado->bindParam(7,$idRegistro,PDO::PARAM_INT);\n\t\t\t$resultado->bindParam(8,$fchcreacion,PDO::PARAM_STR);\n\t\t\t$resultado->bindParam(9,$emailusuacreo,PDO::PARAM_STR);\n\t\t\t$resultado->bindParam(10,$emailusuaelimino,PDO::PARAM_STR);\n\t\t\t$resultado->execute();\n\t\t\treturn $resultado->rowCount(); //retorna el numero de registros afectado por el insert\n\t\t} catch(PDOException $e){\n\t\t\treturn false;\n\t\t}\n }",
"function SEND_EMAIL_DESACTIVATION_DU_COMPTE($id_affiliate, $serveur, $link_webinar, $mode, $texte_complement, $titre)\n{\n mysql_query('SET NAMES utf8');\n $result = mysql_fetch_array(mysql_query(\" SELECT af.id_upline, af.password, ad.first_name, ad.last_name, ad.address, ad.zip_code, ad.city, ad.phone_number, ad.email, ad.creation_date, ad.birth_place, ad.nationality, ad.birth_date, af.last_connection_date, af.is_activated, ad.contract_signed, af.id_partenaire , numero_de_pack, contact_association, id_securite_sociale, is_protected\n\t\t\t\t\t FROM affiliate_details ad, affiliate af \n\t\t\t\t\t WHERE ad.id_affiliate = af.id_affiliate \n\t\t\t\t\t\t\t\t AND ad.id_affiliate = \".$id_affiliate.\" \")) or die(\"Requete pas comprise - #31! \");\n\t $mail = $result['email'];\n $first_name = ucwords(strtolower($result['first_name']));\n\t $last_name = $result['last_name'];\n\t $zip_code = $result['zip_code'];\n\t $city = $result['city'];\n $phone_number = $result['phone_number'];\t \n $id_upline = $result['id_upline'];\t\n\t \n\t // 2. INFORMATIONS SUR LE PARRAIN\n\t List($id_parrain, $id_partenaire, $first_name_p, $last_name_p, $email_p, $phone_number_p) = RETURN_INFO_AFFILIATE( $id_upline );\n\t $mail_cc = $email_p.\", [email protected] \"; //[email protected] \n\n\t\n\t\n // 2. INFORMATIONS SUR UN TEXTE SPÉCIFIQUE À AFFICHER\t \t \n\t $texte_complement = trim(stripslashes( $texte_complement ));\n\t $texte_complement = addslashes( $texte_complement );\n\t $texte_complement = strtolower( $texte_complement );\n\t\t \n\t\t \n\t // 3. INFORMATION SUR LE MOT DE PASSE POUR UNE PREMIERE CONNECTION\n \t $dn2 = mysql_fetch_array(mysql_query('SELECT password FROM affiliate WHERE id_affiliate = \"'.$id_affiliate.'\" ')) or die(\".\"); \n $mdp = $dn2['password'];\n\t \n\t \n\t // 4. FILTRE SPECIFIQUE POUR LES TESTS\n IF ( $mode == \"TEST\") // TESTER L'ENVOI DU MAIL\n {\n $mail = \"[email protected]\"; \t \n $mail_cc = \"[email protected]\"; // , [email protected]\n }\n\t \n\t\t \nIF (!preg_match(\"#^[a-z0-9._-]+@(hotmail|live|msn).[a-z]{2,4}$#\", $mail)) // On filtre les serveurs qui rencontrent des bogues.\n {$passage_ligne = \"\\r\\n\";}\nelse\n {$passage_ligne = \"\\n\"; }\n \n //<u>Votre ville</u> : <b> $zip_code $city </b> <br />\n //<u>Votre Parrain</u> : <b> $first_name_p $last_name_p </b> <br />\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n$message_txt = \"script PHP.\";\n$message_html = \"\n\n<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\n<html xmlns='http://www.w3.org/1999/xhtml'>\n\n<head>\n <meta http-equiv='X-UA-Compatible' content='IE=edge' />\n <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\n <meta name='viewport' content='width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1' />\n <title>NosRezo</title>\n <style type='text/css'>\n.ReadMsgBody { width: 100%; background-color: #ffffff; }\n.ExternalClass { width: 100%; background-color: #ffffff; }\n.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div { line-height: 100%; }\nhtml { width: 100%; }\nbody { -webkit-text-size-adjust: none; -ms-text-size-adjust: none; margin: 0; padding: 0; }\ntable { border-spacing: 0; border-collapse: collapse; table-layout: fixed; margin: 0 auto; }\ntable table table { table-layout: auto; }\nimg { display: block !important; over-flow: hidden !important; }\ntable td { border-collapse: collapse; }\n.yshortcuts a { border-bottom: none !important; }\nimg:hover { opacity:0.9 !important;}\na { color: #14c1e0; text-decoration: none; }\nspan { font-weight: 600 !important; }\n.textbutton a { font-family: 'open sans', arial, sans-serif !important; color: #ffffff; }\n.preference a { color: #14c1e0 !important; text-decoration: underline !important; }\n\n/*Responsive*/\n@media only screen and (max-width: 640px) {\nbody { width: auto !important; }\ntable[class='table-inner'] { width: 90% !important; }\ntable[class='table-full'] { width: 100% !important; text-align: center !important; }\n/* Image */\nimg[class='img1'] { width: 100% !important; height: auto !important; }\n}\n\n@media only screen and (max-width: 479px) {\nbody { width: auto !important; }\ntable[class='table-inner'] { width: 90% !important; }\ntable[class='table-full'] { width: 100% !important; text-align: center !important; }\n/* image */\nimg[class='img1'] { width: 100% !important; height: auto !important; }\n}\n</style>\n</head>\n\n<body>\n <table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='#FAFAFA'>\n <tr>\n <td align='center' height='25'></td>\n </tr>\n <tr>\n <td align='center'>\n <table align='center' class='table-inner' width='500' border='0' cellspacing='0' cellpadding='0'>\n <!--Header Logo-->\n <tr>\n <td align='left' style='line-height: 0px;'><img style='display:block; line-height:0px; font-size:0px; border:0px;' src='http://www.nosrezo.com/fichiers/images_email/logo.png' alt='logo' width='150' height='50' /></td>\n </tr>\n <!--end Header Logo-->\n <tr>\n <td height='5'></td>\n </tr>\n <!--slogan-->\n <tr>\n <td align='left' style=\\\"font-family: 'Open Sans', Arial, sans-serif; color:#898989; font-size:11px;line-height: 28px; font-style:; font-weight:200;\\\">\n\t\t\t Vous êtiez inscrit à la communauté NosRezo</td>\n </tr>\n <!--end slogan-->\n <tr>\n <td height='20'></td>\n </tr>\n </table>\n <table bgcolor='#14c1e0' background='http://www.nosrezo.com/fichiers/images_email/container-bg.png' style='border-top-left-radius:6px;border-top-right-radius:6px; background-size:100% auto; background-repeat:repeat-x;' width='500' border='0' align='center' cellpadding='0' cellspacing='0' class='table-inner'>\n <tr>\n <td height='50'></td>\n </tr>\n <tr>\n <td align='center'>\n <table class='table-inner' align='center' width='400' border='0' cellspacing='0' cellpadding='0'>\n <!--title-->\n <tr>\n <td align='center' style=\\\"font-family: 'Century Gothic', Arial, sans-serif; color:#ffffff; font-size:24px;font-weight: bold; letter-spacing: 1px;\\\">\n\t\t\t\t Bonjour $first_name,</td>\n </tr>\n <!--end title-->\n <tr>\n <td height='30'></td>\n </tr>\n <!--content-->\n <tr>\n <td align='center' style=\\\"font-family: 'Open sans', Arial, sans-serif; color:#ffffff; font-size:13px; line-height: 24px; font-weight: 200;\\\"> \n Nous sommes au regret de vous informer que votre compte a été <b>désactivé.</b><br/>\n <br/>\n\t\t\t\t\t\t\t Le nombre de places sur NosRezo est limité. <br/>\n\t\t\t\t\t\t\t <br/>\n Nous ne pouvons donc pas nous permettre de garder des profils inactifs.<br/>\n <br/>\n Merci pour votre compréhension.<br/>\n\n <br/>\n\t\t\t\t\t \n\t\t\t\t\t </td>\n </tr>\n <tr>\n <td height='20'></td>\n\n </table>\n </td>\n </tr>\n </table>\n\t\t\n\t\t\n\t\t\n\t\t\n <table bgcolor='#FFFFFF' style='border-bottom-left-radius:6px;border-bottom-right-radius:6px;' align='center' class='table-inner' width='500' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <td height='35'></td>\n </tr>\n <tr>\n <td align='center'>\n <table align='center' class='table-inner' width='420' border='0' cellspacing='0' cellpadding='0'>\n <!--content-->\n <tr>\n\n \t\t\t\t <td align='center' style=\\\"font-family: 'Open sans', Arial, sans-serif; color:#7f8c8d; font-size:12px; line-height: 20px; font-weight:200;\\\">\n\t\t\t\t\t\t Une inactivité lors des 10 premiers jours entraîne la désactivation <b>définitive</b> du compte gratuit : \n seule possibilité ensuite, attendre la version Premium payante de Septembre 2017.<br/>\n\t\t\t\t\t\t <br/>\n\t\t\t\t </td>\n\n </tr>\n <!--end content-->\n\n <tr>\n <td height='40'></td>\n </tr>\n \n <table class='buttonbox' border='0' align='center' cellpadding='0' cellspacing='0'>\n <tr>\n <td>\n <!--left-->\n <table width='150' align='left' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <!--image-->\n <td align='center' style='line-height: 0px;'><a href='https://itunes.apple.com/fr/app/nosrezo-france/id1054618680?mt=8' target='_blank'><img style='display:block; line-height:0px; font-size:0px; border:0px;' class='img1' src='http://www.nosrezo.com/fichiers/images_email/logo_apple.png' alt='img' width='150' height='auto' /></a></td> \n <!--end image-->\n </tr>\n </table>\n <!--end left-->\n <!--Space-->\n <table width='1' border='0' cellpadding='0' cellspacing='0' align='left'>\n <tr>\n <td height='30' style='font-size: 0;line-height: 0px;border-collapse: collapse;'>\n <p style='padding-left: 20px;'> </p>\n </td>\n </tr>\n </table>\n <!--End Space-->\n <!--right-->\n <table width='150' align='right' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <!--image-->\n <td align='center' style='line-height: 0px;'><a href='https://play.google.com/store/apps/details?id=com.nosrezo.appnosrezo2&hl=fr' target='_blank'><img style='display:block; line-height:0px; font-size:0px; border:0px;' class='img1' src='http://www.nosrezo.com/fichiers/images_email/logo_android.png' alt='img' width='150' height='auto' /></a></td> \n <!--end image-->\n </tr>\n </table>\n <!--end right-->\n </td>\n </tr>\n <tr>\n <td height='40'></td>\n </tr>\n </table>\n \n <!--end button-->\n </table>\n </td>\n </tr>\n <tr>\n <td height='45'></td>\n </tr>\n </table>\n <table align='center' class='table-inner' width='500' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <td height='10'></td>\n </tr>\n <tr>\n <td align='left' class='preference' style=\\\"font-family: 'Open sans', Arial, sans-serif; color:#95a5a6; font-size:10px; line-height:14px; font-weight:100;\\\"> Ce message a été envoyé à <a href='mailto:$mail'>$mail</a>. Si vous ne souhaitez plus recevoir nos e-mails, vous pouvez modifier vos préférences dans votre profil.\t\n </td>\n </tr>\n <tr>\n <td height='10'></td>\n </tr>\n <tr>\n \n <td align='left'>\n <!--social-->\n <table width='60' border='0' align='left' cellpadding='0' cellspacing='0'>\n <tr>\n <td align='left' style='line-height: 0px;'>\n <a href='https://www.facebook.com/Nosrezo-331807033627841/'> <img style='display:block; line-height:0px; font-size:0px; border:0px;' src='http://www.nosrezo.com/fichiers/images_email/facebook.png' alt='img' /> </a>\n </td>\n <td width='5'></td>\n <td align='left' style='line-height: 0px;'>\n <a href='https://twitter.com/NosRezeaux'> <img style='display:block; line-height:0px; font-size:0px; border:0px;' src='http://www.nosrezo.com/fichiers/images_email/twitter.png' alt='img' /> </a>\n </td>\n <td width='5'></td>\n <td align='left' style='line-height: 0px;'>\n <a href='https://www.linkedin.com/company/10423174?trk=tyah&trkInfo=clickedVertical%3Acompany%2CclickedEntityId%3A10423174%2Cidx%3A1-1-1%2CtarId%3A1454885076375%2Ctas%3Anosrezo'> <img style='display:block; line-height:0px; font-size:0px; border:0px;' src='http://www.nosrezo.com/fichiers/images_email/linkedin.png' alt='img' /> </a>\n </td>\n </tr>\n </table>\n <!--end social-->\n </td>\n \n </tr>\n <tr>\n <td height='30'></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n</body>\n\n</html> \";\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n \n//========== Création de la boundary\n$boundary = \"-----=\".md5(rand());\n//==========\n \n//========== Définition du sujet.\n$sujet = $titre ;\n//========= \n \n//========== Création du header de l'e-mail.\n$header = \"From: \\\"NosRezo.com\\\"<[email protected]>\".$passage_ligne;\n$header.= \"Cc:\".$mail_cc.\"\".$passage_ligne;\n$header.= \"Reply-to: \".$mail_cc.$passage_ligne;\n$header.= \"MIME-Version: 1.0\".$passage_ligne;\n$header.= \"Content-Type: multipart/alternative;\".$passage_ligne.\" boundary=\\\"$boundary\\\"\".$passage_ligne;\n//==========\n \n//========== Création du message.\n$message = $passage_ligne.\"--\".$boundary.$passage_ligne;\n//=====Ajout du message au format texte.\n$message.= \"Content-Type: text/plain; charset=\\\"utf-8\\\"\".$passage_ligne;\n$message.= \"Content-Transfer-Encoding: 8bit\".$passage_ligne;\n$message.= $passage_ligne.$message_txt.$passage_ligne;\n//==========\n$message.= $passage_ligne.\"--\".$boundary.$passage_ligne;\n//=====Ajout du message au format HTML\n$message.= \"Content-Type: text/html; charset=\\\"utf-8\\\"\".$passage_ligne;\n$message.= \"Content-Transfer-Encoding: 8bit\".$passage_ligne;\n$message.= $passage_ligne.$message_html.$passage_ligne;\n//==========\n$message.= $passage_ligne.\"--\".$boundary.\"--\".$passage_ligne;\n$message.= $passage_ligne.\"--\".$boundary.\"--\".$passage_ligne;\n\n//==========\n \n//========== Envoi de l'e-mail.\n if ($serveur == 'PRODUCTION')\n {\n if(mail($mail, $sujet, $message, $header))\n {echo '';} //else {echo 'Mail pas envoye a '.$mail;}\n\t }\n\t \n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}",
"public function getEmpregador($regiao, $projeto = null, $cnpj) {\n if($this->id_master == 6){\n $empresa = 28;\n }elseif($this->id_master != 6 && $this->id_master != 8){\n $empresa = 1;\n }else{\n $empresa = 38;\n }\n \n// if(!empty($projeto)){\n// $qry = \"SELECT A.id_empresa, IF (A.cnpj IS NOT NULL, '1', '2') AS tpInscResp, IF (A.cnpj IS NOT NULL, A.cnpj, '') AS inscResp, A.razao, A.responsavel, \n// CONCAT(A.logradouro,' ',A.numero,' ', A.complemento) AS endereco, B.endereco AS endereco2, A.bairro, A.cep, A.cidade, A.uf, A.tel, A.email, A.cnae\n// FROM rhempresa AS A\n// LEFT JOIN projeto AS B ON (A.id_projeto = B.id_projeto)\n// WHERE A.id_projeto = {$projeto};\";\n// }else{\n// $qry = \"SELECT A.id_empresa, IF (A.cnpj IS NOT NULL, '1', '2') AS tpInscResp, IF (A.cnpj IS NOT NULL, A.cnpj, '') AS inscResp, A.razao, A.responsavel, \n// CONCAT(A.logradouro,' ',A.numero,' ', A.complemento) AS endereco, B.endereco AS endereco2, A.bairro, A.cep, A.cidade, A.uf, A.tel, A.email, A.cnae\n// FROM rhempresa AS A\n// LEFT JOIN projeto AS B ON (A.id_projeto = B.id_projeto)\n// WHERE A.id_empresa = {$empresa};\";\n// }\n $qry = \"SELECT A.id_empresa, IF (A.cnpj IS NOT NULL, '1', '2') AS tpInscResp, IF (A.cnpj IS NOT NULL, A.cnpj, '') AS inscResp, A.razao, A.responsavel, \n CONCAT(A.logradouro,' ',A.numero,' ', A.complemento) AS endereco, B.endereco AS endereco2, A.bairro, A.cep, A.cidade, A.uf, A.tel, A.email, A.cnae, A.terceiros, A.fpas\n FROM rhempresa AS A\n LEFT JOIN projeto AS B ON (A.id_projeto = B.id_projeto)\n WHERE A.cnpj = '$cnpj' GROUP BY A.cnpj;\";\n \n $sql = mysql_query($qry)or die (\"ERRO getEmpresa\");\n return $sql;\n }",
"public function insertRegistration($fields, $photo_tmp, $photo, $mark_sheet_8_tmp, $mark_sheet_8, $mark_sheet_10_tmp, $mark_sheet_10, $mark_sheet_12_tmp, $mark_sheet_12, $class_mark_sheet_tmp, $class_mark_sheet, $transfer_cert_tmp, $transfer_cert, $income_cert_tmp, $income_cert, $caste_cert_tmp, $caste_cert, $domicile_cert_tmp, $domicile_cert, $samagra_cert_tmp, $samagra_cert, $aadhar_cert_tmp, $aadhar_cert, $voter_id_tmp, $voter_id, $rashan_card_tmp, $rashan_card, $passport_tmp, $passport, $other1_tmp, $other1)\n\t{\n\t\t\n\t\t$v1 = rand(1111,9999);\n\t\t$v2 = rand(1111,9999);\n\t\t$v3 = $v1.$v2;\n\t\t$v3 = md5($v3);\n\t\t$photo = $v3.$photo;\n\t\tif (!empty($mark_sheet_8)) {\n\t\t\t$mark_sheet_8 = $v3.\"0\".$mark_sheet_8;\n\t\t}\n\t\tif (!empty($mark_sheet_10)) {\n\t\t\t$mark_sheet_10 = $v3.\"1\".$mark_sheet_10;\n\t\t}\n\t\tif (!empty($mark_sheet_12)) {\n\t\t\t$mark_sheet_12 = $v3.\"2\".$mark_sheet_12;\n\t\t}\n\t\tif (!empty($class_mark_sheet)) {\n\t\t\t$class_mark_sheet = $v3.\"3\".$class_mark_sheet;\n\t\t}\n\t\tif (!empty($transfer_cert)) {\n\t\t\t$transfer_cert = $v3.\"4\".$transfer_cert;\n\t\t}\n\t\tif (!empty($income_cert)) {\n\t\t\t$income_cert = $v3.\"5\".$income_cert;\n\t\t}\n\t\tif (!empty($caste_cert)) {\n\t\t\t$caste_cert = $v3.\"6\".$caste_cert;\n\t\t}\n\t\tif (!empty($domicile_cert)) {\n\t\t\t$domicile_cert = $v3.\"7\".$domicile_cert;\n\t\t}\n\t\tif (!empty($samagra_cert)) {\n\t\t\t$samagra_cert = $v3.\"8\".$samagra_cert;\n\t\t}\n\t\tif (!empty($aadhar_cert)) {\n\t\t\t$aadhar_cert = $v3.\"9\".$aadhar_cert;\n\t\t}\n\t\tif (!empty($voter_id)) {\n\t\t\t$voter_id = $v3.\"10\".$voter_id;\n\t\t}\n\t\tif (!empty($rashan_card)) {\n\t\t\t$rashan_card = $v3.\"11\".$rashan_card;\n\t\t}\n\t\tif (!empty($passport)) {\n\t\t\t$passport = $v3.\"12\".$passport;\n\t\t}\n\t\tif (!empty($other1)) {\n\t\t\t$other1 = $v3.\"13\".$other1;\n\t\t}\n\n\t\t$query = $this->db->prepare(\"INSERT INTO registrations (\".implode(\",\", array_keys($fields)).\", reg_photo, reg_marksheet_8, reg_marksheet_10, reg_marksheet_12, reg_marksheet_class, reg_transfer_cert, reg_income_cert, reg_caste_cert, reg_domicile_cert, reg_samagra_cert, reg_aadhar_cert, reg_voter_id, reg_rashan_card, reg_passport, reg_other1) VALUES ('\".implode(\"','\", array_values($fields)).\"', '\".$photo.\"', '\".$mark_sheet_8.\"', '\".$mark_sheet_10.\"', '\".$mark_sheet_12.\"', '\".$class_mark_sheet.\"', '\".$transfer_cert.\"', '\".$income_cert.\"', '\".$caste_cert.\"', '\".$domicile_cert.\"', '\".$samagra_cert.\"', '\".$aadhar_cert.\"', '\".$voter_id.\"', '\".$rashan_card.\"', '\".$passport.\"', '\".$other1.\"')\");\n\t\t$query->execute();\n\t\tif ($query->rowCount()) {\n\t\t\tmove_uploaded_file($photo_tmp, './assets/img/documents/'.$photo);\n\t\t\tmove_uploaded_file($mark_sheet_8_tmp, './assets/img/documents/'.$mark_sheet_8);\n\t\t\tmove_uploaded_file($mark_sheet_10_tmp, './assets/img/documents/'.$mark_sheet_10);\n\t\t\tmove_uploaded_file($mark_sheet_12_tmp, './assets/img/documents/'.$mark_sheet_12);\n\t\t\tmove_uploaded_file($class_mark_sheet_tmp, './assets/img/documents/'.$class_mark_sheet);\n\t\t\tmove_uploaded_file($transfer_cert_tmp, './assets/img/documents/'.$transfer_cert);\n\t\t\tmove_uploaded_file($income_cert_tmp, './assets/img/documents/'.$income_cert);\n\t\t\tmove_uploaded_file($caste_cert_tmp, './assets/img/documents/'.$caste_cert);\n\t\t\tmove_uploaded_file($domicile_cert_tmp, './assets/img/documents/'.$domicile_cert);\n\t\t\tmove_uploaded_file($samagra_cert_tmp, './assets/img/documents/'.$samagra_cert);\n\t\t\tmove_uploaded_file($aadhar_cert_tmp, './assets/img/documents/'.$aadhar_cert);\n\t\t\tmove_uploaded_file($voter_id_tmp, './assets/img/documents/'.$voter_id);\n\t\t\tmove_uploaded_file($rashan_card_tmp, './assets/img/documents/'.$rashan_card);\n\t\t\tmove_uploaded_file($passport_tmp, './assets/img/documents/'.$passport);\n\t\t\tmove_uploaded_file($other1_tmp, './assets/img/documents/'.$other1);\n\t\t\treturn true;\n\t\t}\n\t\t// echo \"INSERT INTO registrations (\".implode(\",\", array_keys($fields)).\", reg_photo, reg_marksheet_8, reg_marksheet_10, reg_marksheet_12, reg_marksheet_class, reg_transfer_cert, reg_income_cert, reg_caste_cert, reg_domicile_cert, reg_samagra_cert, reg_aadhar_cert, reg_voter_id, reg_rashan_card, reg_passport, reg_other1) VALUES ('\".implode(\"','\", array_values($fields)).\"', '\".$photo.\"', '\".$mark_sheet_8.\"', '\".$mark_sheet_10.\"', '\".$mark_sheet_12.\"', '\".$class_mark_sheet.\"', '\".$transfer_cert.\"', '\".$income_cert.\"', '\".$caste_cert.\"', '\".$domicile_cert.\"', '\".$samagra_cert.\"', '\".$aadhar_cert.\"', '\".$voter_id.\"', '\".$rashan_card.\"', '\".$passport.\"', '\".$other1.\"')\";\n\t}",
"public function agregar_cliente_controlador(){\r\n\r\n\t\t\t$dni=mainModel::limpiar_cadena($_POST['dni-reg']);\r\n\t\t\t$nombre=mainModel::limpiar_cadena($_POST['nombre-reg']);\r\n\t\t\t$apellido=mainModel::limpiar_cadena($_POST['apellido-reg']);\r\n\t\t\t$telefono=mainModel::limpiar_cadena($_POST['telefono-reg']);\r\n\t\t\t$ocupacion=mainModel::limpiar_cadena($_POST['ocupacion-reg']);\r\n\t\t\t$direccion=mainModel::limpiar_cadena($_POST['direccion-reg']);\r\n\r\n\t\t\t$usuario=mainModel::limpiar_cadena($_POST['usuario-reg']);\r\n\t\t\t$password1=mainModel::limpiar_cadena($_POST['password1']);\r\n\t\t\t$password2=mainModel::limpiar_cadena($_POST['password2']);\r\n\t\t\t$email=mainModel::limpiar_cadena($_POST['email-reg']);\r\n\t\t\t$genero=mainModel::limpiar_cadena($_POST['optionsGenero']);\r\n\t\t\t$privilegio=4;\r\n\r\n\t\t\tif($genero==\"Masculino\"){\r\n\t\t\t\t$foto=\"Male2Avatar.png\";\r\n\t\t\t}else{\r\n\t\t\t\t$foto=\"Female2Avatar.png\";\r\n\t\t\t}\r\n\r\n\t\t\tif($password1!=$password2){\r\n\t\t\t\t$alerta=[\r\n\t\t\t\t\t\"Alerta\"=>\"simple\",\r\n\t\t\t\t\t\"Titulo\"=>\"Ocurrió un error inesperado\",\r\n\t\t\t\t\t\"Texto\"=>\"Las contraseñas que acabas de ingresar no coinciden, por favor verifique e intente nuevamente\",\r\n\t\t\t\t\t\"Tipo\"=>\"error\"\r\n\t\t\t\t];\r\n\t\t\t}else{\r\n\t\t\t\t$consulta1=mainModel::ejecutar_consulta_simple(\"SELECT ClienteDNI FROM cliente WHERE ClienteDNI='$dni'\");\r\n\t\t\t\tif($consulta1->rowCount()>=1){\r\n\t\t\t\t\t$alerta=[\r\n\t\t\t\t\t\t\"Alerta\"=>\"simple\",\r\n\t\t\t\t\t\t\"Titulo\"=>\"Ocurrió un error inesperado\",\r\n\t\t\t\t\t\t\"Texto\"=>\"El DNI que acaba de ingresar ya se encuentra registrado en el sistema\",\r\n\t\t\t\t\t\t\"Tipo\"=>\"error\"\r\n\t\t\t\t\t];\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif($email!=\"\"){\r\n\t\t\t\t\t\t$consulta2=mainModel::ejecutar_consulta_simple(\"SELECT CuentaEmail FROM cuenta WHERE CuentaEmail='$email'\");\r\n\t\t\t\t\t\t$ec=$consulta2->rowCount();\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t$ec=0;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif($ec>=1){\r\n\t\t\t\t\t\t$alerta=[\r\n\t\t\t\t\t\t\t\"Alerta\"=>\"simple\",\r\n\t\t\t\t\t\t\t\"Titulo\"=>\"Ocurrió un error inesperado\",\r\n\t\t\t\t\t\t\t\"Texto\"=>\"El EMAIL que acaba de ingresar ya se encuentra registrado en el sistema\",\r\n\t\t\t\t\t\t\t\"Tipo\"=>\"error\"\r\n\t\t\t\t\t\t];\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t$consulta3=mainModel::ejecutar_consulta_simple(\"SELECT CuentaUsuario FROM cuenta WHERE CuentaUsuario='$usuario'\");\r\n\t\t\t\t\t\tif($consulta3->rowCount()>=1){\r\n\t\t\t\t\t\t\t$alerta=[\r\n\t\t\t\t\t\t\t\t\"Alerta\"=>\"simple\",\r\n\t\t\t\t\t\t\t\t\"Titulo\"=>\"Ocurrió un error inesperado\",\r\n\t\t\t\t\t\t\t\t\"Texto\"=>\"El USUARIO que acaba de ingresar ya se encuentra registrado en el sistema\",\r\n\t\t\t\t\t\t\t\t\"Tipo\"=>\"error\"\r\n\t\t\t\t\t\t\t];\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t$consulta4=mainModel::ejecutar_consulta_simple(\"SELECT id FROM cuenta\");\r\n\t\t\t\t\t\t\t$numero=($consulta4->rowCount())+1;\r\n\r\n\t\t\t\t\t\t\t$codigo=mainModel::generar_codigo_aleatorio(\"CC\",7,$numero);\r\n\r\n\t\t\t\t\t\t\t$clave=mainModel::encryption($password1);\r\n\r\n\t\t\t\t\t\t\t$dataAc=[\r\n\t\t\t\t\t\t\t\t\"Codigo\"=>$codigo,\r\n\t\t\t\t\t\t\t\t\"Privilegio\"=>$privilegio,\r\n\t\t\t\t\t\t\t\t\"Usuario\"=>$usuario,\r\n\t\t\t\t\t\t\t\t\"Clave\"=>$clave,\r\n\t\t\t\t\t\t\t\t\"Email\"=>$email,\r\n\t\t\t\t\t\t\t\t\"Estado\"=>\"Activo\",\r\n\t\t\t\t\t\t\t\t\"Tipo\"=>\"Cliente\",\r\n\t\t\t\t\t\t\t\t\"Genero\"=>$genero,\r\n\t\t\t\t\t\t\t\t\"Foto\"=>$foto\r\n\t\t\t\t\t\t\t];\r\n\r\n\t\t\t\t\t\t\t$guardarCuenta=mainModel::agregar_cuenta($dataAc);\r\n\r\n\t\t\t\t\t\t\tif($guardarCuenta->rowCount()>=1){\r\n\r\n\t\t\t\t\t\t\t\t$dataCli=[\r\n\t\t\t\t\t\t\t\t\t\"DNI\"=>$dni,\r\n\t\t\t\t\t\t\t\t\t\"Nombre\"=>$nombre,\r\n\t\t\t\t\t\t\t\t\t\"Apellido\"=>$apellido,\r\n\t\t\t\t\t\t\t\t\t\"Telefono\"=>$telefono,\r\n\t\t\t\t\t\t\t\t\t\"Ocupacion\"=>$ocupacion,\r\n\t\t\t\t\t\t\t\t\t\"Direccion\"=>$direccion,\r\n\t\t\t\t\t\t\t\t\t\"Codigo\"=>$codigo\r\n\t\t\t\t\t\t\t\t];\r\n\r\n\t\t\t\t\t\t\t\t$guardarCliente=clienteModelo::agregar_cliente_modelo($dataCli);\r\n\r\n\t\t\t\t\t\t\t\tif($guardarCliente->rowCount()>=1){\r\n\t\t\t\t\t\t\t\t\t$alerta=[\r\n\t\t\t\t\t\t\t\t\t\t\"Alerta\"=>\"limpiar\",\r\n\t\t\t\t\t\t\t\t\t\t\"Titulo\"=>\"Cliente registrado\",\r\n\t\t\t\t\t\t\t\t\t\t\"Texto\"=>\"El cliente se registró con éxito en el sistema\",\r\n\t\t\t\t\t\t\t\t\t\t\"Tipo\"=>\"success\"\r\n\t\t\t\t\t\t\t\t\t];\r\n\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\tmainModel::eliminar_cuenta($codigo);\r\n\t\t\t\t\t\t\t\t\t$alerta=[\r\n\t\t\t\t\t\t\t\t\t\t\"Alerta\"=>\"simple\",\r\n\t\t\t\t\t\t\t\t\t\t\"Titulo\"=>\"Ocurrió un error inesperado\",\r\n\t\t\t\t\t\t\t\t\t\t\"Texto\"=>\"No hemos podido registrar el cliente, por favor intente nuevamente\",\r\n\t\t\t\t\t\t\t\t\t\t\"Tipo\"=>\"error\"\r\n\t\t\t\t\t\t\t\t\t];\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t$alerta=[\r\n\t\t\t\t\t\t\t\t\t\"Alerta\"=>\"simple\",\r\n\t\t\t\t\t\t\t\t\t\"Titulo\"=>\"Ocurrió un error inesperado\",\r\n\t\t\t\t\t\t\t\t\t\"Texto\"=>\"No hemos podido registrar el cliente, por favor intente nuevamente\",\r\n\t\t\t\t\t\t\t\t\t\"Tipo\"=>\"error\"\r\n\t\t\t\t\t\t\t\t];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn mainModel::sweet_alert($alerta);\r\n\t\t}",
"function SEND_EMAIL_RELANCE_PARRAIN_AVANT_DESACTIVATION($id_affiliate, $serveur, $link_webinar, $mode, $texte_complement, $titre)\n{\n mysql_query('SET NAMES utf8');\n $result = mysql_fetch_array(mysql_query(\" SELECT first_name, last_name, zip_code, email, city, id_affiliate, phone_number FROM affiliate_details where id_affiliate =\".$id_affiliate.\" \")) or die(\"Requete pas comprise - #31! \");\n\t $mail = $result['email'];\n $first_name = ucwords(strtolower($result['first_name']));\n\t $last_name = $result['last_name'];\n\t $zip_code = $result['zip_code'];\n\t $city = $result['city'];\n $phone_number = $result['phone_number'];\t \n\n\t \n\t // 2. INFORMATIONS SUR LE PARRAIN\n\t List($id_parrain, $id_partenaire, $first_name_p, $last_name_p, $email_p, $phone_number_p) = RETURN_INFO_AFFILIATE( RETURN_ID_PARRAIN($id_affiliate) );\n\t $mail = $email_p;\n\t $mail_cc = \" [email protected] \"; //[email protected] \n\n\t\n\t\n // 2. INFORMATIONS SUR UN TEXTE SPÉCIFIQUE À AFFICHER\t \t \n\t $texte_complement = trim(stripslashes( $texte_complement ));\n\t $texte_complement = addslashes( $texte_complement );\n\t $texte_complement = strtolower( $texte_complement );\n\t\t \n\t\t \n\t // 3. INFORMATION SUR LE MOT DE PASSE POUR UNE PREMIERE CONNECTION\n \t $dn2 = mysql_fetch_array(mysql_query('SELECT password FROM affiliate WHERE id_affiliate = \"'.$id_affiliate.'\" ')) or die(\".\"); \n $mdp = $dn2['password'];\n\t \n\t \n\t // 4. FILTRE SPECIFIQUE POUR LES TESTS\n IF ( $mode == \"TEST\") // TESTER L'ENVOI DU MAIL\n {\n $mail = \"[email protected]\"; \t \n $mail_cc = \"[email protected]\"; // , [email protected]\n }\n\t \n\t\t \nIF (!preg_match(\"#^[a-z0-9._-]+@(hotmail|live|msn).[a-z]{2,4}$#\", $mail)) // On filtre les serveurs qui rencontrent des bogues.\n {$passage_ligne = \"\\r\\n\";}\nelse\n {$passage_ligne = \"\\n\"; }\n \n //<u>Votre ville</u> : <b> $zip_code $city </b> <br />\n //<u>Votre Parrain</u> : <b> $first_name_p $last_name_p </b> <br />\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n$message_txt = \"script PHP.\";\n$message_html = \"\n\n<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\n<html xmlns='http://www.w3.org/1999/xhtml'>\n\n<head>\n <meta http-equiv='X-UA-Compatible' content='IE=edge' />\n <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\n <meta name='viewport' content='width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1' />\n <title>NosRezo</title>\n <style type='text/css'>\n.ReadMsgBody { width: 100%; background-color: #ffffff; }\n.ExternalClass { width: 100%; background-color: #ffffff; }\n.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div { line-height: 100%; }\nhtml { width: 100%; }\nbody { -webkit-text-size-adjust: none; -ms-text-size-adjust: none; margin: 0; padding: 0; }\ntable { border-spacing: 0; border-collapse: collapse; table-layout: fixed; margin: 0 auto; }\ntable table table { table-layout: auto; }\nimg { display: block !important; over-flow: hidden !important; }\ntable td { border-collapse: collapse; }\n.yshortcuts a { border-bottom: none !important; }\nimg:hover { opacity:0.9 !important;}\na { color: #14c1e0; text-decoration: none; }\nspan { font-weight: 600 !important; }\n.textbutton a { font-family: 'open sans', arial, sans-serif !important; color: #ffffff; }\n.preference a { color: #14c1e0 !important; text-decoration: underline !important; }\n\n/*Responsive*/\n@media only screen and (max-width: 640px) {\nbody { width: auto !important; }\ntable[class='table-inner'] { width: 90% !important; }\ntable[class='table-full'] { width: 100% !important; text-align: center !important; }\n/* Image */\nimg[class='img1'] { width: 100% !important; height: auto !important; }\n}\n\n@media only screen and (max-width: 479px) {\nbody { width: auto !important; }\ntable[class='table-inner'] { width: 90% !important; }\ntable[class='table-full'] { width: 100% !important; text-align: center !important; }\n/* image */\nimg[class='img1'] { width: 100% !important; height: auto !important; }\n}\n</style>\n</head>\n\n<body>\n <table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='#FAFAFA'>\n <tr>\n <td align='center' height='25'></td>\n </tr>\n <tr>\n <td align='center'>\n <table align='center' class='table-inner' width='500' border='0' cellspacing='0' cellpadding='0'>\n <!--Header Logo-->\n <tr>\n <td align='left' style='line-height: 0px;'><img style='display:block; line-height:0px; font-size:0px; border:0px;' src='http://www.nosrezo.com/fichiers/images_email/logo.png' alt='logo' width='150' height='50' /></td>\n </tr>\n <!--end Header Logo-->\n <tr>\n <td height='5'></td>\n </tr>\n <!--slogan-->\n <tr>\n <td align='left' style=\\\"font-family: 'Open Sans', Arial, sans-serif; color:#898989; font-size:11px;line-height: 28px; font-style:; font-weight:200;\\\">\n\t\t\t Vous êtes inscrit à la communauté NosRezo</td>\n </tr>\n <!--end slogan-->\n <tr>\n <td height='20'></td>\n </tr>\n </table>\n <table bgcolor='#14c1e0' background='http://www.nosrezo.com/fichiers/images_email/container-bg.png' style='border-top-left-radius:6px;border-top-right-radius:6px; background-size:100% auto; background-repeat:repeat-x;' width='500' border='0' align='center' cellpadding='0' cellspacing='0' class='table-inner'>\n <tr>\n <td height='50'></td>\n </tr>\n <tr>\n <td align='center'>\n <table class='table-inner' align='center' width='400' border='0' cellspacing='0' cellpadding='0'>\n <!--title-->\n <tr>\n <td align='center' style=\\\"font-family: 'Century Gothic', Arial, sans-serif; color:#ffffff; font-size:24px;font-weight: bold; letter-spacing: 1px;\\\">\n\t\t\t\t $first_name_p,</td>\n </tr>\n <!--end title-->\n <tr>\n <td height='30'></td>\n </tr>\n <!--content-->\n <tr>\n <td align='center' style=\\\"font-family: 'Open sans', Arial, sans-serif; color:#ffffff; font-size:13px; line-height: 24px; font-weight: 200;\\\"> \n Il reste <b>$texte_complement</b> à votre filleul <b>$first_name</b> pour inscrire une personne à son tour.\n\t\t\t\t\t\t Dans le cas contraire, son compte gratuit sera définitivement supprimé.<br/>\n <br/> \n Vous n’avez que <b>5 places</b>, elles sont précieuses.\n <br/>\n\t\t\t\t\t \n\t\t\t\t\t </td>\n </tr>\n <tr>\n <td height='20'></td>\n </tr>\n \n <tr>\n <td align='center' style=\\\"font-family: 'Open sans', Arial, sans-serif; color:#ffffff; font-size:13px; line-height: 24px; font-weight: 200;\\\"> \n <b>$first_name</b> a-t-il vu cette vidéo ?<br/> \n\t\t\t\t\t\t\t Et si vous la regardiez ensemble ? <br/>\n\t\t\t\t\t </td>\n </tr>\n\n\t\t\t\t\n\t\t\t\t<tr>\n <!--image-->\n\t\t\t\t\t<td align='center' style='line-height: 0px;'>\n\t\t\t\t\t\t<a href='https://www.youtube.com/watch?v=_XzbcUfpoAI' style='text-decoration: none; color: #ffffff; font-family: Helvetica, Arial, sans-serif; font-size: 20px;'> <img style='display:block; line-height:0px; font-size:0px; border:0px;' class='img1' src='http://www.nosrezo.com/assets/img/email/video.jpg' alt='img' width='100%' height='auto' /></a>\t\t\t\t\t\t\t\n\t\t\t\t\t</td>\n <!--end image-->\n\t\t\t\t</tr>\t\t\t\t\n\t\t\t\t\n\n <td height='40'></td>\n\t\t\t\t \n </tr>\n </table>\n </td>\n </tr>\n </table>\n\t\t\n\t\t\n\t\t\n\t\t\n <table bgcolor='#FFFFFF' style='border-bottom-left-radius:6px;border-bottom-right-radius:6px;' align='center' class='table-inner' width='500' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <td height='35'></td>\n </tr>\n <tr>\n <td align='center'>\n <table align='center' class='table-inner' width='420' border='0' cellspacing='0' cellpadding='0'>\n <!--content-->\n <tr>\n\n \t\t\t\t <td align='center' style=\\\"font-family: 'Open sans', Arial, sans-serif; color:#7f8c8d; font-size:12px; line-height: 20px; font-weight:200;\\\">\n\t\t\t\t\t\t Une inactivité lors des 10 premiers jours entraîne la désactivation <b>définitive</b> du compte gratuit de <b>$first_name</b> que vous pouvez joindre au $phone_number : \n seule possibilité ensuite, attendre la version Premium payante de Septembre 2017.<br/>\n\t\t\t\t\t\t <br/>\n\t\t\t\t </td>\n\n </tr>\n <!--end content-->\n\n <tr>\n <td height='40'></td>\n </tr>\n \n <table class='buttonbox' border='0' align='center' cellpadding='0' cellspacing='0'>\n <tr>\n <td>\n <!--left-->\n <table width='150' align='left' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <!--image-->\n <td align='center' style='line-height: 0px;'><a href='https://itunes.apple.com/fr/app/nosrezo-france/id1054618680?mt=8' target='_blank'><img style='display:block; line-height:0px; font-size:0px; border:0px;' class='img1' src='http://www.nosrezo.com/fichiers/images_email/logo_apple.png' alt='img' width='150' height='auto' /></a></td> \n <!--end image-->\n </tr>\n </table>\n <!--end left-->\n <!--Space-->\n <table width='1' border='0' cellpadding='0' cellspacing='0' align='left'>\n <tr>\n <td height='30' style='font-size: 0;line-height: 0px;border-collapse: collapse;'>\n <p style='padding-left: 20px;'> </p>\n </td>\n </tr>\n </table>\n <!--End Space-->\n <!--right-->\n <table width='150' align='right' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <!--image-->\n <td align='center' style='line-height: 0px;'><a href='https://play.google.com/store/apps/details?id=com.nosrezo.appnosrezo2&hl=fr' target='_blank'><img style='display:block; line-height:0px; font-size:0px; border:0px;' class='img1' src='http://www.nosrezo.com/fichiers/images_email/logo_android.png' alt='img' width='150' height='auto' /></a></td> \n <!--end image-->\n </tr>\n </table>\n <!--end right-->\n </td>\n </tr>\n <tr>\n <td height='40'></td>\n </tr>\n </table>\n \n <!--end button-->\n </table>\n </td>\n </tr>\n <tr>\n <td height='45'></td>\n </tr>\n </table>\n <table align='center' class='table-inner' width='500' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <td height='10'></td>\n </tr>\n <tr>\n <td align='left' class='preference' style=\\\"font-family: 'Open sans', Arial, sans-serif; color:#95a5a6; font-size:10px; line-height:14px; font-weight:100;\\\"> Ce message a été envoyé à <a href='mailto:$mail'>$mail</a>. Si vous ne souhaitez plus recevoir nos e-mails, vous pouvez modifier vos préférences dans votre profil.\t\n </td>\n </tr>\n <tr>\n <td height='10'></td>\n </tr>\n <tr>\n \n <td align='left'>\n <!--social-->\n <table width='60' border='0' align='left' cellpadding='0' cellspacing='0'>\n <tr>\n <td align='left' style='line-height: 0px;'>\n <a href='https://www.facebook.com/Nosrezo-331807033627841/'> <img style='display:block; line-height:0px; font-size:0px; border:0px;' src='http://www.nosrezo.com/fichiers/images_email/facebook.png' alt='img' /> </a>\n </td>\n <td width='5'></td>\n <td align='left' style='line-height: 0px;'>\n <a href='https://twitter.com/NosRezeaux'> <img style='display:block; line-height:0px; font-size:0px; border:0px;' src='http://www.nosrezo.com/fichiers/images_email/twitter.png' alt='img' /> </a>\n </td>\n <td width='5'></td>\n <td align='left' style='line-height: 0px;'>\n <a href='https://www.linkedin.com/company/10423174?trk=tyah&trkInfo=clickedVertical%3Acompany%2CclickedEntityId%3A10423174%2Cidx%3A1-1-1%2CtarId%3A1454885076375%2Ctas%3Anosrezo'> <img style='display:block; line-height:0px; font-size:0px; border:0px;' src='http://www.nosrezo.com/fichiers/images_email/linkedin.png' alt='img' /> </a>\n </td>\n </tr>\n </table>\n <!--end social-->\n </td>\n \n </tr>\n <tr>\n <td height='30'></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n</body>\n\n</html> \";\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n \n//========== Création de la boundary\n$boundary = \"-----=\".md5(rand());\n//==========\n \n//========== Définition du sujet.\n$sujet = $titre ;\n//========= \n \n//========== Création du header de l'e-mail.\n$header = \"From: \\\"NosRezo.com\\\"<[email protected]>\".$passage_ligne;\n$header.= \"Cc:\".$mail_cc.\"\".$passage_ligne;\n$header.= \"Reply-to: \".$mail_cc.$passage_ligne;\n$header.= \"MIME-Version: 1.0\".$passage_ligne;\n$header.= \"Content-Type: multipart/alternative;\".$passage_ligne.\" boundary=\\\"$boundary\\\"\".$passage_ligne;\n//==========\n \n//========== Création du message.\n$message = $passage_ligne.\"--\".$boundary.$passage_ligne;\n//=====Ajout du message au format texte.\n$message.= \"Content-Type: text/plain; charset=\\\"utf-8\\\"\".$passage_ligne;\n$message.= \"Content-Transfer-Encoding: 8bit\".$passage_ligne;\n$message.= $passage_ligne.$message_txt.$passage_ligne;\n//==========\n$message.= $passage_ligne.\"--\".$boundary.$passage_ligne;\n//=====Ajout du message au format HTML\n$message.= \"Content-Type: text/html; charset=\\\"utf-8\\\"\".$passage_ligne;\n$message.= \"Content-Transfer-Encoding: 8bit\".$passage_ligne;\n$message.= $passage_ligne.$message_html.$passage_ligne;\n//==========\n$message.= $passage_ligne.\"--\".$boundary.\"--\".$passage_ligne;\n$message.= $passage_ligne.\"--\".$boundary.\"--\".$passage_ligne;\n\n//==========\n \n//========== Envoi de l'e-mail.\n if ($serveur == 'PRODUCTION')\n {\n if(mail($mail, $sujet, $message, $header))\n {echo '';}\n\t }\n//////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}",
"function SEND_EMAIL_VALIDATION_DU_COMPTE($id_affiliate, $serveur, $link_webinar, $mode, $texte_complement, $titre)\n{\n mysql_query('SET NAMES utf8');\n $result = mysql_fetch_array(mysql_query(\" SELECT first_name, last_name, zip_code, email, city, id_affiliate, phone_number FROM affiliate_details where id_affiliate =\".$id_affiliate.\" \")) or die(\"Requete pas comprise - #31! \");\n\t $mail = $result['email'];\n $first_name = ucwords(strtolower($result['first_name']));\n\t $last_name = $result['last_name'];\n\t $zip_code = $result['zip_code'];\n\t $city = $result['city'];\n $phone_number = $result['phone_number'];\t \n\n\t \n\t // 2. INFORMATIONS SUR LE PARRAIN\n\t List($id_parrain, $id_partenaire, $first_name_p, $last_name_p, $email_p, $phone_number_p) = RETURN_INFO_AFFILIATE( RETURN_ID_PARRAIN($id_affiliate) );\n\t $mail = $email_p;\n\t $mail_cc = \" [email protected] \"; //[email protected] \n\n\t\n\t\n // 2. INFORMATIONS SUR UN TEXTE SPÉCIFIQUE À AFFICHER\t \t \n\t $texte_complement = trim(stripslashes( $texte_complement ));\n\t $texte_complement = addslashes( $texte_complement );\n\t $texte_complement = strtolower( $texte_complement );\n\t\t \n\t\t \n\t // 3. INFORMATION SUR LE MOT DE PASSE POUR UNE PREMIERE CONNECTION\n \t $dn2 = mysql_fetch_array(mysql_query('SELECT password FROM affiliate WHERE id_affiliate = \"'.$id_affiliate.'\" ')) or die(\".\"); \n $mdp = $dn2['password'];\n\t \n\t \n\t // 4. FILTRE SPECIFIQUE POUR LES TESTS\n IF ( $mode == \"TEST\") // TESTER L'ENVOI DU MAIL\n {\n $mail = \"[email protected]\"; \t \n $mail_cc = \"[email protected]\"; // , [email protected]\n }\n\t \n\t\t \nIF (!preg_match(\"#^[a-z0-9._-]+@(hotmail|live|msn).[a-z]{2,4}$#\", $mail)) // On filtre les serveurs qui rencontrent des bogues.\n {$passage_ligne = \"\\r\\n\";}\nelse\n {$passage_ligne = \"\\n\"; }\n \n //<u>Votre ville</u> : <b> $zip_code $city </b> <br />\n //<u>Votre Parrain</u> : <b> $first_name_p $last_name_p </b> <br />\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n$message_txt = \"script PHP.\";\n$message_html = \"\n\n<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\n<html xmlns='http://www.w3.org/1999/xhtml'>\n\n<head>\n <meta http-equiv='X-UA-Compatible' content='IE=edge' />\n <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\n <meta name='viewport' content='width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1' />\n <title>NosRezo</title>\n <style type='text/css'>\n.ReadMsgBody { width: 100%; background-color: #ffffff; }\n.ExternalClass { width: 100%; background-color: #ffffff; }\n.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div { line-height: 100%; }\nhtml { width: 100%; }\nbody { -webkit-text-size-adjust: none; -ms-text-size-adjust: none; margin: 0; padding: 0; }\ntable { border-spacing: 0; border-collapse: collapse; table-layout: fixed; margin: 0 auto; }\ntable table table { table-layout: auto; }\nimg { display: block !important; over-flow: hidden !important; }\ntable td { border-collapse: collapse; }\n.yshortcuts a { border-bottom: none !important; }\nimg:hover { opacity:0.9 !important;}\na { color: #14c1e0; text-decoration: none; }\nspan { font-weight: 600 !important; }\n.textbutton a { font-family: 'open sans', arial, sans-serif !important; color: #ffffff; }\n.preference a { color: #14c1e0 !important; text-decoration: underline !important; }\n\n/*Responsive*/\n@media only screen and (max-width: 640px) {\nbody { width: auto !important; }\ntable[class='table-inner'] { width: 90% !important; }\ntable[class='table-full'] { width: 100% !important; text-align: center !important; }\n/* Image */\nimg[class='img1'] { width: 100% !important; height: auto !important; }\n}\n\n@media only screen and (max-width: 479px) {\nbody { width: auto !important; }\ntable[class='table-inner'] { width: 90% !important; }\ntable[class='table-full'] { width: 100% !important; text-align: center !important; }\n/* image */\nimg[class='img1'] { width: 100% !important; height: auto !important; }\n}\n</style>\n</head>\n\n<body>\n <table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='#FAFAFA'>\n <tr>\n <td align='center' height='25'></td>\n </tr>\n <tr>\n <td align='center'>\n <table align='center' class='table-inner' width='500' border='0' cellspacing='0' cellpadding='0'>\n <!--Header Logo-->\n <tr>\n <td align='left' style='line-height: 0px;'><img style='display:block; line-height:0px; font-size:0px; border:0px;' src='http://www.nosrezo.com/fichiers/images_email/logo.png' alt='logo' width='150' height='50' /></td>\n </tr>\n <!--end Header Logo-->\n <tr>\n <td height='5'></td>\n </tr>\n <!--slogan-->\n <tr>\n <td align='left' style=\\\"font-family: 'Open Sans', Arial, sans-serif; color:#898989; font-size:11px;line-height: 28px; font-style:; font-weight:200;\\\">\n\t\t\t Vous êtes inscrit à la communauté NosRezo</td>\n </tr>\n <!--end slogan-->\n <tr>\n <td height='20'></td>\n </tr>\n </table>\n <table bgcolor='#14c1e0' background='http://www.nosrezo.com/fichiers/images_email/container-bg.png' style='border-top-left-radius:6px;border-top-right-radius:6px; background-size:100% auto; background-repeat:repeat-x;' width='500' border='0' align='center' cellpadding='0' cellspacing='0' class='table-inner'>\n <tr>\n <td height='50'></td>\n </tr>\n <tr>\n <td align='center'>\n <table class='table-inner' align='center' width='400' border='0' cellspacing='0' cellpadding='0'>\n <!--title-->\n <tr>\n <td align='center' style=\\\"font-family: 'Century Gothic', Arial, sans-serif; color:#ffffff; font-size:24px;font-weight: bold; letter-spacing: 1px;\\\">\n\t\t\t\t Félicitations $first_name_p,</td>\n </tr>\n <!--end title-->\n <tr>\n <td height='30'></td>\n </tr>\n <!--content-->\n <tr>\n <td align='center' style=\\\"font-family: 'Open sans', Arial, sans-serif; color:#ffffff; font-size:13px; line-height: 24px; font-weight: 200;\\\"> \n Votre compte Gratuit est <b>validé.</b><br/>\n <br/>\n\t\t\t\t\t\t\t Votre filleul <b>$first_name</b> vient de nous rejoindre. <br/>\n\t\t\t\t\t\t\t <br/>\n\t\t\t\t\t\t\t Bienvenue dans notre communauté d’entraide et de partage. Vous avez désormais l’opportunité de vous constituer un complément de revenus <b>récurrent</b> et <b>croissant</b>. <br/>\n\t\t\t\t\t\t\t <br/>\n\t\t\t\t\t \n\t\t\t\t\t </td>\n </tr>\n <tr>\n <td height='20'></td>\n\n </table>\n </td>\n </tr>\n </table>\n\t\t\n\t\t\n\t\t\n\t\t\n <table bgcolor='#FFFFFF' style='border-bottom-left-radius:6px;border-bottom-right-radius:6px;' align='center' class='table-inner' width='500' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <td height='35'></td>\n </tr>\n <tr>\n <td align='center'>\n <table align='center' class='table-inner' width='420' border='0' cellspacing='0' cellpadding='0'>\n <!--content-->\n <tr>\n\n \t\t\t\t <td align='center' style=\\\"font-family: 'Open sans', Arial, sans-serif; color:#7f8c8d; font-size:12px; line-height: 20px; font-weight:200;\\\">\n\n\t\t\t\t </td>\n\n </tr>\n <!--end content-->\n <tr>\n <td height='25'></td>\n </tr>\n <!--button-->\n <tr>\n <td align='center'>\n <!--left-->\n <table width='420' border='0' align='left' cellpadding='0' cellspacing='0' class='table-full'>\n <tr>\n <td align='center'>\n <table class='table-full' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='#14c1e0' style='border-radius:4px;'>\n <tr>\n <td class='textbutton' height='40' align='center' style=\\\"font-family: 'Open sans', Arial, sans-serif; color:#FFFFFF; font-size:14px;padding-left: 20px;padding-right: 20px; font-weight:200;\\\"><a href='http://www.nosrezo.com/login.php?id_affiliate=$id_affiliate&token=$mdp' >Se connecter</a></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td> \n </tr>\n\n <tr>\n <td height='40'></td>\n </tr>\n \n <table class='buttonbox' border='0' align='center' cellpadding='0' cellspacing='0'>\n <tr>\n <td>\n <!--left-->\n <table width='150' align='left' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <!--image-->\n <td align='center' style='line-height: 0px;'><a href='https://itunes.apple.com/fr/app/nosrezo-france/id1054618680?mt=8' target='_blank'><img style='display:block; line-height:0px; font-size:0px; border:0px;' class='img1' src='http://www.nosrezo.com/fichiers/images_email/logo_apple.png' alt='img' width='150' height='auto' /></a></td> \n <!--end image-->\n </tr>\n </table>\n <!--end left-->\n <!--Space-->\n <table width='1' border='0' cellpadding='0' cellspacing='0' align='left'>\n <tr>\n <td height='30' style='font-size: 0;line-height: 0px;border-collapse: collapse;'>\n <p style='padding-left: 20px;'> </p>\n </td>\n </tr>\n </table>\n <!--End Space-->\n <!--right-->\n <table width='150' align='right' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <!--image-->\n <td align='center' style='line-height: 0px;'><a href='https://play.google.com/store/apps/details?id=com.nosrezo.appnosrezo2&hl=fr' target='_blank'><img style='display:block; line-height:0px; font-size:0px; border:0px;' class='img1' src='http://www.nosrezo.com/fichiers/images_email/logo_android.png' alt='img' width='150' height='auto' /></a></td> \n <!--end image-->\n </tr>\n </table>\n <!--end right-->\n </td>\n </tr>\n <tr>\n <td height='40'></td>\n </tr>\n </table>\n \n <!--end button-->\n </table>\n </td>\n </tr>\n <tr>\n <td height='45'></td>\n </tr>\n </table>\n <table align='center' class='table-inner' width='500' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <td height='10'></td>\n </tr>\n <tr>\n <td align='left' class='preference' style=\\\"font-family: 'Open sans', Arial, sans-serif; color:#95a5a6; font-size:10px; line-height:14px; font-weight:100;\\\"> Ce message a été envoyé à <a href='mailto:$mail'>$mail</a>. Si vous ne souhaitez plus recevoir nos e-mails, vous pouvez modifier vos préférences dans votre profil.\t\n </td>\n </tr>\n <tr>\n <td height='10'></td>\n </tr>\n <tr>\n \n <td align='left'>\n <!--social-->\n <table width='60' border='0' align='left' cellpadding='0' cellspacing='0'>\n <tr>\n <td align='left' style='line-height: 0px;'>\n <a href='https://www.facebook.com/Nosrezo-331807033627841/'> <img style='display:block; line-height:0px; font-size:0px; border:0px;' src='http://www.nosrezo.com/fichiers/images_email/facebook.png' alt='img' /> </a>\n </td>\n <td width='5'></td>\n <td align='left' style='line-height: 0px;'>\n <a href='https://twitter.com/NosRezeaux'> <img style='display:block; line-height:0px; font-size:0px; border:0px;' src='http://www.nosrezo.com/fichiers/images_email/twitter.png' alt='img' /> </a>\n </td>\n <td width='5'></td>\n <td align='left' style='line-height: 0px;'>\n <a href='https://www.linkedin.com/company/10423174?trk=tyah&trkInfo=clickedVertical%3Acompany%2CclickedEntityId%3A10423174%2Cidx%3A1-1-1%2CtarId%3A1454885076375%2Ctas%3Anosrezo'> <img style='display:block; line-height:0px; font-size:0px; border:0px;' src='http://www.nosrezo.com/fichiers/images_email/linkedin.png' alt='img' /> </a>\n </td>\n </tr>\n </table>\n <!--end social-->\n </td>\n \n </tr>\n <tr>\n <td height='30'></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n</body>\n\n</html> \";\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n \n//========== Création de la boundary\n$boundary = \"-----=\".md5(rand());\n//==========\n \n//========== Définition du sujet.\n$sujet = $titre ;\n//========= \n \n//========== Création du header de l'e-mail.\n$header = \"From: \\\"NosRezo.com\\\"<[email protected]>\".$passage_ligne;\n$header.= \"Cc:\".$mail_cc.\"\".$passage_ligne;\n$header.= \"Reply-to: \".$mail_cc.$passage_ligne;\n$header.= \"MIME-Version: 1.0\".$passage_ligne;\n$header.= \"Content-Type: multipart/alternative;\".$passage_ligne.\" boundary=\\\"$boundary\\\"\".$passage_ligne;\n//==========\n \n//========== Création du message.\n$message = $passage_ligne.\"--\".$boundary.$passage_ligne;\n//=====Ajout du message au format texte.\n$message.= \"Content-Type: text/plain; charset=\\\"utf-8\\\"\".$passage_ligne;\n$message.= \"Content-Transfer-Encoding: 8bit\".$passage_ligne;\n$message.= $passage_ligne.$message_txt.$passage_ligne;\n//==========\n$message.= $passage_ligne.\"--\".$boundary.$passage_ligne;\n//=====Ajout du message au format HTML\n$message.= \"Content-Type: text/html; charset=\\\"utf-8\\\"\".$passage_ligne;\n$message.= \"Content-Transfer-Encoding: 8bit\".$passage_ligne;\n$message.= $passage_ligne.$message_html.$passage_ligne;\n//==========\n$message.= $passage_ligne.\"--\".$boundary.\"--\".$passage_ligne;\n$message.= $passage_ligne.\"--\".$boundary.\"--\".$passage_ligne;\n\n//==========\n \n//========== Envoi de l'e-mail.\n if ($serveur == 'PRODUCTION')\n {\n if(mail($mail, $sujet, $message, $header))\n {echo '';}\n\t }\n//////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}",
"function db_trans_pagamento_resto($codele, $reduz, $anousu, $numemp, $iCodDoc = 35) {\n\n global $c46_codhist, $c47_credito, $c47_debito, $c47_ref, $c46_seqtranslan, $c47_seqtranslr, $c61_reduz, $c47_tiporesto, $c46_ordem, $c70_data;\n $this->cl_zera_variaveis();\n $this->coddoc = $iCodDoc;\n\n $this->result = $this->getRegrasTransacao($this->coddoc, $anousu, db_getsession('DB_anousu'));\n\n //----------------------------------------------------------------------\n $sql = \"select e91_codtipo from empresto where e91_numemp=$numemp and e91_anousu = \" . db_getsession(\"DB_anousu\");\n $result = @db_query($sql);\n $numrows = @pg_numrows($result);\n if ($numrows > 0) {\n $e91_codtipo = @pg_result($result, 0, 0);\n } else {\n $this->sqlerro = true;\n $this->erro_msg = \"Resto a pagar não encontrado na tabela empresto... Contate suporte.\";\n }\n //----------------------------------------------------------------------\n\n $iAnoLancamento = db_getsession('DB_anousu');\n if (!empty($c70_data)) {\n $oDataLancamento = new DBDate($c70_data);\n $iAnoLancamento = $oDataLancamento->getAno();\n }\n\n $cont = 0;\n\n require_once(modification(\"classes/empenho.php\"));\n //declara array para verificação\n $arr_lans = array();\n for ($i = 0; $i < $this->numrows; $i++) {\n\n db_fieldsmemory($this->result, $i);\n if ( !USE_PCASP || $this->coddoc == 35) {\n\n if ($c47_tiporesto != '' && $c47_tiporesto != 0 && $e91_codtipo != $c47_tiporesto) {\n continue;\n }\n }\n\n /**\n * Quando for o lançamento de ordem 1, buscamos a conta creditada na liquidação de RP\n */\n if ($c46_ordem == 1 && USE_PCASP && $this->coddoc != 35) {\n\n if ($this->coddoc == 37 && empenho::possuiLancamentoDeControle($numemp, $iAnoLancamento, array(210, 200, 208, 212, 214))) {\n $c47_debito = self::getContaLiquidacao($numemp, array(210, 200, 208, 212, 214), $iAnoLancamento);\n } else if ($this->coddoc == 37 && empenho::possuiLancamentoDeControle($numemp, $iAnoLancamento, array(33))) {\n $c47_debito = self::getContaLiquidacao($numemp, array(33), $iAnoLancamento);\n } else if ($this->coddoc == 37 && empenho::possuiLancamentoDeControle($numemp, $iAnoLancamento-1, array(210, 200, 208, 212, 214))) {\n $c47_debito = self::getContaLiquidacao($numemp, array(210, 200, 208, 212, 214), $iAnoLancamento-1);\n } else {\n\n $sSqlContaCredito = \" select c69_credito\n from conlancamemp\n inner join conlancamdoc on conlancamemp.c75_codlan = conlancamdoc.c71_codlan\n inner join conlancamval on conlancamdoc.c71_codlan = conlancamval.c69_codlan\n inner join conlancam on conlancamval.c69_codlan = conlancam.c70_codlan\n where c75_numemp = {$numemp}\n and c71_coddoc = 33\n and c70_anousu = \".db_getsession(\"DB_anousu\").\"\n order by c69_sequen\n limit 1\";\n $rsBuscaContaCredito = db_query($sSqlContaCredito);\n if (pg_num_rows($rsBuscaContaCredito) == 0) {\n\n $this->sqlerro = true;\n $this->erro_msg = \"Conta creditada na liquidação de RP não encontrada. Contate o suporte.\";\n }\n $iContaCredito = db_utils::fieldsMemory($rsBuscaContaCredito, 0)->c69_credito;\n $c47_debito = $iContaCredito;\n\n }\n\n }\n\n //------------------------------------------------------------------------\n //verificação para naum incluir duas vezes o mesmo seqtranslan\n if (array_key_exists($c46_seqtranslan, $arr_lans)) {\n continue;\n } else {\n $arr_lans[$c46_seqtranslan] = $c46_seqtranslan;\n }\n //------------------------------------------------------------------------\n\n if ($c47_credito == 0 || $c47_credito == '') {\n $c47_credito = $reduz;\n $this->conta_emp = $c47_debito;\n }\n\n $this->arr_seqtranslr[$cont] = $c47_seqtranslr;\n $this->arr_credito[$cont] = $c47_credito;\n $this->arr_debito[$cont] = $c47_debito;\n $this->arr_histori[$cont] = $c46_codhist;\n $cont++;\n }\n\n }",
"function p_guardar_registro($var_request,$var_files){\n\t\t\tglobal $db;\n\n\t\t\t$columna_tabla_autonoma = new columna_tabla_autonoma();\n\n\t\t\t$txt_razon_social \t\t\t= $var_request['txt_razon_social'];\n\t\t\t$txt_nombre_comercial\t\t= $var_request['txt_nombre_comercial'];\n\t\t\t$cod_ciiu\t\t\t\t\t= $var_request['cod_ciiu'] ?: \"NULL\";\n\t\t\t$cod_tipo_identificacion\t= $var_request['cod_tipo_identificacion'] ?: \"NULL\";\n\t\t\t$num_identificacion\t\t\t= $var_request['num_identificacion'] ?: \"NULL\";\n\t\t\t$cod_ciudad\t\t\t\t\t= $var_request['cod_ciudad'] ?: \"NULL\";\n\t\t\t$txt_direccion\t\t\t\t= $var_request['txt_direccion'] ?: \"NULL\";\n\t\t\t$txt_telefono\t\t\t\t= $var_request['txt_telefono'] ?: \"NULL\";\n\t\t\t$ind_genera_iva\t\t\t\t= $var_request['ind_genera_iva'] == NULL ? 'NULL' : $var_request['ind_genera_iva'];\n\t\t\t$val_porcentaje_iva\t\t\t= $var_request['val_porcentaje_iva'] == NULL ? 'NULL' : $var_request['val_porcentaje_iva'];\n\t\t\t$fec_fundacion\t\t\t\t= $var_request['fec_fundacion'];\n\t\t\t$fec_modificacion\t\t\t= date('Y/m/d');\n\t\t\t$txt_url_logo\t\t\t\t= NULL;\n\t\t\t\n\t\t\t/*$query = \"truncate seg_empresa\";\n\t\t\t$db->consultar($query);*/\n\n\t\t\t// primero debe validar si existe inforamcion de la empresa y codigo ya creado\n\t\t\t$this->cod_empresa = $this->f_get_cod_empresa();\n\t\t\t\n\t\t\t// informacion de la columna tabla autonoma de la tabla empresa para el campo logo\n\t\t\t$query = \"select * from columna_tabla_autonoma where cod_columna_tabla = 349\";\n\t\t\t$row_info_columna = $db->consultar_registro($query);\n\n\n\n\t\t\t// si no esta registrada la empresa\n\n\t\t\tif(!$this->cod_empresa){\n\n\t\t\t\n\t\t\t\t$fec_registro = date('Y/m/d H:i:s');\n\t\t\t\t\n\n\t\t\t\t$query = \"insert into seg_empresa \t(\n\t\t\t\t\t\t\t\t\t\t\t\t\ttxt_razon_social\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\ttxt_nombre_comercial\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\tcod_ciiu\t\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\tcod_tipo_identificacion\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\tnum_identificacion\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\tcod_ciudad\t\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\ttxt_direccion\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\ttxt_telefono\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\tind_iva\t\t\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\tval_porcentaje_iva\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\tfec_fundacion\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\tfec_registro\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\tfec_modificacion\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\tcod_usuario\t\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\tind_bloqueado\n\n\t\t\t\t\t\t\t\t\t\t\t\t)values(\n\t\t\t\t\t\t\t\t\t\t\t\t\t'\".$txt_razon_social.\"'\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'\".$txt_nombre_comercial.\"'\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\".$cod_ciiu.\"\t\t\t\t\t,\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\".$cod_tipo_identificacion.\"\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\".$num_identificacion.\"\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\".$cod_ciudad.\"\t\t\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'\".$txt_direccion.\"'\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'\".$txt_telefono.\"'\t\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\".$ind_genera_iva.\"\t\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\".$val_porcentaje_iva.\"\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'\".$fec_fundacion.\"'\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'\".$fec_registro.\"'\t\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'\".$fec_modificacion.\"'\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\".$this->cod_usuario.\"\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t0\n\t\t\t\t\t\t\t\t\t\t\t\t)\";\n\t\t\t\t\n\t\t\t\tif(!$db->consultar($query))return $this->arr_msj[2];\n\t\t\t\t$this->cod_empresa = $GLOBALS['fn_ultimo_registro'];\n\n\t\t\t}else{ // si ya existe un registro de empresa\n\n\t\t\t\t$query = \"update seg_empresa set \n\t\t\t\t\t\t\t\t\t\t\t\ttxt_razon_social \t\t= \t'\".$txt_razon_social.\"'\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\ttxt_nombre_comercial \t= \t'\".$txt_nombre_comercial.\"'\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\tcod_ciiu\t\t\t\t=\t\".$cod_ciiu.\"\t\t\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\tcod_tipo_identificacion\t=\t\".$cod_tipo_identificacion.\"\t,\n\t\t\t\t\t\t\t\t\t\t\t\tnum_identificacion\t\t=\t\".$num_identificacion.\"\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\tcod_ciudad\t\t\t\t=\t\".$cod_ciudad.\"\t\t\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\ttxt_direccion\t\t\t=\t'\".$txt_direccion.\"'\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\ttxt_telefono\t\t\t=\t'\".$txt_telefono.\"'\t\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\tind_iva\t\t\t\t\t=\t\".$ind_genera_iva.\"\t\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\tval_porcentaje_iva\t\t= \t\".$val_porcentaje_iva.\"\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\tfec_fundacion\t\t\t=\t'\".$fec_fundacion.\"'\t\t\t,\n\t\t\t\t\t\t\t\t\t\t\t\tfec_modificacion\t\t=\t'\".$fec_modificacion.\"'\t\t\t\n\t\t\t\t\t\t\twhere cod_empresa = \".$this->cod_empresa;\n\t\t\t\t\n\t\t\t\tif(!$db->consultar($query))return $this->arr_msj[2]; \n\n\t\t\t} // fin else\n\n\t\t\t\n\n\n\t\t\tif(count($var_files)>0){\n\t\t\t\t// === funcion para guardar el archivo seleccionado como logo == //\n\t\t\t\t$txt_url_logo = $columna_tabla_autonoma->p_guardar_archivo($var_files,$cod_empresa,$row_info_columna);\n\n\t\t\t\t//== debe actualizar la url del logo ==//\n\t\t\t\t$query = \"update seg_empresa set txt_url_logo = '\".$txt_url_logo.\"' where cod_empresa = \".$this->cod_empresa;\n\t\t\t\tif(!$db->consultar($query))return $this->arr_msj[2]; \n\t\t\t}\n\n\n\t\t\treturn $this->arr_msj[0]; // == proceso exitoso\n\n\t\t}",
"public function buscaEmailProjeto2($aDados) {\n $sSql = \"select resp_proj_cod,resp_venda_cod \n from tbqualNovoProjeto \n where filcgc ='\" . $aDados['EmpRex_filcgc'] . \"' and nr = '\" . $aDados['nr'] . \"' \";\n $result = $this->getObjetoSql($sSql);\n $oRow = $result->fetch(PDO::FETCH_OBJ);\n $codProj = $oRow->resp_proj_cod;\n $codVenda = $oRow->resp_venda_cod;\n\n //busca email venda\n $sSql = \"select usuemail from tbusuario where usucodigo ='\" . $codProj . \"' \";\n $result = $this->getObjetoSql($sSql);\n $oRow = $result->fetch(PDO::FETCH_OBJ);\n $aEmail['projeto'] = $oRow->usuemail;\n\n return $aEmail;\n }",
"public function inserir($empresa){\r\n\t\tinclude(\"../config/conexao.php\");\r\n\t\t$sql = 'INSERT INTO empresa (cod, cnpj, nome, email, slogan, num, rua, bairro, cidade, estado, pais, cep, tel_celular, tel_fixo, twitter, instagram, facebook, foto) VALUES (:cod, :cnpj, :nome, :email, :slogan, :num, :rua, :bairro, :cidade, :estado, :pais, :cep, :tel_celular, :tel_fixo, :twitter, :instagram, :facebook, :foto)';\r\n\t\t$consulta = $pdo->prepare($sql);\r\n\t\t$consulta->bindValue(':cod',$empresa->getCod()); \r\n\t\t$consulta->bindValue(':cnpj',$empresa->getCnpj()); \r\n\t\t$consulta->bindValue(':nome',$empresa->getNome()); \r\n\t\t$consulta->bindValue(':email',$empresa->getEmail()); \r\n\t\t$consulta->bindValue(':slogan',$empresa->getSlogan()); \r\n\t\t$consulta->bindValue(':num',$empresa->getNum()); \r\n\t\t$consulta->bindValue(':rua',$empresa->getRua()); \r\n\t\t$consulta->bindValue(':bairro',$empresa->getBairro()); \r\n\t\t$consulta->bindValue(':cidade',$empresa->getCidade()); \r\n\t\t$consulta->bindValue(':estado',$empresa->getEstado()); \r\n\t\t$consulta->bindValue(':pais',$empresa->getPais()); \r\n\t\t$consulta->bindValue(':cep',$empresa->getCep()); \r\n\t\t$consulta->bindValue(':tel_celular',$empresa->getTel_celular()); \r\n\t\t$consulta->bindValue(':tel_fixo',$empresa->getTel_fixo()); \r\n\t\t$consulta->bindValue(':twitter',$empresa->getTwitter()); \r\n\t\t$consulta->bindValue(':instagram',$empresa->getInstagram()); \r\n\t\t$consulta->bindValue(':facebook',$empresa->getFacebook()); \r\n\t\t$consulta->bindValue(':foto',$empresa->getFoto()); \r\n\t\tif($consulta->execute())\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}",
"function get_email_admin()\n{\n $results = array();\n\n $retrieve_all = get_row_data('login_model', 'retrieve_all', array(10, 1, 1, false));\n foreach ($retrieve_all as $login) {\n # cari pengajar\n $pengajar = get_row_data('pengajar_model', 'retrieve', array($login['pengajar_id']));\n if ($pengajar['status_id'] != 1) {\n continue;\n }\n\n $results[] = array(\n 'nama' => $pengajar['nama'],\n 'email' => $login['username']\n );\n }\n\n return $results;\n}",
"function correo()\n {\n $this->host = MAIL_HOST;\n $this->username = MAIL_USERNAME;\n $this->password = MAIL_PASSWORD;\n $this->remitente = MAIL_REMITENTE;\n $this->firma = MAIL_FIRMA;\n }"
] | [
"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.57676667",
"0.5748651",
"0.57482994",
"0.5747692",
"0.57460064",
"0.57365376",
"0.572662",
"0.5720959",
"0.57162464",
"0.571054"
] | 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}",
"protected function name()\n {\n return 'LatestDocsWidget';\n }",
"public function get_title() {\n\t\treturn __( 'portfolio-contact-widget', 'portfolio-elementor' );\n\t}",
"public function get_name() {\n\t\treturn 'portfolio-contact-widget';\n\t}",
"protected function getWidgetName()\n {\n if (empty($this->widgetName)) {\n $names = explode('\\\\', get_class($this));\n $class = array_pop($names);\n $this->widgetName = substr($class, 0, -4);\n }\n\n return $this->widgetName;\n }",
"public function get_name() {\n return 'testimonial_widget';\n }",
"public function get_title() {\n\t\treturn esc_html__( 'Title Widget', 'colormag' );\n\t}",
"function getDisplayName() {\n\t\treturn __('plugins.generic.markup.displayName');\n\t}",
"public function getWidgetClassName();",
"function getDisplayName() {\n return __('plugins.themes.jair-theme.name');\n }",
"function getDisplayName() {\n\t\treturn __('plugins.generic.htmlArticleGalley.displayName');\n\t}",
"function getDisplayName() {\n\t\treturn __('plugins.theme.custom.name');\n\t}",
"public function getWidgetName()\n\t{\n\t\treturn __('Email Collection', 'wp-email-collection');\n\t}",
"public function get_name() {\n\t\treturn 'ColorMag-Global-Widgets-Title';\n\t}",
"public function getWidgetName()\n {\n return lcfirst(str_replace('Ulrika_View_Helper_Vk_Vk', '', get_class($this)));\n }",
"public function get_name()\n\t{\n\t\treturn 'jhdc-branding-withlove';\n\t}",
"public function get_name() {\r\n\t\treturn 'appside-feature-five-box-widget';\r\n\t}",
"public function getWidgetDefinitionName()\n {\n return $this->widgetDefinitionName;\n }",
"public function getName()\n {\n\n return 'widget';\n\n }",
"public function getWidgetDescription();",
"public static function social_plugin_name() {\r\n return __( 'Members', 'inf_mem' );\r\n }",
"public function get_name() {\n return get_string('pluginname', constants::M_COMPONENT);\n }",
"public function getName()\n {\n return \\Lang::trans($this->type . '.' . $this->slug . '::addon.name');\n }",
"public function getName() {\n\t\treturn $this->mTitle->getText();\n\t}",
"function StockTwitsWidget ($args)\n{\n global $g_StockTwits_Plugin;\n\n $widget_title = $g_StockTwits_Plugin->GetOptions();\n $widget_title = $widget_title['widget_title'];\n\n extract($args);\n echo $before_widget;\n echo $before_title;\n echo $widget_title;\n echo $after_title;\n echo $g_StockTwits_Plugin->GetWidgetHTML ();\n echo $after_widget;\n}",
"public function getTitle() {\n\t\tif ($custom_title = $this->widget_manager_custom_title) {\n\t\t\treturn $custom_title;\n\t\t}\n\t\t\n\t\treturn parent::getTitle();\n\t}",
"function getTitle(){\n global $pageName;\n return isset($pageName) ? $pageName : 'No Name';\n }"
] | [
"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.5517067",
"0.55087113",
"0.5469365",
"0.54637647",
"0.54588085",
"0.54418033",
"0.54034007",
"0.5393627",
"0.5377785"
] | 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 __( 'portfolio-contact-widget', 'portfolio-elementor' );\n\t}",
"public function getMetaTitle();",
"public function getMetaTitle();",
"public function get_title() {\n\t\treturn __( 'Timeline', 'phoenixdigi' );\n\t}",
"public static function getPageTitle()\n\t{\n\t\tself::metadata();\n\t\treturn(static::$metadata->title);\n\t}",
"public function getTitle() {\n\t\tif ($custom_title = $this->widget_manager_custom_title) {\n\t\t\treturn $custom_title;\n\t\t}\n\t\t\n\t\treturn parent::getTitle();\n\t}",
"public static function getPageTitle() {\r\n\t\treturn Conf::exists('seo:page_title') ? Conf::get('seo:page_title') : '';\r\n\t}",
"public function getTitle();",
"public function getTitle();",
"public function getTitle();",
"public function getTitle();",
"public function getTitle();",
"public function getTitle();",
"public function getTitle();",
"public function getTitle();",
"public function getTitle();",
"public function getTitle();",
"public function getTitle();",
"public function getTitle();",
"public function getTitle();",
"public function getTitle();",
"public function getTitle();",
"public function getTitle();",
"public function getTitle();",
"public function getTitle();",
"public function getTitle();",
"public function getTitle();"
] | [
"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.64246094",
"0.64246094",
"0.64246094",
"0.64246094",
"0.64246094",
"0.64246094",
"0.64246094",
"0.64246094",
"0.64246094",
"0.64246094"
] | 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 'gallery', [\n 'label' => __( 'Brand Logo Images', 'reveal' ),\n 'type' => Controls_Manager::GALLERY,\n 'label_block' => true,\n 'default' => []\n ]\n );\n\n\n $this->end_controls_section(); //end of field creation\n\n //Section for style sheet\n $this->start_controls_section( //input field label\n 'content_style', //unique id\n [\n 'label' => __( 'Style', 'reveal' ),\n 'tab' => Controls_Manager::TAB_STYLE,\n ]\n );\n $this->end_controls_section();\n\n\n\n }",
"protected function _register_controls() {\n $this->start_controls_section(\n 'section_content',\n [\n 'label' => __( 'Content', 'elementor-widgets' ),\n ]\n );\n \n \n $this->end_controls_section();\n }",
"protected function _register_controls() {\n\t\t$this->start_controls_section(\n\t\t\t'style_section',\n\t\t\t[\n\t\t\t\t'label' => __( 'Style', 'plugin-name' ),\n\t\t\t\t'tab' => \\Elementor\\Controls_Manager::TAB_CONTENT,\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'category',\n\t\t\t[\n\t\t\t\t'label' => __( 'Category', 'plugin-domain' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::TEXT,\n\t\t\t\t'default' => __( 'Default', 'plugin-domain' ),\n\t\t\t\t'placeholder' => __( 'Type your category here', 'plugin-domain' ),\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_section();\n\t}",
"protected function _register_controls() {\n\n\t\t$this->start_controls_section(\n\t\t\t'content_section',\n\t\t\t[\n\t\t\t\t'label' => __( 'Content', 'portfolio-elementor' ),\n\t\t\t\t'tab' => \\Elementor\\Controls_Manager::TAB_CONTENT,\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Title\n\t\t$this->add_control(\n\t\t 'portfolio_hero_title',\n\t\t\t[\n\t\t\t 'label' => esc_html__('Hero Title','portfolio-elementor'),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::TEXT,\n\t\t\t\t'label_block' => true,\n\t\t\t\t'separator' => 'before',\n\t\t\t\t'placeholder' => esc_html__('Enter Hero Title','portfolio-elementor'),\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Sub Title Two\n\t\t$this->add_control(\n\t\t 'portfolio_hero_sub_title_one',\n\t\t\t[\n\t\t\t 'label' => esc_html__('Hero Sub Title Two','portfolio-elementor'),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::TEXT,\n\t\t\t\t'label_block' => true,\n\t\t\t\t'separator' => 'before',\n\t\t\t\t'placeholder' => esc_html__('Enter Hero Sub Title Two','portfolio-elementor'),\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Sub Title Two\n\t\t$this->add_control(\n\t\t 'portfolio_hero_sub_title_two',\n\t\t\t[\n\t\t\t 'label' => esc_html__('Hero Sub Title Two','portfolio-elementor'),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::TEXT,\n\t\t\t\t'label_block' => true,\n\t\t\t\t'separator' => 'before',\n\t\t\t\t'placeholder' => esc_html__('Enter Hero Sub Title Two','portfolio-elementor'),\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Description\n\t\t$this->add_control(\n\t\t 'portfolio_hero_description',\n\t\t\t[\n\t\t\t 'label' => esc_html__('Hero Description','portfolio-elementor'),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::TEXT,\n\t\t\t\t'label_block' => true,\n\t\t\t\t'separator' => 'before',\n\t\t\t\t'placeholder' => esc_html__('Enter Hero Description','portfolio-elementor'),\n\t\t\t]\n\t\t);\n\t\t\n\t\t//Hero Button One Link\n\t\t$this->add_control(\n\t\t 'portfolio_hero_button_one_link',\n\t\t\t[\n\t\t\t 'label' => esc_html__('Hero Button One Link','portfolio-elementor'),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::URL,\n\t\t\t\t'label_block' => true,\n\t\t\t\t'default' => [\n\t\t\t\t 'url' => '#',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Button One Text\n $this->add_control(\n \t'portfolio_hero_button_one_text',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Hero Button One Text', 'portfolio-elementor'),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::TEXT,\n\t\t\t\t'label_block' => true,\n\t\t\t\t'default' => esc_html__('Enter Button One Text','portfolio-elementor'),\n\t\t\t]\n );\n\t\t\n\t\t//Hero Button Two Link\n\t\t$this->add_control(\n\t\t 'portfolio_hero_button_two_link',\n\t\t\t[\n\t\t\t 'label' => esc_html__('Hero Button Two Link','portfolio-elementor'),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::URL,\n\t\t\t\t'label_block' => true,\n\t\t\t\t'default' => [\n\t\t\t\t 'url' => '#',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Button Two Text\n $this->add_control(\n \t'portfolio_hero_button_two_text',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Hero Button Two Text', 'portfolio-elementor'),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::TEXT,\n\t\t\t\t'label_block' => true,\n\t\t\t\t'default' => esc_html__('Enter Button Two Text','portfolio-elementor'),\n\t\t\t]\n );\n\n\t\t$this->end_controls_section();\n\t\t// end of the Content tab section\n\t\t\n\t\t// start of the Style tab section\n\t\t$this->start_controls_section(\n\t\t\t'style_section',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Content Style', 'portfolio-elementor' ),\n\t\t\t\t'tab' => \\Elementor\\Controls_Manager::TAB_STYLE,\n\t\t\t]\n\t\t);\n\t\t\n\t\t$this->start_controls_tabs(\n\t\t\t'style_tabs'\n\t\t);\n\t\t\n\t\t// start everything related to Normal state here\n\t\t$this->start_controls_tab(\n\t\t\t'style_normal_tab',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Normal', 'portfolio-elementor' ),\n\t\t\t]\n\t\t);\n\n\t\t// Hero Title Options\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_title_options',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Hero Title', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::HEADING,\n\t\t\t\t'separator' => 'before',\n\t\t\t]\n\t\t);\n\n\t\t// Hero Title Color\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_title_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Title Color', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Scheme_Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Scheme_Color::COLOR_1,\n\t\t\t\t],\n\t\t\t\t'default' => '#001418',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .hero-title' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Title Typography\n\t\t$this->add_group_control(\n\t\t\t\\Elementor\\Group_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'portfolio_hero_title_typography',\n\t\t\t\t'label' => esc_html__( 'Typography', 'portfolio-elementor' ),\n\t\t\t\t'scheme' => \\Elementor\\Scheme_Typography::TYPOGRAPHY_1,\n\t\t\t\t'selector' => '{{WRAPPER}} .hero-title',\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Sub Title One Options\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_sub_title_one_options',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Hero Sub Title One', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::HEADING,\n\t\t\t\t'separator' => 'before',\n\t\t\t]\n\t\t);\n\n\t\t// Hero Sub Title One Color\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_sub_title_one_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Sub Title One Color', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Scheme_Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Scheme_Color::COLOR_1,\n\t\t\t\t],\n\t\t\t\t'default' => '#343a40',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .hero-content h4' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Sub Title One Typography\n\t\t$this->add_group_control(\n\t\t\t\\Elementor\\Group_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'portfolio_hero_sub_title_one_typography',\n\t\t\t\t'label' => esc_html__( 'Typography', 'portfolio-elementor' ),\n\t\t\t\t'scheme' => \\Elementor\\Scheme_Typography::TYPOGRAPHY_1,\n\t\t\t\t'selector' => '{{WRAPPER}} .hero-content h4',\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Sub Title Two Options\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_sub_title_one_options',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Hero Sub Title Two', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::HEADING,\n\t\t\t\t'separator' => 'before',\n\t\t\t]\n\t\t);\n\n\t\t// Hero Sub Title Two Color\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_sub_title_two_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Sub Title Two Color', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Scheme_Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Scheme_Color::COLOR_1,\n\t\t\t\t],\n\t\t\t\t'default' => '#5e9e9f',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .typed' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Sub Title Two Typography\n\t\t$this->add_group_control(\n\t\t\t\\Elementor\\Group_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'portfolio_hero_sub_title_two_typography',\n\t\t\t\t'label' => esc_html__( 'Typography', 'portfolio-elementor' ),\n\t\t\t\t'scheme' => \\Elementor\\Scheme_Typography::TYPOGRAPHY_1,\n\t\t\t\t'selector' => '{{WRAPPER}} .typed',\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Description Options\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_description_options',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Hero Description', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::HEADING,\n\t\t\t\t'separator' => 'before',\n\t\t\t]\n\t\t);\n\n\t\t// Hero Description Color\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_description_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Description Color', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Scheme_Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Scheme_Color::COLOR_1,\n\t\t\t\t],\n\t\t\t\t'default' => '#343a40',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .hero-content p' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Description Typography\n\t\t$this->add_group_control(\n\t\t\t\\Elementor\\Group_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'portfolio_hero_description_typography',\n\t\t\t\t'label' => esc_html__( 'Typography', 'portfolio-elementor' ),\n\t\t\t\t'scheme' => \\Elementor\\Scheme_Typography::TYPOGRAPHY_1,\n\t\t\t\t'selector' => '{{WRAPPER}} .hero-content p',\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Button One Options\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_btn_one_options',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Hero Button One', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::HEADING,\n\t\t\t\t'separator' => 'before',\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Button One Color\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_btn_one_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Color', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Scheme_Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Scheme_Color::COLOR_1,\n\t\t\t\t],\n\t\t\t\t'default' => '#ffffff',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .btn span' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Button One Background Color\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_btn_one_background_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Background-Color', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Scheme_Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Scheme_Color::COLOR_1,\n\t\t\t\t],\n\t\t\t\t'default' => '#5e9e9f',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .btn' => 'background-color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Button One Border\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_btn_one_border',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Border', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Scheme_Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Scheme_Color::COLOR_1,\n\t\t\t\t],\n\t\t\t\t'default' => '#5e9e9f',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .btn' => 'border: 1px solid {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Button Two Options\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_btn_two_options',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Hero Button Two', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::HEADING,\n\t\t\t\t'separator' => 'before',\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Button Two Color\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_btn_two_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Color', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Scheme_Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Scheme_Color::COLOR_1,\n\t\t\t\t],\n\t\t\t\t'default' => '#000000',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .site-btn' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Button Two Background Color\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_btn_two_background_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Background-Color', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Scheme_Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Scheme_Color::COLOR_1,\n\t\t\t\t],\n\t\t\t\t'default' => '#ffffff',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .site-btn' => 'background-color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Button Two Border\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_btn_two_border',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Border', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Scheme_Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Scheme_Color::COLOR_1,\n\t\t\t\t],\n\t\t\t\t'default' => '#5e9e9f',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .site-btn' => 'border: 1px solid {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Button Options\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_btn_options',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Hero Button', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::HEADING,\n\t\t\t\t'separator' => 'before',\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Button Typography\n\t\t$this->add_group_control(\n\t\t\t\\Elementor\\Group_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'portfolio_hero_btn_typography',\n\t\t\t\t'label' => esc_html__( 'Typography', 'portfolio-elementor' ),\n\t\t\t\t'scheme' => \\Elementor\\Scheme_Typography::TYPOGRAPHY_1,\n\t\t\t\t'selector' => '{{WRAPPER}} .hero-content a',\n\t\t\t]\n\t\t);\n\t\t\n\t\t$this->end_controls_tab();\n\t\t// end everything related to Normal state here\n\n\t\t// start everything related to Hover state here\n\t\t$this->start_controls_tab(\n\t\t\t'style_hover_tab',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Hover', 'portfolio-elementor' ),\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Button One Hover Options\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_btn_one_hover_options',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Hero Button', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::HEADING,\n\t\t\t\t'separator' => 'before',\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Button One Hover Color\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_btn_one_hover_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Color', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Scheme_Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Scheme_Color::COLOR_1,\n\t\t\t\t],\n\t\t\t\t'default' => '#000000',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .btn:hover span' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Button Two Hover Options\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_btn_two_hover_options',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Hero Button', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::HEADING,\n\t\t\t\t'separator' => 'before',\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Button Two Hover Color\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_btn_two_hover_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Color', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Scheme_Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Scheme_Color::COLOR_1,\n\t\t\t\t],\n\t\t\t\t'default' => '#ffffff',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .site-btn:hover' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t// Hero Button Two Hover Background Color\n\t\t$this->add_control(\n\t\t\t'portfolio_hero_btn_two_hover_background_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Background-Color', 'portfolio-elementor' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Scheme_Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Scheme_Color::COLOR_1,\n\t\t\t\t],\n\t\t\t\t'default' => '#5e9e9f',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .site-btn:hover' => 'background-color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t$this->end_controls_tab();\n\t\t// end everything related to Hover state here\n\n\t\t$this->end_controls_tabs();\n\n\t\t$this->end_controls_section();\n\t\t// end of the Style tab section\n\n\t}",
"protected function _register_controls() {\n\t\t$this->start_controls_section(\n\t\t\t'section_blog',\n\t\t\t[\n\t\t\t\t'label' => __( 'Blog', 'elementor' ),\n\t\t\t]\n\t\t);\n\n\t\tif ( \\Sydney_Toolbox::is_pro() ) {\n\t\t\t$this->add_control(\n\t\t\t\t'style',\n\t\t\t\t[\n\t\t\t\t\t'label' => __( 'Style', 'elementor' ),\n\t\t\t\t\t'type' => Controls_Manager::SELECT,\n\t\t\t\t\t'options' => [\n\t\t\t\t\t\t'style1' => __( 'Style 1', 'elementor' ),\n\t\t\t\t\t\t'style2' => __( 'Style 2', 'elementor' ),\n\t\t\t\t\t],\n\t\t\t\t\t'default' => 'style2',\n\t\t\t\t]\n\t\t\t);\t\n\t\t}\n\n\t\t$this->add_control(\n\t\t\t'number',\n\t\t\t[\n\t\t\t\t'label' => __( 'Number of posts', 'elementor' ),\n\t\t\t\t'type' => Controls_Manager::NUMBER,\n\t\t\t\t'default' => 4,\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'category',\n\t\t\t[\n\t\t\t\t'label' \t=> __( 'Categories', 'elementor' ),\n\t\t\t\t'type' \t\t=> Controls_Manager::SELECT,\n 'options' \t=> $this->get_cats(),\n 'multiple' \t=> true,\t\t\t\t\n\t\t\t\t'default' \t=> 4,\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'see_all_text',\n\t\t\t[\n\t\t\t\t'label' => __( 'See all button text', 'elementor' ),\n\t\t\t\t'type' => Controls_Manager::TEXT,\n\t\t\t\t'default' => __( 'See all our news', 'elementor' ),\n\t\t\t]\n\t\t);\n\n\n\t\t$this->add_control(\n\t\t\t'view',\n\t\t\t[\n\t\t\t\t'label' => __( 'View', 'elementor' ),\n\t\t\t\t'type' => Controls_Manager::HIDDEN,\n\t\t\t\t'default' => 'traditional',\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_section();\n\n\n\t\t//Post titles styles\n\t\t$this->start_controls_section(\n\t\t\t'section_post_title_style',\n\t\t\t[\n\t\t\t\t'label' => __( 'Post title', 'elementor' ),\n\t\t\t\t'tab' \t=> Controls_Manager::TAB_STYLE,\n\t\t\t]\n\t\t);\n\t\t$this->add_control(\n\t\t\t'name_color',\n\t\t\t[\n\t\t\t\t'label' \t=> __( 'Color', 'elementor' ),\n\t\t\t\t'type' \t\t=> Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .latest-news-wrapper.carousel h4 a' => 'color: {{VALUE}};',\n\t\t\t\t\t'{{WRAPPER}} .latest-news-wrapper.carousel.style2 .blog-post:hover h4 a' => 'color: #fff;',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' \t\t=> 'post_title_typography',\n\t\t\t\t'selector' \t=> '{{WRAPPER}} .latest-news-wrapper.carousel h4',\n\t\t\t\t'scheme' \t=> Scheme_Typography::TYPOGRAPHY_3,\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_section();\n\t\t//End post titles styles\t\n\n\t\t//Post meta styles\n\t\t$this->start_controls_section(\n\t\t\t'section_post_meta_style',\n\t\t\t[\n\t\t\t\t'label' => __( 'Post meta', 'elementor' ),\n\t\t\t\t'tab' \t=> Controls_Manager::TAB_STYLE,\n\t\t\t]\n\t\t);\n\t\t$this->add_control(\n\t\t\t'post_meta_color',\n\t\t\t[\n\t\t\t\t'label' \t=> __( 'Meta text', 'elementor' ),\n\t\t\t\t'type' \t\t=> Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .latest-news-wrapper.carousel.style2 .meta-post' => 'color: {{VALUE}};',\n\t\t\t\t\t'{{WRAPPER}} .latest-news-wrapper.carousel.style2 .blog-post:hover .meta-post' => 'color: #fff;',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'post_meta_links_color',\n\t\t\t[\n\t\t\t\t'label' \t=> __( 'Meta links', 'elementor' ),\n\t\t\t\t'type' \t\t=> Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .latest-news-wrapper.carousel.style2 .meta-post a' => 'color: {{VALUE}};',\n\t\t\t\t\t'{{WRAPPER}} .latest-news-wrapper.carousel.style2 .blog-post:hover .meta-post a' => 'color: {{VALUE}};',\n\t\t\t\t\t'{{WRAPPER}} .latest-news-wrapper.carousel.style2 .meta-post a:hover' => 'color: #fff;',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' \t\t=> 'post_meta_typography',\n\t\t\t\t'selector' \t=> '{{WRAPPER}} .latest-news-wrapper.carousel .meta-post',\n\t\t\t\t'scheme' \t=> Scheme_Typography::TYPOGRAPHY_3,\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_section();\n\t\t//End post meta styles\t\n\n\t\t//Content styles\n\t\t$this->start_controls_section(\n\t\t\t'section_content_style',\n\t\t\t[\n\t\t\t\t'label' => __( 'Post content', 'elementor' ),\n\t\t\t\t'tab' \t=> Controls_Manager::TAB_STYLE,\n\t\t\t]\n\t\t);\n\t\t$this->add_control(\n\t\t\t'content_color',\n\t\t\t[\n\t\t\t\t'label' \t=> __( 'Color', 'elementor' ),\n\t\t\t\t'type' \t\t=> Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .latest-news-wrapper.carousel .blog-post .entry-summary' => 'color: {{VALUE}};',\n\t\t\t\t\t'{{WRAPPER}} .latest-news-wrapper.carousel.style2 .blog-post:hover .entry-summary' => 'color: #fff;',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' \t\t=> 'content_typography',\n\t\t\t\t'selector' \t=> '{{WRAPPER}} .latest-news-wrapper.carousel .blog-post .entry-summary',\n\t\t\t\t'scheme' \t=> Scheme_Typography::TYPOGRAPHY_3,\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_section();\n\t\t//End content styles\t\n\n\t\t//Content styles\n\t\t$this->start_controls_section(\n\t\t\t'section_carousel_style',\n\t\t\t[\n\t\t\t\t'label' => __( 'Carousel dots', 'elementor' ),\n\t\t\t\t'tab' \t=> Controls_Manager::TAB_STYLE,\n\t\t\t]\n\t\t);\n\t\t$this->add_control(\n\t\t\t'dots_color',\n\t\t\t[\n\t\t\t\t'label' \t=> __( 'Color', 'elementor' ),\n\t\t\t\t'type' \t\t=> Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .owl-theme .owl-controls .owl-page.active span,{{WRAPPER}} .owl-theme .owl-controls.clickable .owl-page:hover span' => 'background-color: {{VALUE}};',\n\t\t\t\t\t'{{WRAPPER}} .owl-theme .owl-controls .owl-page:hover span, .owl-theme .owl-controls .owl-page.active span' => 'border-color: {{VALUE}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_section();\n\t\t//End content styles\t\t\n\n\t\t//Button styles\n\t\t$this->start_controls_section(\n\t\t\t'section_button_style',\n\t\t\t[\n\t\t\t\t'label' => __( 'Button', 'elementor' ),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'typography',\n\t\t\t\t'scheme' => Scheme_Typography::TYPOGRAPHY_4,\n\t\t\t\t'selector' => '{{WRAPPER}} a.roll-button, {{WRAPPER}} .roll-button',\n\t\t\t]\n\t\t);\n\t\n\t\t$this->start_controls_tabs( 'tabs_button_style' );\n\n\t\t$this->start_controls_tab(\n\t\t\t'tab_button_normal',\n\t\t\t[\n\t\t\t\t'label' => __( 'Normal', 'elementor' ),\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'button_text_color',\n\t\t\t[\n\t\t\t\t'label' \t=> __( 'Text Color', 'elementor' ),\n\t\t\t\t'type' \t\t=> Controls_Manager::COLOR,\n\t\t\t\t'default' \t=> '#fff',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} a.roll-button, {{WRAPPER}} .roll-button' => 'color: {{VALUE}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'background_color',\n\t\t\t[\n\t\t\t\t'label' \t=> __( 'Background Color', 'elementor' ),\n\t\t\t\t'type' \t\t=> Controls_Manager::COLOR,\n\t\t\t\t'default' \t=> '#e64e4e',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} a.roll-button, {{WRAPPER}} .roll-button' => 'background-color: {{VALUE}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_tab();\n\n\t\t$this->start_controls_tab(\n\t\t\t'tab_button_hover',\n\t\t\t[\n\t\t\t\t'label' => __( 'Hover', 'elementor' ),\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'hover_color',\n\t\t\t[\n\t\t\t\t'label' \t=> __( 'Text Color', 'elementor' ),\n\t\t\t\t'type' \t\t=> Controls_Manager::COLOR,\n\t\t\t\t'default' \t=> '#47425d',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} a.roll-button:hover, {{WRAPPER}} .roll-button:hover' => 'color: {{VALUE}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'button_background_hover_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Background Color', 'elementor' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'default'\t=> 'transparent',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} a.roll-button:hover, {{WRAPPER}} .roll-button:hover' => 'background-color: {{VALUE}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'button_hover_border_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Border Color', 'elementor' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'condition' => [\n\t\t\t\t\t'border_border!' => '',\n\t\t\t\t],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} a.roll-button:hover, {{WRAPPER}} .roll-button:hover' => 'border-color: {{VALUE}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'hover_animation',\n\t\t\t[\n\t\t\t\t'label' => __( 'Hover Animation', 'elementor' ),\n\t\t\t\t'type' => Controls_Manager::HOVER_ANIMATION,\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_tab();\n\n\t\t$this->end_controls_tabs();\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Border::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'border',\n\t\t\t\t'placeholder' => '1px',\n\t\t\t\t'default' => '1px',\n\t\t\t\t'selector' => '{{WRAPPER}} .roll-button',\n\t\t\t\t'separator' => 'before',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'border_radius',\n\t\t\t[\n\t\t\t\t'label' => __( 'Border Radius', 'elementor' ),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => [ 'px', '%' ],\n\t\t\t\t'default' => [\t'top' => 3,\n\t\t\t\t\t\t'right' => 3,\n\t\t\t\t\t\t'bottom' => 3,\n\t\t\t\t\t\t'left' => 3,\n\t\t\t\t\t\t'unit' => 'px',\n\t\t\t\t\t\t'isLinked' => false,\n\t\t\t\t\t],\t\t\t\t\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} a.roll-button, {{WRAPPER}} .roll-button' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Box_Shadow::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'button_box_shadow',\n\t\t\t\t'selector' => '{{WRAPPER}} .roll-button',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'text_padding',\n\t\t\t[\n\t\t\t\t'label' => __( 'Padding', 'elementor' ),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => [ 'px', 'em', '%' ],\n\t\t\t\t'default' => [\t'top' => 16,\n\t\t\t\t\t\t'right' => 35,\n\t\t\t\t\t\t'bottom' => 16,\n\t\t\t\t\t\t'left' => 35,\n\t\t\t\t\t\t'unit' => 'px',\n\t\t\t\t\t\t'isLinked' => false,\n\t\t\t\t\t],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} a.roll-button, {{WRAPPER}} .roll-button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t\t'separator' => 'before',\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_section();\n\t\t//End button styles\n\n\n\t}",
"protected function _register_controls()\n {\n $this->start_controls_section(\n 'content_section',\n [\n 'label' => __('Recent Questions Settings', 'careerfy-frame'),\n 'tab' => Controls_Manager::TAB_CONTENT,\n ]\n );\n\n $this->add_control(\n 'ques_title',\n [\n 'label' => __('Title', 'careerfy-frame'),\n 'type' => Controls_Manager::TEXT,\n ]\n );\n\n $repeater = new \\Elementor\\Repeater();\n $repeater->add_control(\n 'q_question', [\n 'label' => __('Question', 'careerfy-frame'),\n 'type' => Controls_Manager::TEXT,\n 'label_block' => true,\n ]\n );\n\n $repeater->add_control(\n 'q_url', [\n 'label' => __('Link', 'careerfy-frame'),\n 'type' => Controls_Manager::TEXT,\n ]\n );\n\n $this->add_control(\n 'careerfy_recent_questions_item',\n [\n 'label' => __('Add recent questions item', 'careerfy-frame'),\n 'type' => Controls_Manager::REPEATER,\n 'fields' => $repeater->get_controls(),\n 'title_field' => '{{{ q_question }}}',\n ]\n );\n $this->end_controls_section();\n }",
"protected function register_heading_controls() {\n\n\t\t$this->start_controls_section(\n\t\t\t'section_heading',\n\t\t\t[ 'label' => esc_html__( 'Heading', 'martfury' ) ]\n\t\t);\n\n\t\t$this->start_controls_tabs( 'heading_content_settings' );\n\n\t\t$this->start_controls_tab( 'title_tab', [ 'label' => esc_html__( 'Title', 'martfury' ) ] );\n\n\t\t$this->add_control(\n\t\t\t'icon_type',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Icon Type', 'martfury' ),\n\t\t\t\t'type' => Controls_Manager::SELECT,\n\t\t\t\t'options' => [\n\t\t\t\t\t'icons' => esc_html__( 'Old Icons', 'martfury' ),\n\t\t\t\t\t'custom_icons' => esc_html__( 'New Icons', 'martfury' ),\n\t\t\t\t],\n\t\t\t\t'default' => 'icons',\n\t\t\t\t'toggle' => false,\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'icon',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Icon', 'martfury' ),\n\t\t\t\t'type' => Controls_Manager::ICON,\n\t\t\t\t'default' => 'icon-shirt',\n\t\t\t\t'condition' => [\n\t\t\t\t\t'icon_type' => 'icons',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'custom_icon',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Icon', 'martfury' ),\n\t\t\t\t'type' => Controls_Manager::ICONS,\n\t\t\t\t'default' => [\n\t\t\t\t\t'value' => 'fas fa-star',\n\t\t\t\t\t'library' => 'fa-solid',\n\t\t\t\t],\n\t\t\t\t'condition' => [\n\t\t\t\t\t'icon_type' => 'custom_icons',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'title',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Title', 'martfury' ),\n\t\t\t\t'type' => Controls_Manager::TEXT,\n\t\t\t\t'default' => esc_html__( 'Category Name', 'martfury' ),\n\t\t\t\t'placeholder' => esc_html__( 'Enter the title', 'martfury' ),\n\t\t\t\t'label_block' => true,\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'link', [\n\t\t\t\t'label' => esc_html__( 'Link', 'martfury' ),\n\t\t\t\t'type' => Controls_Manager::URL,\n\t\t\t\t'placeholder' => esc_html__( 'https://your-link.com', 'martfury' ),\n\t\t\t\t'show_external' => true,\n\t\t\t\t'default' => [\n\t\t\t\t\t'url' => '#',\n\t\t\t\t\t'is_external' => false,\n\t\t\t\t\t'nofollow' => false,\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\n\t\t$this->end_controls_tab();\n\n\t\t$this->start_controls_tab( 'quick_links_tab', [ 'label' => esc_html__( 'Quick Links', 'martfury' ) ] );\n\n\t\t$repeater = new \\Elementor\\Repeater();\n\t\t$repeater->add_control(\n\t\t\t'link_text', [\n\t\t\t\t'label' => esc_html__( 'Title', 'martfury' ),\n\t\t\t\t'type' => Controls_Manager::TEXT,\n\t\t\t\t'default' => esc_html__( 'Category Name', 'martfury' ),\n\t\t\t\t'label_block' => true,\n\t\t\t]\n\t\t);\n\n\t\t$repeater->add_control(\n\t\t\t'link_url', [\n\t\t\t\t'label' => esc_html__( 'Link', 'martfury' ),\n\t\t\t\t'type' => Controls_Manager::URL,\n\t\t\t\t'placeholder' => esc_html__( 'https://your-link.com', 'martfury' ),\n\t\t\t\t'show_external' => true,\n\t\t\t\t'default' => [\n\t\t\t\t\t'url' => '#',\n\t\t\t\t\t'is_external' => false,\n\t\t\t\t\t'nofollow' => false,\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'links_group',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Links', 'martfury' ),\n\t\t\t\t'type' => Controls_Manager::REPEATER,\n\t\t\t\t'fields' => $repeater->get_controls(),\n\t\t\t\t'default' => [\n\t\t\t\t\t[\n\t\t\t\t\t\t'link_text' => esc_html__( 'Sub Category 1', 'martfury' ),\n\t\t\t\t\t\t'link_url' => [\n\t\t\t\t\t\t\t'url' => '#',\n\t\t\t\t\t\t]\n\t\t\t\t\t],\n\t\t\t\t\t[\n\t\t\t\t\t\t'link_text' => esc_html__( 'Sub Category 2', 'martfury' ),\n\t\t\t\t\t\t'link_url' => [\n\t\t\t\t\t\t\t'url' => '#',\n\t\t\t\t\t\t]\n\t\t\t\t\t],\n\t\t\t\t\t[\n\t\t\t\t\t\t'link_text' => esc_html__( 'Sub Category 3', 'martfury' ),\n\t\t\t\t\t\t'link_url' => [\n\t\t\t\t\t\t\t'url' => '#',\n\t\t\t\t\t\t]\n\t\t\t\t\t],\n\t\t\t\t\t[\n\t\t\t\t\t\t'link_text' => esc_html__( 'Sub Category 4', 'martfury' ),\n\t\t\t\t\t\t'link_url' => [\n\t\t\t\t\t\t\t'url' => '#',\n\t\t\t\t\t\t]\n\t\t\t\t\t]\n\t\t\t\t],\n\t\t\t\t'title_field' => '{{{ link_text }}}',\n\t\t\t\t'prevent_empty' => false\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_tab();\n\n\t\t$this->end_controls_tabs();\n\n\t\t$this->end_controls_section();\n\t}",
"protected function _register_controls()\n {\n\t\t//Display Text\n\t\t$this->start_controls_section(\n\t\t\t'_section_breadcrumbs_display',\n\t\t\t[\n\t\t\t\t'label' => __('Display Text', 'happyden'),\n\t\t\t\t'tab' => Controls_Manager::TAB_CONTENT,\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'home',\n\t\t\t[\n\t\t\t\t'label' => __( 'Homepage', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::TEXT,\n\t\t\t\t'default' => __( 'Home', 'happyden' ),\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'page_title',\n\t\t\t[\n\t\t\t\t'label' => __( 'Pages', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::TEXT,\n\t\t\t\t'default' => __( 'Pages', 'happyden' ),\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'search',\n\t\t\t[\n\t\t\t\t'label' => __( 'Search', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::TEXT,\n\t\t\t\t'default' => __( 'Search results for:', 'happyden' ),\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'error_404',\n\t\t\t[\n\t\t\t\t'label' => __( 'Error 404', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::TEXT,\n\t\t\t\t'default' => __( '404 Not Found', 'happyden' ),\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_section();\n\n\t\t$this->start_controls_section(\n\t\t\t'_section_breadcrumbs',\n\t\t\t[\n\t\t\t\t'label' => __('Breadcrumbs', 'happyden'),\n\t\t\t\t'tab' => Controls_Manager::TAB_CONTENT,\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'home_icon',\n\t\t\t[\n\t\t\t\t'label'\t\t\t\t\t=> __( 'Home Icon', 'happyden' ),\n\t\t\t\t'label_block'\t\t\t=> false,\n\t\t\t\t'type'\t\t\t\t\t=> Controls_Manager::ICONS,\n\t\t\t\t'default'\t\t\t\t=> [\n\t\t\t\t\t'value'\t\t=> 'fas fa-home',\n\t\t\t\t\t'library'\t=> 'fa-solid',\n\t\t\t\t],\n\t\t\t\t'skin' => 'inline',\n\t\t\t\t'exclude_inline_options' => [ 'svg' ],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'separator_type',\n\t\t\t[\n\t\t\t\t'label' => __( 'Separator Type', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::SELECT,\n\t\t\t\t'default' => 'icon',\n\t\t\t\t'options' => [\n\t\t\t\t\t'text' => __( 'Text', 'happyden' ),\n\t\t\t\t\t'icon' => __( 'Icon', 'happyden' ),\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'separator_text',\n\t\t\t[\n\t\t\t\t'label' => __( 'Separator', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::TEXT,\n\t\t\t\t'default' => __( '>', 'happyden' ),\n\t\t\t\t'condition' => [\n\t\t\t\t\t'separator_type' => 'text'\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'separator_icon',\n\t\t\t[\n\t\t\t\t'label'\t\t\t\t\t=> __( 'Separator', 'happyden' ),\n\t\t\t\t'label_block'\t\t\t=> false,\n\t\t\t\t'type'\t\t\t\t\t=> Controls_Manager::ICONS,\n\t\t\t\t'default'\t\t\t\t=> [\n\t\t\t\t\t'value'\t\t=> 'fas fa-angle-right',\n\t\t\t\t\t'library'\t=> 'fa-solid',\n\t\t\t\t],\n\t\t\t\t'skin' => 'inline',\n\t\t\t\t'exclude_inline_options' => [ 'svg' ],\n\t\t\t\t'condition' => [\n\t\t\t\t\t'separator_type' => 'icon'\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'show_on_front',\n\t\t\t[\n\t\t\t\t'label' => __( 'Show on front page', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::SWITCHER,\n\t\t\t\t'label_on' => __( 'Show', 'your-plugin' ),\n\t\t\t\t'label_off' => __( 'Hide', 'your-plugin' ),\n\t\t\t\t'return_value' => 'yes',\n\t\t\t\t'default' => 'yes',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'show_title',\n\t\t\t[\n\t\t\t\t'label' => __( 'Show last item', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::SWITCHER,\n\t\t\t\t'label_on' => __( 'Show', 'your-plugin' ),\n\t\t\t\t'label_off' => __( 'Hide', 'your-plugin' ),\n\t\t\t\t'return_value' => 'yes',\n\t\t\t\t'default' => 'yes',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_responsive_control(\n\t\t\t'align',\n\t\t\t[\n\t\t\t\t'label' => __( 'Alignment', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::CHOOSE,\n\t\t\t\t'default' => '',\n\t\t\t\t'options' => [\n\t\t\t\t\t'left' => [\n\t\t\t\t\t\t'title' => __( 'Left', 'happyden' ),\n\t\t\t\t\t\t'icon' => 'eicon-h-align-left',\n\t\t\t\t\t],\n\t\t\t\t\t'center' => [\n\t\t\t\t\t\t'title' => __( 'Center', 'happyden' ),\n\t\t\t\t\t\t'icon' => 'eicon-h-align-center',\n\t\t\t\t\t],\n\t\t\t\t\t'right' => [\n\t\t\t\t\t\t'title' => __( 'Right', 'happyden' ),\n\t\t\t\t\t\t'icon' => 'eicon-h-align-right',\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs' => 'text-align: {{VALUE}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_section();\n\t\n\t\t//Breadcrumbs Style\n\t\t$this->start_controls_section(\n\t\t\t'_section_breadcrumbs_style',\n\t\t\t[\n\t\t\t\t'label' => __('Breadcrumbs', 'happyden'),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Background::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'breadcrumbs_background',\n\t\t\t\t'label' => __( 'Background', 'happyden' ),\n\t\t\t\t'types' => [ 'classic', 'gradient' ],\n\t\t\t\t'selector' => '{{WRAPPER}} .happyden-breadcrumbs',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Border::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'breadcrumbs_border',\n\t\t\t\t'label' => __( 'Border', 'happyden' ),\n\t\t\t\t'selector' => '{{WRAPPER}} .happyden-breadcrumbs',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'breadcrumbs_border_radius',\n\t\t\t[\n\t\t\t\t'label' => __( 'Border Radius', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => [ 'px', '%' ],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Box_Shadow::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'breadcrumbs_shadow',\n\t\t\t\t'label' => __( 'Box Shadow', 'happyden' ),\n\t\t\t\t'selector' => '{{WRAPPER}} .happyden-breadcrumbs',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_responsive_control(\n\t\t\t'breadcrumbs_margin',\n\t\t\t[\n\t\t\t\t'label' => __( 'Margin', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => [ 'px', '%' ],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_responsive_control(\n\t\t\t'breadcrumbs_padding',\n\t\t\t[\n\t\t\t\t'label' => __( 'Padding', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => [ 'px', 'em', '%' ],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_section();\n\n\t\t//Common Style\n\t\t$this->start_controls_section(\n\t\t\t'_section_common_style',\n\t\t\t[\n\t\t\t\t'label' => __('Common', 'happyden'),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'common_spacing',\n\t\t\t[\n\t\t\t\t'label' => __( 'Spacing', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::SLIDER,\n\t\t\t\t'range' => [\n\t\t\t\t\t'px' \t=> [\n\t\t\t\t\t\t'max' => 50,\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li' => 'margin-right: {{SIZE}}{{UNIT}};',\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li:last-child' => 'margin-right: 0;',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->start_controls_tabs( 'tabs_common_style' );\n\n\t\t$this->start_controls_tab(\n\t\t\t'tab_common_normal',\n\t\t\t[\n\t\t\t\t'label' => __( 'Normal', 'happyden' ),\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'common_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Color', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li span.happyden-breadcrumbs-text' => 'color: {{VALUE}}'\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Background::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'common_background_color',\n\t\t\t\t'label' => __( 'Background', 'happyden' ),\n\t\t\t\t'types' => [ 'classic', 'gradient' ],\n\t\t\t\t'selector' => '{{WRAPPER}} .happyden-breadcrumbs li span.happyden-breadcrumbs-text',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'common_typography',\n\t\t\t\t'label' => __( 'Typography', 'happyden' ),\n\t\t\t\t'selector' => '{{WRAPPER}} .happyden-breadcrumbs li span.happyden-breadcrumbs-text',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Border::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'common_border',\n\t\t\t\t'label' => __( 'Border', 'happyden' ),\n\t\t\t\t'selector' => '{{WRAPPER}} .happyden-breadcrumbs li span.happyden-breadcrumbs-text',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'common_border_radius',\n\t\t\t[\n\t\t\t\t'label' => __( 'Border Radius', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => [ 'px', '%' ],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-item a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li span.happyden-breadcrumbs-text' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_tab();\n\n\t\t$this->start_controls_tab(\n\t\t\t'tab_common_hover',\n\t\t\t[\n\t\t\t\t'label' => __( 'Hover', 'happyden' ),\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'common_color_hover',\n\t\t\t[\n\t\t\t\t'label' => __( 'Color', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li span.happyden-breadcrumbs-text:hover' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Background::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'common_background_color_hover',\n\t\t\t\t'label' => __( 'Background', 'happyden' ),\n\t\t\t\t'types' => [ 'classic', 'gradient' ],\n\t\t\t\t'selector' => '{{WRAPPER}} .happyden-breadcrumbs li span.happyden-breadcrumbs-text:hover',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'common_typography_hover',\n\t\t\t\t'label' => __( 'Typography', 'happyden' ),\n\t\t\t\t'exclude' => [\n\t\t\t\t\t'font_family',\n\t\t\t\t\t'font_size',\n\t\t\t\t\t'text_transform',\n\t\t\t\t\t'font_style',\n\t\t\t\t\t'line_height',\n\t\t\t\t\t'letter_spacing',\n\t\t\t\t],\n\t\t\t\t'selector' => '{{WRAPPER}} .happyden-breadcrumbs li span.happyden-breadcrumbs-text:hover',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'common_border_color_hover',\n\t\t\t[\n\t\t\t\t'label' => __( 'Border Color', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li span.happyden-breadcrumbs-text:hover' => 'border-color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_tab();\n\t\t$this->end_controls_tabs();\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Box_Shadow::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'common_shadow',\n\t\t\t\t'label' => __( 'Box Shadow', 'happyden' ),\n\t\t\t\t'selector' => '{{WRAPPER}} .happyden-breadcrumbs li span.happyden-breadcrumbs-text',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_responsive_control(\n\t\t\t'common_padding',\n\t\t\t[\n\t\t\t\t'label' => __( 'Padding', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => [ 'px', 'em', '%' ],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li span.happyden-breadcrumbs-text' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_section();\n\n\t\t//Home Style\n\t\t$this->start_controls_section(\n\t\t\t'_section_home_style',\n\t\t\t[\n\t\t\t\t'label' => __('Home', 'happyden'),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t]\n\t\t);\n\n\t\t$this->start_controls_tabs( 'tabs_home_style' );\n\n\t\t$this->start_controls_tab(\n\t\t\t'tab_home_normal',\n\t\t\t[\n\t\t\t\t'label' => __( 'Normal', 'happyden' ),\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'home_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Color', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-start span.happyden-breadcrumbs-text' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'home_icon_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Home Icon Color', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-start span.happyden-breadcrumbs-text .happyden-breadcrumbs-home-icon' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Background::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'home_background_color',\n\t\t\t\t'label' => __( 'Background', 'happyden' ),\n\t\t\t\t'types' => [ 'classic', 'gradient' ],\n\t\t\t\t'selector' => '{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-start span.happyden-breadcrumbs-text',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'home_typography',\n\t\t\t\t'label' => __( 'Typography', 'happyden' ),\n\t\t\t\t'selector' => '{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-start span.happyden-breadcrumbs-text',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Border::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'home_border',\n\t\t\t\t'label' => __( 'Border', 'happyden' ),\n\t\t\t\t'selector' => '{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-start span.happyden-breadcrumbs-text',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'home_border_radius',\n\t\t\t[\n\t\t\t\t'label' => __( 'Border Radius', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => [ 'px', '%' ],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-start a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-start span.happyden-breadcrumbs-text' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_tab();\n\n\t\t$this->start_controls_tab(\n\t\t\t'tab_home_hover',\n\t\t\t[\n\t\t\t\t'label' => __( 'Hover', 'happyden' ),\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'home_color_hover',\n\t\t\t[\n\t\t\t\t'label' => __( 'Color', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'default' => '',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-start span.happyden-breadcrumbs-text:hover' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'home_icon_color_hover',\n\t\t\t[\n\t\t\t\t'label' => __( 'Home Icon Color', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'default' => '',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-start span.happyden-breadcrumbs-text:hover .happyden-breadcrumbs-home-icon' => 'color: {{VALUE}}',\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-start span.happyden-breadcrumbs-text .happyden-breadcrumbs-home-icon' => '-webkit-transition: all .4s;transition: all .4s;',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Background::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'home_background_color_hover',\n\t\t\t\t'label' => __( 'Background', 'happyden' ),\n\t\t\t\t'types' => [ 'classic', 'gradient' ],\n\t\t\t\t'selector' => '{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-start span.happyden-breadcrumbs-text:hover',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'home_typography_hover',\n\t\t\t\t'label' => __( 'Typography', 'happyden' ),\n\t\t\t\t'exclude' => [\n\t\t\t\t\t'font_family',\n\t\t\t\t\t'font_size',\n\t\t\t\t\t'text_transform',\n\t\t\t\t\t'font_style',\n\t\t\t\t\t'line_height',\n\t\t\t\t\t'letter_spacing',\n\t\t\t\t],\n\t\t\t\t'selector' => '{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-start span.happyden-breadcrumbs-text:hover',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'home_border_color_hover',\n\t\t\t[\n\t\t\t\t'label' => __( 'Border Color', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'default' => '',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-start span.happyden-breadcrumbs-text:hover' => 'border-color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_tab();\n\t\t$this->end_controls_tabs();\n\n\t\t$this->add_control(\n\t\t\t'home_spacing',\n\t\t\t[\n\t\t\t\t'label' => __( 'Home Icon Spacing', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::SLIDER,\n\t\t\t\t'range' => [\n\t\t\t\t\t'px' \t=> [\n\t\t\t\t\t\t'max' => 50,\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li span.happyden-breadcrumbs-home-icon' => 'margin-right: {{SIZE}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t\t'separator' => 'before',\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_section();\n\n\t\t//Separator Style\n\t\t$this->start_controls_section(\n\t\t\t'_section_separator_style',\n\t\t\t[\n\t\t\t\t'label' => __('Separator', 'happyden'),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'separator_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Color', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-separator span.happyden-breadcrumbs-separator-icon' => 'color: {{VALUE}}',\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-separator span.happyden-breadcrumbs-separator-text' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Background::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'separator_background_color',\n\t\t\t\t'label' => __( 'Background', 'happyden' ),\n\t\t\t\t'types' => [ 'classic', 'gradient' ],\n\t\t\t\t'selector' => '{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-separator span.happyden-breadcrumbs-separator-icon, {{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-separator span.happyden-breadcrumbs-separator-text',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'separator_typography',\n\t\t\t\t'label' => __( 'Typography', 'happyden' ),\n\t\t\t\t'selector' => '{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-separator span.happyden-breadcrumbs-separator-icon, {{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-separator span.happyden-breadcrumbs-separator-text',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Border::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'separator_border',\n\t\t\t\t'label' => __( 'Border', 'happyden' ),\n\t\t\t\t'selector' => '{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-separator span.happyden-breadcrumbs-separator-icon, {{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-separator span.happyden-breadcrumbs-separator-icon',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'separator_border_radius',\n\t\t\t[\n\t\t\t\t'label' => __( 'Border Radius', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => [ 'px', '%' ],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-separator span.happyden-breadcrumbs-separator-icon' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-separator span.happyden-breadcrumbs-separator-text' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_responsive_control(\n\t\t\t'separator_padding',\n\t\t\t[\n\t\t\t\t'label' => __( 'Padding', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => [ 'px', 'em', '%' ],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-separator span.happyden-breadcrumbs-separator-icon' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-separator span.happyden-breadcrumbs-separator-text' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_section();\n\n\t\t//Current Style\n\t\t$this->start_controls_section(\n\t\t\t'_section_current_style',\n\t\t\t[\n\t\t\t\t'label' => __('Current', 'happyden'),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'current_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Color', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-item.happyden-breadcrumbs-end span.happyden-breadcrumbs-text' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Background::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'current_background_color',\n\t\t\t\t'label' => __( 'Background', 'happyden' ),\n\t\t\t\t'types' => [ 'classic', 'gradient' ],\n\t\t\t\t'selector' => '{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-item.happyden-breadcrumbs-end span.happyden-breadcrumbs-text',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'current_typography',\n\t\t\t\t'label' => __( 'Typography', 'happyden' ),\n\t\t\t\t'selector' => '{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-item.happyden-breadcrumbs-end span.happyden-breadcrumbs-text',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Border::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'current_border',\n\t\t\t\t'label' => __( 'Border', 'happyden' ),\n\t\t\t\t'selector' => '{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-item.happyden-breadcrumbs-end span.happyden-breadcrumbs-text',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'current_border_radius',\n\t\t\t[\n\t\t\t\t'label' => __( 'Border Radius', 'happyden' ),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => [ 'px', '%' ],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .happyden-breadcrumbs li.happyden-breadcrumbs-item.happyden-breadcrumbs-end span.happyden-breadcrumbs-text' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_section();\n\n\t}",
"protected function _register_controls(){\n\n\t\t$this->start_controls_section(\n\t\t\t'general_section',\n\t\t\t[\n\t\t\t\t'label' => __( 'General', 'dreamit-elementor-extension' ),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t]\n\t\t);\n\n\t\t\t$this->add_control(\n\t\t\t\t'select_style',\n\t\t\t\t[\n\t\t\t\t\t'label' => __( 'Select Style', 'dreamit-elementor-extension' ),\n\t\t\t\t\t'type' => Controls_Manager::SELECT,\n\t\t\t\t\t'options' => [\n\t\t\t\t\t\t'one' => __( 'One', 'dreamit-elementor-extension' ),\n\t\t\t\t\t\t'two' => __( 'Two', 'dreamit-elementor-extension' ),\n\t\t\t\t\t\t'three' => __( 'Three', 'dreamit-elementor-extension' ),\n\t\t\t\t\t\t'four' => __( 'Four', 'dreamit-elementor-extension' ),\n\t\t\t\t\t],\n\t\t\t\t\t'default' => 'one',\n\t\t\t\t\t\n\t\t\t\t]\n\t\t\t);\n\t\t\t$this->add_control(\n\t\t\t\t'overlay_color',\n\t\t\t\t[\n\t\t\t\t\t'label' => __( 'Overlay Color', 'dreamit-elementor-extension' ),\n\t\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t\t'default' => '',\n\t\t\t\t\t'selectors' => [\n\t\t\t\t\t\t'{{WRAPPER}} .style-two .case-study-thumb:before' => 'background: {{VALUE}};',\n\t\t\t\t\t],\n\t\t\t\t]\n\t\t\t);\n\t\t$this->end_controls_section();\n\n\t\t$this->start_controls_section(\n\t\t\t'title_section',\n\t\t\t[\n\t\t\t\t'label' => __( 'Title', 'dreamit-elementor-extension' ),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t]\n\t\t);\n\n\t\t\t$this->start_controls_tabs(\n\t\t\t\t'title_style_tabs'\n\t\t\t);\n\t\t\t\t$this->start_controls_tab(\n\t\t\t\t\t'title_style_normal_tab',\n\t\t\t\t\t[\n\t\t\t\t\t\t'label' => __( 'Normal', 'dreamit-elementor-extension' ),\n\t\t\t\t\t]\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\t\t$this->add_control(\n\t\t\t\t\t\t'title_color',\n\t\t\t\t\t\t[\n\t\t\t\t\t\t\t'label' => __( 'Color', 'dreamit-elementor-extension' ),\n\t\t\t\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t\t\t\t'default' => '',\n\t\t\t\t\t\t\t'selectors' => [\n\t\t\t\t\t\t\t\t'{{WRAPPER}} .em-cases-study-title h2 a' => 'color: {{VALUE}};',\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t]\n\t\t\t\t\t);\n\t\t\t\t\n\t\t\t\t$this->end_controls_tab();\n\t\t\t\t\n\t\t\t\t$this->start_controls_tab(\n\t\t\t\t\t'title_style_hover_tab',\n\t\t\t\t\t[\n\t\t\t\t\t\t'label' => __( 'Hover', 'dreamit-elementor-extension' ),\n\t\t\t\t\t]\n\t\t\t\t);\n\n\t\t\t\t\t$this->add_control(\n\t\t\t\t\t\t'hover_title_color',\n\t\t\t\t\t\t[\n\t\t\t\t\t\t\t'label' => __( 'Color', 'dreamit-elementor-extension' ),\n\t\t\t\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t\t\t\t'default' => '',\n\t\t\t\t\t\t\t'selectors' => [\n\t\t\t\t\t\t\t\t'{{WRAPPER}} .em-cases-study-title h2 a:hover' => 'color: {{VALUE}};',\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t]\n\t\t\t\t\t);\n\t\t\t\t\n\t\t\t\t$this->end_controls_tab();\n\t\t\t\t\n\t\t\t$this->end_controls_tabs();\n\n\t\t\t$this->add_responsive_control(\n\t\t\t\t'title_margin',\n\t\t\t\t[\n\t\t\t\t\t'label' => __( 'Margin', 'dreamit-elementor-extension' ),\n\t\t\t\t\t'type' => \\Elementor\\Controls_Manager::DIMENSIONS,\n\t\t\t\t\t'size_units' => [ 'px', 'em', '%' ],\n\t\t\t\t\t'selectors' => [\n\t\t\t\t\t\t'{{WRAPPER}} .em-cases-study-title h2' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t\t],\n\t\t\t\t\t'separator' => 'before',\n\t\t\t\t]\n\t\t\t);\n\n\t $this->add_group_control(\n\t\t\t\tGroup_Control_Typography::get_type(),\n\t\t\t\t[\n\t\t\t\t\t'name' => 'title_typography',\n\t\t\t\t\t'label' => esc_html__( 'Typography', 'dreamit-elementor-extension' ),\n\t\t\t\t\t'selector' => \n\t '{{WRAPPER}} .em-cases-study-title h2 a',\n\t\t\t\t]\n\t\t\t);\n\n\t\t$this->end_controls_section();\n\n\t\t$this->start_controls_section(\n\t\t\t'category_section',\n\t\t\t[\n\t\t\t\t'label' => __( 'Category', 'dreamit-elementor-extension' ),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t]\n\t\t);\n\n\t\t\t$this->add_control(\n\t\t\t\t'category_color',\n\t\t\t\t[\n\t\t\t\t\t'label' => __( 'Color', 'dreamit-elementor-extension' ),\n\t\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t\t'default' => '',\n\t\t\t\t\t'selectors' => [\n\t\t\t\t\t\t'{{WRAPPER}} .case_category span' => 'color: {{VALUE}};',\n\t\t\t\t\t],\n\t\t\t\t]\n\t\t\t);\n\n\t $this->add_group_control(\n\t\t\t\tGroup_Control_Typography::get_type(),\n\t\t\t\t[\n\t\t\t\t\t'name' => 'category_typography',\n\t\t\t\t\t'label' => esc_html__( 'Typography', 'dreamit-elementor-extension' ),\n\t\t\t\t\t'selector' => \n\t '{{WRAPPER}} .case_category span',\n\t\t\t\t]\n\t\t\t);\n\n\t\t$this->end_controls_section();\n\t}",
"function __construct() {\n\n $this->defaults = array(\n 'title' => '',\n 'content' => '',\n 'image' => '',\n 'link' => '',\n );\n\n $widget_ops = array(\n 'classname' => 'tmq-intro-widget',\n 'description' => __( 'Display Intro widget ', 'tmq' ),\n );\n\n $control_ops = array(\n 'id_base' => 'tmq-intro-widget',\n 'width' => 200,\n 'height' => 250,\n );\n\n parent::__construct( 'tmq-intro-widget', __( 'Intro Widget', 'tmq' ), $widget_ops, $control_ops );\n\n }",
"protected function _register_controls() {\n \n\n //For General Section\n $this->content_general_controls();\n\n \n //For Design Section Style Tab\n $this->style_design_controls();\n \n //For Typography Section Style Tab\n //$this->style_typography_controls();\n\n \n }",
"protected function _register_controls() {\n\n\t\t$this->start_controls_section(\n\t\t\t'content_section',\n\t\t\t[\n\t\t\t\t'label' => __( 'Content', 'atl-extension' ),\n\t\t\t\t'tab' => \\Elementor\\Controls_Manager::TAB_CONTENT,\n\t\t\t]\n\t\t);\n\n // Sub Heading\n\t\t$this->add_control(\n\t\t\t'main_sub_heading',\n\t\t\t[\n\t\t\t\t'label' => __( 'Sub Heading', 'atl-extension' ),\n 'type' => \\Elementor\\Controls_Manager::TEXT,\n 'label_block' => true,\n\t\t\t\t'placeholder' => __( 'Write Sub Heading Here', 'atl-extension' ),\n\t\t\t\t'default' => 'Our Featured Services',\n\t\t\t]\n );\n \n // Heading\n\t\t$this->add_control(\n\t\t\t'main_heading',\n\t\t\t[\n\t\t\t\t'label' => __( 'Heading', 'atl-extension' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::TEXT,\n 'label_block' => true,\n 'separator'=> 'before',\n\t\t\t\t'placeholder' => __( 'Write Heading Here', 'atl-extension' ),\n\t\t\t\t'default' => 'Bringing New IT Business Solutions And Ideas',\n\t\t\t\t]\n\t\t\t);\n\t\t\t\n\t\t\t// Description\n\t\t\t$this->add_control(\n\t\t\t\t'main_description',\n\t\t\t\t[\n\t\t\t\t\t'label' => __( 'Description', 'atl-extension' ),\n\t\t\t\t\t'type' => \\Elementor\\Controls_Manager::TEXTAREA,\n\t\t\t\t\t'label_block' => true,\n\t\t\t\t\t'separator'=> 'before',\n\t\t\t\t\t'placeholder' => __( 'Write Description Here', 'atl-extension' ),\n\t\t\t\t\t'default' => 'Lorem ipsum dolor sit amet, consectetuer </br> Lorem ipsum dolor sit amet.',\n\t\t\t]\n );\n\n\t\t$this->add_control(\n\t\t\t'main_heading_align',\n\t\t\t[\n\t\t\t\t'label' => __( 'Alignment', 'atl-extension' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::CHOOSE,\n\t\t\t\t'options' => [\n\t\t\t\t\t'left' => [\n\t\t\t\t\t\t'title' => __( 'Left', 'atl-extension' ),\n\t\t\t\t\t\t'icon' => 'fa fa-align-left',\n\t\t\t\t\t],\n\t\t\t\t\t'center' => [\n\t\t\t\t\t\t'title' => __( 'Center', 'atl-extension' ),\n\t\t\t\t\t\t'icon' => 'fa fa-align-center',\n\t\t\t\t\t],\n\t\t\t\t\t'right' => [\n\t\t\t\t\t\t'title' => __( 'Right', 'atl-extension' ),\n\t\t\t\t\t\t'icon' => 'fa fa-align-right',\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t'default' => 'center',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .section-title' => 'text-align: {{VALUE}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n \n $this->end_controls_section();\n\n // Style Tab\n $this->start_controls_section(\n\t\t\t'style_section',\n\t\t\t[\n\t\t\t\t'label' => __( 'Styles', 'atl-extension' ),\n\t\t\t\t'tab' => \\Elementor\\Controls_Manager::TAB_STYLE,\n\t\t\t]\n );\n\n // Subtitle Options\n\t\t$this->add_control(\n\t\t\t'subtitle_heading',\n\t\t\t[\n\t\t\t\t'label' => __( 'Sub Title', 'atl-extension' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::HEADING,\n\t\t\t]\n\t\t);\n\n // Sub Title Color\n $this->add_control(\n\t\t\t'subtitle_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Color', 'atl-extension' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Core\\Schemes\\Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Core\\Schemes\\Color::COLOR_1,\n ],\n 'default' => '#2F0E85',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .section-title h5' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n );\n \n // Subtitle Typography \n $this->add_group_control(\n\t\t\t\\Elementor\\Group_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'subtitle_typography',\n\t\t\t\t'label' => __( 'Typography', 'atl-extension' ),\n\t\t\t\t'scheme' => \\Elementor\\Core\\Schemes\\Typography::TYPOGRAPHY_1,\n\t\t\t\t'selector' => '{{WRAPPER}} .section-title h5',\n\t\t\t]\n );\n \n // Title Options\n\t\t$this->add_control(\n\t\t\t'title_heading',\n\t\t\t[\n\t\t\t\t'label' => __( 'Title', 'atl-extension' ),\n 'type' => \\Elementor\\Controls_Manager::HEADING,\n 'separator' => 'before'\n\t\t\t]\n\t\t);\n\n // Title Color\n $this->add_control(\n\t\t\t'title_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Color', 'atl-extension' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Core\\Schemes\\Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Core\\Schemes\\Color::COLOR_1,\n ],\n 'default' => '#333',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .section-title h3' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n );\n \n // Title Typography \n $this->add_group_control(\n\t\t\t\\Elementor\\Group_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'title_typography',\n\t\t\t\t'label' => __( 'Typography', 'atl-extension' ),\n\t\t\t\t'scheme' => \\Elementor\\Core\\Schemes\\Typography::TYPOGRAPHY_1,\n\t\t\t\t'selector' => '{{WRAPPER}} .section-title h3',\n\t\t\t]\n );\n \n // Description Options\n\t\t$this->add_control(\n\t\t\t'desc_heading',\n\t\t\t[\n\t\t\t\t'label' => __( 'Description', 'atl-extension' ),\n 'type' => \\Elementor\\Controls_Manager::HEADING,\n 'separator' => 'before'\n\t\t\t]\n\t\t);\n\n // Description Color\n $this->add_control(\n\t\t\t'desc_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Color', 'atl-extension' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Core\\Schemes\\Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Core\\Schemes\\Color::COLOR_1,\n ],\n 'default' => '#333',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .section-title p' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n );\n \n // Description Typography \n $this->add_group_control(\n\t\t\t\\Elementor\\Group_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'desc_typography',\n\t\t\t\t'label' => __( 'Typography', 'atl-extension' ),\n\t\t\t\t'scheme' => \\Elementor\\Core\\Schemes\\Typography::TYPOGRAPHY_1,\n\t\t\t\t'selector' => '{{WRAPPER}} .section-title p',\n\t\t\t]\n );\n\n\t\t// Border Options\n\t\t$this->add_control(\n\t\t\t'border_heading',\n\t\t\t[\n\t\t\t\t'label' => __( 'Border', 'atl-extension' ),\n 'type' => \\Elementor\\Controls_Manager::HEADING,\n 'separator' => 'before'\n\t\t\t]\n\t\t);\n\n\t\t// Border 1 Background Color\n $this->add_control(\n\t\t\t'border1_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Color', 'atl-extension' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Core\\Schemes\\Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Core\\Schemes\\Color::COLOR_1,\n ],\n 'default' => '#777',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .section-title h3::before' => 'background-color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n );\n\n\t\t// Border 2 Background Color\n $this->add_control(\n\t\t\t'border2_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Color', 'atl-extension' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::COLOR,\n\t\t\t\t'scheme' => [\n\t\t\t\t\t'type' => \\Elementor\\Core\\Schemes\\Color::get_type(),\n\t\t\t\t\t'value' => \\Elementor\\Core\\Schemes\\Color::COLOR_1,\n ],\n 'default' => '#FF4A33',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .section-title h3::after' => 'background-color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n );\n\n $this->end_controls_section();\n\t}",
"protected function _register_controls() {\n\n\t\t$this->start_controls_section(\n\t\t\t'section_layout',\n\t\t\t[\n\t\t\t\t'label' => __( 'Layout', 'thegem' ),\n\t\t\t]\n\t\t);\n\n $this->add_control(\n 'thegem_elementor_preset',\n [\n 'label' => __( 'Skin', 'thegem' ),\n 'type' => Controls_Manager::SELECT,\n 'options' => $this->get_presets_options(),\n 'default' => $this->set_default_presets_options(),\n 'frontend_available' => true,\n 'render_type' => 'none',\n ]\n );\n\n\t\t$this->end_controls_section();\n\n\t\t$this->start_controls_section(\n\t\t\t'section_content',\n\t\t\t[\n\t\t\t\t'label' => __( 'Content', 'thegem' ),\n\t\t\t]\n\t\t);\n\n $this->add_control(\n 'content_choose_image',\n [\n 'label' => __( 'Choose image', 'thegem' ),\n 'type' => Controls_Manager::MEDIA,\n 'dynamic' => [\n 'active' => true,\n ],\n 'default' => [\n 'url' => Utils::get_placeholder_image_src(),\n ],\n ]\n );\n\n $this->add_control(\n 'content_image_link_to',\n [\n 'label' => __( 'Link', 'thegem' ),\n 'type' => Controls_Manager::SELECT,\n 'default' => 'none',\n 'options' => [\n 'none' => __( 'None', 'thegem' ),\n 'file' => __( 'Media File', 'thegem' ),\n 'custom' => __( 'Custom URL', 'thegem' ),\n ],\n ]\n );\n\n $this->add_control(\n 'link',\n [\n 'label' => __( 'Link', 'thegem' ),\n 'type' => Controls_Manager::URL,\n 'dynamic' => [\n 'active' => true,\n ],\n 'placeholder' => __( 'https://your-link.com', 'thegem' ),\n 'condition' => [\n 'content_image_link_to' => 'custom',\n ],\n 'show_label' => false,\n ]\n );\n\n $this->add_control(\n 'open_lightbox',\n [\n 'label' => __( 'Lightbox', 'thegem' ),\n 'type' => Controls_Manager::SELECT,\n 'default' => 'default',\n 'options' => [\n 'default' => __( 'Default', 'thegem' ),\n 'yes' => __( 'Yes', 'thegem' ),\n 'no' => __( 'No', 'thegem' ),\n ],\n 'condition' => [\n 'content_image_link_to' => 'file',\n ],\n ]\n );\n\n $this->add_control(\n 'view',\n [\n 'label' => __( 'View', 'thegem' ),\n 'type' => Controls_Manager::HIDDEN,\n 'default' => 'traditional',\n ]\n );\n\n\t\t$this->end_controls_section();\n\n $this->start_controls_section(\n 'section_options',\n [\n 'label' => __( 'Options', 'thegem' ),\n ]\n );\n\n $this->add_control(\n 'options_lazy_loading',\n [\n 'label' => __( 'Lazy Loading', 'thegem' ),\n 'type' => Controls_Manager::SWITCHER,\n 'label_on' => __( 'On', 'thegem' ),\n 'label_off' => __( 'Off', 'thegem' ),\n 'return_value' => 'yes',\n 'default' => 'no',\n ]\n );\n\n $this->end_controls_section();\n\n\t\t$this->add_styles_controls( $this );\n\n\t}",
"private function add_front_page_controls() {\n\t\t/**\n\t\t * Big Title Section / Header Slider font size control. [Front Page Sections]\n\t\t *\n\t\t * This is changing the big title/slider titles, the\n\t\t * subtitle and the button in the big title section.\n\t\t *\n\t\t * The values are between -25 and +25 px.\n\t\t */\n\t\t$this->add_control(\n\t\t\tnew Hestia_Customizer_Control(\n\t\t\t\t'hestia_big_title_fs',\n\t\t\t\tarray(\n\t\t\t\t\t'sanitize_callback' => 'hestia_sanitize_range_value',\n\t\t\t\t\t'default' => 0,\n\t\t\t\t\t'transport' => $this->selective_refresh,\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'label' => apply_filters( 'hestia_big_title_fs_label', esc_html__( 'Big Title Section', 'hestia' ) ),\n\t\t\t\t\t'section' => 'hestia_typography',\n\t\t\t\t\t'type' => 'range-value',\n\t\t\t\t\t'input_attr' => array(\n\t\t\t\t\t\t'min' => -25,\n\t\t\t\t\t\t'max' => 25,\n\t\t\t\t\t\t'step' => 1,\n\t\t\t\t\t),\n\t\t\t\t\t'priority' => 210,\n\t\t\t\t\t'sum_type' => true,\n\t\t\t\t),\n\t\t\t\t'Hestia_Customizer_Range_Value_Control'\n\t\t\t)\n\t\t);\n\n\t\t/**\n\t\t * Section Title [Front Page Sections]\n\t\t *\n\t\t * This control is changing sections titles and card titles\n\t\t * The values are between -25 and +25 px.\n\t\t */\n\t\t$this->add_control(\n\t\t\tnew Hestia_Customizer_Control(\n\t\t\t\t'hestia_section_primary_headings_fs',\n\t\t\t\tarray(\n\t\t\t\t\t'sanitize_callback' => 'hestia_sanitize_range_value',\n\t\t\t\t\t'default' => '0',\n\t\t\t\t\t'transport' => 'postMessage',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'label' => esc_html__( 'Section Title', 'hestia' ),\n\t\t\t\t\t'section' => 'hestia_typography',\n\t\t\t\t\t'type' => 'range-value',\n\t\t\t\t\t'input_attr' => array(\n\t\t\t\t\t\t'min' => -25,\n\t\t\t\t\t\t'max' => 25,\n\t\t\t\t\t\t'step' => 1,\n\t\t\t\t\t),\n\t\t\t\t\t'priority' => 215,\n\t\t\t\t\t'sum_type' => true,\n\t\t\t\t),\n\t\t\t\t'Hestia_Customizer_Range_Value_Control'\n\t\t\t)\n\t\t);\n\n\t\t/**\n\t\t * Subtitles control [Front Page Sections]\n\t\t *\n\t\t * This control allows the user to choose a font size\n\t\t * for all Subtitles on Front Page sections.\n\t\t * The values area between -25 and +25 px.\n\t\t */\n\t\t$this->add_control(\n\t\t\tnew Hestia_Customizer_Control(\n\t\t\t\t'hestia_section_secondary_headings_fs',\n\t\t\t\tarray(\n\t\t\t\t\t'sanitize_callback' => 'hestia_sanitize_range_value',\n\t\t\t\t\t'default' => 0,\n\t\t\t\t\t'transport' => $this->selective_refresh,\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'label' => esc_html__( 'Section Subtitle', 'hestia' ),\n\t\t\t\t\t'section' => 'hestia_typography',\n\t\t\t\t\t'type' => 'range-value',\n\t\t\t\t\t'input_attr' => array(\n\t\t\t\t\t\t'min' => -25,\n\t\t\t\t\t\t'max' => 25,\n\t\t\t\t\t\t'step' => 1,\n\t\t\t\t\t),\n\t\t\t\t\t'priority' => 220,\n\t\t\t\t\t'sum_type' => true,\n\t\t\t\t),\n\t\t\t\t'Hestia_Customizer_Range_Value_Control'\n\t\t\t)\n\t\t);\n\n\t\t/**\n\t\t * Content control [Front Page Sections]\n\t\t *\n\t\t * This control allows the user to choose a font size\n\t\t * for the Main content for Frontpage Sections\n\t\t * The values area between -25 and +25 px.\n\t\t */\n\t\t$this->add_control(\n\t\t\tnew Hestia_Customizer_Control(\n\t\t\t\t'hestia_section_content_fs',\n\t\t\t\tarray(\n\t\t\t\t\t'sanitize_callback' => 'hestia_sanitize_range_value',\n\t\t\t\t\t'default' => 0,\n\t\t\t\t\t'transport' => 'postMessage',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'label' => esc_html__( 'Content', 'hestia' ),\n\t\t\t\t\t'section' => 'hestia_typography',\n\t\t\t\t\t'type' => 'range-value',\n\t\t\t\t\t'input_attr' => array(\n\t\t\t\t\t\t'min' => -25,\n\t\t\t\t\t\t'max' => 25,\n\t\t\t\t\t\t'step' => 1,\n\t\t\t\t\t),\n\t\t\t\t\t'priority' => 225,\n\t\t\t\t\t'sum_type' => true,\n\t\t\t\t),\n\t\t\t\t'Hestia_Customizer_Range_Value_Control'\n\t\t\t)\n\t\t);\n\t}",
"protected function _register_controls() {\r\n\r\n\t\t$this->start_controls_section(\r\n\t\t\t'settings_section',\r\n\t\t\t[\r\n\t\t\t\t'label' => esc_html__( 'General Settings', 'aapside-master' ),\r\n\t\t\t\t'tab' => Controls_Manager::TAB_CONTENT,\r\n\t\t\t]\r\n\t\t);\r\n\t\t$this->add_control( 'features_items', [\r\n\t\t\t'label' => esc_html__( 'Feature Item', 'aapside-master' ),\r\n\t\t\t'type' => Controls_Manager::REPEATER,\r\n\t\t\t'default' => [\r\n\t\t\t\t[\r\n\t\t\t\t\t'theme' => 'theme-01',\r\n\t\t\t\t\t'title' => esc_html__( 'Clean Design', 'aapside-master' ),\r\n\t\t\t\t\t'icon' => 'flaticon-vector',\r\n\t\t\t\t\t'description' => esc_html__( 'Consectetur adipiscing elit, sed do eiusmod tempor tempor incididunt', 'aapside-master' ),\r\n\t\t\t\t],\r\n\t\t\t\t[\r\n\t\t\t\t\t'theme' => 'theme-02',\r\n\t\t\t\t\t'title' => esc_html__( 'Fully Respnosive', 'aapside-master' ),\r\n\t\t\t\t\t'icon' => 'flaticon-responsive',\r\n\t\t\t\t\t'description' => esc_html__( 'Consectetur adipiscing elit, sed do eiusmod tempor tempor incididunt', 'aapside-master' ),\r\n\t\t\t\t]\r\n\t\t\t],\r\n\t\t\t'fields' => [\r\n\t\t\t\t[\r\n\t\t\t\t\t'name' => 'theme',\r\n\t\t\t\t\t'label' => esc_html__( 'Theme', 'aapside-master' ),\r\n\t\t\t\t\t'type' => Controls_Manager::SELECT,\r\n\t\t\t\t\t'description' => esc_html__( 'select theme.', 'aapside-master' ),\r\n\t\t\t\t\t'options' => array(\r\n\t\t\t\t\t\t'theme-01' => esc_html__( 'Theme One' ),\r\n\t\t\t\t\t\t'theme-02' => esc_html__( 'Theme Two' ),\r\n\t\t\t\t\t\t'theme-03' => esc_html__( 'Theme Three' ),\r\n\t\t\t\t\t),\r\n\t\t\t\t\t'default' => 'theme-01'\r\n\t\t\t\t],\r\n\t\t\t\t[\r\n\t\t\t\t\t'name' => 'title',\r\n\t\t\t\t\t'label' => esc_html__( 'Title', 'aapside-master' ),\r\n\t\t\t\t\t'type' => Controls_Manager::TEXT,\r\n\t\t\t\t\t'description' => esc_html__( 'enter title.', 'aapside-master' ),\r\n\t\t\t\t\t'default' => esc_html__( 'Clean Design', 'aapside-master' )\r\n\t\t\t\t],\r\n\t\t\t\t[\r\n\t\t\t\t\t'name' => 'description',\r\n\t\t\t\t\t'label' => esc_html__( 'Description', 'aapside-master' ),\r\n\t\t\t\t\t'type' => Controls_Manager::TEXTAREA,\r\n\t\t\t\t\t'default' => esc_html__( 'Consectetur adipiscing elit, sed do eiusmod tempor tempor incididunt', 'aapside-master' ),\r\n\t\t\t\t\t'description' => esc_html__( 'enter description.', 'aapside-master' ),\r\n\t\t\t\t],\r\n\t\t\t\t[\r\n\t\t\t\t\t'name' => 'icon',\r\n\t\t\t\t\t'label' => esc_html__( 'Icon', 'aapside-master' ),\r\n\t\t\t\t\t'type' => Controls_Manager::ICON,\r\n\t\t\t\t\t'description' => esc_html__( 'select icon.', 'aapside-master' ),\r\n\t\t\t\t\t'default' => 'flaticon-vector'\r\n\t\t\t\t]\r\n\t\t\t],\r\n\t\t\t'title_field' => \"{{title}}\"\r\n\t\t] );\r\n\r\n\r\n\t\t$this->end_controls_section();\r\n\r\n\t\t$this->start_controls_section(\r\n\t\t\t'typography_section',\r\n\t\t\t[\r\n\t\t\t\t'label' => esc_html__( 'Typography Settings', 'aapside-master' ),\r\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$this->add_group_control( Group_Control_Typography::get_type(), [\r\n\t\t\t'label' => esc_html__( 'Title Typography' ),\r\n\t\t\t'name' => 'title_typography',\r\n\t\t\t'selector' => \"{{WRAPPER}} .feature-list-04 .single-feature-list-item-04 .content .title\"\r\n\t\t] );\r\n\t\t$this->add_control( 'styling_divider', [\r\n\t\t\t'type' => Controls_Manager::DIVIDER\r\n\t\t] );\r\n\t\t$this->add_group_control( Group_Control_Typography::get_type(), [\r\n\t\t\t'label' => esc_html__( 'Description Typography' ),\r\n\t\t\t'name' => 'description_typography',\r\n\t\t\t'selector' => \"{{WRAPPER}} .feature-list-04 .single-feature-list-item-04 .content p\"\r\n\t\t] );\r\n\t\t$this->end_controls_section();\r\n\t\t\r\n\t\t/* theme one icon color start */\r\n\t\t$this->start_controls_section(\r\n\t\t\t'theme_one_section',\r\n\t\t\t[\r\n\t\t\t\t'label' => __( 'Theme One Styling', 'aapside-master' ),\r\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$this->start_controls_tabs(\r\n\t\t\t'theme_one_style_tabs'\r\n\t\t);\r\n\r\n\t\t$this->start_controls_tab(\r\n\t\t\t'theme_01_style_normal_tab',\r\n\t\t\t[\r\n\t\t\t\t'label' => __( 'Normal', 'aapside-master' ),\r\n\t\t\t]\r\n\t\t);\r\n\t\t$this->add_control( 'theme_01_icon_color', [\r\n\t\t\t'label' => esc_html__( 'Icon Color', 'aapside-master' ),\r\n\t\t\t'type' => Controls_Manager::COLOR,\r\n\t\t\t'selectors' => [\r\n\t\t\t\t\"{{WRAPPER}} .feature-list-04 .theme-01.single-feature-list-item-04 .icon\" => \"color: {{VALUE}}\"\r\n\t\t\t]\r\n\t\t] );\r\n\t\t$this->add_control( 'theme_01_title_color', [\r\n\t\t\t'label' => esc_html__( 'Title Color', 'aapside-master' ),\r\n\t\t\t'type' => Controls_Manager::COLOR,\r\n\t\t\t'selectors' => [\r\n\t\t\t\t\"{{WRAPPER}} .feature-list-04 .theme-01.single-feature-list-item-04 .content .title\" => \"color: {{VALUE}}\"\r\n\t\t\t]\r\n\t\t] );\r\n\t\t$this->add_control( 'theme_01_description_color', [\r\n\t\t\t'label' => esc_html__( 'Description Color', 'aapside-master' ),\r\n\t\t\t'type' => Controls_Manager::COLOR,\r\n\t\t\t'selectors' => [\r\n\t\t\t\t\"{{WRAPPER}} .feature-list-04 .theme-01.single-feature-list-item-04 .content p\" => \"color: {{VALUE}}\"\r\n\t\t\t]\r\n\t\t] );\r\n\t\t$this->add_control( 'styling_divider_01', [\r\n\t\t\t'type' => Controls_Manager::DIVIDER\r\n\t\t] );\r\n\t\t$this->add_group_control( Group_Control_Background::get_type(), [\r\n\t\t\t'name' => 'feature_list_background',\r\n\t\t\t'title' => esc_html__( 'Background', 'aapside-master' ),\r\n\t\t\t'selector' => \"{{WRAPPER}} .feature-list-04 .theme-01.single-feature-list-item-04\"\r\n\t\t] );\r\n\r\n\t\t$this->end_controls_tab();\r\n\r\n\t\t$this->start_controls_tab(\r\n\t\t\t'style_hover_tab',\r\n\t\t\t[\r\n\t\t\t\t'label' => __( 'Hover', 'aapside-master' ),\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$this->add_control( 'theme_01_icon_hover_color', [\r\n\t\t\t'label' => esc_html__( 'Icon Color', 'aapside-master' ),\r\n\t\t\t'type' => Controls_Manager::COLOR,\r\n\t\t\t'selectors' => [\r\n\t\t\t\t\"{{WRAPPER}} .feature-list-04 .theme-01.single-feature-list-item-04:hover .icon\" => \"color: {{VALUE}}\"\r\n\t\t\t]\r\n\t\t] );\r\n\t\t$this->add_control( 'theme_01_title_hover_color', [\r\n\t\t\t'label' => esc_html__( 'Title Color', 'aapside-master' ),\r\n\t\t\t'type' => Controls_Manager::COLOR,\r\n\t\t\t'selectors' => [\r\n\t\t\t\t\"{{WRAPPER}} .feature-list-04 .theme-01.single-feature-list-item-04:hover .content .title\" => \"color: {{VALUE}}\"\r\n\t\t\t]\r\n\t\t] );\r\n\t\t$this->add_control( 'theme_01_description_hover_color', [\r\n\t\t\t'label' => esc_html__( 'Description Color', 'aapside-master' ),\r\n\t\t\t'type' => Controls_Manager::COLOR,\r\n\t\t\t'selectors' => [\r\n\t\t\t\t\"{{WRAPPER}} .feature-list-04 .theme-01.single-feature-list-item-04:hover .content p\" => \"color: {{VALUE}}\"\r\n\t\t\t]\r\n\t\t] );\r\n\t\t$this->add_control( 'styling_hover_divider', [\r\n\t\t\t'type' => Controls_Manager::DIVIDER\r\n\t\t] );\r\n\t\t$this->add_group_control( Group_Control_Background::get_type(), [\r\n\t\t\t'name' => 'theme_01_feature_list_hover_background',\r\n\t\t\t'title' => esc_html__( 'Background', 'aapside-master' ),\r\n\t\t\t'selector' => \"{{WRAPPER}} .feature-list-04 .theme-01.single-feature-list-item-04:hover\"\r\n\t\t] );\r\n\r\n\t\t$this->end_controls_tab();\r\n\r\n\t\t$this->end_controls_tabs();\r\n\r\n\t\t$this->end_controls_section();\r\n\t\t/* theme one icon color end */\r\n\r\n\t\t/* theme two icon color start */\r\n\t\t$this->start_controls_section(\r\n\t\t\t'theme_two_section',\r\n\t\t\t[\r\n\t\t\t\t'label' => __( 'Theme Two Styling', 'aapside-master' ),\r\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$this->start_controls_tabs(\r\n\t\t\t'theme_two_style_tabs'\r\n\t\t);\r\n\r\n\t\t$this->start_controls_tab(\r\n\t\t\t'theme_02_style_normal_tab',\r\n\t\t\t[\r\n\t\t\t\t'label' => __( 'Normal', 'aapside-master' ),\r\n\t\t\t]\r\n\t\t);\r\n\t\t$this->add_control( 'theme_02_icon_color', [\r\n\t\t\t'label' => esc_html__( 'Icon Color', 'aapside-master' ),\r\n\t\t\t'type' => Controls_Manager::COLOR,\r\n\t\t\t'selectors' => [\r\n\t\t\t\t\"{{WRAPPER}} .feature-list-04 .theme-02.single-feature-list-item-04 .icon\" => \"color: {{VALUE}}\"\r\n\t\t\t]\r\n\t\t] );\r\n\t\t$this->add_control( 'theme_02_title_color', [\r\n\t\t\t'label' => esc_html__( 'Title Color', 'aapside-master' ),\r\n\t\t\t'type' => Controls_Manager::COLOR,\r\n\t\t\t'selectors' => [\r\n\t\t\t\t\"{{WRAPPER}} .feature-list-04 .theme-02.single-feature-list-item-04 .content .title\" => \"color: {{VALUE}}\"\r\n\t\t\t]\r\n\t\t] );\r\n\t\t$this->add_control( 'theme_02_description_color', [\r\n\t\t\t'label' => esc_html__( 'Description Color', 'aapside-master' ),\r\n\t\t\t'type' => Controls_Manager::COLOR,\r\n\t\t\t'selectors' => [\r\n\t\t\t\t\"{{WRAPPER}} .feature-list-04 .theme-02.single-feature-list-item-04 .content p\" => \"color: {{VALUE}}\"\r\n\t\t\t]\r\n\t\t] );\r\n\t\t$this->add_control( 'styling_divider_02', [\r\n\t\t\t'type' => Controls_Manager::DIVIDER\r\n\t\t] );\r\n\t\t$this->add_group_control( Group_Control_Background::get_type(), [\r\n\t\t\t'name' => 'feature_theme_02_list_background',\r\n\t\t\t'title' => esc_html__( 'Background', 'aapside-master' ),\r\n\t\t\t'selector' => \"{{WRAPPER}} .feature-list-04 .theme-02.single-feature-list-item-04\"\r\n\t\t] );\r\n\r\n\t\t$this->end_controls_tab();\r\n\r\n\t\t$this->start_controls_tab(\r\n\t\t\t'style_theme_02_hover_tab',\r\n\t\t\t[\r\n\t\t\t\t'label' => __( 'Hover', 'aapside-master' ),\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$this->add_control( 'theme_02_icon_hover_color', [\r\n\t\t\t'label' => esc_html__( 'Icon Color', 'aapside-master' ),\r\n\t\t\t'type' => Controls_Manager::COLOR,\r\n\t\t\t'selectors' => [\r\n\t\t\t\t\"{{WRAPPER}} .feature-list-04 .theme-02.single-feature-list-item-04:hover .icon\" => \"color: {{VALUE}}\"\r\n\t\t\t]\r\n\t\t] );\r\n\t\t$this->add_control( 'theme_02_title_hover_color', [\r\n\t\t\t'label' => esc_html__( 'Title Color', 'aapside-master' ),\r\n\t\t\t'type' => Controls_Manager::COLOR,\r\n\t\t\t'selectors' => [\r\n\t\t\t\t\"{{WRAPPER}} .feature-list-04 .theme-02.single-feature-list-item-04:hover .content .title\" => \"color: {{VALUE}}\"\r\n\t\t\t]\r\n\t\t] );\r\n\t\t$this->add_control( 'theme_02_description_hover_color', [\r\n\t\t\t'label' => esc_html__( 'Description Color', 'aapside-master' ),\r\n\t\t\t'type' => Controls_Manager::COLOR,\r\n\t\t\t'selectors' => [\r\n\t\t\t\t\"{{WRAPPER}} .feature-list-04 .theme-02.single-feature-list-item-04:hover .content p\" => \"color: {{VALUE}}\"\r\n\t\t\t]\r\n\t\t] );\r\n\t\t$this->add_control( 'styling_hover_divider_02', [\r\n\t\t\t'type' => Controls_Manager::DIVIDER\r\n\t\t] );\r\n\t\t$this->add_group_control( Group_Control_Background::get_type(), [\r\n\t\t\t'name' => 'theme_02_feature_list_hover_background',\r\n\t\t\t'title' => esc_html__( 'Background', 'aapside-master' ),\r\n\t\t\t'selector' => \"{{WRAPPER}} .feature-list-04 .theme-02.single-feature-list-item-04:hover\"\r\n\t\t] );\r\n\r\n\t\t$this->end_controls_tab();\r\n\r\n\t\t$this->end_controls_tabs();\r\n\r\n\r\n\t\t$this->end_controls_section();\r\n\t\t/* theme two icon end */\r\n\r\n\t\t/* theme two icon color start */\r\n\t\t$this->start_controls_section(\r\n\t\t\t'theme_three_section',\r\n\t\t\t[\r\n\t\t\t\t'label' => __( 'Theme Three Styling', 'aapside-master' ),\r\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$this->start_controls_tabs(\r\n\t\t\t'theme_three_style_tabs'\r\n\t\t);\r\n\r\n\t\t$this->start_controls_tab(\r\n\t\t\t'theme_03_style_normal_tab',\r\n\t\t\t[\r\n\t\t\t\t'label' => __( 'Normal', 'aapside-master' ),\r\n\t\t\t]\r\n\t\t);\r\n\t\t$this->add_control( 'theme_03_icon_color', [\r\n\t\t\t'label' => esc_html__( 'Icon Color', 'aapside-master' ),\r\n\t\t\t'type' => Controls_Manager::COLOR,\r\n\t\t\t'selectors' => [\r\n\t\t\t\t\"{{WRAPPER}} .feature-list-04 .theme-03.single-feature-list-item-04 .icon\" => \"color: {{VALUE}}\"\r\n\t\t\t]\r\n\t\t] );\r\n\t\t$this->add_control( 'theme_03_title_color', [\r\n\t\t\t'label' => esc_html__( 'Title Color', 'aapside-master' ),\r\n\t\t\t'type' => Controls_Manager::COLOR,\r\n\t\t\t'selectors' => [\r\n\t\t\t\t\"{{WRAPPER}} .feature-list-04 .theme-03.single-feature-list-item-04 .content .title\" => \"color: {{VALUE}}\"\r\n\t\t\t]\r\n\t\t] );\r\n\t\t$this->add_control( 'theme_03_description_color', [\r\n\t\t\t'label' => esc_html__( 'Description Color', 'aapside-master' ),\r\n\t\t\t'type' => Controls_Manager::COLOR,\r\n\t\t\t'selectors' => [\r\n\t\t\t\t\"{{WRAPPER}} .feature-list-04 .theme-03.single-feature-list-item-04 .content p\" => \"color: {{VALUE}}\"\r\n\t\t\t]\r\n\t\t] );\r\n\t\t$this->add_control( 'styling_divider_03', [\r\n\t\t\t'type' => Controls_Manager::DIVIDER\r\n\t\t] );\r\n\t\t$this->add_group_control( Group_Control_Background::get_type(), [\r\n\t\t\t'name' => 'feature_theme_03_list_background',\r\n\t\t\t'title' => esc_html__( 'Background', 'aapside-master' ),\r\n\t\t\t'selector' => \"{{WRAPPER}} .feature-list-04 .theme-03.single-feature-list-item-04\"\r\n\t\t] );\r\n\r\n\t\t$this->end_controls_tab();\r\n\r\n\t\t$this->start_controls_tab(\r\n\t\t\t'theme_03_style_hover_tab',\r\n\t\t\t[\r\n\t\t\t\t'label' => __( 'Hover', 'aapside-master' ),\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$this->add_control( 'theme_03_icon_hover_color', [\r\n\t\t\t'label' => esc_html__( 'Icon Color', 'aapside-master' ),\r\n\t\t\t'type' => Controls_Manager::COLOR,\r\n\t\t\t'selectors' => [\r\n\t\t\t\t\"{{WRAPPER}} .feature-list-04 .theme-03.single-feature-list-item-04:hover .icon\" => \"color: {{VALUE}}\"\r\n\t\t\t]\r\n\t\t] );\r\n\t\t$this->add_control( 'theme_03_title_hover_color', [\r\n\t\t\t'label' => esc_html__( 'Title Color', 'aapside-master' ),\r\n\t\t\t'type' => Controls_Manager::COLOR,\r\n\t\t\t'selectors' => [\r\n\t\t\t\t\"{{WRAPPER}} .feature-list-04 .theme-03.single-feature-list-item-04:hover .content .title\" => \"color: {{VALUE}}\"\r\n\t\t\t]\r\n\t\t] );\r\n\t\t$this->add_control( 'theme_03_description_hover_color', [\r\n\t\t\t'label' => esc_html__( 'Description Color', 'aapside-master' ),\r\n\t\t\t'type' => Controls_Manager::COLOR,\r\n\t\t\t'selectors' => [\r\n\t\t\t\t\"{{WRAPPER}} .feature-list-04 .theme-03.single-feature-list-item-04:hover .content p\" => \"color: {{VALUE}}\"\r\n\t\t\t]\r\n\t\t] );\r\n\t\t$this->add_control( 'styling_hover_divider_03', [\r\n\t\t\t'type' => Controls_Manager::DIVIDER\r\n\t\t] );\r\n\t\t$this->add_group_control( Group_Control_Background::get_type(), [\r\n\t\t\t'name' => 'theme_03_feature_list_hover_background',\r\n\t\t\t'title' => esc_html__( 'Background', 'aapside-master' ),\r\n\t\t\t'selector' => \"{{WRAPPER}} .feature-list-04 .theme-03.single-feature-list-item-04:hover\"\r\n\t\t] );\r\n\r\n\t\t$this->end_controls_tab();\r\n\r\n\t\t$this->end_controls_tabs();\r\n\r\n\r\n\t\t$this->end_controls_section();\r\n\t\t/* theme three icon color end */\r\n\t}",
"protected function _register_controls()\n {\n $this->start_controls_section(\n 'content_section',\n [\n 'label' => __('Content', 'jimmyhowedotcom'),\n 'tab' => Controls_Manager::TAB_CONTENT,\n ]\n );\n\n $this->add_control(\n 'select_superglobal',\n [\n 'label' => __('Superglobal', 'jimmyhowedotcom'),\n 'type' => Controls_Manager::SELECT,\n 'options' => [\n '$_SERVER' => __('$_SERVER', 'jimmyhowedotcom'),\n '$_REQUEST' => __('$_REQUEST', 'jimmyhowedotcom'),\n '$_POST' => __('$_POST', 'jimmyhowedotcom'),\n '$_GET' => __('$_GET', 'jimmyhowedotcom'),\n '$_FILES' => __('$_FILES', 'jimmyhowedotcom'),\n '$_ENV' => __('$_ENV', 'jimmyhowedotcom'),\n '$_COOKIE' => __('$_COOKIE', 'jimmyhowedotcom'),\n '$_SESSION' => __('$_SESSION', 'jimmyhowedotcom'),\n ],\n 'default' => 'globals',\n ]\n );\n\n $this->end_controls_section();\n }",
"protected function _register_controls() {\n\n\t\t// Widget title section\n\t\t$this->start_controls_section(\n\t\t\t'section_colormag_global_widgets_title_title_manage',\n\t\t\tarray(\n\t\t\t\t'label' => esc_html__( 'Block Title', 'colormag' ),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'widget_title',\n\t\t\tarray(\n\t\t\t\t'label' => esc_html__( 'Title:', 'colormag' ),\n\t\t\t\t'type' => Controls_Manager::TEXT,\n\t\t\t\t'placeholder' => esc_html__( 'Add your custom block title', 'colormag' ),\n\t\t\t\t'label_block' => true,\n\t\t\t)\n\t\t);\n\n\t\t$this->end_controls_section();\n\n\t\t// Widget design section\n\t\t$this->start_controls_section(\n\t\t\t'section_colormag_global_widgets_title_design_manage',\n\t\t\tarray(\n\t\t\t\t'label' => esc_html__( 'Widget Title', 'colormag' ),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'widget_title_color',\n\t\t\tarray(\n\t\t\t\t'label' => esc_html__( 'Color:', 'colormag' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'default' => '#289dcc',\n\t\t\t\t'scheme' => array(\n\t\t\t\t\t'type' => Scheme_Color::get_type(),\n\t\t\t\t\t'value' => Scheme_Color::COLOR_1,\n\t\t\t\t),\n\t\t\t\t'selectors' => array(\n\t\t\t\t\t'{{WRAPPER}} .tg-module-wrapper .module-title span' => 'background-color: {{VALUE}}',\n\t\t\t\t\t'{{WRAPPER}} .tg-module-wrapper .module-title' => 'border-bottom-color: {{VALUE}}',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'widget_title_text_color',\n\t\t\tarray(\n\t\t\t\t'label' => esc_html__( 'Text Color:', 'colormag' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'default' => '#ffffff',\n\t\t\t\t'scheme' => array(\n\t\t\t\t\t'type' => Scheme_Color::get_type(),\n\t\t\t\t\t'value' => Scheme_Color::COLOR_1,\n\t\t\t\t),\n\t\t\t\t'selectors' => array(\n\t\t\t\t\t'{{WRAPPER}} .tg-module-wrapper .module-title span' => 'color: {{VALUE}}',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\n\t\t$this->end_controls_section();\n\t}",
"protected function _register_controls() {\n\t\t\t\t$this->start_controls_section(\n\t\t\t\t\t'section_sc_rating_posts',\n\t\t\t\t\t[\n\t\t\t\t\t\t'label' => __( 'Widget: Post by rating', 'trx_addons' ),\n\t\t\t\t\t]\n\t\t\t\t);\n\n\t\t\t\t$this->add_control(\n\t\t\t\t\t'title',\n\t\t\t\t\t[\n\t\t\t\t\t\t'label' => __( 'Title', 'trx_addons' ),\n\t\t\t\t\t\t'label_block' => false,\n\t\t\t\t\t\t'type' => \\Elementor\\Controls_Manager::TEXT,\n\t\t\t\t\t\t'placeholder' => __( \"Widget title\", 'trx_addons' ),\n\t\t\t\t\t\t'default' => ''\n\t\t\t\t\t]\n\t\t\t\t);\n\n\t\t\t\t$this->add_control(\n\t\t\t\t\t'number',\n\t\t\t\t\t[\n\t\t\t\t\t\t'label' => __( 'Number posts to show', 'trx_addons' ),\n\t\t\t\t\t\t'type' => \\Elementor\\Controls_Manager::SLIDER,\n\t\t\t\t\t\t'default' => [\n\t\t\t\t\t\t\t'size' => 4,\n\t\t\t\t\t\t],\n\t\t\t\t\t\t'range' => [\n\t\t\t\t\t\t\t'px' => [\n\t\t\t\t\t\t\t\t'min' => 1,\n\t\t\t\t\t\t\t\t'max' => 12\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t]\n\t\t\t\t\t]\n\t\t\t\t);\n\t\t\t\t\n\n\t\t\t\t$this->add_control(\n\t\t\t\t\t'post_type',\n\t\t\t\t\t[\n\t\t\t\t\t\t'label' => __( 'Post type', 'trx_addons' ),\n\t\t\t\t\t\t'label_block' => false,\n\t\t\t\t\t\t'type' => \\Elementor\\Controls_Manager::SELECT,\n\t\t\t\t\t\t'options' => trx_addons_get_list_reviews_posts_types(),\n\t\t\t\t\t\t'default' => 'post'\n\t\t\t\t\t]\n\t\t\t\t);\n\n\n\t\t\t\t$this->add_control(\n\t\t\t\t\t'details',\n\t\t\t\t\t[\n\t\t\t\t\t\t'label' => __( 'Details', 'elementor' ),\n\t\t\t\t\t\t'type' => \\Elementor\\Controls_Manager::HEADING,\n\t\t\t\t\t\t'separator' => 'before',\n\t\t\t\t\t]\n\t\t\t\t);\n\n\t\t\t\t$this->add_control(\n\t\t\t\t\t'show_image',\n\t\t\t\t\t[\n\t\t\t\t\t\t'label' => __( \"Show post's image\", 'trx_addons' ),\n\t\t\t\t\t\t'label_block' => false,\n\t\t\t\t\t\t'type' => \\Elementor\\Controls_Manager::SWITCHER,\n\t\t\t\t\t\t'label_off' => __( 'Hide', 'trx_addons' ),\n\t\t\t\t\t\t'label_on' => __( 'Show', 'trx_addons' ),\n\t\t\t\t\t\t'default' => 1,\n\t\t\t\t\t\t'return_value' => '1'\n\t\t\t\t\t]\n\t\t\t\t);\n\n\t\t\t\t$this->add_control(\n\t\t\t\t\t'show_author',\n\t\t\t\t\t[\n\t\t\t\t\t\t'label' => __( \"Show post's author\", 'trx_addons' ),\n\t\t\t\t\t\t'label_block' => false,\n\t\t\t\t\t\t'type' => \\Elementor\\Controls_Manager::SWITCHER,\n\t\t\t\t\t\t'label_off' => __( 'Hide', 'trx_addons' ),\n\t\t\t\t\t\t'label_on' => __( 'Show', 'trx_addons' ),\n\t\t\t\t\t\t'default' => 1,\n\t\t\t\t\t\t'return_value' => '1'\n\t\t\t\t\t]\n\t\t\t\t);\n\n\t\t\t\t$this->add_control(\n\t\t\t\t\t'show_date',\n\t\t\t\t\t[\n\t\t\t\t\t\t'label' => __( \"Show post's date\", 'trx_addons' ),\n\t\t\t\t\t\t'label_block' => false,\n\t\t\t\t\t\t'type' => \\Elementor\\Controls_Manager::SWITCHER,\n\t\t\t\t\t\t'label_off' => __( 'Hide', 'trx_addons' ),\n\t\t\t\t\t\t'label_on' => __( 'Show', 'trx_addons' ),\n\t\t\t\t\t\t'default' => 1,\n\t\t\t\t\t\t'return_value' => '1'\n\t\t\t\t\t]\n\t\t\t\t);\n\n\t\t\t\t$this->add_control(\n\t\t\t\t\t'show_counters',\n\t\t\t\t\t[\n\t\t\t\t\t\t'label' => __( \"Show post's counters\", 'trx_addons' ),\n\t\t\t\t\t\t'label_block' => false,\n\t\t\t\t\t\t'type' => \\Elementor\\Controls_Manager::SWITCHER,\n\t\t\t\t\t\t'label_off' => __( 'Hide', 'trx_addons' ),\n\t\t\t\t\t\t'label_on' => __( 'Show', 'trx_addons' ),\n\t\t\t\t\t\t'default' => 1,\n\t\t\t\t\t\t'return_value' => '1'\n\t\t\t\t\t]\n\t\t\t\t);\n\n\t\t\t\t$this->add_control(\n\t\t\t\t\t'show_categories',\n\t\t\t\t\t[\n\t\t\t\t\t\t'label' => __( \"Show post's categories\", 'trx_addons' ),\n\t\t\t\t\t\t'label_block' => false,\n\t\t\t\t\t\t'type' => \\Elementor\\Controls_Manager::SWITCHER,\n\t\t\t\t\t\t'label_off' => __( 'Hide', 'trx_addons' ),\n\t\t\t\t\t\t'label_on' => __( 'Show', 'trx_addons' ),\n\t\t\t\t\t\t'default' => 1,\n\t\t\t\t\t\t'return_value' => '1'\n\t\t\t\t\t]\n\t\t\t\t);\n\n\t\t\t\t$this->end_controls_section();\n\t\t\t}",
"function foucs_admin_about_callback() {\n\t$aboutus_desc = esc_attr( get_option('about_us') );\n echo '<input type=\"text\" name=\"about_us\" value=\"'.$aboutus_desc .'\" placeholder=\"About Us\">\n <p class=\"description\">Write something smart. will Show About Us Description in <strong> Footer </strong></p>';\n}",
"protected function _register_controls() {\r\n\t\t$this->start_controls_section(\r\n\t\t\t'section_content',\r\n\t\t\t[\r\n\t\t\t\t'label' => __( 'Simple Modal', 'elementor-imgtec' ),\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$this->add_control(\r\n\t\t\t'unique_identifier',\r\n\t\t\t[\r\n\t\t\t\t'label' => __( 'Unique ID For Modal', 'elementor-imgtec' ),\r\n\t\t\t\t'type' => Controls_Manager::TEXT,\r\n\t\t\t\t'placeholder' => 'enter-unique-id-here'\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$this->add_control(\r\n\t\t\t'open_modal_type',\r\n\t\t\t[\r\n\t\t\t\t'label' \t=> 'Open Modal Type',\r\n\t\t\t\t'type' \t\t=> Controls_Manager::CHOOSE,\r\n\t\t\t\t'default' \t=> 'text',\r\n\t\t\t\t'options' \t=> [\r\n\t\t\t\t\t'text' \t\t=> [\r\n\t\t\t\t\t\t'title' \t=> __( '<a> Tag', 'elementor-imgtec' ),\r\n\t\t\t\t\t\t'icon' \t\t=> 'eicon-animation-text'\r\n\t\t\t\t\t],\r\n\t\t\t\t\t'button' \t=> [\r\n\t\t\t\t\t\t'title' \t=> __( '<button> Tag', 'elementor-imgtec' ),\r\n\t\t\t\t\t\t'icon' \t\t=> 'eicon-button'\r\n\t\t\t\t\t],\r\n\t\t\t\t\t'btn_primary' \t=> [\r\n\t\t\t\t\t\t'title' \t=> __( '<a class=\"btn-primary\">', 'elementor-imgtec' ),\r\n\t\t\t\t\t\t'icon' \t\t=> 'eicon-button'\r\n\t\t\t\t\t]\r\n\t\t\t\t],\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$this->add_control(\r\n\t\t\t'open_modal_text',\r\n\t\t\t[\r\n\t\t\t\t'label' \t\t=> __( 'Open Modal Text', 'elementor-imgtec' ),\r\n\t\t\t\t'type' \t\t\t=> Controls_Manager::TEXT,\r\n\t\t\t\t'default' \t\t=> 'Display Modal',\r\n\t\t\t\t'description' \t=> __( 'This text will open your modal when clicked.' ,'elementor-imgtec' )\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$this->add_control(\r\n\t\t\t'modal_content',\r\n\t\t\t[\r\n\t\t\t\t'label' \t\t=> __( 'Modal Content', 'elementor-imgtec' ),\r\n\t\t\t\t'type' \t\t\t=> Controls_Manager::WYSIWYG,\r\n\t\t\t\t'placeholder' \t=> __( 'Enter the content you wish to be contained on your modal. You can include images, videos, files from the media gallery, etc.' ,'elementor-imgtec' ),\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$this->add_control(\r\n\t\t\t'extra_modal_close',\r\n\t\t\t[\r\n\t\t\t\t'label' \t\t=> __( 'Extra Close Trigger Needed?', 'elementor-imgtec' ),\r\n\t\t\t\t'type' \t\t\t=> Controls_Manager::SWITCHER,\r\n\t\t\t\t'default' \t\t=> 'no',\r\n\t\t\t\t'label_on' \t\t=> __( 'YES', 'elementor-imgtec' ),\r\n\t\t\t\t'label_off' \t=> __( 'NO', 'elementor-imgtec' ),\r\n\t\t\t\t'return_value' \t=> 'yes',\r\n\t\t\t\t'description' \t=> __( 'This will be in addition to the \"X\" close button in the top right hand corner of the modal window', 'elementor-imgtec' )\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$this->add_control(\r\n\t\t\t'close_modal_type',\r\n\t\t\t[\r\n\t\t\t\t'label' \t=> 'Close Modal Type',\r\n\t\t\t\t'type' \t\t=> Controls_Manager::CHOOSE,\r\n\t\t\t\t'default' \t=> 'text',\r\n\t\t\t\t'options' \t=> [\r\n\t\t\t\t\t'text' \t\t=> [\r\n\t\t\t\t\t\t'title' \t=> __( '<a> Tag', 'elementor-imgtec' ),\r\n\t\t\t\t\t\t'icon' \t\t=> 'eicon-animation-text'\r\n\t\t\t\t\t],\r\n\t\t\t\t\t'button' \t=> [\r\n\t\t\t\t\t\t'title' \t=> __( '<button> Tag', 'elementor-imgtec' ),\r\n\t\t\t\t\t\t'icon' \t\t=> 'eicon-button'\r\n\t\t\t\t\t],\r\n\t\t\t\t\t'btn_primary' => [\r\n\t\t\t\t\t\t'title' \t=> __( '<a class=\"btn-primary\">', 'elementor-imgtec' ),\r\n\t\t\t\t\t\t'icon' \t\t=> 'eicon-button'\r\n\t\t\t\t\t]\r\n\t\t\t\t],\r\n\t\t\t\t'condition' => [\r\n\t\t\t\t\t'extra_modal_close' => 'yes'\r\n\t\t\t\t]\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$this->add_control(\r\n\t\t\t'close_modal_text',\r\n\t\t\t[\r\n\t\t\t\t'label' \t\t=> __( 'Close Modal Text', 'elementor-imgtec' ),\r\n\t\t\t\t'type' \t\t\t=> Controls_Manager::TEXT,\r\n\t\t\t\t'default' \t\t=> 'Close Modal',\r\n\t\t\t\t'description' \t=> __( 'This text will close your modal when clicked.' ,'elementor-imgtec' ),\r\n\t\t\t\t'condition' \t=> [\r\n\t\t\t\t\t'extra_modal_close' => 'yes'\r\n\t\t\t\t]\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$this->end_controls_section();\r\n\r\n\t}",
"function __construct() {\n\n //Call the parent constructor with the required arguments.\n parent::__construct(\n // The unique id for your widget.\n 'madang_aboutus_widget',\n\n // The name of the widget for display purposes.\n esc_html__('Madang About us', 'madang'),\n\n // The $widget_options array, which is passed through to WP_Widget.\n // It has a couple of extras like the optional help URL, which should link to your sites help or support page.\n array(\n 'description' => esc_html__('Create About Us Section', 'madang'),\n 'panels_groups' => array('madang'),\n 'help' => 'http://madang_docs.kenzap.com',\n ),\n\n //The $control_options array, which is passed through to WP_Widget\n array(\n ),\n\n //The $form_options array, which describes the form fields used to configure SiteOrigin widgets. We'll explain these in more detail later.\n array(\n 'title' => array(\n 'type' => 'text',\n 'label' => esc_html__('About us title', 'madang'),\n 'default' => ''\n ),\n 'text' => array(\n 'type' => 'textarea',\n 'label' => esc_html__('About us text', 'madang'),\n 'default' => ''\n ),\n 'text_right' => array(\n 'type' => 'textarea',\n 'label' => esc_html__('About us text right', 'madang'),\n 'default' => ''\n ),\n 'text_left' => array(\n 'type' => 'textarea',\n 'label' => esc_html__('About us text left', 'madang'),\n 'default' => ''\n ),\n 'img1' => array(\n 'type' => 'media',\n 'label' => esc_html__( 'Choose first image', 'madang' ),\n 'choose' => esc_html__( 'Choose image', 'madang' ),\n 'update' => esc_html__( 'Set image', 'madang' ),\n 'library' => 'image',\n 'fallback' => true\n ),\n 'img2' => array(\n 'type' => 'media',\n 'label' => esc_html__( 'Choose second image', 'madang' ),\n 'choose' => esc_html__( 'Choose image', 'madang' ),\n 'update' => esc_html__( 'Set image', 'madang' ),\n 'library' => 'image',\n 'fallback' => true\n ),\n 'img3' => array(\n 'type' => 'media',\n 'label' => esc_html__( 'Choose third image', 'madang' ),\n 'choose' => esc_html__( 'Choose image', 'madang' ),\n 'update' => esc_html__( 'Set image', 'madang' ),\n 'library' => 'image',\n 'fallback' => true\n ),\n 'img4' => array(\n 'type' => 'media',\n 'label' => esc_html__( 'Choose fourth image', 'madang' ),\n 'choose' => esc_html__( 'Choose image', 'madang' ),\n 'update' => esc_html__( 'Set image', 'madang' ),\n 'library' => 'image',\n 'fallback' => true\n ),\n 'img5' => array(\n 'type' => 'media',\n 'label' => esc_html__( 'Choose fifth image', 'madang' ),\n 'choose' => esc_html__( 'Choose image', 'madang' ),\n 'update' => esc_html__( 'Set image', 'madang' ),\n 'library' => 'image',\n 'fallback' => true\n ),\n 'button_url' => array(\n 'type' => 'link',\n 'label' => esc_html__('Button Link', 'madang'),\n 'description' => esc_html__('Button url', 'madang'),\n 'default' => '#'\n ),\n 'button_text' => array(\n 'type' => 'text',\n 'label' => esc_html__('Button Text', 'madang'),\n 'description' => esc_html__('Button CTA text', 'madang'),\n 'default' => ''\n ),\n ),\n\n //The $base_folder path string.\n plugin_dir_path(__FILE__)\n );\n }",
"protected function _register_controls() {\n\n\t\t$this->start_controls_section(\n\t\t\t'section_content',\n\t\t\t[\n\t\t\t\t'label' => __( 'Content', 'phoenixdigi' ),\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'title',\n\t\t\t[\n\t\t\t\t'label' => __( 'Title', 'phoenixdigi' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::TEXT,\n\t\t\t\t'dynamic' => [\n\t\t\t\t\t'active' => true,\n\t\t\t\t],\n\t\t\t\t'default' => __( 'Milestones', 'phoenixdigi' ),\n\t\t\t\t'placeholder' => __( 'Milestones', 'phoenixdigi' ),\n\t\t\t]\n\t\t);\n\n\t\t$repeater = new \\Elementor\\Repeater();\n\n\t\t$repeater->add_control(\n\t\t\t'text',\n\t\t\t[\n\t\t\t\t'label' => __( 'Text', 'phoenixdigi' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::TEXT,\n\t\t\t\t'dynamic' => [\n\t\t\t\t\t'active' => true,\n\t\t\t\t],\n\t\t\t\t'default' => __( 'October 2018: Docker named a Leader in The Forrester New Wave™: Enterprise Container Platform Software Suites, Q4 2018 report', 'phoenixdigi' ),\n\t\t\t\t'placeholder' => __( 'October 2018: Docker named a Leader in The Forrester New Wave™: Enterprise Container Platform Software Suites, Q4 2018 report', 'phoenixdigi' ),\n\t\t\t]\n\t\t);\n\n\t\t$repeater->add_control(\n\t\t\t'acquisition',\n\t\t\t[\n\t\t\t\t'label' => __( 'Acquisition', 'phoenixdigi' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::SWITCHER,\n\t\t\t\t'label_off' => __( 'No', 'phoenixdigi' ),\n\t\t\t\t'label_on' => __( 'Yes', 'phoenixdigi' ),\n\t\t\t\t'default' => 'no',\n\t\t\t]\n\t\t);\n\n\n\t\t$this->add_control(\n\t\t\t'items',\n\t\t\t[\n\t\t\t\t'label' => __( 'Items', 'phoenixdigi' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::REPEATER,\n\t\t\t\t'fields' => $repeater->get_controls(),\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_section();\n\n\t}",
"public function register_ui() {\n\t\t$this->wp_customize->add_panel( self::PANEL_ID, array(\n\t\t\t'type' => 'amp',\n\t\t\t'title' => __( 'AMP', 'amp' ),\n\t\t\t/* translators: placeholder is URL to AMP project. */\n\t\t\t'description' => sprintf( __( '<a href=\"%s\" target=\"_blank\">The AMP Project</a> is a Google-led initiative that dramatically improves loading speeds on phones and tablets. You can use the Customizer to preview changes to your AMP template before publishing them.', 'amp' ), 'https://ampproject.org' ),\n\t\t) );\n\n\t\t/**\n\t\t * Fires after the AMP panel has been registered for plugins to add additional controls.\n\t\t *\n\t\t * In practice the `customize_register` hook should be used instead.\n\t\t *\n\t\t * @since 0.4\n\t\t * @param WP_Customize_Manager $manager Manager.\n\t\t */\n\t\tdo_action( 'amp_customizer_register_ui', $this->wp_customize );\n\t}",
"public function registerControlsUI(){\n\t\t/*\n\t\tif (!$this->getParams()) {\n\t\t\techo \" no hay parametros \" . __CLASS__;\n\t\t}\n\t\telse {\n\t\t\tprint_r($this->getParams());\n\t\t}\n\t\t*/\n\t\t\n// \t$this->registerControlUI($this->_comboRespuestas());\n \t\n \t$txaDesc = ExjUI::NewTextArea('response_inc_res', 'Descripción');\n \t$txaDesc->height = 210;\n \t$this->registerControlUI($txaDesc);\n\t}",
"function shop_isle_companion_customize_register($wp_customize) {\n\n\t$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';\n\n\t/**\n\t * Class ShopIsle_Companion_Aboutus_Page_Instructions\n\t */\n\tclass ShopIsle_Companion_Aboutus_Page_Instructions extends WP_Customize_Control {\n\t\t/**\n\t\t * Render about page instruction\n\t\t */\n\t\tpublic function render_content() {\n\t\t\techo __( 'To customize the About us Page you need to first select the template \"About us page\" for the page you want to use for this purpose. Then open that page in the browser and press \"Customize\" in the top bar.', 'themeisle-companion' ) . '<br><br>' . __( 'Need further assistance? Check out this', 'themeisle-companion' ) . ' <a href=\"http://docs.themeisle.com/article/211-shopisle-customizing-the-contact-and-about-us-page\" target=\"_blank\">' . __( 'doc', 'themeisle-companion' ) . '</a>';\n\t\t}\n\t}\n\n\t/*==========REMOVE BIG TITLE SECTION==========*/\n\t$wp_customize->remove_section( 'shop_isle_big_title_section' );\n\n\n\t/*==========SLIDER SECTION==========*/\n\t$wp_customize->add_section( 'shop_isle_slider_section', array(\n\t\t'title' => __( 'Slider section', 'themeisle-companion' ),\n\t\t'panel' => 'shop_isle_front_page_sections',\n\t\t'priority' => 1,\n\t) );\n\n\n\tif ( ! empty( $shop_isle_big_title_image ) || ! empty( $shop_isle_big_title_title ) || ! empty( $shop_isle_big_title_subtitle ) || ! empty( $shop_isle_big_title_button_label ) || ! empty( $shop_isle_big_title_button_link ) ) {\n\t\t$shop_isle_companion_big_title_content;\n\t}\n\n\t/* Slider */\n\t$wp_customize->add_setting( 'shop_isle_slider', array(\n\t\t\t'sanitize_callback' => 'shop_isle_sanitize_repeater',\n\t\t\t'default' => json_encode( array(\n\t\t\t\tarray(\n\t\t\t\t\t'image_url' => get_template_directory_uri() . '/assets/images/slide1.jpg',\n\t\t\t\t\t'link' => '#',\n\t\t\t\t\t'text' => __( 'ShopIsle', 'themeisle-companion' ),\n\t\t\t\t\t'subtext' => __( 'WooCommerce Theme', 'themeisle-companion' ),\n\t\t\t\t\t'label' => __( 'FIND OUT MORE', 'themeisle-companion' )\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'image_url' => get_template_directory_uri() . '/assets/images/slide2.jpg',\n\t\t\t\t\t'link' => '#',\n\t\t\t\t\t'text' => __( 'ShopIsle', 'themeisle-companion' ),\n\t\t\t\t\t'subtext' => __( 'Hight quality store', 'themeisle-companion' ),\n\t\t\t\t\t'label' => __( 'FIND OUT MORE', 'themeisle-companion' )\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'image_url' => get_template_directory_uri() . '/assets/images/slide3.jpg',\n\t\t\t\t\t'link' => '#',\n\t\t\t\t\t'text' => __( 'ShopIsle', 'themeisle-companion' ),\n\t\t\t\t\t'subtext' => __( 'Responsive Theme', 'themeisle-companion' ),\n\t\t\t\t\t'label' => __( 'FIND OUT MORE', 'themeisle-companion' )\n\t\t\t\t)\n\t\t\t) ),\n\t\t)\n\t);\n\n\tif ( class_exists( 'Shop_Isle_Repeater_Controler' ) ) {\n\t\t$wp_customize->add_control( new Shop_Isle_Repeater_Controler( $wp_customize, 'shop_isle_slider', array(\n\t\t\t'label' => __( 'Add new slide', 'themeisle-companion' ),\n\t\t\t'section' => 'shop_isle_slider_section',\n\t\t\t'active_callback' => 'is_front_page',\n\t\t\t'priority' => 2,\n\t\t\t'shop_isle_image_control' => true,\n\t\t\t'shop_isle_text_control' => true,\n\t\t\t'shop_isle_link_control' => true,\n\t\t\t'shop_isle_subtext_control' => true,\n\t\t\t'shop_isle_label_control' => true,\n\t\t\t'shop_isle_icon_control' => false,\n\t\t\t'shop_isle_box_label' => __( 'Slide', 'themeisle-companion' ),\n\t\t\t'shop_isle_box_add_label' => __( 'Add new slide', 'themeisle-companion' ),\n\t\t) ) );\n\t}\n\n\t/* Slider shortcode */\n\t$wp_customize->add_setting( 'shop_isle_homepage_slider_shortcode', array(\n\t\t'sanitize_callback' => 'shop_isle_sanitize_text',\n\t) );\n\n\t$wp_customize->add_control( 'shop_isle_homepage_slider_shortcode', array(\n\t\t'label' => __( 'Slider shortcode', 'themeisle-companion' ),\n\t\t'description' => __( 'You can replace the homepage slider with any plugin you like, just copy the shortcode generated and paste it here.', 'themeisle-companion' ),\n\t\t'section' => 'shop_isle_slider_section',\n\t\t'active_callback' => 'is_front_page',\n\t\t'priority' => 10\n\t) );\n\n\t/*********************************/\n\t/****** About us page **********/\n\t/*********************************/\n\tif ( class_exists( 'WP_Customize_Panel' ) ):\n\t\t$wp_customize->add_panel( 'panel_team', array(\n\t\t\t'priority' => 52,\n\t\t\t'capability' => 'edit_theme_options',\n\t\t\t'theme_supports' => '',\n\t\t\t'title' => __( 'About us page', 'themeisle-companion' )\n\t\t) );\n\t\t$wp_customize->add_section( 'shop_isle_about_page_section', array(\n\t\t\t'title' => __( 'Our team', 'themeisle-companion' ),\n\t\t\t'priority' => 1,\n\t\t\t'panel' => 'panel_team'\n\t\t) );\n\telse:\n\t\t$wp_customize->add_section( 'shop_isle_about_page_section', array(\n\t\t\t'title' => __( 'About us page - our team', 'themeisle-companion' ),\n\t\t\t'priority' => 52\n\t\t) );\n\tendif;\n\t/* Our team title */\n\t$wp_customize->add_setting( 'shop_isle_our_team_title', array(\n\t\t'sanitize_callback' => 'shop_isle_sanitize_text',\n\t\t'default' => __( 'Meet our team', 'themeisle-companion' ),\n\t\t'transport' => $selective_refresh,\n\t) );\n\t$wp_customize->add_control( 'shop_isle_our_team_title', array(\n\t\t'label' => __( 'Title', 'themeisle-companion' ),\n\t\t'section' => 'shop_isle_about_page_section',\n\t\t'active_callback' => 'shop_isle_companion_is_aboutus_page',\n\t\t'priority' => 1,\n\t) );\n\t/* Our team subtitle */\n\t$wp_customize->add_setting( 'shop_isle_our_team_subtitle', array(\n\t\t'sanitize_callback' => 'shop_isle_sanitize_text',\n\t\t'default' => __( 'An awesome way to introduce the members of your team.', 'themeisle-companion' ),\n\t\t'transport' => $selective_refresh,\n\t) );\n\t$wp_customize->add_control( 'shop_isle_our_team_subtitle', array(\n\t\t'label' => __( 'Subtitle', 'themeisle-companion' ),\n\t\t'section' => 'shop_isle_about_page_section',\n\t\t'active_callback' => 'shop_isle_companion_is_aboutus_page',\n\t\t'priority' => 2,\n\t) );\n\t/* Team members */\n\t$wp_customize->add_setting( 'shop_isle_team_members', array(\n\t\t'sanitize_callback' => 'shop_isle_sanitize_repeater',\n\t\t'transport' => $selective_refresh,\n\t\t'default' => json_encode( array(\n\t\t\tarray(\n\t\t\t\t'image_url' => get_template_directory_uri() . '/assets/images/team1.jpg',\n\t\t\t\t'text' => 'Eva Bean',\n\t\t\t\t'subtext' => 'Developer',\n\t\t\t\t'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit lacus, a iaculis diam.'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'image_url' => get_template_directory_uri() . '/assets/images/team2.jpg',\n\t\t\t\t'text' => 'Maria Woods',\n\t\t\t\t'subtext' => 'Designer',\n\t\t\t\t'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit lacus, a iaculis diam.'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'image_url' => get_template_directory_uri() . '/assets/images/team3.jpg',\n\t\t\t\t'text' => 'Booby Stone',\n\t\t\t\t'subtext' => 'Director',\n\t\t\t\t'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit lacus, a iaculis diam.'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'image_url' => get_template_directory_uri() . '/assets/images/team4.jpg',\n\t\t\t\t'text' => 'Anna Neaga',\n\t\t\t\t'subtext' => 'Art Director',\n\t\t\t\t'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit lacus, a iaculis diam.'\n\t\t\t)\n\t\t) ),\n\t) );\n\tif ( class_exists( 'Shop_Isle_Repeater_Controler' ) ) {\n\t\t$wp_customize->add_control( new Shop_Isle_Repeater_Controler( $wp_customize, 'shop_isle_team_members', array(\n\t\t\t'label' => __( 'Add new team member', 'themeisle-companion' ),\n\t\t\t'section' => 'shop_isle_about_page_section',\n\t\t\t'active_callback' => 'shop_isle_companion_is_aboutus_page',\n\t\t\t'priority' => 3,\n\t\t\t'shop_isle_image_control' => true,\n\t\t\t'shop_isle_link_control' => false,\n\t\t\t'shop_isle_text_control' => true,\n\t\t\t'shop_isle_subtext_control' => true,\n\t\t\t'shop_isle_label_control' => false,\n\t\t\t'shop_isle_icon_control' => false,\n\t\t\t'shop_isle_description_control' => true,\n\t\t\t'shop_isle_box_label' => __( 'Team member', 'themeisle-companion' ),\n\t\t\t'shop_isle_box_add_label' => __( 'Add new team member', 'themeisle-companion' )\n\t\t) ) );\n\t}\n\t/***********************************************************************************/\n\t/****** About us page - instructions for users when not on About us page *********/\n\t/***********************************************************************************/\n\t$wp_customize->add_section( 'shop_isle_aboutus_page_instructions', array(\n\t\t'title' => __( 'About us page', 'themeisle-companion' ),\n\t\t'priority' => 52\n\t) );\n\t$wp_customize->add_setting( 'shop_isle_aboutus_page_instructions', array(\n\t\t'sanitize_callback' => 'shop_isle_sanitize_text'\n\t) );\n\t$wp_customize->add_control( new ShopIsle_Companion_Aboutus_Page_Instructions( $wp_customize, 'shop_isle_aboutus_page_instructions', array(\n\t\t'section' => 'shop_isle_aboutus_page_instructions',\n\t\t'active_callback' => 'shop_isle_companion_is_not_aboutus_page',\n\t) ) );\n\tif ( class_exists( 'WP_Customize_Panel' ) ):\n\t\t$wp_customize->add_section( 'shop_isle_about_page_video_section', array(\n\t\t\t'title' => __( 'Video', 'themeisle-companion' ),\n\t\t\t'priority' => 2,\n\t\t\t'panel' => 'panel_team'\n\t\t) );\n\telse:\n\t\t$wp_customize->add_section( 'shop_isle_about_page_video_section', array(\n\t\t\t'title' => __( 'About us page - video', 'themeisle-companion' ),\n\t\t\t'priority' => 53\n\t\t) );\n\tendif;\n\t/* Video title */\n\t$wp_customize->add_setting( 'shop_isle_about_page_video_title', array(\n\t\t'sanitize_callback' => 'shop_isle_sanitize_text',\n\t\t'default' => __( 'Presentation', 'themeisle-companion' ),\n\t\t'transport' => $selective_refresh,\n\t) );\n\t$wp_customize->add_control( 'shop_isle_about_page_video_title', array(\n\t\t'label' => __( 'Title', 'themeisle-companion' ),\n\t\t'section' => 'shop_isle_about_page_video_section',\n\t\t'active_callback' => 'shop_isle_companion_is_aboutus_page',\n\t\t'priority' => 1,\n\t) );\n\t/* Video subtitle */\n\t$wp_customize->add_setting( 'shop_isle_about_page_video_subtitle', array(\n\t\t'sanitize_callback' => 'shop_isle_sanitize_text',\n\t\t'default' => __( 'What the video about our new products', 'themeisle-companion' ),\n\t\t'transport' => $selective_refresh,\n\t) );\n\t$wp_customize->add_control( 'shop_isle_about_page_video_subtitle', array(\n\t\t'label' => __( 'Subtitle', 'themeisle-companion' ),\n\t\t'section' => 'shop_isle_about_page_video_section',\n\t\t'active_callback' => 'shop_isle_companion_is_aboutus_page',\n\t\t'priority' => 2,\n\t) );\n\t/* Video background */\n\t$wp_customize->add_setting( 'shop_isle_about_page_video_background', array(\n\t\t'default' => get_template_directory_uri() . '/assets/images/background-video.jpg',\n\t\t'transport' => 'postMessage',\n\t\t'sanitize_callback' => 'esc_url'\n\t) );\n\t$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'shop_isle_about_page_video_background', array(\n\t\t'label' => __( 'Background', 'themeisle-companion' ),\n\t\t'section' => 'shop_isle_about_page_video_section',\n\t\t'active_callback' => 'shop_isle_companion_is_aboutus_page',\n\t\t'priority' => 3,\n\t) ) );\n\t/* Video link */\n\t$wp_customize->add_setting( 'shop_isle_about_page_video_link', array(\n\t\t'sanitize_callback' => 'shop_isle_sanitize_text',\n\t\t'transport' => 'postMessage'\n\t) );\n\t$wp_customize->add_control( 'shop_isle_about_page_video_link', array(\n\t\t'label' => __( 'Video', 'themeisle-companion' ),\n\t\t'section' => 'shop_isle_about_page_video_section',\n\t\t'active_callback' => 'shop_isle_companion_is_aboutus_page',\n\t\t'priority' => 4,\n\t) );\n\tif ( class_exists( 'WP_Customize_Panel' ) ):\n\t\t$wp_customize->add_section( 'shop_isle_about_page_advantages_section', array(\n\t\t\t'title' => __( 'Our advantages', 'themeisle-companion' ),\n\t\t\t'priority' => 3,\n\t\t\t'panel' => 'panel_team'\n\t\t) );\n\telse:\n\t\t$wp_customize->add_section( 'shop_isle_about_page_advantages_section', array(\n\t\t\t'title' => __( 'About us page - our advantages', 'themeisle-companion' ),\n\t\t\t'priority' => 54\n\t\t) );\n\tendif;\n\t/* Our advantages title */\n\t$wp_customize->add_setting( 'shop_isle_our_advantages_title', array(\n\t\t'sanitize_callback' => 'shop_isle_sanitize_text',\n\t\t'default' => __( 'Our advantages', 'themeisle-companion' ),\n\t\t'transport' => $selective_refresh,\n\t) );\n\t$wp_customize->add_control( 'shop_isle_our_advantages_title', array(\n\t\t'label' => __( 'Title', 'themeisle-companion' ),\n\t\t'section' => 'shop_isle_about_page_advantages_section',\n\t\t'active_callback' => 'shop_isle_companion_is_aboutus_page',\n\t\t'priority' => 1,\n\t) );\n\t/* Advantages */\n\t$wp_customize->add_setting( 'shop_isle_advantages', array(\n\t\t'sanitize_callback' => 'shop_isle_sanitize_repeater',\n\t\t'transport' => $selective_refresh,\n\t\t'default' => json_encode( array(\n\t\t\tarray(\n\t\t\t\t'icon_value' => 'icon_lightbulb',\n\t\t\t\t'text' => __( 'Ideas and concepts', 'themeisle-companion' ),\n\t\t\t\t'subtext' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'themeisle-companion' )\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'icon_value' => 'icon_tools',\n\t\t\t\t'text' => __( 'Designs & interfaces', 'themeisle-companion' ),\n\t\t\t\t'subtext' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'themeisle-companion' )\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'icon_value' => 'icon_cogs',\n\t\t\t\t'text' => __( 'Highly customizable', 'themeisle-companion' ),\n\t\t\t\t'subtext' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'themeisle-companion' )\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'icon_value' => 'icon_like',\n\t\t\t\t'text' => __( 'Easy to use', 'themeisle-companion' ),\n\t\t\t\t'subtext' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'themeisle-companion' )\n\t\t\t)\n\t\t) ),\n\t) );\n\tif ( class_exists( 'Shop_Isle_Repeater_Controler' ) ) {\n\t\t$wp_customize->add_control( new Shop_Isle_Repeater_Controler( $wp_customize, 'shop_isle_advantages', array(\n\t\t\t'label' => __( 'Add new advantage', 'themeisle-companion' ),\n\t\t\t'section' => 'shop_isle_about_page_advantages_section',\n\t\t\t'active_callback' => 'shop_isle_companion_is_aboutus_page',\n\t\t\t'priority' => 2,\n\t\t\t'shop_isle_image_control' => false,\n\t\t\t'shop_isle_link_control' => false,\n\t\t\t'shop_isle_text_control' => true,\n\t\t\t'shop_isle_subtext_control' => true,\n\t\t\t'shop_isle_label_control' => false,\n\t\t\t'shop_isle_icon_control' => true,\n\t\t\t'shop_isle_description_control' => false,\n\t\t\t'shop_isle_box_label' => __( 'Advantage', 'themeisle-companion' ),\n\t\t\t'shop_isle_box_add_label' => __( 'Add new advantage', 'themeisle-companion' )\n\t\t) ) );\n\t}\n}",
"protected function _register_controls()\n\t{\n\t\t$this->start_controls_section(\n\t\t\t'section_style',\n\t\t\tarray(\n\t\t\t\t'label' => esc_html__('Style', 'elementor'),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'product_title_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Color', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .webt-customer-logout a' => 'color: {{VALUE}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\tarray(\n\t\t\t\t'name' => 'typography',\n\t\t\t\t'label' => esc_html__('Typography', 'elementor'),\n\t\t\t\t'selector' => '{{WRAPPER}} .webt-customer-logout a',\n\t\t\t)\n\t\t);\n\n\t\t$this->add_responsive_control(\n\t\t\t'align',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Alignment', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::CHOOSE,\n\t\t\t\t'options' => [\n\t\t\t\t\t'left' => [\n\t\t\t\t\t\t'title' => esc_html__('Left', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-left',\n\t\t\t\t\t],\n\t\t\t\t\t'center' => [\n\t\t\t\t\t\t'title' => esc_html__('Center', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-center',\n\t\t\t\t\t],\n\t\t\t\t\t'right' => [\n\t\t\t\t\t\t'title' => esc_html__('Right', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-right',\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t'prefix_class' => 'elementor%s-align-',\n\t\t\t\t'default' => 'left',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .webt-customer-logout' => 'text-align: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_section();\n\t}",
"protected function _register_controls()\n\t{\n\t\t$this->start_controls_section(\n\t\t\t'section_heading_style',\n\t\t\tarray(\n\t\t\t\t'label' => esc_html__('Heading', 'webt'),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t)\n\t\t);\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\tarray(\n\t\t\t\t'name' => 'heading_typography',\n\t\t\t\t'selector' => '{{WRAPPER}} .woocommerce-order-details_note > h2',\n\t\t\t)\n\t\t);\n\t\t$this->add_control(\n\t\t\t'heading_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Color', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-order-details_note > h2' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_responsive_control(\n\t\t\t'heading_text_align',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Alignment', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::CHOOSE,\n\t\t\t\t'options' => [\n\t\t\t\t\t'left' => [\n\t\t\t\t\t\t'title' => esc_html__('Left', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-left',\n\t\t\t\t\t],\n\t\t\t\t\t'center' => [\n\t\t\t\t\t\t'title' => esc_html__('Center', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-center',\n\t\t\t\t\t],\n\t\t\t\t\t'right' => [\n\t\t\t\t\t\t'title' => esc_html__('Right', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-right',\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t'default' => '',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-order-details_note > h2' => 'text-align: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_responsive_control(\n\t\t\t'heading_padding',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Padding', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => ['px', 'em'],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-order-details_note > h2' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->end_controls_section();\n\n\t\t$this->start_controls_section(\n\t\t\t'section_message_list_style',\n\t\t\tarray(\n\t\t\t\t'label' => esc_html__('Message List', 'webt'),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t)\n\t\t);\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\tarray(\n\t\t\t\t'name' => 'message_list_typography',\n\t\t\t\t'selector' => '{{WRAPPER}} ol.woocommerce-OrderUpdates.commentlist.notes',\n\t\t\t)\n\t\t);\n\t\t$this->add_control(\n\t\t\t'message_list_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Background Color', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} ol.woocommerce-OrderUpdates.commentlist.notes' => 'background-color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_control(\n\t\t\t'message_list_style',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('List Style', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::CHOOSE,\n\t\t\t\t'options' => [\n\t\t\t\t\t'none' => [\n\t\t\t\t\t\t'title' => esc_html__('None', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-circle-thin',\n\t\t\t\t\t],\n\t\t\t\t\t'decimal' => [\n\t\t\t\t\t\t'title' => esc_html__('Number', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-sort-numeric-asc',\n\t\t\t\t\t],\n\t\t\t\t\t'disc' => [\n\t\t\t\t\t\t'title' => esc_html__('Disc', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-circle',\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t'default' => 'decimal',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} ol.woocommerce-OrderUpdates.commentlist.notes' => 'list-style: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Border::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'message_list_border',\n\t\t\t\t'selector' => '{{WRAPPER}} ol.woocommerce-OrderUpdates.commentlist.notes',\n\t\t\t]\n\t\t);\n\t\t$this->add_responsive_control(\n\t\t\t'message_list_border_radius',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Radius', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => ['px', 'em'],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} ol.woocommerce-OrderUpdates.commentlist.notes' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_responsive_control(\n\t\t\t'message_list_padding',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Padding', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => ['px', 'em'],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} ol.woocommerce-OrderUpdates.commentlist.notes' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_responsive_control(\n\t\t\t'message_list_margin',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Margin', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => ['px', 'em'],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} ol.woocommerce-OrderUpdates.commentlist.notes' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->end_controls_section();\n\n\t\t$this->start_controls_section(\n\t\t\t'section_message_container_style',\n\t\t\tarray(\n\t\t\t\t'label' => esc_html__('Message Container', 'webt'),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t)\n\t\t);\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\tarray(\n\t\t\t\t'name' => 'message_container_typography',\n\t\t\t\t'label' => esc_html__('Typography', 'elementor'),\n\t\t\t\t'selector' => '{{WRAPPER}} li.woocommerce-OrderUpdate.comment.note',\n\t\t\t)\n\t\t);\n\t\t$this->add_control(\n\t\t\t'message_container_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Color', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} li.woocommerce-OrderUpdate.comment.note' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_control(\n\t\t\t'message_container_bg_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Background Color', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} li.woocommerce-OrderUpdate.comment.note' => 'background-color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_responsive_control(\n\t\t\t'message_container_text_align',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Alignment', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::CHOOSE,\n\t\t\t\t'options' => [\n\t\t\t\t\t'left' => [\n\t\t\t\t\t\t'title' => esc_html__('Left', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-left',\n\t\t\t\t\t],\n\t\t\t\t\t'center' => [\n\t\t\t\t\t\t'title' => esc_html__('Center', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-center',\n\t\t\t\t\t],\n\t\t\t\t\t'right' => [\n\t\t\t\t\t\t'title' => esc_html__('Right', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-right',\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t'default' => '',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} li.woocommerce-OrderUpdate.comment.note' => 'text-align: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Border::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'message_container_border',\n\t\t\t\t'selector' => '{{WRAPPER}} li.woocommerce-OrderUpdate.comment.note',\n\t\t\t]\n\t\t);\n\t\t$this->add_responsive_control(\n\t\t\t'message_container_border_radius',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Radius', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => ['px', 'em'],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} li.woocommerce-OrderUpdate.comment.note' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_responsive_control(\n\t\t\t'message_container_padding',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Padding', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => ['px', 'em'],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} li.woocommerce-OrderUpdate.comment.note' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_responsive_control(\n\t\t\t'message_container_margin',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Margin', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => ['px', 'em'],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} li.woocommerce-OrderUpdate.comment.note' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->end_controls_section();\n\t\t/* --------------------------------- Message -------------------------------- */\n\n\t\t$this->start_controls_section(\n\t\t\t'section_message_meta_style',\n\t\t\tarray(\n\t\t\t\t'label' => esc_html__('Message Meta', 'webt'),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t)\n\t\t);\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\tarray(\n\t\t\t\t'name' => 'message_meta_typography',\n\t\t\t\t'label' => esc_html__('Typography', 'elementor'),\n\t\t\t\t'selector' => '{{WRAPPER}} .woocommerce-OrderUpdate-meta.meta',\n\t\t\t)\n\t\t);\n\t\t$this->add_control(\n\t\t\t'message_meta_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Color', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-OrderUpdate-meta.meta' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_responsive_control(\n\t\t\t'message_meta_text_align',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Alignment', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::CHOOSE,\n\t\t\t\t'options' => [\n\t\t\t\t\t'left' => [\n\t\t\t\t\t\t'title' => esc_html__('Left', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-left',\n\t\t\t\t\t],\n\t\t\t\t\t'center' => [\n\t\t\t\t\t\t'title' => esc_html__('Center', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-center',\n\t\t\t\t\t],\n\t\t\t\t\t'right' => [\n\t\t\t\t\t\t'title' => esc_html__('Right', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-right',\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t'default' => '',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-OrderUpdate-meta.meta' => 'text-align: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Border::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'message_meta_border',\n\t\t\t\t'selector' => '{{WRAPPER}} .woocommerce-OrderUpdate-meta.meta',\n\t\t\t]\n\t\t);\n\t\t$this->add_responsive_control(\n\t\t\t'message_meta_border_radius',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Radius', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => ['px', 'em'],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-OrderUpdate-meta.meta' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_responsive_control(\n\t\t\t'message_meta_padding',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Padding', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => ['px', 'em'],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-OrderUpdate-meta.meta' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_responsive_control(\n\t\t\t'message_meta_margin',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Margin', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => ['px', 'em'],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-OrderUpdate-meta.meta' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->end_controls_section();\n\n\t\t$this->start_controls_section(\n\t\t\t'section_message_style',\n\t\t\tarray(\n\t\t\t\t'label' => esc_html__('Message', 'webt'),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t)\n\t\t);\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\tarray(\n\t\t\t\t'name' => 'message_typography',\n\t\t\t\t'label' => esc_html__('Typography', 'elementor'),\n\t\t\t\t'selector' => '{{WRAPPER}} .woocommerce-OrderUpdate-description.description',\n\t\t\t)\n\t\t);\n\t\t$this->add_control(\n\t\t\t'message_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Color', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-OrderUpdate-description.description' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_responsive_control(\n\t\t\t'message_text_align',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Alignment', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::CHOOSE,\n\t\t\t\t'options' => [\n\t\t\t\t\t'left' => [\n\t\t\t\t\t\t'title' => esc_html__('Left', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-left',\n\t\t\t\t\t],\n\t\t\t\t\t'center' => [\n\t\t\t\t\t\t'title' => esc_html__('Center', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-center',\n\t\t\t\t\t],\n\t\t\t\t\t'right' => [\n\t\t\t\t\t\t'title' => esc_html__('Right', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-right',\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t'default' => '',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-OrderUpdate-description.description' => 'text-align: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Border::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'message_border',\n\t\t\t\t'selector' => '{{WRAPPER}} .woocommerce-OrderUpdate-description.description',\n\t\t\t]\n\t\t);\n\t\t$this->add_responsive_control(\n\t\t\t'message_padding',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Padding', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => ['px', 'em'],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-OrderUpdate-description.description' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_responsive_control(\n\t\t\t'message_margin',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Margin', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => ['px', 'em'],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-OrderUpdate-description.description' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->end_controls_section();\n\t}",
"protected function _register_controls() {\n\t\t$this->query_controls();\n\t\t$this->layout_controls();\n\n $this->start_controls_section(\n 'eael_section_post_timeline_style',\n [\n 'label' => __( 'Timeline Style', 'essential-addons-elementor' ),\n 'tab' => Controls_Manager::TAB_STYLE\n ]\n );\n\n $this->add_control(\n\t\t\t'eael_timeline_overlay_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Overlay Color', 'essential-addons-elementor' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'description' => __('Leave blank or Clear to use default gradient overlay', 'essential-addons-elementor'),\n\t\t\t\t'default' => 'linear-gradient(45deg, #3f3f46 0%, #05abe0 100%) repeat scroll 0 0 rgba(0, 0, 0, 0)',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .eael-timeline-post-inner' => 'background: {{VALUE}}',\n\t\t\t\t]\n\n\t\t\t]\n\t\t);\n\n $this->add_control(\n\t\t\t'eael_timeline_bullet_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Timeline Bullet Color', 'essential-addons-elementor' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'default'=> '#9fa9af',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .eael-timeline-bullet' => 'background-color: {{VALUE}};',\n\t\t\t\t]\n\n\t\t\t]\n\t\t);\n\n $this->add_control(\n\t\t\t'eael_timeline_bullet_border_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Timeline Bullet Border Color', 'essential-addons-elementor' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'default'=> '#fff',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .eael-timeline-bullet' => 'border-color: {{VALUE}};',\n\t\t\t\t]\n\n\t\t\t]\n\t\t);\n\n $this->add_control(\n\t\t\t'eael_timeline_vertical_line_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Timeline Vertical Line Color', 'essential-addons-elementor' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'default'=> 'rgba(83, 85, 86, .2)',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .eael-timeline-post:after' => 'background-color: {{VALUE}};',\n\t\t\t\t]\n\n\t\t\t]\n\t\t);\n\n $this->add_control(\n\t\t\t'eael_timeline_border_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Border & Arrow Color', 'essential-addons-elementor' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'default'=> '#e5eaed',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .eael-timeline-post-inner' => 'border-color: {{VALUE}};',\n\t\t\t\t\t'{{WRAPPER}} .eael-timeline-post-inner::after' => 'border-left-color: {{VALUE}};',\n\t\t\t\t\t'{{WRAPPER}} .eael-timeline-post:nth-child(2n) .eael-timeline-post-inner::after' => 'border-right-color: {{VALUE}};',\n\t\t\t\t]\n\n\t\t\t]\n\t\t);\n\n $this->add_control(\n\t\t\t'eael_timeline_date_background_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Date Background Color', 'essential-addons-elementor' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'default'=> 'rgba(0, 0, 0, 0.7)',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .eael-timeline-post time' => 'background-color: {{VALUE}};',\n\t\t\t\t\t'{{WRAPPER}} .eael-timeline-post time::before' => 'border-bottom-color: {{VALUE}};',\n\t\t\t\t]\n\n\t\t\t]\n\t\t);\n\n $this->add_control(\n\t\t\t'eael_timeline_date_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Date Text Color', 'essential-addons-elementor' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'default'=> '#fff',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .eael-timeline-post time' => 'color: {{VALUE}};',\n\t\t\t\t]\n\n\t\t\t]\n\t\t);\n\n\n\t\t$this->end_controls_section();\n\n $this->start_controls_section(\n 'eael_section_typography',\n [\n 'label' => __( 'Typography', 'essential-addons-elementor' ),\n 'tab' => Controls_Manager::TAB_STYLE\n ]\n );\n\n\t\t$this->add_control(\n\t\t\t'eael_timeline_title_style',\n\t\t\t[\n\t\t\t\t'label' => __( 'Title Style', 'essential-addons-elementor' ),\n\t\t\t\t'type' => Controls_Manager::HEADING,\n\t\t\t\t'separator' => 'before',\n\t\t\t]\n\t\t);\n\n $this->add_control(\n\t\t\t'eael_timeline_title_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Title Color', 'essential-addons-elementor' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'default'=> '#fff',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .eael-timeline-post-title h2' => 'color: {{VALUE}};',\n\t\t\t\t]\n\n\t\t\t]\n\t\t);\n\n\t\t$this->add_responsive_control(\n\t\t\t'eael_timeline_title_alignment',\n\t\t\t[\n\t\t\t\t'label' => __( 'Title Alignment', 'essential-addons-elementor' ),\n\t\t\t\t'type' => Controls_Manager::CHOOSE,\n\t\t\t\t'options' => [\n\t\t\t\t\t'left' => [\n\t\t\t\t\t\t'title' => __( 'Left', 'essential-addons-elementor' ),\n\t\t\t\t\t\t'icon' => 'fa fa-align-left',\n\t\t\t\t\t],\n\t\t\t\t\t'center' => [\n\t\t\t\t\t\t'title' => __( 'Center', 'essential-addons-elementor' ),\n\t\t\t\t\t\t'icon' => 'fa fa-align-center',\n\t\t\t\t\t],\n\t\t\t\t\t'right' => [\n\t\t\t\t\t\t'title' => __( 'Right', 'essential-addons-elementor' ),\n\t\t\t\t\t\t'icon' => 'fa fa-align-right',\n\t\t\t\t\t]\n\t\t\t\t],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .eael-timeline-post-title h2' => 'text-align: {{VALUE}};',\n\t\t\t\t]\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'eael_timeline_title_typography',\n\t\t\t\t'label' => __( 'Typography', 'essential-addons-elementor' ),\n\t\t\t\t'scheme' => Scheme_Typography::TYPOGRAPHY_1,\n\t\t\t\t'selector' => '{{WRAPPER}} .eael-timeline-post-title h2',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'eael_timeline_excerpt_style',\n\t\t\t[\n\t\t\t\t'label' => __( 'Excerpt Style', 'essential-addons-elementor' ),\n\t\t\t\t'type' => Controls_Manager::HEADING,\n\t\t\t\t'separator' => 'before',\n\t\t\t]\n\t\t);\n\n $this->add_control(\n\t\t\t'eael_timeline_excerpt_color',\n\t\t\t[\n\t\t\t\t'label' => __( 'Excerpt Color', 'essential-addons-elementor' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'default'=> '#ffffff',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .eael-timeline-post-excerpt p' => 'color: {{VALUE}};',\n\t\t\t\t]\n\t\t\t]\n\t\t);\n\n $this->add_responsive_control(\n\t\t\t'eael_timeline_excerpt_alignment',\n\t\t\t[\n\t\t\t\t'label' => __( 'Excerpt Alignment', 'essential-addons-elementor' ),\n\t\t\t\t'type' => Controls_Manager::CHOOSE,\n\t\t\t\t'options' => [\n\t\t\t\t\t'left' => [\n\t\t\t\t\t\t'title' => __( 'Left', 'essential-addons-elementor' ),\n\t\t\t\t\t\t'icon' => 'fa fa-align-left',\n\t\t\t\t\t],\n\t\t\t\t\t'center' => [\n\t\t\t\t\t\t'title' => __( 'Center', 'essential-addons-elementor' ),\n\t\t\t\t\t\t'icon' => 'fa fa-align-center',\n\t\t\t\t\t],\n\t\t\t\t\t'right' => [\n\t\t\t\t\t\t'title' => __( 'Right', 'essential-addons-elementor' ),\n\t\t\t\t\t\t'icon' => 'fa fa-align-right',\n\t\t\t\t\t],\n\t\t\t\t\t'justify' => [\n\t\t\t\t\t\t'title' => __( 'Justified', 'essential-addons-elementor' ),\n\t\t\t\t\t\t'icon' => 'fa fa-align-justify',\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .eael-timeline-post-excerpt p' => 'text-align: {{VALUE}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'eael_timeline_excerpt_typography',\n\t\t\t\t'label' => __( 'Excerpt Typography', 'essential-addons-elementor' ),\n\t\t\t\t'scheme' => Scheme_Typography::TYPOGRAPHY_3,\n\t\t\t\t'selector' => '{{WRAPPER}} .eael-timeline-post-excerpt p',\n\t\t\t]\n\t\t);\n\n\n\t\t$this->end_controls_section();\n\t\t/**\n\t\t * Load More Button Style Controls!\n\t\t */\n\t\t$this->load_more_button_style();\n\n\t}",
"protected function _register_controls()\n {\n\n $this->start_controls_section(\n 'content_section',\n [\n 'label' => __('Content', 'webt'),\n 'tab' => Controls_Manager::TAB_CONTENT,\n ]\n );\n\n $this->add_control(\n 'taxonomy',\n [\n 'label' => __('Taxonomy', 'webt'),\n 'type' => Controls_Manager::SELECT,\n 'options' => get_taxonomies(),\n 'default' => '',\n ]\n );\n\n $this->add_control(\n 'parent_term_id',\n [\n 'label' => __('Term id', 'webt'),\n 'type' => Controls_Manager::NUMBER,\n ]\n );\n\n $this->add_control(\n 'show_term_url',\n [\n 'label' => __('Term Link', 'webt'),\n 'type' => Controls_Manager::SWITCHER,\n 'label_on' => __('Show', 'webt'),\n 'label_off' => __('Hide', 'webt'),\n 'return_value' => 'yes',\n 'default' => 'yes',\n ]\n );\n\n $this->add_control(\n 'hide_empty_term',\n [\n 'label' => __('Hide Empty', 'webt'),\n 'type' => Controls_Manager::SWITCHER,\n 'label_on' => __('Show', 'webt'),\n 'label_off' => __('Hide', 'webt'),\n 'return_value' => true,\n 'default' => true,\n ]\n );\n\n $this->end_controls_section();\n\n /**\n * Style Section\n */\n\n // Text\n $this->start_controls_section(\n 'term_style',\n array(\n 'label' => __('Term', 'webt'),\n 'tab' => Controls_Manager::TAB_STYLE,\n )\n );\n\n\n $this->start_controls_tabs('term_style_tabs');\n\n $this->start_controls_tab(\n 'term_tab_normal',\n [\n 'label' => __('Normal', 'webt'),\n ]\n );\n\n\n $this->add_group_control(\n Group_Control_Typography::get_type(),\n [\n 'name' => 'term_typography',\n 'label' => __('Typography', 'webt'),\n 'selector' => '{{WRAPPER}} .term-item-container .term-item ',\n ]\n );\n\n $this->add_control(\n 'term_color',\n [\n 'label' => __('Color', 'webt'),\n 'type' => Controls_Manager::COLOR,\n 'selectors' => [\n '{{WRAPPER}} .term-item-container .term-item' => 'color: {{VALUE}}',\n ],\n ]\n );\n\n $this->end_controls_tab();\n\n // Hover Style\n $this->start_controls_tab(\n 'term_tab_hover',\n [\n 'label' => __('Hover', 'webt'),\n ]\n );\n\n\n $this->add_group_control(\n Group_Control_Typography::get_type(),\n [\n 'name' => 'term_typography_hover',\n 'label' => __('Typography', 'webt'),\n 'selector' => '{{WRAPPER}} .term-item-container .term-item:hover ',\n ]\n );\n\n $this->add_control(\n 'term_hover_color',\n [\n 'label' => __('Hover Color', 'webt'),\n 'type' => Controls_Manager::COLOR,\n 'selectors' => [\n '{{WRAPPER}} .term-item-container .term-item:hover' => 'color: {{VALUE}} ',\n ],\n ]\n );\n\n $this->end_controls_tab();\n\n $this->end_controls_tabs();\n\n $this->add_responsive_control(\n 'term_align',\n [\n 'label' => __('Alignment', 'webt'),\n 'type' => Controls_Manager::CHOOSE,\n 'options' => [\n 'left' => [\n 'title' => __('Left', 'webt'),\n 'icon' => 'fa fa-align-left',\n ],\n 'center' => [\n 'title' => __('Center', 'webt'),\n 'icon' => 'fa fa-align-center',\n ],\n 'right' => [\n 'title' => __('Right', 'webt'),\n 'icon' => 'fa fa-align-right',\n ],\n 'justify' => [\n 'title' => __('Justified', 'webt'),\n 'icon' => 'fa fa-align-justify',\n ],\n ],\n 'prefix_class' => 'elementor%s-align-',\n 'default' => 'left',\n 'selectors' => [\n '{{WRAPPER}} .term-item-container .term-item' => 'text-align: {{VALUE}}',\n ],\n ]\n );\n\n $this->end_controls_section();\n }",
"protected function _register_controls() {\n\n $allowed_html = array(\n 'a' => array(\n 'href' => array(),\n 'title' => array()\n ),\n 'br' => array(),\n 'em' => array(),\n 'strong' => array(),\n );\n\n $this->start_controls_section(\n 'content_section',\n [\n 'label' => esc_html__( 'Properties', 'houzez-theme-functionality' ),\n 'tab' => \\Elementor\\Controls_Manager::TAB_CONTENT,\n ]\n );\n\n $this->add_control(\n 'posts_limit',\n [\n 'label' => esc_html__('Number of properties', 'houzez-theme-functionality'),\n 'type' => \\Elementor\\Controls_Manager::NUMBER,\n 'min' => 1,\n 'max' => 5000,\n 'step' => 1,\n 'default' => 9,\n ]\n );\n\n $this->add_control(\n 'offset',\n [\n 'label' => 'Offset',\n 'type' => \\Elementor\\Controls_Manager::TEXT,\n 'description' => '',\n ]\n );\n\n // Property taxonomies controls\n $prop_taxonomies = get_object_taxonomies( 'property', 'objects' );\n\n if ( ! empty( $prop_taxonomies ) && ! is_wp_error( $prop_taxonomies ) ) {\n foreach ( $prop_taxonomies as $single_tax ) {\n\n $options_array = array();\n $terms = get_terms( $single_tax->name );\n\n if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {\n foreach ( $terms as $term ) {\n $options_array[ $term->slug ] = $term->name;\n }\n }\n\n $this->add_control(\n $single_tax->name,\n [\n 'label' => $single_tax->label,\n 'type' => \\Elementor\\Controls_Manager::SELECT2,\n 'multiple' => true,\n 'label_block' => true,\n 'options' => $options_array,\n ]\n );\n }\n }\n\n $this->add_control(\n 'featured_prop',\n [\n 'label' => esc_html__( 'Featured Properties', 'houzez-theme-functionality' ),\n 'type' => \\Elementor\\Controls_Manager::SWITCHER,\n \"description\" => esc_html__(\"You can make a property featured by clicking featured properties checkbox while add/edit property\", \"houzez-theme-functionality\"),\n 'label_on' => esc_html__( 'Yes', 'houzez-theme-functionality' ),\n 'label_off' => esc_html__( 'No', 'houzez-theme-functionality' ),\n 'return_value' => 'yes',\n 'default' => 'no',\n ]\n );\n\n $this->add_responsive_control(\n 'map_height',\n [\n 'label' => esc_html__( 'Map Height (px)', 'houzez-theme-functionality' ),\n 'type' => \\Elementor\\Controls_Manager::SLIDER,\n 'range' => [\n 'px' => [\n 'min' => 0,\n 'max' => 1000,\n ],\n ],\n 'devices' => [ 'desktop', 'tablet', 'mobile' ],\n 'desktop_default' => [\n 'size' => 600,\n 'unit' => 'px',\n ],\n 'tablet_default' => [\n 'size' => '',\n 'unit' => 'px',\n ],\n 'mobile_default' => [\n 'size' => '',\n 'unit' => 'px',\n ],\n 'selectors' => [\n '{{WRAPPER}} .h-properties-map-for-elementor' => 'height: {{SIZE}}{{UNIT}};',\n\n ],\n ]\n );\n\n \n $this->end_controls_section();\n\n $this->start_controls_section(\n 'map_options_section',\n [\n 'label' => esc_html__( 'Map Options', 'houzez-theme-functionality' ),\n 'tab' => \\Elementor\\Controls_Manager::TAB_CONTENT,\n ]\n );\n\n $this->add_control(\n 'mapbox_api_key',\n [\n 'label' => esc_html__('MapBox API Key', 'houzez-theme-functionality'),\n 'type' => \\Elementor\\Controls_Manager::TEXT,\n 'description' => __( 'Please enter the Mapbox API key, you can get from <a target=\"_blank\" href=\"https://account.mapbox.com/\">here</a>.', 'houzez' ),\n ]\n );\n\n\n $this->add_control(\n 'mapCluster',\n [\n 'label' => esc_html__( 'Map Cluster', 'houzez-theme-functionality' ),\n 'type' => \\Elementor\\Controls_Manager::SWITCHER,\n \"description\" => '',\n 'label_on' => esc_html__( 'Yes', 'houzez-theme-functionality' ),\n 'label_off' => esc_html__( 'No', 'houzez-theme-functionality' ),\n 'return_value' => 'yes',\n 'default' => 'yes',\n ]\n );\n\n $this->add_control(\n 'zoomControl',\n [\n 'label' => esc_html__( 'Zoom Control', 'houzez-theme-functionality' ),\n 'type' => \\Elementor\\Controls_Manager::SWITCHER,\n \"description\" => '',\n 'label_on' => esc_html__( 'Yes', 'houzez-theme-functionality' ),\n 'label_off' => esc_html__( 'No', 'houzez-theme-functionality' ),\n 'return_value' => 'yes',\n 'default' => 'yes',\n ]\n );\n \n $this->end_controls_section();\n\n\n\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.5711065",
"0.5698279",
"0.5683662",
"0.5672082",
"0.5655648",
"0.5643536",
"0.56282747",
"0.5624343",
"0.5614027"
] | 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>\n\t\t\t</div>\n\t\t\t<div class=\"small-2 large-2 columns\">\n\t\t\t\t<img src=\"img/coffreOr.png\" alt=\"Coffre en or\"/>\n\t\t\t</div>\n\t\n\t\t';\n\n\t\techo($html);\n\t}",
"public function inkthemes_about_page_render() {\n\n if (!empty($this->config['welcome_title'])) {\n $welcome_title = $this->config['welcome_title'];\n }\n if (!empty($this->config['welcome_content'])) {\n $welcome_content = $this->config['welcome_content'];\n }\n\n if (!empty($welcome_title) || !empty($welcome_content) || !empty($this->tabs)) {\n\n echo '<div class=\"wrap about-wrap epsilon-wrap\">';\n\n if (!empty($welcome_title)) {\n echo '<h1>';\n echo esc_html($welcome_title);\n if (!empty($this->theme_version)) {\n echo esc_html('') . ' </sup>';\n }\n echo '</h1>';\n }\n if (!empty($welcome_content)) {\n echo '<div class=\"about-text\">' . wp_kses_post($welcome_content) . '</div>';\n }\n\n echo '<a href=\"' . esc_url('https://inkthemes.com/') . '\" target=\"_blank\" class=\"wp-badge epsilon-welcome-logo\"></a>';\n\n /* Display tabs */\n if (!empty($this->tabs)) {\n $active_tab = isset($_GET['tab']) ? wp_unslash($_GET['tab']) : 'getting_started';\n\n echo '<h2 class=\"nav-tab-wrapper wp-clearfix\">';\n\n $actions_count = $this->get_required_actions();\n\n $count = 0;\n\n if (!empty($actions_count)) {\n $count = count($actions_count);\n }\n\n foreach ($this->tabs as $tab_key => $tab_name) {\n\n if (( $tab_key != 'changelog' ) || ( ( $tab_key == 'changelog' ) && isset($_GET['show']) && ( $_GET['show'] == 'yes' ) )) {\n\n if (( $count == 0 ) && ( $tab_key == 'recommended_actions' )) {\n continue;\n }\n\n echo '<a href=\"' . esc_url(admin_url('themes.php?page=' . $this->theme_slug . '-welcome')) . '&tab=' . esc_html($tab_key) . '\" class=\"nav-tab ' . ( $active_tab == $tab_key ? 'nav-tab-active' : '' ) . '\" role=\"tab\" data-toggle=\"tab\">';\n echo esc_html($tab_name);\n if ($tab_key == 'recommended_actions') {\n $count = 0;\n\n $actions_count = $this->get_required_actions();\n\n if (!empty($actions_count)) {\n $count = count($actions_count);\n }\n if ($count > 0) {\n echo '<span class=\"badge-action-count\">' . esc_html($count) . '</span>';\n }\n }\n echo '</a>';\n }\n }\n\n echo '</h2>';\n\n /* Display content for current tab */\n if (method_exists($this, $active_tab)) {\n $this->$active_tab();\n }\n }// End if().\n\n echo '</div><!--/.wrap.about-wrap-->';\n }// End if().\n }",
"public function actionIntro()\n {\n return $this->render('intro');\n }",
"function about()\n\t{\n\t\t$this->render_view(\"info/about.php\", null, \"info_layout.php\");\n\t}",
"public function about_screen() {\n\t?>\n\t\t<div class=\"wrap about-wrap full-width-layout\">\n\n\t\t\t<?php $this->intro(); ?>\n\t\t\t\t\t\t\n\t\t\t<?php include_once 'views/html-about-news.php'; ?>\n\n\t\t\t<div class=\"return-to-dashboard\">\n\t\t\t\t<a href=\"<?php echo esc_url( admin_url( add_query_arg( array( 'page' => WC_CRM_TOKEN ), 'admin.php' ) ) ); ?>\"><?php _e( 'Go to Customers', 'wc_crm' ); ?></a>\n\t\t\t</div>\n\t\t\n\t\t</div>\n\t<?php\n \t}",
"public function render_content() {\n\t\t\techo __( 'To customize the About us Page you need to first select the template \"About us page\" for the page you want to use for this purpose. Then open that page in the browser and press \"Customize\" in the top bar.', 'themeisle-companion' ) . '<br><br>' . __( 'Need further assistance? Check out this', 'themeisle-companion' ) . ' <a href=\"http://docs.themeisle.com/article/211-shopisle-customizing-the-contact-and-about-us-page\" target=\"_blank\">' . __( 'doc', 'themeisle-companion' ) . '</a>';\n\t\t}",
"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>Classement</h1>\n\t\t\t\t<hr/>\n\t\t\t\t<center><p>Vous trouverez ici les différents classement des Altraiens.</p></center>\n\t\t\t</div>\n\t\t\t<div class=\"small-2 large-2 columns\">\n\t\t\t\t<img src=\"img/coupe.png\" alt=\"Trophée en or\"/>\n\t\t\t</div>\n\t\t\n\t\t';\n\n\t\techo($html);\n\t}",
"public function about()\n {\n $this->ntag->render('about')\n ->send();\n }",
"function renderAboutTop() {\r\n\r\n\t\techo (\"<div class=\\\"blogname\\\">Contact Us</div>\");\r\n\t\techo (\"<div class=\\\"spacer\\\"></div>\");\r\n\r\n\t}",
"public function aboutAction()\r\n {\r\n $this->initHtml();\r\n\r\n $this->html->h3()->sprintf($this->_('About %s'), $this->project->getName());\r\n $this->html->pInfo(\\MUtil_Html_Raw::raw($this->project->getLongDescription($this->locale->getLanguage())));\r\n $this->html->append($this->_getOrganizationsList());\r\n }",
"protected function dlgAbout() {\n $notes = file_get_contents(LEPTON_PATH . '/modules/' . basename(dirname(__FILE__)) . '/CHANGELOG');\n $use_markdown = 0;\n if (file_exists(LEPTON_PATH.'/modules/lib_markdown/standard/markdown.php')) {\n require_once LEPTON_PATH.'/modules/lib_markdown/standard/markdown.php';\n $notes = Markdown($notes);\n $use_markdown = 1;\n }\n $data = array(\n 'version' => sprintf('%01.2f', $this->getVersion()),\n //'img_url' => $this->img_url . '/kit_form_logo_400_267.jpg',\n 'release' => array(\n 'number' => $this->getVersion(),\n 'notes' => $notes,\n 'use_markdown' => $use_markdown\n )\n );\n return $this->getTemplate('backend.about.htt', $data);\n }",
"function &renderIntro()\r\n {\r\n// print( \"<pre>\" );\r\n\r\n $xml = xmltree( $this->Article->contents() );\r\n\r\n// print_r( $xml );\r\n\r\n// $xml =& qdom_tree( $this->Article->contents() );\r\n\r\n// print_r( $xml );\r\n\r\n// print( \"</pre>\" );\r\n\r\n if ( !$xml )\r\n {\r\n print( \"<br /><b>Error: eZTechRenderer::docodeXML() could not decode XML</b><br />\" );\r\n }\r\n else\r\n {\r\n $intro = \"\";\r\n $body = \"\";\r\n\r\n $articleImages = $this->Article->images();\r\n $articleID = $this->Article->id();\r\n\r\n $i=0;\r\n $this->PrevTag = \"\";\r\n foreach ( $xml->children as $child )\r\n {\r\n if ( $child->name == \"article\" )\r\n {\r\n foreach ( $child->children as $article )\r\n {\r\n if ( $article->name == \"intro\" )\r\n {\r\n if ( count( $article->children ) > 0 )\r\n {\r\n foreach ( $article->children as $paragraph )\r\n {\r\n $intro = $this->renderPlain( $intro, $paragraph );\r\n\r\n $intro = $this->renderCode( $intro, $paragraph );\r\n\r\n $intro = $this->renderStandards( $intro, $paragraph );\r\n\r\n $intro = $this->renderLink( $intro, $paragraph );\r\n\r\n $intro = $this->renderModule( $intro, $paragraph );\r\n\r\n $intro = $this->renderImage( $intro, $paragraph, $articleImages );\r\n\r\n $this->PrevTag = $paragraph->name;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n// $newArticle = eZTextTool::nl2br( $intro );\r\n $newArticle = $intro;\r\n }\r\n\r\n return $newArticle;\r\n }",
"public function actionAbout()\n {\n return $this->render('about');\n }",
"private function action_about() {\n\t\t$instagram = new Instagram(array(\n\t\t\t\t'apiKey' => 'REDACTED',\n\t\t\t\t'apiSecret' => 'REDACTED',\n\t\t\t\t'apiCallback' => 'https://www.picprnt.com/'\n\t\t));\n\t\t$loginUrl = $instagram->getLoginUrl();\n\t\tView::render('about', $loginUrl);\n\t}",
"public function landing_about()\n\t{\n\t\t$this->template\t= false;\n\t\tview::render(\"main/landing_about\");\n\t}",
"public function displayAbout()\n {\n\n $this->connect();\n $sql = \"SELECT * FROM content WHERE section = 'about'\";\n $result = $this->select($sql);\n\n if ($result->num_rows > 0) {\n echo \"<h1>Biography</h1>\";\n while ($row = $result->fetch_assoc()) {\n\n echo \"<p>\" . $row['content'] . \"</p>\";\n }\n }\n echo '</div>';\n $sql = \"SELECT * FROM members\";\n $result = $this->select($sql);\n if ($result->num_rows > 0) {\n echo \"<div class=member-container><h1>Band Members</h1>\";\n while ($row = $result->fetch_assoc()) {\n echo \"<div class='member'>\";\n echo \"<img width= 300px src='uploads/\" . $row['imagename'] . \"'/><br>\";\n echo \"<h2>\" . $row[\"name\"] . \"</h2>\";\n\n echo \"<h3> \" . $row[\"position\"], \"</h3>\";\n echo \"</div>\";\n }\n echo '</div><br>';\n }\n\n $this->disconnect();\n }",
"public function aboutAction()\n {\n $template = 'about.html.twig';\n $argsArray = [\n 'pageTitle' => 'About',\n 'username' => $this->usernameFromSession()\n ];\n $html = $this->twig->render($template, $argsArray);\n print $html;\n }",
"public function actionAbout()\n {\n\n return $this->render('about');\n }",
"public function action_about()\r\n {\r\n $view = View::forge(\"components/template.php\", array(\r\n \"titlepage\" => \"About us\",\r\n \"main_body\" => View::forge(\"hospitalviews/about.php\")\r\n ));\r\n return Response::forge($view);\r\n }",
"function gcpta_intro() {\n\tglobal $post;\n\t\n\tif ( ! is_post_type_archive() || ! genesis_get_option( 'gcpta_intro_' . $post->post_type , 'gcpta-settings-' . $post->post_type ) ) {\n\t\treturn;\n\t}\n\t\n\t$pt = get_post_type_object( $post->post_type );\n\t\n\t$headline = genesis_get_option( 'gcpta_headline_' . $post->post_type, 'gcpta-settings-' . $post->post_type ) ? genesis_get_option( 'gcpta_headline_' . $post->post_type, 'gcpta-settings-' . $post->post_type ) : $pt->label . __( 'Archives' , GCPTA_DOMAIN );\n\t$headline = sprintf( '<h1>%s</h1>', esc_html( $headline ) );\n\t$archives_intro = apply_filters( 'the_content' , genesis_get_option( 'gcpta_intro_content_' . $post->post_type, 'gcpta-settings-' . $post->post_type ) );\n\t\n\tif ( $headline || $archives_intro )\n\t\tprintf( '<div class=\"archives-intro\">%s</div>', $headline . $archives_intro );\n\t\n}",
"public function actionAbout()\n\t{\n\t\t// using the default layout 'protected/views/layouts/main.php'\n\t\t$this->render('about');\n }",
"public function index()\n {\n $abouts = $this->getAbout();\n\n $this->content = view(env('THEME').'.admin.about_content')->with('abouts',$abouts)->render();\n \n return $this->renderOutput();\n }",
"public function aboutAction () {\n return new Render($this, 'Default/about.html.twig', array());\n }",
"public function index()\n\t{\n $this->data[ 'menubar' ] = build_menu_bar( $this->choices, 'about' );\n $this->data[ 'pagebody' ] = 'about';\n $this->render();\n\t}",
"public function indexAction()\n {\n View::render(\"Pub/AboutPage.php\");\n }",
"public function actionAbout()\n {\n $this->layout = '/layouts/content_2';\n if ($this->isMobile) {\n $this->layout = '/layouts/main_mobile';\n }\n $this->pageTitle = Yii::t('web/full_home', 'about');\n\n $this->render('about');\n }",
"function readme_page() {\n\t\tglobal $wpdb;\n\t\t?>\n\t\t<div class=\"wrap launchable\">\n\t\t\t<h2><?php _e('Launchable', $this->text_domain); ?></h2>\n\t\t\t<pre><?php include( Launchable::$plugin_directory .'/README.md'); ?></pre>\n\t\t</div>\n\n\t<?php\n\t}",
"private function intro() {\n\t\t// Drop minor version if 0\n\t\t$major_version = WC_CRM()->_version;\n\t\t?>\n\t\t<h1><?php _e( 'Welcome!', 'wc_crm' ); ?></h1>\n\n\t\t<div class=\"about-text woocommerce-about-text\">\n\t\t\t<?php\n\t\t\t\tif ( ! empty( $_GET['wc-installed'] ) ) {\n\t\t\t\t\t$message = __( 'Thanks, all done!', 'wc_crm' );\n\t\t\t\t} elseif ( ! empty( $_GET['wc-updated'] ) ) {\n\t\t\t\t\t$message = __( 'Thank you for updating to the latest version!', 'wc_crm' );\n\t\t\t\t} else {\n\t\t\t\t\t$message = __( 'Thanks for installing!', 'wc_crm' );\n\t\t\t\t}\n\n\t\t\t\tprintf( __( '%s WooCommerce Customer Relationship Manager %s, which helps you manage your customers from your WooCommerce store.', 'wc_crm' ), $message, $major_version );\n\t\t\t?>\n\t\t</div>\n\n\t\t<div class=\"wc-badge\"><?php printf( __( 'Version %s', 'wc_crm' ), WC_CRM()->_version ); ?></div>\n\t\t\t<a href=\"<?php echo esc_url( admin_url( add_query_arg( array( 'page' => WC_CRM_TOKEN.'-settings' ), 'admin.php' ) ) ); ?>\" class=\"button button-primary\"><?php _e( 'Settings', 'wc_crm' ); ?></a>\n\t\t<?php\n\t}",
"public function help()\n\t{\n\t\t// You could include a file and return it here.\n\t\treturn \"<h4>Overview</h4>\n\t\t<p>The pages module is a simple but powerful way to manage static content on your site.\n\t\tPage layouts can be managed and widgets embedded without ever editing the template files.</p>\n\t\t<h4>Managing Pages</h4><hr>\n\t\t<h6>Page Content</h6>\n\t\t<p>When choosing your page title remember that the default page layout will display the page title\n\t\tabove the page content. Now create your page content\n\t\tusing the WYSIWYG editor. When you are ready for the page to be visible to visitors set the\n\t\tstatus to Live and it will be accessible at the URL shown. <strong>You must also go to Design -> Navigation and create a new\n\t\tnavigation link if you want your page to show up in the menu.</strong></p>\n\t\t<h6>Meta data</h6>\n\t\t<p>The meta title is generally used as the title in search results and is believed to carry significant weight in page rank.<br />\n\t\tMeta keywords are words that describe your site content and are for the benefit of search engines only.<br />\n\t\tThe meta description is a short description of this page and may be used as the search snippet if the search engine deems it relevant to the search.</p>\n\t\t<h6>Design</h6>\n\t\t<p>The design tab allows you to select a custom page layout and optionally apply different css styles to it on this page only. Refer to the Page Layouts\n\t\tsection below for instructions on how to best use Page Layouts.</p>\n\t\t<h6>Script</h6>\n\t\t<p>You may place javascript here that you would like appended to the < head > of the page.</p>\n\t\t<h6>Options</h6>\n\t\t<p>Allows you to turn on comments and an rss feed for this page. If the rss feed is enabled a visitor can subscribe to this page and they\n\t\twill receive each child page in their rss reader.</p>\n\t\t<h6>Revisions</h6>\n\t\t<p>Revisions is a very powerful and handy feature for editing an existing page. Let's say a new employee really messes up a page edit. Just select a date that you would\n\t\tlike to revert the page to and click Save! You can even compare revisions to see what has changed.</p>\n\t\t<h4>Page Layouts</h4><hr>\n\t\t<p>Page layouts allows you to control the layout of the page without modifying the theme files. You can embed tags into the page layout\n\t\tinstead of placing them in every page. For example: If you have a twitter feed widget that you want to display at the bottom of every page you can just place\n\t\tthe widget tag in the page layout:\n<pre><code>\n{pyro:page:title}\n{pyro:page:body}\n\n< div class=\\\"my-twitter-widget\\\" >\n\t{pyro:widgets:instance id=\\\"1\\\"}\n< /div >\n</code></pre>\n\t\tNow you can apply css styling to the \\\"my-twitter-widget\\\" class in the CSS tab.</p>\";\n\t}",
"public function aboutPage()\n {\n $aboutPageData = $this->aboutPageInterface->getAboutPage();\n $ourTeams = $this->teamsInterface->getOurTeams();\n $aboutPage = $this->mapAboutPageData($aboutPageData, $ourTeams); \n \n return $this->responseRepository->make(\n 'LOAD_DYNAMIC_MODULE_ENTRY_SUCCESS',\n ['entry' => $aboutPage]\n );\n }"
] | [
"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.6120128",
"0.61060226",
"0.6077105",
"0.6070974",
"0.6009721",
"0.60047007",
"0.59884655",
"0.5957177",
"0.59456015",
"0.5945491"
] | 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 function getFullName(){\r\n\t\treturn $this->firstName . ' ' . $this->lastName;\r\n\t}",
"public function getFullName()\n {\n return $this->first_name . ' ' . $this->last_name;\n }",
"public function getFullName() {\n return $this->first_name . ' ' . $this->last_name;\n }",
"public function getFullName()\n {\n return $this->firstname . ' ' . $this->lastname;\n }",
"public function getFullName()\n {\n return $this->firstname . ' ' . $this->lastname;\n }",
"public function getFullName() {\n return $this->lastname . ' ' . $this->firstname;\n }",
"public function getFullName()\n {\n return $this->first_name.' '.$this->last_name;\n }",
"public function getFullName(): string\n {\n return $this->firstName . ' ' . $this->lastName;\n }",
"public function getFullName(): string\n {\n return $this->firstName.' '.$this->lastName;\n }",
"public function getFullName(){\n return $fullname = ($this->getFirstName() . ' ' . $this->getLastName());\n }",
"public function getFullName()\n {\n return $this->firstName . ' ' . $this->lastName;\n }",
"public function getFullName()\n {\n return $this->getApellidoPaterno() . \" \" . $this->getApellidoMaterno() . \" \" . $this->getNombre(); \n }",
"public function fullName()\n\t{\n\t\treturn \"{$this->first_name} {$this->last_name}\";\n\t}",
"public function fullName()\n\t{\n\t\treturn \"{$this->first_name} {$this->last_name}\";\n\t}",
"public function getFullName()\n {\n return $this->getFirstName().' '.$this->getLastname();\n }",
"public function getFullName() {\n return $this->getFirstName() . ' ' . $this->getLastName();\n }",
"public function fullName()\n {\n return $this->first_name . \" \" . $this->last_name;\n }",
"function get_person_name()\n\t\t\t\t{\n\t\t\t\t\techo 'Changed name: '.$this->first_name.' '.$this->last_name;\n\t\t\t\t}",
"public function fullName()\n {\n return $this->last_name . $this->first_name;\n }",
"public function getFullName()\n {\n return $this->names . ' ' . $this->last_name1 . ' ' . $this->last_name2;\n }",
"public function getFullName()\n {\n return sprintf('%s %s', $this->forename, $this->surname);\n }",
"public function getFullName()\n {\n return $this->get('first_name') . ' ' . $this->get('last_name');\n }",
"public function fullName() {\n return $this->firstName.\" \".$this->lastName;\n }",
"public function getFullName()\r\n {\r\n return $this->fullName;\r\n }",
"public function fullname()\n\t{\n\t\treturn \"{$this->first_name} {$this->last_name}\";\n\t}",
"function fullname() {\n\t\treturn ($this->profil['fullname'] != '') ? $this->profil['fullname'] : false;\n\t}",
"public function getFullName() {\n if ($this->getFirstname() && $this->getLastname()) {\n return $this->getFirstname() . \" \" . $this->getLastname();\n } else {\n return $this->getUsername();\n }\n }"
] | [
"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.7376176",
"0.73623043",
"0.73475355",
"0.73335475",
"0.7330968",
"0.7321942",
"0.73183376",
"0.7309166",
"0.7291527",
"0.72829914"
] | 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>rate2</rateId>\n\t\t<sender>\n\t\t\t<country>SI</country>\n\t\t\t<town>Ljubljana</town>\n\t\t\t<postcode>1000</postcode>\n\t\t</sender>\n\t\t<delivery>\n\t\t\t<country>$this->destCountry</country>\n\t\t\t<town>$this->destTownName</town>\n\t\t\t<postcode></postcode>\n\t\t</delivery>\n\t\t<collectionDateTime>2014-10-28T16:13:00</collectionDateTime>\n\t\t<product>\n\t\t\t<id>48N</id>\n\t\t\t<division>G</division>\n\t\t\t<type>N</type>\n\t\t\t<options>\n\t\t\t\t<option>\n\t\t\t\t\t<optionCode></optionCode>\n\t\t\t\t\t<optionDesc></optionDesc>\n\t\t\t\t</option>\n\t\t\t</options>\n\t\t</product>\n\t\t<account>\n\t\t\t<accountNumber>29934</accountNumber>\n\t\t\t<accountCountry>SI</accountCountry>\n\t\t</account>\n\t\t<termsOfPayment/>\n\t\t<currency>EUR</currency>\n\t\t<priceBreakDown>true</priceBreakDown>\n\t\t<consignmentDetails>\n\t\t\t<totalWeight>$this->Weight</totalWeight>\n\t\t\t<totalVolume>$this->Volume</totalVolume>\n\t\t\t<totalNumberOfPieces>$this->Items</totalNumberOfPieces>\n\t\t</consignmentDetails>\n\t</priceCheck>\n</priceRequest>\";\n\n $xmlResult = $this->doPost($Xml);\n\n /**\n * Parse XML data into $RATE string\n */\n\n $xmlParse = simplexml_load_string($xmlResult[1]);\n $json = json_encode($xmlParse);\n $this->arrayResult = json_decode($json,TRUE);\n\n /////////////////////////////////////////////////////////////////////////\n\n $ratemagento = Mage::getModel('shipping/rate_result_method');\n /* @var $rate Mage_Shipping_Model_Rate_Result_Method */\n\n\n $ratemagento->setCarrier($this->_code);\n /**\n * getConfigData(config_key) returns the configuration value for the\n * carriers/[carrier_code]/[config_key]\n */\n $ratemagento->setCarrierTitle($this->getConfigData('title'));\n\n $ratemagento->setMethod('economy');\n $ratemagento->setMethodTitle('Economy Express');\n\n $ratemagento->setPrice($this->arrayResult[\"priceResponse\"][\"ratedServices\"][\"ratedService\"][\"totalPriceExclVat\"]);\n $ratemagento->setCost(0);\n\n if ($this->arrayResult[\"priceResponse\"][\"ratedServices\"][\"ratedService\"][\"totalPriceExclVat\"] > 0){\n\n return $ratemagento;\n\n }else{\n\n $result = Mage::getModel('shipping/rate_result');\n $error = Mage::getModel('shipping/rate_result_error');\n $error->setCarrier($this->_code);\n $error->setCarrierTitle($this->getConfigData('title'));\n $error->setErrorMessage(\"** Economy Express - \".$this->getConfigData('specificerrmsg'));\n $result->append($error);\n return $result;\n }\n }",
"public function getRegularRates(&$rates) {\n $rate_usd = @file_get_contents('https://api.exchangeratesapi.io/latest?base=USD');\n \n // if API is out it will try another\n if (empty($rate_usd)) {\n $rate_usd = @file_get_contents('http://api.openrates.io/latest?base=USD');\n }\n\n if (!empty($rate_usd)) {\n $json_usd = json_decode($rate_usd);\n $rates['EUR'] = round($json_usd->rates->EUR,6); // euro\n $rates['BRL'] = round($json_usd->rates->BRL,6); // brazilian real\n }\n }",
"public function testGetOfferShippingRatesGET()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }",
"public function shippingRates()\n {\n return $this->hasMany(ShippingRate::class);\n }",
"public function show(Rate $rate)\n {\n $auth_user = auth()->user();\n if(!$auth_user->can('rate-view') || !request()->ajax()){\n abort(403);\n }\n return view('rates.show',compact('rate'));\n \n }",
"function listRate($timezone) {\r\n $class_name = $this->class_name;\r\n $function_name = 'listRate';\r\n\r\n if ( authenUser(func_get_args(), $this, $function_name) > 0 )\r\n return returnXML(func_get_args(), $this->class_name, $function_name, $this->_ERROR_CODE, $this->items, $this );\r\n\r\n $query = sprintf( \"CALL sp_getRateList ('%s')\", $timezone);\r\n $result = $this->_MDB2->extended->getAll($query);\r\n $num_row = count($result);\r\n if($num_row>0)\r\n {\r\n for($i=0; $i<$num_row; $i++) {\r\n $this->items[$i] = new SOAP_Value(\r\n 'items',\r\n '{urn:'. $class_name .'}'.$function_name.'Struct',\r\n array(\r\n 'ID' => new SOAP_Value(\"ID\", \"string\", $result[$i]['id']),\r\n 'BankID' => new SOAP_Value(\"BankID\", \"string\", $result[$i]['bankid']),\r\n 'BankName' => new SOAP_Value(\"BankName\", \"string\", $result[$i]['bankname']),\r\n 'FromValue' => new SOAP_Value(\"FromValue\", \"string\", $result[$i]['fromvalue']),\r\n 'ToValue' => new SOAP_Value(\"ToValue\", \"string\", $result[$i]['tovalue']),\r\n 'PercentRate' => new SOAP_Value(\"PercentRate\", \"string\", $result[$i]['percentrate']),\r\n 'UseMarketPrice' => new SOAP_Value(\"UseMarketPrice\", \"string\", $result[$i]['usemarketprice']),\r\n 'CreatedBy' => new SOAP_Value(\"CreatedBy\", \"string\", $result[$i]['createdby']),\r\n 'CreatedDate' => new SOAP_Value(\"CreatedDate\", \"string\", $result[$i]['createddate'] ),\r\n 'UpdatedBy' => new SOAP_Value(\"UpdatedBy\", \"string\", $result[$i]['updatedby']),\r\n 'UpdatedDate' => new SOAP_Value(\"UpdatedDate\", \"string\", $result[$i]['updateddate'] )\r\n )\r\n );\r\n }\r\n }\r\n return returnXML(func_get_args(), $this->class_name, $function_name, $this->_ERROR_CODE, $this->items, $this );\r\n }",
"public function getAll($payRateId)\n {\n return\n DB::table('pay_rate_details')\n ->select(\n 'pay_rate_details.company_id as companyId',\n 'grades.name as gradeName',\n 'grade_id as gradeId',\n 'bottom_rate as bottomRate',\n 'top_rate as topRate'\n ) ->leftJoin('grades', function ($join) {\n $join->on('grades.id', '=', 'pay_rate_details.grade_id');\n })\n ->where([\n ['pay_rate_details.pay_rate_id', $payRateId]\n ])\n ->get();\n }",
"public function getRate($currencyCode);",
"public function getRates();",
"public function getRates();",
"public function edit(Rates $rate)\n {\n return $rate;\n }",
"public function getRates()\n {\n return $this->rates;\n }",
"public function getRates()\n {\n return $this->rates;\n }",
"public function getUserRate()\n {\n return $this->hasOne(User::className(), ['id' => 'id_user_rate']);\n }",
"public function getRates()\n {\n return $this->_rates;\n }",
"private static function getRate($target_uid, $rater_uid, $trip_id) {\n\n\t\t$query = \"SELECT * FROM rate WHERE trip_id = $trip_id AND target_id = $target_uid AND rater_id = $rater_uid\";\n\t\treturn Database::obtain()->query_first($query);\n\t}",
"public function rates() {\n $result = $this->getRequest(\"rates\");\n if (!empty($result['error']))\n throw new ALFAcoins_Exception(\"Invalid rates result, error: \" . $result['error']);\n return $result;\n }",
"protected function getSelectRate($shippingMethod, $rate)\n {\n $code = explode('_', $shippingMethod);\n $rates = unserialize($rate->getContent());\n\n $index = array_search($code[0], array_column($rates, 'code'));\n\n return $rates[$index];\n }",
"public function getRateId()\n {\n return $this->rateId;\n }",
"public function getRate($currency);",
"public function setRateId($rateId)\n {\n $this->rateId = $rateId;\n return $this;\n }",
"public function ytdratetable_get($unq_id,$periodyear) \n {\n \t\t try {\n\n\t\t\t\t$headers = $this->input->request_headers(); \n\t\t\t\t$userid = $headers['Sm-User'];\n\t\t\t\t$intusrid = get_var('CONFIDENCEVALUE',$userid); \n\n\t\t\t\t$smsession = $headers['Sm-Serversessionspec'];\n\t\t\t\t\n\t\t\t\tif (isset($smsession))\n\t\t\t\t{\n\n\t\t\t\t\t$this->load->model('ytdam');\n\t\t\t\t\t$webservice_url = $this->variable['smp_url'].'cnadp_mobile_app_ytd_rep_pkg/?wsdl';\n\t\t\t\t\t$QID = $unq_id.\"_\".$intusrid;\n\t\t\t\t\t$getRtTblVO = $this->ytdam->getRateTblVO($webservice_url,$QID,$periodyear); \n\n\t\t\t\t\t$data = json_decode($getRtTblVO );\n\t\t\t\t\t if (isset($data))\t \t\n\t\t\t\t\t {\n\t\t\t\t\t $this->response($data , 200);\n\t\t\t\t\t }\n\t\t\t\t\t else\n\t\t\t\t\t {\n\t\t\t\t\t $this->response(array('error' => 'Couldn\\'t find any data for YTD Rate Table!'), 404);\n\t\t\t\t\t }\n\t\t\t\t}\n\t\t }\t\n\t\t catch (Exception $e)\n\t\t {\n //$this->response(array('error' => var_dump($e)), 404); \n $this->response(array('error' => 'midtier') , 404);\n\t\t }\t\t\n\t }",
"public function testGetListOfShippingRatestUsingGET()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }",
"public function rates()\n {\n return $this->_rates;\n }",
"private function lookupShippingRate()\n {\n return 8.90;\n }",
"public function rates() {\n if (!is_object($this->_order)) {\n return false;\n }\n\n $waypoints = $this->getWaypoints();\n if (count($waypoints) != 2) {\n return false;\n }\n\n /**\n * is this the correct time?\n */\n $pickupTimestamp = $this->_order->computePickUpTime();\n $date = date(\"Y-m-d H:i:s\", $pickupTimestamp); // Today or tomorrow, 12:00\n \n $rates = $this->_call('rates', array(\n 'datetime' => $date,\n 'waypoints' => $waypoints\n ));\n\n if ($rates === false) {\n $this->_logger->err('Promptf API: Could not determine rates');\n return false;\n }\n\n if ($rates['status']) {\n //get the found rate\n return $rates['rates'][0]['id'];\n }\n\n if ($rates['code']) {\n $notify = $rates['code'] . \": \" . $rates['msg'] . \" // Bestellungsnr.: \" . $this->_order->getNr();\n \n Yourdelivery_Sender_Email::notify(\n $notify, null, false, \"Prompt API Fehler\", array(\n \"[email protected]\",\n \"[email protected]\",\n \"[email protected]\",\n \"[email protected]\",\n \"[email protected]\",\n \"[email protected]\"\n ));\n\n $sms = new Yourdelivery_Sender_Sms();\n $sms->send2support($notify);\n }\n\n return false;\n }",
"function listSpecialRate($timezone) {\r\n $class_name = $this->class_name;\r\n $function_name = 'listSpecialRate';\r\n\r\n if ( authenUser(func_get_args(), $this, $function_name) > 0 )\r\n return returnXML(func_get_args(), $this->class_name, $function_name, $this->_ERROR_CODE, $this->items, $this );\r\n\r\n $query = sprintf( \"CALL sp_getSpecialRateList('%s')\", $timezone);\r\n $result = $this->_MDB2->extended->getAll($query);\r\n $num_row = count($result);\r\n if($num_row>0)\r\n {\r\n for($i=0; $i<$num_row; $i++) {\r\n $this->items[$i] = new SOAP_Value(\r\n 'items',\r\n '{urn:'. $class_name .'}'.$function_name.'Struct',\r\n array(\r\n 'ID' => new SOAP_Value(\"ID\", \"string\", $result[$i]['id']),\r\n 'BankID' => new SOAP_Value(\"BankID\", \"string\", $result[$i]['bankid']),\r\n 'BankName' => new SOAP_Value(\"BankName\", \"string\", $result[$i]['bankname']),\r\n 'StockID' => new SOAP_Value(\"StockID\", \"string\", $result[$i]['stockid']),\r\n 'StockName' => new SOAP_Value(\"StockName\", \"string\", $result[$i]['symbol']),\r\n 'FromValue' => new SOAP_Value(\"FromValue\", \"string\", $result[$i]['fromvalue']),\r\n 'ToValue' => new SOAP_Value(\"ToValue\", \"string\", $result[$i]['tovalue']),\r\n 'PercentRate' => new SOAP_Value(\"PercentRate\", \"string\", $result[$i]['percentrate']),\r\n 'UseMarketPrice' => new SOAP_Value(\"UseMarketPrice\", \"string\", $result[$i]['usemarketprice']),\r\n 'CreatedBy' => new SOAP_Value(\"CreatedBy\", \"string\", $result[$i]['createdby']),\r\n 'CreatedDate' => new SOAP_Value(\"CreatedDate\", \"string\", $result[$i]['createddate'] ),\r\n 'UpdatedBy' => new SOAP_Value(\"UpdatedBy\", \"string\", $result[$i]['updatedby']),\r\n 'UpdatedDate' => new SOAP_Value(\"UpdatedDate\", \"string\", $result[$i]['updateddate'] )\r\n )\r\n );\r\n }\r\n }\r\n return returnXML(func_get_args(), $this->class_name, $function_name, $this->_ERROR_CODE, $this->items, $this );\r\n }",
"public function getForexRate(\n $oauth_token,\n $rateType = 'e-rate',\n $currency = 'USD'\n )\n {\n $params = array();\n $params['RateType'] = strtolower($rateType);\n $params['Currency'] = strtoupper($currency);\n ksort($params);\n\n $auth_query_string = self::arrayImplode('=', '&', $params);\n\n $uriSign = \"GET:/general/rate/forex?$auth_query_string\";\n $isoTime = self::generateIsoTime();\n $authSignature = self::generateSign($uriSign, $oauth_token, $this->settings['secret_key'], $isoTime, null);\n\n $headers = array();\n $headers['Accept'] = 'application/json';\n $headers['Content-Type'] = 'application/json';\n $headers['Authorization'] = \"Bearer $oauth_token\";\n $headers['X-BCA-Key'] = $this->settings['api_key'];\n $headers['X-BCA-Timestamp'] = $isoTime;\n $headers['X-BCA-Signature'] = $authSignature;\n\n $request_path = \"general/rate/forex?$auth_query_string\";\n $domain = $this->ddnDomain();\n $full_url = $domain . $request_path;\n\n $data = array('grant_type' => 'client_credentials');\n $body = Body::form($data);\n $response = Request::get($full_url, $headers, $body);\n\n return $response;\n }",
"public function testGetShippingRatesSetUsingGET()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }"
] | [
"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.5161718",
"0.51149476",
"0.5098854",
"0.50633216",
"0.50440013",
"0.502399",
"0.5007239",
"0.5003544",
"0.49928802"
] | 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}",
"public function displayHelp() {\n $obj = CommandLineWriter::getInstance();\n $obj->addText('./migrate.php recreate');\n $obj->addText('Creates migration table');\n }",
"function ApplicationScaffolding()\n {\n $this->__construct();\n }",
"public function handle()\n {\n $name = $this->argument('name') ?? 'scaffold';\n\n $path = database_path(\"{$name}.json\");\n\n $yaml = false;\n\n if (! is_file($path) || $this->option('yaml')) {\n $path = database_path(\"{$name}.yaml\");\n\n $yaml = true;\n }\n\n if (is_file($path)) {\n $storage = \\Scaffold::storage()->init();\n\n $diffs = $storage->diffs();\n\n foreach ($diffs as $key => $diff) {\n $f = str_replace(base_path(), '', $diff);\n if ($this->option('force') || $this->confirm(\"The [$f] file has been modified! Overwrite the file?\", true)) {\n unset($diffs[$key]);\n }\n }\n\n if ($diffs) {\n $this->line(\"Save your changes to these files:\\n - \".implode(\"\\n - \",\n array_map(fn ($i) => str_replace(base_path(), '', $i), $diffs)).\"\\n\");\n\n return 0;\n }\n\n $storage->clear();\n\n foreach ($this->option('require') as $item) {\n if (isset(ScaffoldCommands::$blanc_list[$item])) {\n ScaffoldConstruct::blanc(\n ScaffoldCommands::$blanc_list[$item]\n );\n }\n }\n\n $collect = $yaml ? \\Scaffold::modelsFromYamlFile($path) : \\Scaffold::modelsFromJsonFile($path);\n\n if ($collect->count()) {\n $collect->render(\n config('scaffold.scaffolding_listeners', [])\n );\n $this->info('The scaffolding completed its work successfully!');\n } else {\n $this->error('Complete the scaffolding file!');\n }\n } else {\n if ($name === 'scaffold') {\n file_put_contents($path, \"{\\n}\");\n $this->info('Scaffold file [database/scaffold.'.($yaml ? 'yaml' : 'json').'] created!');\n } else {\n $this->error('File [database/scaffold.'.($yaml ? 'yaml' : 'json').'] not found!');\n }\n }\n\n return 0;\n }",
"private function createCommandHelp() {\n echo \"The PHP Farm - a simple command line animals app\" . PHP_EOL;\n echo PHP_EOL;\n echo \"Command Usage:\" . PHP_EOL;\n echo \" [create | c] <name=> <type=> creates a animal with name\" . PHP_EOL;\n echo PHP_EOL;\n echo \"Examples:\" . PHP_EOL;\n echo \" php Main.php [create | c] name=my_animal_name\" . PHP_EOL;\n echo \" php Main.php [create | c] name=my_animal_name type=pig\" . PHP_EOL;\n }",
"public function create()\n\t{\n\t\t$class = __NAMESPACE__ . '\\\\Scaffolding\\\\' . ucfirst($this->type);\n\n\t\tif (class_exists($class))\n\t\t{\n\t\t\t$obj = new $class($this->output, $this->arguments);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (empty($this->type))\n\t\t\t{\n\t\t\t\t$this->output->error('Error: Sorry, scaffolding can\\'t create nothing/everything. Try telling it what you want to create.');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->output->error('Error: Sorry, scaffolding doesn\\'t know how to create a ' . $this->type);\n\t\t\t}\n\t\t}\n\n\t\t// Get author name and email - we'll go ahaed and retrieve for all create calls\n\t\t$user_name = Config::get('user_name');\n\t\t$user_email = Config::get('user_email');\n\n\t\tif (!$user_name || !$user_email)\n\t\t{\n\t\t\t$this->output\n\t\t\t ->addSpacer()\n\t\t\t ->addLine('You can specify your name and email via:')\n\t\t\t ->addLine(\n\t\t\t\t\t'muse configuration set --user_name=\"John Doe\"',\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'indentation' => '2',\n\t\t\t\t\t\t'color' => 'blue'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t->addLine(\n\t\t\t\t\t'muse configuration set [email protected]',\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'indentation' => '2',\n\t\t\t\t\t\t'color' => 'blue'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t->addSpacer()\n\t\t\t\t->error(\"Error: failed to retrieve author name and/or email.\");\n\t\t}\n\n\t\t$obj->addReplacement('author_name', $user_name)\n\t\t\t->addReplacement('author_email', $user_email);\n\n\t\t// Call the construct method\n\t\t$obj->construct();\n\t}",
"public function scaffold() {\n $config_files = $this->loadScaffoldSourceConfigurations();\n if ($config_files) {\n foreach ($config_files as $file) {\n $config = $this->getConfig($file);\n if (!empty($config['image_styles'])) {\n foreach ($config['image_styles'] as $image_style_config) {\n $this->generateCode($image_style_config);\n }\n }\n }\n }\n }",
"public function servingConsole()\n {\n $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n // Auth blueprint\n Blueprint::macro('location', function($name = 'location') {\n return $this->foreignId(\"{$name}_id\")->nullable()->constrained('locations');\n });\n }",
"function _btr_vocabulary_add_drush_help() {\n return dt(\"Create a new vocabulary.\");\n}",
"function generateDocumentation()\n{\n $docs = shell_exec('jsduck src lib/sugarapi --output docs 2>&1');\n}",
"private function washCommandHelp(){\n echo \"The PHP Farm - a simple command line animals app\" . PHP_EOL;\n echo PHP_EOL;\n echo \"Command Usage:\" . PHP_EOL;\n echo \" [wash | w] <name=> gives a shower to a animal by name\" . PHP_EOL;\n echo PHP_EOL;\n echo \"Examples:\" . PHP_EOL;\n echo \" php Main.php [wash | w] name=my_animal_name\" . PHP_EOL;\n }",
"public function help()\n\t\t{\n\t\t\thelper::writeLine(helper::getSeparator());\n\t\t\thelper::writeLine(\"TYPE ONE OF THE FOLLOWING COMMANDS:\\n\");\n\t\t\thelper::writeLine(E_SYNC_ROOT.\" \".IMPORTER_ROOT.\" import auto\\t\\t\\t\\tImports all active resources that have to be imported now\");\n\t\t\thelper::writeLine(E_SYNC_ROOT.\" \".IMPORTER_ROOT.\" import all\\t\\t\\t\\tImports all active resources\");\n\t\t\thelper::writeLine(E_SYNC_ROOT.\" \".IMPORTER_ROOT.\" import [resource_name]\\t\\tImports [resource_name] if exists and is active\");\n\t\t\thelper::writeLine(helper::getSeparator());\n\t\t}",
"public function help() {\n $this->out(__d('users', \"Users Shell\"));\n $this->out(\"\");\n $this->out(__d('users', \"\\tCreate users.\"));\n $this->out(\"\");\n $this->out(__d('users', \"\\tUse:\"));\n $this->out(__d('users', \"\\t\\tcake user create\"));\n $this->out(\"\");\n $this->out(__d('users', \"\\tExample Use:\"));\n $this->out(__d('users', \"\\t\\tcake Users.user create\"));\n $this->out(\"\");\n $this->hr();\n $this->out(\"\");\n }",
"public function docGenerate()\n {\n $this->_exec('cd '.__DIR__.'/docs && composer install');\n $this->_exec(__DIR__.'/docs/build');\n $this->_exec(__DIR__.'/vendor/bin/couscous preview');\n }",
"private function deleteCommandHelp(){\n echo \"The PHP Farm - a simple command line animals app\" . PHP_EOL;\n echo PHP_EOL;\n echo \"Command Usage:\" . PHP_EOL;\n echo \" [delete | d] <name=> deletes a animal by name\" . PHP_EOL;\n echo \"\" . PHP_EOL;\n echo \"Examples:\" . PHP_EOL;\n echo \" php Main.php [delete | d] name=my_animal_name\" . PHP_EOL;\n }",
"public function index()\n {\n $this->help();\n }",
"public function index()\n {\n $this->help();\n }",
"final public function showCommandList()\n {\n $ref = new \\ReflectionClass($this);\n $sName = lcfirst(self::getName() ?: $ref->getShortName());\n\n if (!($classDes = self::getDescription())) {\n $classDes = Annotation::description($ref->getDocComment()) ?: 'No Description for the console controller';\n }\n\n $commands = [];\n foreach ($this->getAllCommandMethods($ref) as $cmd => $m) {\n $desc = Annotation::firstLine($m->getDocComment());\n\n if ($cmd) {\n $commands[$cmd] = $desc;\n }\n }\n\n // sort commands\n ksort($commands);\n\n // move 'help' to last.\n if ($helpCmd = $commands['help'] ?? null) {\n unset($commands['help']);\n $commands['help'] = $helpCmd;\n }\n\n $script = $this->getScriptName();\n\n if ($this->standAlone) {\n $name = $sName . ' ';\n $usage = \"$script <info>{command}</info> [arguments] [options]\";\n } else {\n $name = $sName . $this->delimiter;\n $usage = \"$script {$name}<info>{command}</info> [arguments] [options]\";\n }\n\n $this->output->mList([\n 'Description:' => $classDes,\n 'Usage:' => $usage,\n //'Group Name:' => \"<info>$sName</info>\",\n 'Commands:' => $commands,\n 'Options:' => [\n '-h,--help' => 'Show help of the command group or specified command action',\n ],\n ]);\n\n $this->write(sprintf(\n \"To see more information about a command, please use: <cyan>$script {command} -h</cyan>\",\n $this->standAlone ? ' ' . $name : ''\n ));\n }",
"public function help()\n\t{\n\t\t$this\n\t\t\t->output\n\t\t\t->addOverview(\n\t\t\t\t'Store shared configuration variables used by the command line tool.\n\t\t\t\tThese will, for example, be used to fill in docblock stubs when\n\t\t\t\tusing the scaffolding command.'\n\t\t\t)\n\t\t\t->addTasks($this)\n\t\t\t->addArgument(\n\t\t\t\t'--{keyName}',\n\t\t\t\t'Sets the variable keyName to the given value.',\n\t\t\t\t'Example: --name=\"John Doe\"'\n\t\t\t);\n\t}",
"private function help() {\n echo \"The PHP Farm - a simple command line animals app\" . PHP_EOL;\n echo PHP_EOL;\n echo \"Usage:\" . PHP_EOL;\n echo \" php Main.php [command]\" . PHP_EOL;\n echo PHP_EOL;\n echo \"Available Commands:\" . PHP_EOL;\n echo \" [list | l] list all available animals\" . PHP_EOL;\n echo \" [create | c] <name=> <type=> create a animal with name\" . PHP_EOL;\n echo \" [delete | d] <name=> delete a animal\" . PHP_EOL;\n echo \" [search | s] <name=> search a animal\" . PHP_EOL;\n echo \" [food | f] <name=> give food to a animal\" . PHP_EOL;\n echo \" [wash | w] <name=> give a shower to a animal\" . PHP_EOL;\n echo \" [alive | a] <name=> show if a animal is alive\" . PHP_EOL;\n echo \" [help | h] help about commands\" . PHP_EOL;\n echo PHP_EOL;\n echo \"Flags:\" . PHP_EOL;\n echo \" -v, --version show the app version\" . PHP_EOL;\n echo PHP_EOL;\n echo \"Use php Main.php [command] --help for more information about a command.\" . PHP_EOL;\n }",
"public function helpAction()\n {\n $this->container->get('contao.framework')->initialize();\n\n $controller = new BackendHelp();\n\n return $controller->run();\n }",
"public function help() {\n\t\t$this->out('Usage: cake config_cacher cache');\n\t\t$this->out('This shell is meant to be used to cache all configuration keys stored in database into a php file');\n\t}",
"public function new_help()\n {\n }",
"public function new_help()\n {\n }",
"public function new_help()\n {\n }",
"protected function configure() : void\n {\n $this->setDescription('This is a command to delete a schema')\n ->addArgument('name', InputArgument::REQUIRED, 'Name of the schema');\n }",
"protected function configure()\n {\n $this\n ->setName(\"generate:controller\")\n ->setDescription(\"Generate a controller file for the provided model name.\")\n ->addArgument(\n 'modelName',\n InputArgument::REQUIRED,\n 'Full qualified model class name'\n )\n ->addOption(\n 'path',\n 'p',\n InputOption::VALUE_OPTIONAL,\n 'Sets the application path where controllers are located',\n getcwd()\n )\n ->addOption(\n 'out',\n 'o',\n InputOption::VALUE_OPTIONAL,\n 'The controllers folder where to save the controller.',\n 'Controllers'\n )\n ->addOption(\n 'scaffold',\n 'S',\n InputOption::VALUE_NONE,\n 'If set the controller will have only the scaffold property set.'\n );\n }",
"protected function configure()\n {\n $this\n ->setName(\"generate:controller\")\n ->setDescription(\"Generate a controller file for the provided model name.\")\n ->addArgument(\n 'modelName',\n InputArgument::REQUIRED,\n 'Full qualified model class name'\n )\n ->addOption(\n 'path',\n 'p',\n InputOption::VALUE_OPTIONAL,\n 'Sets the application path where controllers are located',\n getcwd()\n )\n ->addOption(\n 'out',\n 'o',\n InputOption::VALUE_OPTIONAL,\n 'The controllers folder where to save the controller.',\n 'Controllers'\n )\n ->addOption(\n 'scaffold',\n 'S',\n InputOption::VALUE_NONE,\n 'If set the controller will have only the scaffold property set.'\n );\n }",
"private function foodCommandHelp(){\n echo \"The PHP Farm - a simple command line animals app\" . PHP_EOL;\n echo PHP_EOL;\n echo \"Command Usage:\" . PHP_EOL;\n echo \" [food | f] <name=> gives food to a animal by name\" . PHP_EOL;\n echo PHP_EOL;\n echo \"Examples:\" . PHP_EOL;\n echo \" php Main.php [food | f] name=my_animal_name\" . PHP_EOL;\n }"
] | [
"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.5551999",
"0.55417645",
"0.5528038",
"0.5491368",
"0.5491368",
"0.5491368",
"0.5486364",
"0.5473379",
"0.5473379",
"0.5470423"
] | 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, 2));\n\t\t$green = hexdec(substr($this->Colorreplace[1], 3, 2));\n\t\t$blue = hexdec(substr($this->Colorreplace[1], 5, 2));\n\t\t$rednew = hexdec(substr($this->Colorreplace[2], 1, 2));\n\t\t$greennew = hexdec(substr($this->Colorreplace[2], 3, 2));\n\t\t$bluenew = hexdec(substr($this->Colorreplace[2], 5, 2));\n\t\t$tolerance = sqrt(pow($this->Colorreplace[3], 2) + pow($this->Colorreplace[3], 2) + pow($this->Colorreplace[3], 2));\n\t\tfor($y = 0; $y < $this->size[1]; $y++){\n\t\t\tfor($x = 0; $x < $this->size[0]; $x++){\n\t\t\t\t$pixel = ImageColorAt($this->im, $x, $y);\n\t\t\t\t$redpix = ($pixel >> 16 & 0xFF);\n\t\t\t\t$greenpix = ($pixel >> 8 & 0xFF);\n\t\t\t\t$bluepix = ($pixel & 0xFF);\n\t\t\t\tif(sqrt(pow($redpix - $red, 2) + pow($greenpix - $green, 2) + pow($bluepix - $blue, 2)) < $tolerance)\n\t\t\t\t\timagesetpixel($this->im, $x, $y, imagecolorallocatealpha($this->im, $rednew, $greennew, $bluenew, $pixel >> 24 & 0xFF));\n\t\t\t}\n\t\t}\n\n\t}",
"public function remapImage (Imagick $replacement, $DITHER) {}",
"public function setMltBoost($flag) {}",
"abstract public function replace($in): void;",
"public function setWeak($var) {}",
"function pb_replace_with($target, $with)\n{\n global $pb_string;\n global $pb_error;\n\n // %% signifies special strings\n $target = \"%%\" . $target . \"%%\";\n \n // There's no simple function to replace the first occurence of a substring\n $pos = strpos($pb_string,$target);\n if ($pos !== false) {\n $pb_string = substr_replace($pb_string,$with,$pos,strlen($target));\n return true;\n }\n return false;\n}",
"private function replaceStub(){\n $dummyModul = $this->dummyModul;\n $DummyModul = ucfirst($dummyModul);\n\n $stub = $this->stub;\n $stub = str_replace('DummyModul', $DummyModul, $stub);\n $stub = str_replace('dummyModul', $dummyModul, $stub);\n if($this->dummyName) $stub = str_replace('dummyName', $this->dummyName, $stub);\n if($this->DummyName) $stub = str_replace('DummyName', $this->DummyName, $stub);\n\n $this->stub = $stub;\n }",
"function BldImg($nd,$na){\n\n\tglobal $redbuild;\n\t\n\tif( preg_match(\"/$redbuild/\",$na) ){\n\t\t$bc = \"r\";\n\t}else{\n\t\t$bc = \"\";\n\t}\n\tif($nd > 19){\n\t\treturn \"bldh$bc\";\n\t}elseif($nd > 9){\n\t\treturn \"bldb$bc\";\n\t}elseif($nd > 2){\n\t\treturn \"bldm$bc\";\n\t}else{\n\t\treturn \"blds$bc\";\n\t}\t\n}",
"public function setBoost(array $boost)\n {\n $this->boost = $boost;\n }",
"function replace($word){\n\t\tinclude 'config.php';\n\t\tinclude 'open_db.php';\n\t\t\n\t\t$STH = $conn->prepare(\"SELECT * FROM flag\");\n\t\t$STH->execute();\n\t\t\n\t\t//HTML Sanitization\n\t\t$word = strip_tags($word);\n\t\t\n\t\twhile($row = $STH->fetch()){\n\t\t\t$insult = $row['word'];\n\t\t\t$len = strlen($insult);\n\t\t\t$replacement = $row['replacement'];\n\t\t\t$flag = strpos($word, $insult);\n\n\t\t\tif($flag != FALSE){\n\t\t\t\t$word = substr_replace($word, $replacement, $flag, $len);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn $word;\n\t}",
"function setReplace($replace){\n $this->replace = $replace;\n }",
"public function testUpdateBREGlobal()\n {\n }",
"function bbp_rewrite()\n{\n}",
"public function setImageBluePrimary ($x, $y) {}",
"public function replace($key, $var, $flag = NULL, $expire = NULL) {\n\n }",
"public function replace_bbcodes($text) {\n\t\tif ($this->_check_type()== 1) {\n\t\t\t//$this->_mysql_link = $this->_mysql_link;\n\t\t\t$query = \"SELECT * FROM `bbcodes` WHERE find_in_set( '$this->_type', `bbcodes_rights`)\";\n\t\t\t$this->_mysql_link->query($query);\n\t\t\t\n\t\t\twhile ($bbcodes_data = $this->_mysql_link->fetcharray()) {\n\t\t\t\t$text = preg_replace($bbcodes_data[\"bbcodes_regex\"], $bbcodes_data[\"bbcodes_htmltag\"], $text);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $text;\n\t}",
"public abstract function setBand($arr);",
"function WordReplacerSet()\n{\n\tglobal $txt, $modSettings, $context, $smcFunc;\n\n\tif (!isset($modSettings['wordreplacer_vulgar']))\n\t\t$modSettings['wordreplacer_vulgar'] = '';\n\tif (!isset($modSettings['wordreplacer_proper']))\n\t\t$modSettings['wordreplacer_proper'] = '';\n\n\tif (!empty($_POST['save_censor']))\n\t{\n\t\t// Make sure censoring is something they can do.\n\t\tcheckSession();\n\n\t\t$censored_vulgar = array();\n\t\t$censored_proper = array();\n\n\t\t// Rip it apart, then split it into two arrays.\n\t\tif (isset($_POST['censortext']))\n\t\t{\n\t\t\t$_POST['censortext'] = explode(\"\\n\", strtr($_POST['censortext'], array(\"\\r\" => '')));\n\n\t\t\tforeach ($_POST['censortext'] as $c)\n\t\t\t\tlist ($censored_vulgar[], $censored_proper[]) = array_pad(explode('=', trim($c)), 2, '');\n\t\t}\n\t\telseif (isset($_POST['censor_vulgar'], $_POST['censor_proper']))\n\t\t{\n\t\t\tif (is_array($_POST['censor_vulgar']))\n\t\t\t{\n\t\t\t\tforeach ($_POST['censor_vulgar'] as $i => $value)\n\t\t\t\t{\n\t\t\t\t\tif (trim(strtr($value, '*', ' ')) == '')\n\t\t\t\t\t\tunset($_POST['censor_vulgar'][$i], $_POST['censor_proper'][$i]);\n\t\t\t\t}\n\n\t\t\t\t$censored_vulgar = $_POST['censor_vulgar'];\n\t\t\t\t$censored_proper = $_POST['censor_proper'];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$censored_vulgar = explode(\"\\n\", strtr($_POST['censor_vulgar'], array(\"\\r\" => '')));\n\t\t\t\t$censored_proper = explode(\"\\n\", strtr($_POST['censor_proper'], array(\"\\r\" => '')));\n\t\t\t}\n\t\t}\n\n\t\t// Set the new arrays and settings in the database.\n\t\t$updates = array(\n\t\t\t'wordreplacer_vulgar' => implode(\"\\n\", $censored_vulgar),\n\t\t\t'wordreplacer_proper' => implode(\"\\n\", $censored_proper),\n\t\t\t'wordreplacerWholeWord' => empty($_POST['censorWholeWord']) ? '0' : '1',\n\t\t\t'wordreplacerIgnoreCase' => empty($_POST['censorIgnoreCase']) ? '0' : '1',\n\t\t);\n\n\t\tupdateSettings($updates);\n\t}\n\n\tif (isset($_POST['censortest']))\n\t{\n\t\t$censorText = htmlspecialchars($_POST['censortest'], ENT_QUOTES);\n\t\t$context['censor_test'] = strtr(wordReplacer($censorText), array('\"' => '"'));\n\t}\n\n\t// Set everything up for the template to do its thang.\n\t$censor_vulgar = explode(\"\\n\", $modSettings['wordreplacer_vulgar']);\n\t$censor_proper = explode(\"\\n\", $modSettings['wordreplacer_proper']);\n\n\t$context['censored_words'] = array();\n\tfor ($i = 0, $n = count($censor_vulgar); $i < $n; $i++)\n\t{\n\t\tif (empty($censor_vulgar[$i]))\n\t\t\tcontinue;\n\n\t\t// Skip it, it's either spaces or stars only.\n\t\tif (trim(strtr($censor_vulgar[$i], '*', ' ')) == '')\n\t\t\tcontinue;\n\n\t\t$context['censored_words'][htmlspecialchars(trim($censor_vulgar[$i]))] = isset($censor_proper[$i]) ? htmlspecialchars($censor_proper[$i]) : '';\n\t}\n\n\tloadTemplate('WordReplacer');\n\t$context['sub_template'] = 'edit_wordreplacer';\n\t$context['page_title'] = $txt['admin_censored_words'];\n}",
"function cotpl_callback_replace(&$arg, $i, $val)\n{\n\tif (mb_strpos($arg, '$this') !== FALSE)\n\t{\n\t\tif (is_array($val) || is_object($val))\n\t\t{\n\t\t\t$arg = $val;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$arg = str_replace('$this', (string)$val, $arg);\n\t\t}\n\t}\n}",
"function setRaw($var, $value)\n {\n return parent :: _setRaw($var, $value);\n }",
"public function setReplacement($replacement) {\n $this->replacement = $replacement;\n }",
"public function assign($var,$val){\n $this->content = str_replace('{'.$var.'}', $val, $this->content);\n }",
"function replace($table, $data);",
"public function set($which = 's', $needle, $replacement);",
"function setBrightness($bri) {\n if(is_int($bri) && $bri >= 1 && $bri <= 254) {\n $conn = new ApiConnection();\n $URL = \"lights/\" . $this->lightID . \"/state\";\n $data = '{\"bri\": ' . $bri .'}';\n $result = $conn->sendPutCmd($URL, $data);\n return $result;\n } else {\n return null;\n }\n }"
] | [
"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.45848086",
"0.45845142",
"0.4582561",
"0.45813322",
"0.4575301",
"0.45672876",
"0.4559937",
"0.45440993",
"0.45427272",
"0.45168695"
] | 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.generator.basePath', app()->path());\n }",
"protected static function getProjectRoot() {\n $path = new Path();\n return $path->resolve(__FILE__, '../../../../../');\n }",
"public function getGitDir()\n {\n return self::GIT_DIR;\n }",
"static private function rootDir(): string\n {\n $root_dir = str_replace('/system/core', '', __DIR__);\n $root_dir = explode('/', $root_dir);\n return $root_dir[count($root_dir) - 1];\n }",
"public function _getBasePath() {\n\t\treturn $_SERVER[ 'DOCUMENT_ROOT' ];\n\t}",
"public function getRootPath();",
"public function getBaseDirectory(): string\n {\n return $this->getConfigValueForKey('baseDirectory') ?? '';\n }",
"public static function getRootPath()\n {\n return dirname(dirname(dirname(dirname(dirname(dirname(dirname(__FILE__)))))));\n }",
"public function rootDir()\n {\n // Get the root URL and only get the dir if it contains the starting script\n // file name (for example '/index.php')\n $url = $this->rootUrl();\n\n if (strpos($url, $_SERVER['SCRIPT_NAME']) !== false) {\n $url = dirname($url) . '/';\n }\n\n return $url;\n }",
"protected function getUploadRootDir(){\n \treturn __DIR__ . \"/../../../web/_repository/\";\n }",
"protected function getRepositoryDirectory()\n {\n $dir = $this->getComposerHome().'/stone';\n\n // Ensure directory exists\n if (!is_dir($dir)) {\n @mkdir($dir, 0777, true);\n }\n\n return $dir;\n }",
"public function getRootDir()\n {\n return $this->rootDir;\n }",
"public function getBaseDir()\n {\n if (is_null($this->baseDir))\n {\n return $this->parentConfig->getBaseDir();\n }\n return $this->baseDir;\n }",
"public static function base(): string\n {\n return realpath(__DIR__ . '/../..');\n }",
"function getRootPath() {\r\n $registry = &KISS_Framework_Registry::instance();\r\n return $registry->getEntry('root_path');\r\n }",
"protected function _getBaseDir()\n {\n return Mage::getModuleDir('base', $this->_moduleName);\n }",
"public static function getBasePath()\n\t{\n\t\treturn self::getItem('core.base');\n\t}",
"public static function root(): string\n {\n return dirname(__FILE__, 3);\n }",
"public static function getRootPath()\n\t{\n\t\treturn self::getItem('core.root');\n\t}",
"protected function getRootPath()\n {\n $rootPath = dirname(dirname(__DIR__));\n return str_replace('\\\\', '/', $rootPath);\n }",
"public function getBaseDirs()\n {\n return $this->baseDirs;\n }",
"private function root()\n {\n if (defined('__alphaz__ROOT__')) {\n return __alphaz__ROOT__.'/';\n }\n\n return '../';\n }",
"public function getRootDirectory()\n {\n return $this->rootDirectory;\n }",
"public static function getAbsRoot() : string {\n\t\treturn dirname(__DIR__);\n\t}",
"public function basedir() { return $this -> basedir; }",
"function rootDir()\n{\n return __DIR__ . \"/../../../\";\n}"
] | [
"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.60213614",
"0.60172886",
"0.601421",
"0.5988045",
"0.5982593",
"0.59723884",
"0.5960937",
"0.5934485",
"0.592612",
"0.5918299"
] | 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' => 'article',\n ])->save();\n $this->container->get('router.builder')->rebuild();\n\n $author_user = $this->account;\n $node1 = Node::create([\n 'type' => 'article',\n 'title' => $this->randomString(),\n 'status' => 1,\n 'uid' => $author_user->id(),\n ]);\n $node1->save();\n $node2 = Node::create([\n 'type' => 'article',\n 'title' => $this->randomString(),\n 'status' => 1,\n 'uid' => $author_user->id(),\n ]);\n $node2->save();\n\n $this->grantPermissionsToTestedRole([\n 'access content',\n ]);\n\n $url = Url::fromRoute('jsonapi_resources_test.author_content', [\n 'user' => $author_user->id(),\n ]);\n $request_options = [];\n $request_options[RequestOptions::HEADERS]['Accept'] = 'application/vnd.api+json';\n $request_options = NestedArray::mergeDeep($request_options, $this->getAuthenticationRequestOptions());\n $response = $this->request('GET', $url, $request_options);\n\n $this->assertSame(200, $response->getStatusCode(), var_export(Json::decode((string) $response->getBody()), TRUE));\n $response_document = Json::decode((string) $response->getBody());\n $this->assertCount(2, $response_document['data']);\n $this->assertArrayHasKey('included', $response_document);\n $this->assertNotEmpty($response_document['included']);\n }",
"public function testDatasetAccessModule()\n {\n\n $this->user->switchUser('test_annon_3');\n\n $orm = $this->db->orm;\n $textTest = $orm->get('WbfsysText',\"access_key='text_1'\");\n $textSecret = $orm->get('WbfsysText',\"access_key='secret'\");\n\n // can access only this one entity\n $res = $this->acl->access('mod-test_3:access', $textTest);\n $this->assertTrue('access mod-test_3:access for test text returned false',$res);\n\n // no access to access secret entity\n $res = $this->acl->access('mod-test_3:access', $textSecret);\n $this->assertFalse('access mod-test_3:access for secret text returned true',$res);\n\n // no rights for existing area\n $res = $this->acl->access('mod-test:access');\n $this->assertFalse('access mod-test:access returned true',$res);\n\n $res = $this->acl->access('mod-test:insert');\n $this->assertFalse('access mod-test:insert returned true',$res);\n\n // no rights for nonexisting area\n $res = $this->acl->access('not_exists:access');\n $this->assertFalse('access not_exists:access returned true',$res);\n\n $res = $this->acl->access('not_exists:insert');\n $this->assertFalse('access not_exists:insert returned true',$res);\n\n }",
"public function read_access() { $this->request_access(self::READ_ACCESS); }",
"public function testReadAuthor()\n {\n $author = factory(Author::class)->create();\n\n $response = $this->withHeaders($this->apiHeaders)->get(\"$this->endpoint/$author->id\");\n\n $response->assertStatus(200)\n ->assertJsonStructure($this->model_structure);\n }",
"public function canRead()\n {\n return $this->content->canRead(Yii::$app->user->id);\n }",
"public function test_get_metadata() {\n $collection = new \\core_privacy\\local\\metadata\\collection('tool_monitor');\n $collection = provider::get_metadata($collection);\n $this->assertNotEmpty($collection);\n }",
"public function testDatasetAccessEntity()\n {\n\n $this->user->switchUser('test_annon');\n\n $orm = $this->db->orm;\n $textTest = $orm->get('WbfsysText',\"access_key='text_1'\");\n $textSecret = $orm->get('WbfsysText',\"access_key='secret'\");\n\n // can access only this one entity\n $res = $this->acl->access('mod-test_5/entity-test_5:access', $textTest);\n $this->assertTrue('access mod-test_5/entity-test_5:access for test text returned false',$res);\n\n // no access to access secret entity\n $res = $this->acl->access('mod-test_5/entity-test_5:access', $textSecret);\n $this->assertFalse('access mod-test_5/entity-test_5:access for secret text returned true',$res);\n\n // no access without entity\n $res = $this->acl->access('mod-test_5/entity-test_5:access');\n $this->assertFalse('access mod-test_5/entity-test_5:access returned true',$res);\n\n $res = $this->acl->access('entity-test_5:access');\n $this->assertFalse('access entity-test_5:access returned true',$res);\n\n }",
"public function testDatasetAccessEntityByMod()\n {\n\n $this->user->switchUser('test_annon_3');\n\n $orm = $this->db->orm;\n $textTest = $orm->get('WbfsysText',\"access_key='text_1'\");\n $textSecret = $orm->get('WbfsysText',\"access_key='secret'\");\n\n // can access only this one entity\n $res = $this->acl->access('mod-test_3/entity-test_3:access', $textTest);\n $this->assertTrue('access mod-test_3/entity-test_3:access for test text returned false',$res);\n\n // no access to access secret entity\n $res = $this->acl->access('mod-test_3/entity-test_3:access', $textSecret);\n $this->assertFalse('access mod-test_3/entity-test_3:access for secret text returned true',$res);\n\n // no rights for existing area\n $res = $this->acl->access('mod-test/entity-test:access');\n $this->assertFalse('access mod-test:/entity-testaccess returned true',$res);\n\n $res = $this->acl->access('mod-test/entity-test:insert');\n $this->assertFalse('access mod-test/entity-test:insert returned true',$res);\n\n // no rights for nonexisting area\n $res = $this->acl->access('not_exists/entity-not_exists:access');\n $this->assertFalse('access not_exists:access returned true',$res);\n\n $res = $this->acl->access('not_exists/entity-not_exists:insert');\n $this->assertFalse('access not_exists:insert returned true',$res);\n\n }",
"public function testAccessEntityByMod()\n {\n\n $this->user->switchUser('test_annon');\n\n $orm = $this->db->orm;\n $textTest = $orm->get('WbfsysText',\"access_key='text_1'\");\n $textSecret = $orm->get('WbfsysText',\"access_key='secret'\");\n\n // shoule be valid\n $res = $this->acl->access('mod-test/entity-test:access');\n $this->assertTrue('access mod-test:access returned false',$res);\n\n // full access expected\n $res = $this->acl->access('mod-test/entity-test:access', $textTest);\n $this->assertTrue('access mod-test:access text test returned false',$res);\n\n // full access expected\n $res = $this->acl->access('mod-test/entity-test:access', $textSecret);\n $this->assertTrue('access mod-test:access secret text returned false',$res);\n\n // from here all should return false\n\n // has rights for mod-test but only on access\n $res = $this->acl->access('mod-test/entity-test:insert');\n $this->assertFalse('access mod-test:insert returned true',$res);\n\n // no rights for existing area\n $res = $this->acl->access('mod-test_2/entity-test_2:access');\n $this->assertFalse('access mod-test_2:access returned true',$res);\n\n $res = $this->acl->access('mod-test_2/entity-test_2:insert');\n $this->assertFalse('access mod-test_2:insert returned true',$res);\n\n }",
"public function testLoadFileMetadataOk() {\n $metadata = FileRepositoryFS::getFileMetadata($this->fileName, 1);\n $this->assertInstanceOf(\\app\\models\\FileMetadata::class, $metadata);\n $this->assertEquals($this->fileName, $metadata->Name);\n $this->assertEquals(1, $metadata->Owner);\n }",
"protected function read() {\n\t\t\n\t\t$this->content = file_get_contents( $this->path );\n\t\t\t\t\n\t\treturn ($this->content !== false);\n\t}",
"public abstract function verifyRepository();",
"public function testReadPage()\n {\n $response = $this->get(action('\\Gdevilbat\\SpardaCMS\\Modules\\Page\\Http\\Controllers\\PageController@index'));\n\n $response->assertStatus(302)\n ->assertRedirect(action('\\Gdevilbat\\SpardaCMS\\Modules\\Core\\Http\\Controllers\\Auth\\LoginController@showLoginForm')); // Return Not Valid, User Not Login\n\n $user = \\App\\Models\\User::find(1);\n\n $response = $this->actingAs($user)\n ->from(action('\\Gdevilbat\\SpardaCMS\\Modules\\Page\\Http\\Controllers\\PageController@index'))\n ->json('GET',action('\\Gdevilbat\\SpardaCMS\\Modules\\Page\\Http\\Controllers\\PageController@serviceMaster'))\n ->assertSuccessful()\n ->assertJsonStructure(['data', 'draw', 'recordsTotal', 'recordsFiltered']); // Return Valid user Login\n }",
"public function testGetMetaData() {\n\t\t// Grab the metadata from a file on the bootcamp server\n\t\t$streamData = DataDownloader::getMetaData($this->fileToGrab);\n\n\t\t// Assert the metadata contains \"Last-Modified\"\n\t\t$this->assertContains(\"Last-Modified\", $streamData);\n\t}",
"public function shouldBeDisplayed()\n {\n return Auth::user()->can('browse', Voyager::model('User'));\n }",
"public function testCanSeeUserPage(){\n $user = factory(User::class)->create();\n\n $response = $this->get(\"/users/$user->username\");\n $response->assertSee($user->username);\n\n }",
"protected function userCanRead()\n {\n $userIsAllowed = $this->getServiceLocator()->get('ViewHelperManager')\n ->get('userIsAllowed');\n return $userIsAllowed(Generation::class, 'read');\n }",
"public function testCreateRead()\n\t{\n\t\t$user = $this->createUser();\n\n\t\t$this->assertTrue( is_integer($user->id) );\n\t\t$this->assertTrue( $user->id > 0 );\n\n\t\t$find_user = User::find( $user->id );\n\n\t\t$this->assertEquals( $find_user->username, $user->username );\n\n\t\t$user->delete();\n\t}",
"public function testGetUrl() {\n\t\t$repo = $this->repo();\n\t\t$this->_testGetUrl($repo);\n\n\t\t// test same repo (private access)\n\t\t$cfg = $repo->getConfig();\n\t\t$cfg['options']['default_acl'] = 'private';\n\t\t$cls = get_class($repo);\n\t\t$repo_private = new $cls($cfg);\n\t\t$this->_testGetUrl($repo_private);\n\t}",
"public function testGetConditionsForReadable() {\n\t\t$permissions = [\n\t\t\t'content_readable' => true,\n\t\t];\n\t\t$blockId = 1;\n\t\t$result = $this->TinydbItem->getConditions($blockId, $permissions);\n\t\t$this->assertEquals($blockId, $result['TinydbItem.block_id']);\n\t}",
"public function checkAccess() { return true; }",
"public function testUserShowPublic(): void\n {\n /** @var User $user */\n $user = User::factory()->create();\n /** @var User $user2 */\n $user2 = User::factory()->create(['public' => true]);\n $response = $this\n ->actingAs($user)\n ->get('/users/' . $user2->id);\n $response->assertStatus(200)\n ->assertViewHas('projects');\n }",
"private function check_access()\n {\n }",
"public function testAreaAccessEntityByMod()\n {\n\n $this->user->switchUser('test_annon_2');\n\n $orm = $this->db->orm;\n $textTest = $orm->get('WbfsysText',\"access_key='text_1'\");\n $textSecret = $orm->get('WbfsysText',\"access_key='secret'\");\n\n // shoule be valid\n $res = $this->acl->access('mod-test_2/entity-test_2:access');\n $this->assertTrue('access mod-test_2:access returned false',$res);\n\n $res = $this->acl->access('mod-test_2/entity-test_2:insert');\n $this->assertTrue('access mod-test_2:insert returned false',$res);\n\n $res = $this->acl->access('mod-test_2/entity-test_2:access', $textTest);\n $this->assertTrue('access mod-test_2:access text test returned false',$res);\n\n $res = $this->acl->access('mod-test_2/entity-test_2:access', $textSecret);\n $this->assertTrue('access mod-test_2:access secret text returned false',$res);\n\n // from here all should be invalid\n\n // has rights for mod-test but only on access\n $res = $this->acl->access('mod-test_2/entity-test_2:update');\n $this->assertFalse('access mod-test_2/entity-test_2:update returned true',$res);\n\n // no rights for existing area\n $res = $this->acl->access('mod-test/entity-test:access');\n $this->assertFalse('access mod-test/entity-test:access returned true',$res);\n\n $res = $this->acl->access('mod-test/entity-test:insert');\n $this->assertFalse('access mod-test/entity-testinsert returned true',$res);\n\n }",
"public function testAccessModule()\n {\n\n $this->user->switchUser('test_annon');\n\n $orm = $this->db->orm;\n $textTest = $orm->getByKey('WbfsysText', 'text_1');\n $textSecret = $orm->getByKey('WbfsysText', 'secret');\n\n // should be valid\n $res = $this->acl->access('mod-test:access');\n $this->assertTrue('access mod-test:access returned false', $res);\n\n // full access expected\n $res = $this->acl->access('mod-test:access', $textTest);\n $this->assertTrue('access mod-test:access text test returned false', $res);\n\n // full access expected\n $res = $this->acl->access('mod-test:access', $textSecret);\n $this->assertTrue('access mod-test:access secret text returned false', $res);\n\n // from here all should return false\n\n // has rights for mod-test but only on access\n $res = $this->acl->access('mod-test:insert');\n $this->assertFalse('access mod-test:insert returned true', $res);\n\n // no rights for existing area\n $res = $this->acl->access('mod-test_2:access');\n $this->assertFalse('access mod-test_2:access returned true', $res);\n\n $res = $this->acl->access('mod-test_2:insert');\n $this->assertFalse('access mod-test_2:insert returned true', $res);\n\n // no rights for nonexisting area\n $res = $this->acl->access('not_exists:access');\n $this->assertFalse('access not_exists:access returned true', $res);\n\n $res = $this->acl->access('not_exists:insert');\n $this->assertFalse('access not_exists:insert returned true', $res);\n\n }",
"public function testCheckDataTrue()\n {\n $_arrayValue = $this->getContentDirectory();\n\n $_arrayValue['name'] = 'edit directory name '.time();\n\n $user = User::find(10);\n $request = $this->actingAs($user);\n $request->post(\"api/block-manager/edit-name-folder/\" . $this->_id, $_arrayValue)\n ->seeJson([\n 'status' => 1,\n ]);\n }",
"public function testUserCanViewTheirTasks()\n {\n $user = factory('App\\User')->create();\n $task = factory('App\\Task')->create(['creator_id'=>$user->id]);\n $response = $this->actingAs($user)->get('/tasks');\n $response->assertSee($task->title); \n }",
"public function testRead() {\n // create\n self::$instance->begin();\n self::$instance->create($this->getObject(), 999);\n self::$instance->commit();\n // read one\n $object = self::$instance->read(999);\n // test\n $expected = $this->getObject();\n $expected->id = 999;\n $this->assertEquals($expected, $object);\n }"
] | [
"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.5650566",
"0.56367326",
"0.56227195",
"0.5594676",
"0.55707073",
"0.5555012",
"0.5547878",
"0.5546964",
"0.55425984",
"0.5536483"
] | 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 = $_SERVER['SERVER_NAME'];\n\t\t}\n\n\t\t$_SERVER['SERVER_NAME'] = 'example.com';\n\n\t\t// passthrough\n\t\treturn $args;\n\t}",
"function custom_wp_mail_from( $original_email_address ) {\n\t\t//as your website to avoid being marked as spam.\n\t\treturn COMPANY_EMAIL;\n\t}",
"function wpb_sender_email( $original_email_address ) {\n return '[email protected]';\n}",
"function selenenw_wpcf7_before_send_mail( $contact_form )\n{\n if ( $contact_form->name() == 'contact-broker' ) {\n $mail = $contact_form->prop( 'mail' );\n $mail['body'] = str_replace( '#yacht-details#', wp_get_referer(), $mail['body'] );\n $contact_form->set_properties( array( 'mail' => $mail ) );\n }\n}",
"function my_mail_from( $email ){\n\treturn \"[email protected]\";\n}",
"function wp_mail_smtp_mail_from_name ($orig) {\n\tif ($orig == 'WordPress') {\n\t\tif (defined('WPMS_ON') && WPMS_ON)\n\t\t\treturn WPMS_MAIL_FROM_NAME;\n\t\telseif ( get_option('mail_from_name') != \"\" && is_string(get_option('mail_from_name')) )\n\t\t\treturn get_option('mail_from_name');\n\t}\n\t\n\t// If in doubt, return the original value\n\treturn $orig;\n\t\n}",
"function bp_core_email_from_address_filter() {\n\t_deprecated_function( __FUNCTION__, '1.6' );\n\n\t$domain = (array) explode( '/', site_url() );\n\treturn apply_filters( 'bp_core_email_from_address_filter', 'noreply@' . $domain[2] );\n}",
"function hook_mail_alter(&$message) {\n if ($message['id'] == 'modulename_messagekey') {\n if (!example_notifications_optin($message['to'], $message['id'])) {\n // If the recipient has opted to not receive such messages, cancel\n // sending.\n $message['send'] = FALSE;\n return;\n }\n $message['body'][] = \"--\\nMail sent out from \" . variable_get('site_name', t('Drupal'));\n }\n}",
"function hook_mail($key, &$message, $params) {\n $account = $params['account'];\n $context = $params['context'];\n $variables = array(\n '%site_name' => variable_get('site_name', 'Drupal'),\n '%username' => format_username($account),\n );\n if ($context['hook'] == 'taxonomy') {\n $entity = $params['entity'];\n $vocabulary = taxonomy_vocabulary_load($entity->vid);\n $variables += array(\n '%term_name' => $entity->name,\n '%term_description' => $entity->description,\n '%term_id' => $entity->tid,\n '%vocabulary_name' => $vocabulary->name,\n '%vocabulary_description' => $vocabulary->description,\n '%vocabulary_id' => $vocabulary->vid,\n );\n }\n\n // Node-based variable translation is only available if we have a node.\n if (isset($params['node'])) {\n $node = $params['node'];\n $variables += array(\n '%uid' => $node->uid,\n '%node_url' => url('node/' . $node->nid, array('absolute' => TRUE)),\n '%node_type' => node_type_get_name($node),\n '%title' => $node->title,\n '%teaser' => $node->teaser,\n '%body' => $node->body,\n );\n }\n $subject = strtr($context['subject'], $variables);\n $body = strtr($context['message'], $variables);\n $message['subject'] .= str_replace(array(\"\\r\", \"\\n\"), '', $subject);\n $message['body'][] = drupal_html_to_text($body);\n}",
"function reset_email()\n\t{\n\t}",
"function wp_mail_smtp_mail_from ($orig) {\n\t// http://trac.wordpress.org/browser/branches/2.7/wp-includes/pluggable.php#L348\n\t\n\t// Get the site domain and get rid of www.\n\t$sitename = strtolower( $_SERVER['SERVER_NAME'] );\n\tif ( substr( $sitename, 0, 4 ) == 'www.' ) {\n\t\t$sitename = substr( $sitename, 4 );\n\t}\n\n\t$default_from = 'wordpress@' . $sitename;\n\t// End of copied code\n\t\n\t// If the from email is not the default, return it unchanged\n\tif ( $orig != $default_from ) {\n\t\treturn $orig;\n\t}\n\t\n\tif (defined('WPMS_ON') && WPMS_ON)\n\t\treturn WPMS_MAIL_FROM;\n\telse if( get_option('mail_from') != \"\")\n\t\treturn get_option('mail_from');\n\t\n\t// If in doubt, return the original value\n\treturn $orig;\n\t\n}",
"function transport_email_admin(){\n}",
"public function email_sender_name( $email ){\n $blog_name = get_bloginfo('name');\n return $blog_name; // new email name from sender.\n }",
"public static function getHookPrefix(): string {\n\t\treturn static::$hookPrefix;\n\t}",
"function ea_gravityforms_domain($notification, $form, $entry)\n{\n if ($notification['name'] == 'Admin Notification') {\n $notification['message'] .= 'Sent from ' . home_url();\n }\n return $notification;\n}",
"public static function setHookPrefix( string $prefix ) {\n\t\tstatic::$hookPrefix = $prefix;\n\t}",
"function thr_mail_from($addr) {\n return \"[email protected]\";\n}",
"function wpb_sender_name( $original_email_from ) {\n return 'Idea Travel Russia';\n}",
"function air_helper_staging_wp_mail_from() {\n return 'wordpress@' . str_replace( [ 'http://', 'https://', '/wp' ], '', get_site_url() );\n}",
"static function get_default_email() {\n\t\t$domain = self::get_site_domain();\n\t\t$email = \"noreply@$domain\";\n\n\t\treturn apply_filters( 'appthemes_mail_from_default_email', $email );\n\t}",
"public static function tearDown_wp_mail( $args ) {\n\t\tif ( ! empty( self::$cached_SERVER_NAME ) ) {\n\t\t\t$_SERVER['SERVER_NAME'] = self::$cached_SERVER_NAME;\n\t\t\tself::$cached_SERVER_NAME = '';\n\t\t} else {\n\t\t\tunset( $_SERVER['SERVER_NAME'] );\n\t\t}\n\n\t\t// passthrough\n\t\treturn $args;\n\t}",
"public function wpb_sender_email( $original_email_address ) {\n return '[email protected]';\n }",
"function configureMailForwardEmail()\n {\n $domainMg = new \\spamtonprof\\stp_api\\StpDomainManager();\n $domains = $domainMg->getAll(array(\n 'mx_ok' => 'false'\n ));\n\n foreach ($domains as $domain) {\n\n $domainName = $domain->getName();\n\n echo ('----------' . $domainName . '----------' . '<br>');\n $root = $domain->getRoot();\n $subdomain = $domain->getSubdomain();\n\n $this->addDnsOvh($root, $subdomain, '10 mx1.forwardemail.net.', 'MX');\n $this->addDnsOvh($root, $subdomain, '20 mx2.forwardemail.net.', 'MX');\n $this->addDnsOvh($root, $subdomain, 'v=spf1 a mx include:spf.forwardemail.net -all', 'TXT');\n $this->addDnsOvh($root, $subdomain, '[email protected]', 'TXT');\n\n $domain->setMx_ok(true);\n $domainMg->updateMxOk($domain);\n }\n }",
"function ld_default_from_email( $email ) {\n\t$sitename = strtolower( $_SERVER['SERVER_NAME'] );\n\tif ( substr( $sitename, 0, 4 ) == 'www.' ) {\n\t\t$sitename = substr( $sitename, 4 );\n\t}\n\n\t$from_email = 'wordpress@' . $sitename;\n\n\tif ( $email === $from_email ) {\n\t\t// Replace default with admin email\n\t\t$email = get_bloginfo( 'admin_email' );\n\t}\n\n\treturn $email;\n}",
"function klyp_wpb_sender_email($email)\n{\n return get_bloginfo('admin_email');\n}",
"function ServerAdminMail( )\n\t{\n\t\t// call our conf reader\n\t\t$this->core = new ServerAdminCore;\n\t\t//var_dump($this);\n\t\t$this->setProgramsAndDefaults( 'mail' );\n\n\t\tif($vpostmail = $this->getConfig('mail', 'vpostmail'))\n\t\t{\n\t\t\t$this->vpostmail = $vpostmail;\n\t\t}\n\t\t\n\t\t$this->addProg('vpostmail', $this->vpostmail);\n\t}",
"public function custom_wp_mail_from( $email ) {\n $email = wpuf_get_option( 'from_address', 'wpuf_mails' );\n return $email;\n }",
"function activate_mjmlmail() {\r\n\tInc\\Base\\Activate::activate();\r\n}",
"public function getMailPostPubliSubject();"
] | [
"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.5417554",
"0.5403086",
"0.5401859",
"0.5389839",
"0.5380763",
"0.5354635",
"0.5346221",
"0.53017247",
"0.5294243",
"0.52639914"
] | 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$this->executeQuery( $query, 'makeRepo' );\n\n\t\t\tsleep(0.4);\n\n\t\t\treturn TRUE;\n\t\t}\n\n\t\treturn FALSE;\n\t}",
"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 = $this->prepareRequest($request);\n $response = $request->send();\n\n if ($response->getStatus() != 204) {\n throw new \\Exception('Failed to delete repository, HTTP response error: ' . $response->getStatus());\n }\n\n }",
"public function canDelete()\n {\n if($this->authCheck($model,'delete') && $this->authIsRelated($model,'project_id',$this->_authRead('Project.id')))\n {\n return true;\n }\n else\n {\n return false;\n }\n }",
"public function delete(GitRepository $repository);",
"public function supports_delete( $source ) {\n\t\treturn $this->repository( $source ) instanceof Deletable;\n\t}",
"public function isDeleted();",
"public function can_delete() {\n\t\treturn false;\n\t}",
"public function wantsDeletion()\n\t{\n\t\treturn ! is_null($this->deleting()) && $this->deleting()->count() > 0;\n\t}",
"public function delete(): bool;",
"public function delete(): bool\n {\n return self::repository()->destroy($this);\n }",
"function can_delete() {\n\t\tif ($this->permissions['all']) {\n\t\t\treturn $this->check_permission($this->permissions['all']);\n\t\t} elseif ($this->permissions['delete']) {\n\t\t\treturn $this->check_permission($this->permissions['delete']);\n\t\t} elseif ($this->object && $this->permissions['delete_own']) {\n\t\t\tif (current_user()->id == $this->object->author) {\n\t\t\t\treturn $this->check_permission($this->permissions['delete_own']);\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"public function testResourcesCanBeDeleted()\n {\n $resource = factory(Resource::class)->create();\n\n $this->actingAs(factory(User::class)->states('admin')->create())\n ->deleteJson('api/resources/'.$resource->id)\n ->assertStatus(204);\n\n $this->assertDatabaseMissing('resources', [\n 'id' => $resource->id,\n ]);\n }",
"public function delete(): bool\n {\n }",
"public function destroy(Repository $repository)\n\t{\n\t\tif (! $this->requestHasOneOfScopes('admin')) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->applyRepositoryFilters([$this->getScopeFilter('someFilter')], $repository);\n\n\t\treturn true;\n\t}",
"function drush_platform_composer_git_post_provision_delete() {\n if (d()->type =='platform') {\n $platform = new Provision_ComposerGitCreateProject();\n return $platform->postProvisionDelete();\n }\n}",
"function forena_data_settings_delete($form, &$form_state) {\n if (!@$form_state['storage]']['locked']) {\n $form_state['redirect'] = 'admin/config/content/forena/data';\n db_delete('forena_repositories')\n ->condition('repository', $form_state['values']['name'], '=')\n ->execute();\n }\n\n}",
"public abstract function verifyRepository();",
"private function isRepository()\n {\n $status = $this->executeCommand('git status');\n return $status['error'] === false;\n }",
"public function shouldPurgeVersionsOnDelete()\n {\n return $this->purgeVersionsOnDelete ?? false;\n }",
"public function authorize()\n {\n $this->project = Project::findByUuidOrFail($this->route('id'));\n\n return $this->user()->can('delete', $this->project);\n }",
"public function testDeleteUsersByIdRepository()\n {\n $repository = app(UserRepository::class);\n\n $isRemoved = $repository->delete(1);\n\n $this->assertTrue($isRemoved);\n }",
"public function canUseRepository()\n\t{\n\t\tinclude 'repository.php';\n\t\t$repository = new Repository;\n\n\t\tif (!$repository->hasSoap()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!$repository->canConnect()) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"public function markAsDeleted(GitRepository $repository);",
"public function checkIsDeletable()\n {\n $criteria = new Criteria;\n $criteria->add(new Filter('id_predicado', '=', $this->id_predicado));\n $repository_pro = new Repository('App\\Model\\Proposta\\PropostaPredicado');\n $repository_pac = new Repository('App\\Model\\Servico\\PacotePredicado');\n $response_pro = $repository_pro->load($criteria);\n $response_pac = $repository_pac->load($criteria);\n if (count($response_pro) > 0 || count($response_pac) > 0) {\n return true;\n } else {\n return false;\n }\n }",
"public function testDelete()\n {\n $service = new ProjectDeleteService(\n $this->projectRepo,\n $this->commissionDeleteService\n );\n $result = $service->delete(1);\n\n $this->assertTrue($result);\n }",
"public function delete() :bool\n {\n return true;\n }",
"public function cantAccessDeletedOverview(): bool\n {\n return ! $this->hasRole('webmaster') && url()->current() === url('/logins/verwijderd');\n }",
"public function testDeleteAccountsByIdRepository()\n {\n $service = app(AccountServiceInterface::class);\n\n $isRemoved = $service->delete(1);\n\n $this->assertTrue($isRemoved);\n }",
"function CanDelete()\n\t{\treturn $this->id && $this->CanAdminUserDelete();\n\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.57493746",
"0.57464445",
"0.5733334",
"0.5727849",
"0.5722626",
"0.57164353",
"0.57099426",
"0.570108",
"0.56982917",
"0.5694692"
] | 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 = $this->prepareRequest($request);\n $response = $request->send();\n\n if ($response->getStatus() != 204) {\n throw new \\Exception('Failed to delete repository, HTTP response error: ' . $response->getStatus());\n }\n\n }",
"public function eraseRepo(){\n \n $this->clear();\n $this->deleteRepo(); \n }",
"function deleteRepository($repositoryId){\n\t\t$repositories = AJXP_Utils::loadSerialFile($this->repoSerialFile);\n\t\t$newList = array();\n\t\tforeach ($repositories as $repo){\n\t\t\tif($repo->getUniqueId() != $repositoryId){\n\t\t\t\t$newList[$repo->getUniqueId()] = $repo;\n\t\t\t}\n\t\t}\n\t\tAJXP_Utils::saveSerialFile($this->repoSerialFile, $newList);\n\t}",
"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$this->executeQuery( $query, 'makeRepo' );\n\n\t\t\tsleep(0.4);\n\n\t\t\treturn TRUE;\n\t\t}\n\n\t\treturn FALSE;\n\t}",
"public function canBeDeleted(GitRepository $repository);",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"protected abstract function delete();",
"abstract public function delete();",
"abstract public function delete();",
"abstract public function delete();",
"abstract public function delete();",
"abstract public function delete();"
] | [
"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.6302477",
"0.6302477",
"0.6302477",
"0.628635",
"0.6188352",
"0.6188352",
"0.6188352",
"0.6188352",
"0.6188352"
] | 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 }",
"function ts_feed_spruce_admin_scripts() {\n\tglobal $wp_version;\n\tif ( version_compare($wp_version, \"3.5\", \"<\" ) ) return;\n\n\twp_enqueue_media(); // *new in WP3.5+\n\n\t/** @see http://jscompress.com */\n\twp_deregister_script( 'ts-nmp-media' );\n\twp_register_script( 'ts-nmp-media', FEED_SPRUCE_URL . '/js/ts-media' .\n\t\t((defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) ? '' : '.min') .\n\t\t'.js', array( 'jquery' ), '1.0.0', true );\n\twp_localize_script( 'ts-nmp-media', 'ts_nmp_media', array(\n\t\t'title' => __( 'Upload File or Select from Media Library' ), // This will be used as the default title\n\t\t'button' => __( 'Insert' ), // This will be used as the default button text\n\t\t) );\n\twp_enqueue_script( 'ts-nmp-media' );\n}",
"function shoestrap_slider_wp_enqueue_media() {\n\t\tif ( ! wp_script_is( 'jetpack-gallery-settings', 'registered' ) ) {\n\t\t\twp_register_script( 'jetpack-gallery-settings', plugins_url( 'assets/js/gallery-settings.js', __FILE__ ), array( 'media-views' ), '20121225' );\n\t\t}\n\n\t\twp_enqueue_script( 'jetpack-gallery-settings' );\n\t}",
"function jscustom_admin_scripts() {\n wp_enqueue_media();\n wp_register_script('custom-upload', get_template_directory_uri() . '/js/media-uploader.js', array('jquery'));\n wp_enqueue_script('custom-upload');\n}",
"public function enqueue()\n {\n $scripts = $this->scripts();\n\n foreach ($scripts as $script) {\n [\n 'handle' => $handle,\n 'src' => $src,\n 'dependencies' => $dependencies,\n 'version' => $version\n ] = $script;\n\n wp_register_script(\n $handle,\n $src,\n $dependencies,\n $version,\n $this->in_footer\n );\n\n if (isset($script['inline'])) {\n $inline = $script['inline'];\n\n [\n 'js_key' => $js_key,\n 'data' => $data,\n 'position' => $position\n ] = $inline;\n\n $json_data = json_encode($data);\n\n wp_add_inline_script(\n $handle,\n \"window.__{$js_key}__ = $json_data\",\n $position\n );\n }\n\n wp_enqueue_script($handle);\n }\n }",
"protected function enqueue_media()\n\t{\n\t}",
"protected function enqueue_scripts()\n {\n @ wp_enqueue_media();\n \\wp_enqueue_style('tify_control-media_image');\n \\wp_enqueue_script('tify_control-media_image');\n }",
"function sting_setup_media_scripts($page) {\n\t\tglobal $sting_admin_page_name;\n\t\t$temp_page_name = 'toplevel_page_'.$sting_admin_page_name;\n\t\tif ($page == $temp_page_name) {\n\t\t\twp_register_script('sting_media_upload', get_template_directory_uri().'/admin/settings/js/media_upload.js', array('jquery', 'media-upload', 'thickbox'));\n\t\t\twp_enqueue_script('jquery');\n\t\t\twp_enqueue_script('thickbox');\n\t\t\twp_enqueue_script('media-upload');\n\t\t\twp_enqueue_script('sting_media_upload');\n\t\t\twp_enqueue_style('thickbox');\n\t\t\twp_enqueue_script('sting-datetimepicker', get_template_directory_uri().'/admin/settings/datetimepicker-master/jquery.datetimepicker.js');\n\t\t\twp_enqueue_style('jquery-ui', get_template_directory_uri().'/admin/settings/datetimepicker-master/jquery.datetimepicker.css');\n\t\t\twp_enqueue_script('sting_datetime', get_template_directory_uri().'/admin/settings/js/datetime.js');\n\t\t\twp_enqueue_media();\n\t\t}\n}",
"final protected function register_media_scripts() {\n\n\t\tstatic $set = false;\n\n\t\tif ( $set )\n\t\t\treturn false;\n\n\t\t$this->additional_js[] = [\n\t\t\t'name' => 'tsfem-media',\n\t\t\t'base' => TSF_EXTENSION_MANAGER_DIR_URL,\n\t\t\t'ver' => TSF_EXTENSION_MANAGER_VERSION,\n\t\t];\n\n\t\t$this->register_media_l10n();\n\n\t\t\\wp_enqueue_media();\n\n\t\treturn $set = true;\n\t}",
"function cc_photogallery_scripts() {\n\t\n\t$gallery = new PhotoGallery;\n\t\n\t$gallery->queueScripts();\n\t\n}",
"function include_myuploadscript() {\n\tif ( ! did_action( 'wp_enqueue_media' ) ) {\n\t\twp_enqueue_media();\n }\n wp_enqueue_style('MyStyles', get_stylesheet_directory_uri() . '/backend-styles/admin-main.min.css');\n \n wp_enqueue_script( 'myuploadscript', get_stylesheet_directory_uri() . '/js/backend-js/scripts.min.js', array('jquery'));\n}",
"public function enqueue_admin_scripts() {\n\t\twp_enqueue_media();\n\t\twp_enqueue_script( 'media-widgets' );\n\t}",
"function magazinebook_widget_assets() {\n\twp_enqueue_script( 'media-upload' );\n\twp_enqueue_script( 'mfc-media-upload', get_template_directory_uri() . '/js/media-upload.js', array( 'jquery' ), MAGAZINEBOOK_VERSION, true );\n}",
"static function admin_enqueue_scripts()\n\t\t{\n\t\t\tparent::admin_enqueue_scripts();\n\n\t\t\t// Make sure scripts for new media uploader in WordPress 3.5 is enqueued\n\t\t\twp_enqueue_media();\n\t\t\twp_enqueue_script( 'the7-mb-image-advanced-mk2', PRESSCORE_EXTENSIONS_URI . '/custom-meta-boxes/js/media.js', array( 'jquery' ), THE7_RWMB_VER, true );\n\t\t\twp_enqueue_style( 'the7-mb-image-advanced-mk2-style', PRESSCORE_EXTENSIONS_URI . '/custom-meta-boxes/css/advanced-mk2.css', THE7_RWMB_VER );\n\t\t}",
"public function adminEnqueueScripts()\n {\n wp_register_script('wp-color-picker-settings', plugins_url('assets/js/wp-color-picker.js', plugin_basename($this->pluginFile)));\n wp_register_script('wp-media-settings', plugins_url('assets/js/wp-media.js', plugin_basename($this->pluginFile)));\n }",
"public static function admin_enqueue_scripts() {\n\t\twp_enqueue_media();\n\t\twp_enqueue_style( 'rwmb-file-input', RWMB_CSS_URL . 'file-input.css', [], RWMB_VER );\n\t\twp_enqueue_script( 'rwmb-file-input', RWMB_JS_URL . 'file-input.js', [ 'jquery' ], RWMB_VER, true );\n\t\tRWMB_Helpers_Field::localize_script_once( 'rwmb-file-input', 'rwmbFileInput', [\n\t\t\t'frameTitle' => esc_html__( 'Select File', 'meta-box' ),\n\t\t] );\n\t}",
"function wp_enqueue_media() { \n\t\t\tglobal $post; \n\t\t\tif(!empty($post)){\n\t\t\t\twp_enqueue_script('loftocean-media-settings', FALLSKY_PLUGIN_URI . 'assets/js/media-settings.min.js', array('media-views', 'media-models'), FALLSKY_PLUGIN_ASSETS_VERSION, true);\n\t\t\t}\n\t\t}",
"public function enqueueAssets ()\n\t\t{\t\n\t\t\tadd_action('wp_enqueue_scripts', array(&$this, 'registerScript'));\n\t\t}",
"public function enqueueMixFiles()\n {\n // Enqueue manifest.js file.\n wp_enqueue_script(\n 'manifest',\n Utilities::staticUrl('/dist/js/manifest.js'),\n [],\n null,\n true\n );\n\n // Enqueue vendor.js file if we have one.\n if (file_exists(trailingslashit(ASSETS_DIR) . 'dist/js/vendor.js')) {\n wp_enqueue_script(\n 'vendor',\n Utilities::staticUrl('/dist/js/vendor.js'),\n [],\n null,\n true\n );\n }\n }",
"function twenty_child_upload_script() {\n $current_screen = get_current_screen();\n\n if($current_screen->post_type==\"products\"){\n\n if ( ! did_action( 'wp_enqueue_media' ) ) {\n wp_enqueue_media();\n }\n\n wp_enqueue_script( 'upload_script', get_stylesheet_directory_uri() . '/assets/js/script.js', array('jquery'), null );\n wp_enqueue_style( 'style-admin', get_stylesheet_directory_uri() . '/assets/css/admin.css', null );\n }\n }",
"public function enqueue() {\n\t\twp_enqueue_media();\n\t\twp_enqueue_style('thickbox');\n\t wp_enqueue_script('media-upload');\n\t wp_enqueue_script('thickbox');\n\t\t// Scripts\n\t\twp_register_script( 'fileselect-control', plugin_dir_url( __FILE__ ) . 'js/fileselect-control.js', [ 'jquery' ], '1.0.0', true );\n\t\twp_enqueue_script( 'fileselect-control' );\n\t}",
"private function enqueue_scripts() {\n\t\twp_register_script( 'suggestions', plugins_url( 'js/jquery.suggestions.js', $this->baseDir ) );\n\t\twp_register_script( 'search', plugins_url( 'js/search.js', $this->baseDir ) );\n\t\twp_register_script( 'photocommons-admin', plugins_url( 'js/admin.js', $this->baseDir ) );\n\n\t\twp_localize_script(\n\t\t\t'photocommons-admin',\n\t\t\t'WP_PHOTOCOMMONS',\n\t\t\t[\n\t\t\t\t'imgButtonUrl' => plugins_url('img/button.png', $this->baseDir),\n\t\t\t\t'imgLoaderUrl' => plugins_url('img/loading.gif', $this->baseDir),\n\t\t\t\t'translations' => [\n\t\t\t\t\t'Insert images from Wikimedia Commons' => 'Insert images from Wikimedia Commons',\n\t\t\t\t\t'PhotoCommons' => 'PhotoCommons',\n\t\t\t\t\t'Search' => 'Search',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t// Enqueue external libraries\n\t\twp_enqueue_script( 'jquery' );\n\t\twp_enqueue_script( 'jquery-ui-core' );\n\t\twp_enqueue_script( 'jquery-ui-dialog' );\n\n\t\t// Enqueue our own scripts\n\t\twp_enqueue_script( 'suggestions' );\n\t\twp_enqueue_script( 'search' );\n\t\twp_enqueue_script( 'photocommons-admin' );\n\t}",
"public function register_scripts() {\n\n\t\t// Load plugin assets only on the plugin's settings page.\n\t\tif ( - 1 !== strpos( get_current_screen()->id, SLACK_NOTIFICATIONS_SLUG ) ) {\n\n\t\t\t// Load WordPress media uploader scripts.\n\t\t\twp_enqueue_media();\n\n\t\t\t// Load plugin scripts.\n\t\t\twp_enqueue_script( SLACK_NOTIFICATIONS_SLUG . '-scripts', SLACK_NOTIFICATIONS_URL . 'assets/admin-scripts.min.js', [ 'jquery' ], SLACK_NOTIFICATIONS_VERSION, true );\n\n\t\t\t// Allow JS strings localization.\n\t\t\twp_localize_script(\n\t\t\t\tSLACK_NOTIFICATIONS_SLUG . '-scripts',\n\t\t\t\t'sn_lang',\n\t\t\t\t[\n\t\t\t\t\t'media_frame_title' => __( 'Choose or upload a new image', 'dorzki-notifications-to-slack' ),\n\t\t\t\t\t'media_frame_button' => __( 'Select Image', 'dorzki-notifications-to-slack' ),\n\t\t\t\t]\n\t\t\t);\n\n\t\t}\n\n\t}",
"public function enqueue() {\n\n\t\tstatic $enqueued = false;\n\n\t\tif ( ! $enqueued ) {\n\n\t\t\twp_enqueue_script( 'holder', $this->components_url . '/holder/holder.js', array(), 2.3, true );\n\t\t\t$enqueued = true;\n\t\t}\n\t}",
"public function enqueue()\n {\n wp_enqueue_media();\n Repeater::adminEnqueue();\n wp_enqueue_script(\n 'jquery-bbq',\n Url::toUrl(dirname(__DIR__) . DS . 'assets' . DS . 'js' . DS . 'jquery.ba-bbq.min.js'),\n array('jquery')\n );\n wp_enqueue_script(\n 'lolita-customize-repeater-control',\n Url::toUrl(__DIR__ . DS . 'assets' . DS . 'js' . DS . 'customize_repeater.js'),\n array('jquery', 'lolita-repeater-control', 'customize-base', 'customize-controls')\n );\n\n Controls::adminEnqueue($this->control->controls);\n }",
"public function enqueue_scripts() {\n\t\t}",
"function include_myuploadscript() {\n\tif ( ! did_action( 'wp_enqueue_media' ) ) {\n\t\twp_enqueue_media();\n\t}\n wp_enqueue_style('MyStyles', get_stylesheet_directory_uri() . '/backend-styles/admin-main.min.css');\n \n wp_enqueue_script( 'myuploadscript', get_stylesheet_directory_uri() . '/js/scripts.min.js', array('jquery'), null, false );\n wp_enqueue_script('lazy', 'https://cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.10/jquery.lazy.min.js');\n wp_enqueue_script('lazyplug', 'https://cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.10/jquery.lazy.min.js');\n }",
"public function enqueue_scripts() {\n\t}",
"protected function enqueue_scripts() {\n\t\t//\n\t}"
] | [
"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.63167775",
"0.631205",
"0.63118315",
"0.6310123",
"0.63056564",
"0.6281544",
"0.62728745",
"0.62618977",
"0.6240424",
"0.6223361"
] | 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\n if (isset($form_state['OID'])){\n drupal_goto('viewMedia', array('query'=>array('OID'=>$form_state['OID'])));\n } else {\n drupal_goto('myMedia');\n }\n}",
"function remove_forums_profile_tab() {\n\tglobal $bp;\n\tunset($bp->bp_nav['forums']);\n}",
"function removeDemoModeLink() {\n if ( class_exists('ReduxFrameworkPlugin') ) {\n remove_filter( 'plugin_row_meta', array( ReduxFrameworkPlugin::get_instance(), 'plugin_metalinks'), null, 2 );\n }\n if ( class_exists('ReduxFrameworkPlugin') ) {\n remove_action('admin_notices', array( ReduxFrameworkPlugin::get_instance(), 'admin_notices' ) );\n }\n}",
"function wikiembed_list_page_remove_link() {\n\tglobal $wikiembed_object;\n\t$wikiembeds = $wikiembed_object->wikiembeds;\n\n\tcheck_ajax_referer( \"wiki_embed_ajax\", 'nonce' );\n\n\t#todo: needs nonce\n\t$decoded_id = urldecode( $_POST['id'] );\n\tif ( isset( $_POST['id'] ) && isset( $wikiembeds[$decoded_id] ) ) {\n\t\tunset( $wikiembeds[$decoded_id]['url']);\n\t\techo \"success\";\n\t\tupdate_option( 'wikiembeds', $wikiembeds );\n\t} else {\n\t\techo \"fail\";\n\t}\n\n\tdie();\n}",
"function removeDemoModeLink2() {\n\t\t\tif ( class_exists('ReduxFrameworkPlugin') ) {\n\t\t\t\tremove_filter( 'plugin_row_meta', array( ReduxFrameworkPlugin::get_instance(), 'plugin_metalinks'), null, 2 );\n\t\t\t}\n\t\t\tif ( class_exists('ReduxFrameworkPlugin') ) {\n\t\t\t\tremove_action('admin_notices', array( ReduxFrameworkPlugin::get_instance(), 'admin_notices' ) ); \n\t\t\t}\n\t\t}",
"function remove_url_field($fields){\n unset($fields['url']);\n return $fields;\n }",
"function removeMediaFromMID($MID, $OID = 0){\n\n removeMediaHelper($MID);\n\n if ($OID != 0){\n drupal_goto('viewMedia', array('query'=>array('OID'=>$OID)));\n } else {\n drupal_goto('myMedia');\n }\n}",
"function removeMediaHelper($MID){\n\n $FID = dbDeleteMedia($MID);\n if($FID != null){\n removePicture($FID, 'Media');\n }\n}",
"function themify_use_theme_metabox( $url ) {\n\tremove_action( 'site_url', 'themify_builder_plugin_metabox', 20 );\n\n\treturn $url;\n}",
"public function onRemove()\n {\n // Change the associated media to the unsorted album.\n Shopware()->Db()->query('UPDATE s_media SET albumID = ? WHERE albumID = ?', [-10, $this->id]);\n }",
"function dt_f_album_mu($tabs) {\r\n\tif( 'dt_gallery' == get_post_type($_REQUEST['post_id']) ) {\r\n\t\tglobal $wpdb;\r\n \r\n if( isset($tabs['library']) ) {\r\n\t\t\tunset($tabs['library']);\r\n\t\t}\r\n\t\t\r\n if( isset($tabs['gallery']) ) {\r\n\t\t\tunset($tabs['gallery']);\r\n\t\t}\r\n \r\n if( isset($tabs['type_url']) ) {\r\n\t\t\tunset($tabs['type_url']);\r\n\t\t}\r\n \r\n $post_id = intval($_REQUEST['post_id']);\r\n \r\n if ( $post_id ) {\r\n $attachments = intval( $wpdb->get_var( $wpdb->prepare( \"SELECT count(*) FROM $wpdb->posts WHERE post_type = 'attachment' AND post_status != 'trash' AND post_parent = %d\", $post_id ) ) );\r\n }\r\n \r\n if ( empty($attachments) ) {\r\n unset($tabs['gallery']);\r\n return $tabs;\r\n }\r\n \r\n\t\tif( !isset($tabs['dt_gallery_media'])) {\r\n\t\t\t$tabs['dt_gallery_media'] = sprintf(__('Images (%s)'), \"<span id='attachments-count'>$attachments</span>\");\r\n\t\t}\r\n \r\n if( isset($tabs['type']) ) {\r\n $tabs['type'] = 'Upload';\r\n }\r\n\t}\r\n\treturn $tabs;\r\n}",
"function wrny_remove_website_field( $fields ) {\n\tif( isset( $fields['url'] ) )\n\tunset( $fields['url'] );\n\treturn $fields;\n}",
"function remove_comment_url($fields) {\n\t\tunset($fields['url']);\n\t\treturn $fields;\n\t}",
"function muiteer_remove_new_link_item() {\n global $wp_admin_bar; \n $wp_admin_bar->remove_node('new-link');\n }",
"function muiteer_remove_new_link_item() {\n global $wp_admin_bar; \n $wp_admin_bar->remove_node('new-link');\n }",
"abstract public function removeURL( Locale $locale, $URL );",
"function zaxu_remove_new_link_item() {\n global $wp_admin_bar; \n $wp_admin_bar->remove_node('new-link');\n }",
"function media_showUploadifyLink($tableName, $fieldName, $recordNum) {\r\n if (empty($GLOBALS['SETTINGS']['advanced']['useMediaLibrary'])) { return; } // disable if media library not enabled.\r\n if ($tableName == \"_media\") { return; } // don't show in media library itself\r\n \r\n $link = \"?menu=\" .urlencode($tableName). \"&action=mediaList&fieldName=\" .urlencode($fieldName). \"&num=\" . intval($recordNum);\r\n?>\r\n <div class=\"uploadifive-button\" style=\"text-align: center; width: 100%; margin-top: -6px;\">\r\n <a href=\"#\" onclick=\"self.parent.showModal('<?php echo $link; ?>'); return false;\">Select from media library</a>\r\n </div>\r\n<?php\r\n}",
"function zaxu_remove_new_link_item() {\n global $wp_admin_bar; \n $wp_admin_bar->remove_node('new-link');\n }",
"protected function enqueueMediaUploader() {\n \n add_filter( 'media_upload_tabs', array( $this, '_replyToRemovingMediaLibraryTab' ) );\n \n wp_enqueue_script( 'jquery' ); \n wp_enqueue_script( 'thickbox' );\n wp_enqueue_style( 'thickbox' );\n \n if ( function_exists( 'wp_enqueue_media' ) ) { // means the WordPress version is 3.5 or above\n new AdminPageFramework_Script_MediaUploader( $this->oMsg );\n } else {\n wp_enqueue_script( 'media-upload' ); \n }\n\n if ( in_array( $this->getPageNow(), array( 'media-upload.php', 'async-upload.php', ) ) ) { \n add_filter( 'gettext', array( $this, '_replyToReplaceThickBoxText' ) , 1, 2 ); \n }\n \n }",
"function SocialAuth_WP_remove() {}",
"protected function _clean_quick_tabs()\n\t{\n\t\t$members = ee()->db->select('member_id, quick_tabs')\n\t\t\t->where('quick_tabs IS NOT NULL')\n\t\t\t->like('quick_tabs', '.php')\n\t\t\t->get('members')\n\t\t\t->result_array();\n\n\t\tif ( ! empty($members))\n\t\t{\n\t\t\tforeach ($members as $index => $member)\n\t\t\t{\n\t\t\t\t$members[$index]['quick_tabs'] = $this->_clean_quick_tab_links($member['quick_tabs']);\n\t\t\t}\n\n\t\t\tee()->db->update_batch('members', $members, 'member_id');\n\t\t}\n\t}",
"function remove_links_tab_menu_pages() {\n remove_menu_page('link-manager.php'); // ajouter la fonction qui supprimera les onglets :\n remove_menu_page('edit.php'); // Pour supprimer l’onglet articles: \n remove_menu_page('upload.php'); // Pour supprimer l’onglet Médias :\n remove_menu_page('edit-comments.php'); // Pour supprimer l’onglet Commentaires \n remove_menu_page('themes.php'); // Pour supprimer l’onglet Apparence :\n remove_menu_page('plugins.php'); // Pour supprimer l’onglet Extensions :\n remove_menu_page('users.php'); // Pour supprimer l’onglet Utilisateurs :\n remove_menu_page('tools.php'); // Pour supprimer l’onglet Outils :\n remove_menu_page('options-general.php'); // Pour supprimer l’onglet Réglages :\n remove_menu_page( 'edit.php?post_type=page' ); // Pour supprimer l’onglet page:\n}",
"public function remove_media_ajax()\n {\n if( isset( $_POST['_id'] ) && $_POST['_id'] != '' ) {\n\n $data_ary = array(\n 'id' => $_POST['_id'],\n );\n\n $this->load->database();\n $name = $this->db->get_where('media', array('id' => $_POST['_id']) )->row();\n $this->db->delete('media', $data_ary);\n //unlink(base_url().'/public/uploads/'.$name->location);\n }\n }",
"public function cleanup(){\n \n $uploadedby = (isset($_SESSION['access_log_id'])) ? (int) $_SESSION['access_log_id'] : '0';\n \n $where = \"WHERE page='\".$this->page.\"' AND record = '0' AND section = '\".$this->section.\"' AND uploadedby = '\".$uploadedby.\"'\";\n \n // get list of media record in DB\n $list = $this->db->col_value(\"file\", DBTABLE_MEDIA, $where);\n \n if( empty($list) ) return;\n \n // delete files from upload dir\n foreach($list as $filename) unlink( $this->mediapath.$filename );\t\t\t\t\t\n \n // delete record from media table in DB\n $this->db->delete(DBTABLE_MEDIA, $where);\n \n\t\treturn true;\n\t}",
"function MediaAttach_adminapi_removehook($args)\n{\n // optional arguments\n if (!isset($args['extrainfo'])) {\n $args['extrainfo'] = array();\n }\n\n // When called via hooks, the module name may be empty, so we get it from\n // the current module\n if (empty($args['extrainfo']['module'])) {\n $modname = pnModGetName();\n } else {\n $modname = $args['extrainfo']['module'];\n }\n\n DBUtil::deleteWhere('ma_files', \"pn_modname='\" . $modname . \"'\");\n return $args['extrainfo'];\n}",
"function remove_image_link() {\n $image_set = get_option( 'image_default_link_type' );\n if ($image_set !== 'none') {\n update_option('image_default_link_type', 'none');\n }\n}",
"private function release_permalinks() {\n\t\tremove_filter( 'pre_option_rewrite_rules', [ $this, 'get_old_rewrite_rules' ] );\n\t\tremove_filter( 'pre_option_permalink_structure', [ $this, 'get_old_permalink' ] );\n\t}",
"public static function filter_media_library_link() {\n\t\tglobal $current_screen;\n\t\tif ( $current_screen && 'upload' == $current_screen->base && current_user_can('frm_edit_entries') ) {\n\t\t\techo '<label for=\"frm-attachment-filter\" class=\"screen-reader-text\">';\n\t\t\techo esc_html__( 'Show form uploads', 'formidable-pro' );\n\t\t\techo '</label>';\n\n\t\t\t$filtered = FrmAppHelper::get_param( 'frm-attachment-filter', '', 'get', 'absint' );\n\t\t\techo '<select name=\"frm-attachment-filter\" id=\"frm-attachment-filter\">';\n\t\t\techo '<option value=\"\">' . esc_html__( 'Hide form uploads', 'formidable-pro' ) . '</option>';\n\t\t\techo '<option value=\"1\" ' . selected( $filtered, 1 ) . '>' . esc_html__( 'Show form uploads', 'formidable-pro' ) . '</option>';\n\t\t\techo '</select>';\n\t\t}\n\t}"
] | [
"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.51912796",
"0.51281536",
"0.5086047",
"0.50842553",
"0.507002",
"0.5048223",
"0.501749",
"0.50116503",
"0.49867362",
"0.49691302"
] | 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 {\n return $this->dataPersistor->get('add_by_link_link');\n }",
"public function getLinks(): array\n {\n return $this->attributes['links'] ?? [];\n }",
"public static function current()\n {\n return static::arrayToUri(static::$segments, true);\n }",
"public function buildLinks(): array;",
"public function getLink() {\n return $this->get('link')[0];\n }",
"public function getLinks();",
"public function getLinks() {\n return [];\n }",
"public function current()\n {\n return $this->getUrl($this->_request->getURI());\n }",
"protected function _link() {\n\n\t\treturn $this->lastChanges( $this->request()::$url );\n\t}",
"protected function _link() {\n\n\t\treturn $this->lastChanges( $this->request()::$url );\n\t}",
"protected function _link() {\n\n\t\treturn $this->lastChanges( $this->request()::$url );\n\t}",
"public function getLink();",
"public function & dataLink(): array\n {\n return $this->data;\n }",
"public function getLinks()\n\t{\n\t\t$sql = sprintf(\"SELECT * FROM %s\n\t\t\t\tWHERE session_id=?\n\t\t\t\tORDER BY post_timestamp DESC\",\n\t\t\t\tmobilAP_session::SESSION_LINK_TABLE);\n\t\t$params = array($this->session_id);\n\t\t$result = mobilAP::query($sql,$params);\n\t\t$links = array();\n\t\tif (mobilAP_Error::isError($result)) {\n\t\t\treturn $links;\n\t\t}\n\n\t\twhile ($row = $result->fetchRow()) {\n\t\t\t$links[] = mobilAP_session_link::loadLinkFromArray($row);\n\t\t}\n\t\t\n\t\treturn $links;\t\t\t\t\n\t}",
"private function getLink(){\n\t\treturn $this->_link;\n\t}",
"public function link() {\n\t\treturn $this->link_content;\n\t}",
"function getCurrentUrl(){\n $currentPage = Page::getCurrentPage();\n Loader::helper('navigation');\n return NavigationHelper::getLinkToCollection($currentPage, true);\n }",
"public function links()\n {\n return $this->getLinks();\n }",
"public function getLinks() {\n return $this->links;\n }",
"public function getLinks()\r\n {\r\n return $this->links;\r\n }",
"function getCurrentUri() {\n\t$uri = $_SERVER['REQUEST_URI'];\n\t$path_array = explode(\"/\", $uri);\n\treturn $path_array;\n}",
"function get_links(){\r\n global $res;\r\n $con = db_connect();\r\n $stm = $con->prepare(Query::GET_LINKS);\r\n $stm->execute();\r\n $res = array();\r\n while($row = $stm->fetch()){\r\n array_push($res, $row);\r\n }\r\n }",
"public function links()\n {\n if ($this->links === null) {\n $ident = $this->ident();\n $metadata = $this->adminSidemenu();\n\n $this->links = [];\n if (isset($metadata[$ident]['links'])) {\n $links = $metadata[$ident]['links'];\n\n if (is_array($links)) {\n $this->setLinks($links);\n }\n }\n }\n\n $out = [];\n\n foreach ($this->links as $link) {\n if (isset($link['active']) && !$link['active']) {\n continue;\n }\n\n if (isset($link['required_acl_permissions'])) {\n $link['permissions'] = $link['required_acl_permissions'];\n unset($link['required_acl_permissions']);\n }\n\n if (isset($link['permissions'])) {\n if ($this->hasPermissions($link['permissions']) === false) {\n continue;\n }\n }\n\n $out[] = $link;\n }\n\n $this->links = $out;\n return $this->links;\n }",
"public function getLinks() {\n\t\treturn $this->links;\n\t}",
"public function getLinks() {\n\t\treturn $this->links;\n\t}",
"public function getLinks()\n {\n return $this->links;\n }",
"public function getLinks()\n {\n return $this->links;\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.60462314",
"0.603819",
"0.6007888",
"0.60048544",
"0.59881693",
"0.594929",
"0.59280986",
"0.59280986",
"0.5912581",
"0.5912581"
] | 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 }\n }\n\n $metas = \"\\r\\n\";\n\n// $found_robot_meta = false;\n foreach ($this->get('metas') as $key => $value) {\n if ($key == \"robots\") {\n $found_robot_meta = true;\n }\n $metas .= str_replace(array('%key%', '%value%'), array($key, $value), $this->get('template.' . $key, '<meta name=\"%key%\" content=\"%value%\"/>')) . \"\\r\\n\";\n }\n\n if (!$found_robot_meta) {\n if ($this->checkRobots($page)) {\n $metas .= str_replace(array('%key%', '%value%'), array('robots', 'noindex, nofollow'), $this->get('template.' . 'robots', '\n <meta name=\"%key%\" content=\"%value%\"/>')) . \"\\r\\n\";\n }\n }\n\n $content = str_replace('<head>', '<head>' . $metas, $content);\n return $content;\n }",
"private function showMetas(){\r\n\t\r\n\t\techo '\r\n\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n\t\t<meta http-equiv=\"content-language\" content=\"pt-br\" />\r\n\t\t<meta name=\"description\" content=\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\" />\r\n\t\t<meta name=\"keywords\" content=\"social network, perspective social, perspective network\" />\r\n\t\t<meta name=\"author\" content=\"Perspective Development\" />\r\n\t\t<meta name=\"reply-to\" content=\"[email protected]\" />\r\n\t\t<meta name=\"robots\" content=\"index, follow\" />\r\n\t\t<meta name=\"googlebot\" content=\"index, follow\" />\r\n\t\t<title>Perspective</title>\r\n\t\t';\r\n\r\n\t\t//BASE PARA URL AMIGAVEL\r\n\t\techo '\r\n\t\t<base href=\"'.System::getBase().'_assets/\" />\r\n\t\t<!--[if IE]><script type=\"text/javascript\" src=\"'.System::getBase().'_assets/scripts/iefix.js\"></script><![endif]-->\r\n\t\t'; //FIX BASE FOR IE\r\n\r\n\t\techo '\r\n\t\t<link rel=\"stylesheet\" href=\"estilo.css\" media=\"all\" />\r\n\t\t<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"favicon.ico\" />\r\n\t\t<link rel=\"icon\" href=\"favicon.ico\" />\r\n\t\t<script type=\"text/javascript\" src=\"scripts/jquery.js\"></script>\r\n\t\t';\r\n\t}",
"function home()\r\n{\r\n global $content;\r\n\r\n $content['title'] = 'Accueil';\r\n $content['meta'] = '<meta name=\"description\" content=\"Description de la page d\\'accueil\" />\r\n <meta name=\"keywords\" content=\"mots, clefs, page, accueil\" />\r\n <meta name=\"author\" content=\"Christian BONHOMME\" />';\r\n $content['class'] = 'VHtml';\r\n $content['method'] = 'showHtml';\r\n $content['arg'] = '../Html/home.html.php';\r\n\r\n}",
"protected static function addMeta() {\n // Todo: compan_* variables from command line otherwise use this one\n File::addContent(\n self::$root_dir_default_theme.'Page.ss', \n ' <meta name=\"author\" content=\"'.self::$project_company.', '.self::$project_company_adress.', '.self::$project_company_destination.', '.self::$project_company_web.', '.self::$project_company_email.'\">', \n '<meta http-equiv'\n );\n File::replaceContent(\n self::$root_dir_default_theme.'Page.ss',\n '$MetaTags(false)',\n '$MetaTags(true)'\n );\n }",
"static public function meta_content( $post ) {\n\t\t$popup = IncPopupDatabase::get( $post->ID );\n\t\tinclude PO_VIEWS_DIR . 'meta-content.php';\n\t}",
"function loadMeta(){\n echo \"<!-- Metadata here -->\\n\";\n ?>\n<meta charset=\"<?php echo $this->charset;?>\"/>\n<meta name=\"viewport\" content=\"<?php echo $this->viewport;?>\"/>\n<?php\n }",
"function getMetaContent()\n {\n global $html;\n //The following regular expression extracts contents from the $html which is enclosed between the tags <meta>..</meta> and copies it to the $metacontents variable\n preg_match_all('/<meta[^>]+>/i',$html, $metacontents);\n //This loop iterates through each extracted meta tag text\n for ($i = 0; $i < count($metacontents[0]); $i++) {\n //The following regular expression extracts content in the content attribute and copies it in the $metacontents2 array\n preg_match('/content=\"([^\"]+)/i',$metacontents[0][$i], $metacontents2);\n $metacontents3[] = str_ireplace( 'content=\"', '', $metacontents2[0]);\n }\n //The following loop iterates thorugh each extracted meta content text in order to find out the right one\n foreach($metacontents3 as $mc)\n {\n //This condition helps in finding the appropriate text as the right one text length would be more compared to the others\n if(strlen($mc)>140)\n //Returns the final text after removing the attribute \"content=\" from the text\n //return str_replace('content=\"','',$mc);\n return $mc;\n }\n //Returns NA when it doesn't find the appropriate content\n return \"NA\";\n }",
"public function onPageInitialized()\n {\n $page = $this->grav['page'];\n if (isset($page->header()->content['items'])) {\n $page->content(); \n }\n }",
"public static function insertMeta()\n\t{\n\t\t$settings = app()->controller->settings;\n\t\t\n\t\t//register meta description\n\t\tcs()->registerMetaTag($settings['meta_description'], 'description');\n\t\t\n\t\t//register meta keywords\n\t\tcs()->registerMetaTag($settings['meta_keywords'], 'keywords');\n\t}",
"function makePageStart($metaName, $metaContent, $pageTitle) {\n\t$pageStartContent = <<<PAGESTART\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <meta name=\"$metaName\" content=\"$metaContent\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"css/style.css\">\n\t\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"css/barker-style.css\">\n <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n <link href=\"//cdnjs.cloudflare.com/ajax/libs/jquery-form-validator/2.3.26/theme-default.min.css\" rel=\"stylesheet\" type=\"text/css\" />\n <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js\"></script>\n <script src=\"scripts/createModal.js\"></script>\n <script src=\"scripts/timeout.js\"></script>\n <title>$pageTitle</title>\n </head>\n <body>\n <div class=\"wrapper\">\nPAGESTART;\n\t$pageStartContent .=\"\\n\";\n\treturn $pageStartContent;\n}",
"function wpyes_custom_page_content() {\n\t\t$settings = new Wpyes(\n\t\t\t'wpyes_custom_page_content', array(\n\t\t\t\t'callback' => 'wpyes_custom_page_content_canvas',\n\t\t\t)\n\t\t); // Initialize the Wpyes class.\n\n\t\t$settings->init(); // Run the Wpyes class.\n\t}",
"function product()\r\n{\r\n global $content;\r\n\r\n $content['title'] = 'Produit';\r\n $content['meta'] = '<meta name=\"description\" content=\"Description du produit lorem ipsum\" />\r\n <meta name=\"keywords\" content=\"mots, clefs, page, lorem, ipsum\" />\r\n <meta name=\"author\" content=\"Christian BONHOMME\" />';\r\n $content['class'] = 'VHtml';\r\n $content['method'] = 'showHtml';\r\n $content['arg'] = '../Html/product.html.php';\r\n\r\n}",
"function onExtra($name)\n\t{\n\t\t$output = NULL;\n\t\tif($name==\"header\")\n\t\t{\t\t\t\n\t\t\t$msnId = $this->yellow->text->get(\"metaMsn\");\n\t\t\tif (!empty($msnId)) $output .= \"<meta name=\\\"msvalidate.01\\\" content=\\\"\".strencode($msnId).\"\\\" />\\n\";\n\t\t\t$googId = $this->yellow->text->get(\"metaGoogle\");\n\t\t\tif (!empty($googId))$output .= \"<meta name=\\\"google-site-verification\\\" content=\\\"\".strencode($googId).\"\\\" />\\n\";\n\t\t\t$yanId = $this->yellow->text->get(\"metaYandex\");\n\t\t\tif (!empty($yanId))$output .= \"<meta name=\\\"yandex-verification\\\" content=\\\"\".strencode($yanId).\"\\\" />\\n\";\n\t\t\t$fbId = $this->yellow->text->get(\"facebookId\");\n\t\t\tif (!empty($fbId))$output .= \"<meta property=\\\"fb:app_id\\\" content=\\\"\".strencode($fbId).\"\\\" />\\n\";\n\t\t\t$fbadminId = $this->yellow->text->get(\"facebook\");\n\t\t\tif (!empty($fbadminId)) $output .= \"<meta property=\\\"fb:admins\\\" content=\\\"\".strencode($fbadminId).\"\\\" />\\n\";\t\t\t\n\t\t\t$gplusId = $this->yellow->text->get(\"googlePlus\");\n\t\t\tif (!empty($gplusId))$output .= \"<link rel=\\\"publisher\\\" href=\\\"https://plus.google.com/\".strencode($gplusId).\"\\\" />\\n\";\n\n\t\t\t$output .=\"\\n<!-- JSON D SNIPET for Google -->\\n\\r\";\n\t\t\t$output .= \"<script type=\\\"application/ld+json\\\">\\r\\n\";\n\t\t\t$output .= \"{\\r\\n\";\n\t\t\t$output .= \" \\\"@context\\\": \\\"http://schema.org/\\\",\\r\\n\";\n\t\t\t$output .= \" \\\"@type\\\": \\\"WebSite\\\",\\r\\n\";\n\t\t\t$output .= \" \\\"name\\\": \\\"\".$this->yellow->page->getHtml(\"sitename\").\"\\\",\\r\\n\";\n\t\t\t$output .= \" \\\"alternateName\\\": \\\"\".$this->yellow->page->getHtml(\"titleHeader\").\"\\\",\\r\\n\";\n\t\t\t$output .= \" \\\"url\\\": \\\"\".$this->yellow->page->scheme.\"://\".$this->yellow->page->address.$this->yellow->page->base.\"/\".\"\\\",\\r\\n\";\n\t\t\t$output .= \" \\\"potentialAction\\\": {\\r\\n\";\n\t\t\t$output .= \" \\\"@type\\\": \\\"SearchAction\\\",\\r\\n\";\n\t\t\t$output .= \" \\\"target\\\": \\\"search/query:{search_term_string}\\\",\\r\\n\";\n\t\t\t$output .= \" \\\"query-input\\\": \\\"required name=search_term_string\\\"\\r\\n\";\n\t\t\t$output .= \" }\\r\\n\";\n\t\t\t$output .= \"}\\r\\n\";\n\t\t\t$output .= \"</script>\\r\\n\";\t\t\t\n\t\t\t\n\t\t\t$output .= \"\\n\\r<!-- og card -->\\n<meta name=\\\"twitter:card\\\" content=\\\"summary\\\" />\\r\\n\";\n\t\t\t$ttId = $this->yellow->text->get(\"twitter\");\n\t\t\tif (!empty($ttId))$output .= \"<meta name=\\\"twitter:creator\\\" content=\\\"@\".strencode($ttId).\"\\\" />\\r\\n\";\n\t\t\t$output .= \"<meta property=\\\"og:locale\\\" content=\\\"\".$this->yellow->page->getHtml(\"language\").\"\\\" />\\r\\n\";\n\t\t\t$output .= \"<meta property=\\\"og:site_name\\\" content=\\\"\".$this->yellow->page->getHtml(\"sitename\").\"\\\" />\\r\\n\";\n\t\t\t$output .= \"<meta property=\\\"article:tag\\\" content=\\\"\".$this->yellow->page->get(\"tag\").\"\\\" />\\r\\n\";\t\t\t\n\t\t\t$output .= \"<meta property=\\\"og:url\\\" content=\\\"\".$this->yellow->page->getUrl().\"\\\"/>\\r\\n\";\n\t\t\t$output .= \"<meta property=\\\"article:published_time\\\" content=\\\"\".$this->yellow->page->getDateFormattedHtml(\"published\", DATE_ATOM).\"\\\" />\\r\\n\";\n\t\t\t$output .= \"<meta property=\\\"og:title\\\" content=\\\"\".$this->yellow->page->getHtml(\"title\").\"\\\"/>\\r\\n\";\n\t\t\t$output .= \"<meta property=\\\"og:description\\\" content=\\\"\".$this->yellow->page->getHtml(\"description\").\"\\\" />\\r\\n\";\n\t\t\tif ($this->yellow->page->getHtml(\"image\")) { $output .= \"<meta property=\\\"og:image\\\" content=\\\"\".$this->yellow->page->getHtml(\"image\").\"\\\" />\\r\\n\";} else { $output .= \"<meta property=\\\"og:image\\\" content=\\\"\".$this->yellow->page->scheme.\"://\".$this->yellow->page->address.$this->yellow->page->base.\"/\".\"media/images/logo.png\\\" />\\r\\n\";}\t\n\n\t\t\t$output .=\"\\n<!-- Geo Localization / Dublin Core -->\\n\\r\";\t\t\t\n\t\t\t$output .= \"<meta name=\\\"DC.title\\\" content=\\\"\".$this->yellow->page->getHtml(\"titleHeader\").\"\\\" />\\r\\n\";\n\t\t\t$addresslocaty = $this->yellow->text->get(\"addressLocality\");\n\t\t\tif (!empty($addresslocaty))$output .= \"<meta name=\\\"geo.placename\\\" content=\\\"\".$this->yellow->text->getHtml(\"addressLocality\").\",\".$this->yellow->text->getHtml(\"addressRegion\").\",\".$this->yellow->text->getHtml(\"addressCountry\").\"\\\" />\\r\\n\";\n\t\t\t$georegion = $this->yellow->text->get(\"geoRegion\");\n\t\t\tif (!empty($georegion))$output .= \"<meta name=\\\"geo.region\\\" content=\\\"\".$this->yellow->text->getHtml(\"geoRegion\").\"\\\" />\\r\\n\";\n\t\t\t$longitude = $this->yellow->text->get(\"longitude\");\n\t\t\tif (!empty($longitude))$output .= \"<meta name=\\\"geo.position\\\" content=\\\"\".$this->yellow->text->getHtml(\"latitude\").\";\".$this->yellow->text->getHtml(\"longitude\").\"\\\" />\\r\\n\";\n\t\t\t$latitude = $this->yellow->text->get(\"latitude\");\n\t\t\tif (!empty($latitude))$output .= \"<meta name=\\\"ICBM\\\" content=\\\"\".$this->yellow->text->getHtml(\"latitude\").\",\".$this->yellow->text->getHtml(\"longitude\").\"\\\" />\\r\\n\";\t\n\n\t\t}\n\t\treturn $output;\t\t\n\t}",
"function inject_content() {\n\tglobal $bp;\n\n\t$custom_content = '';\n\n\tif ( bp_is_directory() ) {\n\t\tforeach ( (array) $bp->pages as $page_key => $bp_page ) {\n\t\t\tif ( $bp_page->slug == bp_current_component() || ($bp_page->slug == 'sites' && bp_current_component() == 'blogs') ) {\n\t\t\t\t$page_id = $bp_page->id;\n\n\t\t\t\t$page_query = new WP_query( array(\n\t\t\t\t\t'post_type'\t => 'page',\n\t\t\t\t\t'page_id'\t => $page_id\n\t\t\t\t) );\n\n\t\t\t\t$output_page = get_post( $page_id );\n\n\t\t\t\t$custom_content = wpautop( $output_page->post_content );\n\t\t\t}\n\t\t}\n\t}\n\n\techo '<div class=\"entry-content\">' . $custom_content . '</div>';\n}",
"public static function _meta_box() {\n\n\t\tstatic::output_nonce_field();\n\n\t\t$tsf = \\the_seo_framework();\n\n\t\t/**\n\t\t * @since 2.9.0\n\t\t */\n\t\t\\do_action( 'the_seo_framework_pre_page_inpost_box' );\n\n\t\t$tsf->is_gutenberg_page()\n\t\t\tand $tsf->get_view( 'edit/seo-settings-singular-gutenberg-data' );\n\t\t$tsf->get_view( 'edit/seo-settings-singular' );\n\n\t\t/**\n\t\t * @since 2.9.0\n\t\t */\n\t\t\\do_action( 'the_seo_framework_pro_page_inpost_box' );\n\t}",
"function pb_meta_content( $post )\n{\n\t$enabled = get_post_meta( $post->ID, PB_META_ENABLED, true );\n\t$data = get_post_meta( $post->ID, PB_META_DATA, true );\n\t?>\n\n\t<!-- jQuery -->\n\t<script type=\"text/javascript\" src=\"<?= plugins_url() . '/pagebuilder/js/jquery.min.js' ?>\"></script>\n\t<script type=\"text/javascript\" src=\"<?= plugins_url() . '/pagebuilder/js/jquery-ui.min.js' ?>\"></script>\n\n\t<!-- PageBuilder -->\n\t<link rel=\"stylesheet\" href=\"<?= plugins_url() . '/pagebuilder/style.css' ?>\">\n\t<script id=\"pb_src\" type=\"text/javascript\" src=\"<?= plugins_url() . '/pagebuilder/js/pagebuilder.js' ?>\" data-renderUrl = \"<?= plugins_url() . '/pagebuilder/render.php' ?>\"></script>\n\n\t<label><input id=\"pbToggle\" name=\"pb_enabled\" type=\"checkbox\" <?= $enabled ? 'checked=\"checked\"' : '' ?>> Use PageBuilder</label>\n\n\t<style>\n\t\t#pbInfoMessage {\n\t\t\tdisplay: none;\n\t\t}\n\t</style>\n\n\t<div id=\"pbDisabled\">\n\t\t<p><strong>Warning:</strong> When PageBuilder is enabled, it will overwrite whatever is in the content editor.</p>\n\t</div>\n\n\t<div id=\"pbEnabled\"></div>\n\n\t<script type=\"text/javascript\">\n\t\tvar url = \"<?= plugins_url() . '/pagebuilder/admin.php' ?>\",\n\t\t\tdata = \"<?= addslashes($data) ?>\";\n\n\t\tjQuery(document).ready(function($)\n\t\t{\n\t\t\tpb_reloadPageBuilder();\n\t\t\t$('#pbToggle').change(function(){pb_reloadPageBuilder(this.checked)});\n\t\t});\n\n\t\tfunction pb_reloadPageBuilder(enabled)\n\t\t{\n\t\t\t$.get(url, {enabled: enabled, data: data}, function(response)\n\t\t\t{\n\t\t\t\t$('#pbEnabled').empty();\n\t\t\t\t$('#pbEnabled').html(response);\n\t\t\t\tif (enabled) {\n\t\t\t\t\tpb_init();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t</script>\n\n\t<?php if ($enabled) : ?><script>jQuery(document).ready(function($) { pb_reloadPageBuilder(true) })</script><?php endif; ?>\n\n\t<?php\n}",
"function get() {\n\t\t\t$this->content .= $this->homepage();\n\t\t\t$this->content .= $this->question4();\n\t\t\t\n\t\t}",
"public function render_content() {\n\t\t\techo __( 'To customize the About us Page you need to first select the template \"About us page\" for the page you want to use for this purpose. Then open that page in the browser and press \"Customize\" in the top bar.', 'themeisle-companion' ) . '<br><br>' . __( 'Need further assistance? Check out this', 'themeisle-companion' ) . ' <a href=\"http://docs.themeisle.com/article/211-shopisle-customizing-the-contact-and-about-us-page\" target=\"_blank\">' . __( 'doc', 'themeisle-companion' ) . '</a>';\n\t\t}",
"function products()\r\n{\r\n global $content;\r\n\r\n $content['title'] = 'Produits';\r\n $content['meta'] = '<meta name=\"description\" content=\"Description de la catégorie aromathérapie\" />\r\n <meta name=\"keywords\" content=\"mots, clefs, page, aromathérapie\" />\r\n <meta name=\"author\" content=\"Christian BONHOMME\" />';\r\n $content['class'] = 'VHtml';\r\n $content['method'] = 'showHtml';\r\n $content['arg'] = '../Html/products.html.php';\r\n\r\n}",
"public function getMeta($pbIsLogged = false, $pasJsFile = array(), $pasCustomJs = array(), $pasCssFile = array(), $pasCustomCss = array(), $pasMeta = array(), $pasPageParam = array())\n {\n if(isset($pasMeta['title']) && !empty($pasMeta['title']))\n $sCustomPageTitle = $pasMeta['title'];\n else\n $sCustomPageTitle = '';\n\n if($_SERVER['SERVER_ADDR'] == '172.31.29.60')\n $sCustomPageTitle = '- '.$sCustomPageTitle;\n elseif($_SERVER['SERVER_ADDR'] == '172.31.29.61')\n $sCustomPageTitle = '+ '.$sCustomPageTitle;\n\n if(isset($pasMeta['meta_desc']) && !empty($pasMeta['meta_desc']))\n $sCustomDescription = $pasMeta['meta_desc'];\n else\n $sCustomDescription = '';\n\n if(isset($pasMeta['meta_tags']) && !empty($pasMeta['meta_tags']))\n $sCustomKeywords = $pasMeta['meta_tags'];\n else\n $sCustomKeywords = '';\n\n //$sTime = '?n='.time(); //after an update, to force refresh css and js files\n $sTime = '?v='.FILE_VERSION;\n\n $date_obj = new DateTime(\"+12 hours\", new DateTimeZone('Greenwich'));\n // html 5 doctype --> need one for jQuery , so ...\n $sHTML = '<!DOCTYPE html>\n <html>\n <head>\n <title>'.$sCustomPageTitle.'</title>\n <meta name=\"description\" content=\"'.$sCustomDescription.'\"/>\n <meta name=\"keywords\" content=\"'.$sCustomKeywords.'\"/>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n <meta content=\"utf-8\" http-equiv=\"encoding\">\n <meta http-equiv=\"Cache-control\" content=\"private\">\n <meta http-equiv=\"Cache-control\" content=\"max-age=43200\">\n <meta http-equiv=\"expires\" content=\"'.$date_obj->format('D, d M Y H:i:s T').'\">\n\n <link rel=\"shortcut icon\" href=\"'.CONST_HEADER_FAVICON.'\" type=\"image/vnd.microsoft.icon\" />\n <link rel=\"shortcut icon\" href=\"'.CONST_HEADER_FAVICON.'\" type=\"image/x-icon\" />\n <link rel=\"icon\" href=\"'.CONST_HEADER_FAVICON.'\" type=\"image/vnd.microsoft.icon\" />\n <link rel=\"icon\" href=\"'.CONST_HEADER_FAVICON.'\" type=\"image/x-icon\" />\n\n <link rel=\"stylesheet\" href=\"/common/style/template.css'.$sTime.'\" type=\"text/css\" media=\"screen\" />\n <link rel=\"stylesheet\" href=\"'.CONST_PATH_CSS_JQUERYUI.$sTime.'\" type=\"text/css\" media=\"screen\" />\n <link rel=\"stylesheet\" href=\"/conf/custom_config/'.CONST_WEBSITE.'/'.CONST_WEBSITE.'.css'.$sTime.'\" type=\"text/css\" media=\"screen\" />\n <link rel=\"stylesheet\" href=\"/common/style/jquery-ui-timepicker-addon.css'.$sTime.'\" type=\"text/css\" media=\"screen\" />\n <link rel=\"stylesheet\" href=\"/common/style/style.css'.$sTime.'\" type=\"text/css\" media=\"screen\" />';\n\n //include logged in css\n if($pbIsLogged && CONST_DISPLAY_HAS_LOGGEDIN_CSS && !getValue(CONST_PAGE_NO_LOGGEDIN_CSS))\n {\n $sHTML.= '<link rel=\"stylesheet\" href=\"/common/style/private.css'.$sTime.'\" type=\"text/css\" media=\"screen\" />';\n $sHTML.= '<link rel=\"stylesheet\" href=\"/conf/custom_config/'.CONST_WEBSITE.'/'.CONST_WEBSITE.'_private.css'.$sTime.'\" type=\"text/css\" media=\"screen\" />';\n }\n\n $asCssFile = array();\n foreach($pasCssFile as $sFileName)\n {\n $sHTML.= '<link rel=\"stylesheet\" href=\"'.$sFileName.'\" />';\n\n $asFileDate = parse_url($sFileName);\n $asCssFile[] = $asFileDate['path'];\n }\n\n if(!empty($pasCustomCss))\n {\n $sHTML.= '<style rel=\"stylesheet\">'.implode(\"\\n\", $pasCustomCss).'</style>';\n }\n\n //css gradient hack for ie9\n $sHTML.= '<!--[if gte IE 9]><style type=\"text/css\">.gradient { filter: none; }</style><![endif]-->\n\n <script type=\"text/javascript\" src=\"'.CONST_PATH_JS_JQUERY.$sTime.'\"></script>\n <script type=\"text/javascript\" src=\"'.CONST_PATH_JS_JQUERYUI.$sTime.'\"></script>\n <script type=\"text/javascript\" src=\"/common/js/yepnope.1.5.4-min.js'.$sTime.'\"></script>\n <script type=\"text/javascript\" src=\"/common/js/jquery.iframe-transport.min.js'.$sTime.'\"></script>\n <script type=\"text/javascript\" src=\"/component/form/resources/js/tinymce/jquery.tinymce.min.js'.$sTime.'\"></script>\n <script type=\"text/javascript\" src=\"/component/form/resources/js/tinymce/tinymce.min.js'.$sTime.'\"></script>\n <script type=\"text/javascript\" src=\"/component/form/resources/js/jquery.tokeninput.js'.$sTime.'\"></script>\n <script type=\"text/javascript\" src=\"'.CONST_PATH_JS_POPUP.$sTime.'\"></script>\n <script type=\"text/javascript\" src=\"/common/js/velocity.min.js'.$sTime.'\"></script>\n <script type=\"text/javascript\" src=\"/common/js/my-js.js\"></script>\n <script type=\"text/javascript\" src=\"/common/lib/ckeditor/ckeditor.js\"></script>\n <script type=\"text/javascript\" src=\"/common/lib/verticalSlider/js/jquery.totemticker.js\"></script>\n <script type=\"text/javascript\" src=\"'.CONST_PATH_JS_COMMON.$sTime.'\"></script>';\n// <script type=\"text/javascript\" src=\"/common/lib/tinymce/js/tinymce.min.js\"></script>\n// <script src=\"https://cdn.ckeditor.com/4.6.2/full/ckeditor.js\"></script>\n $asJsFile[] = CONST_PATH_JS_JQUERY;\n $asJsFile[] = CONST_PATH_JS_JQUERYUI;\n $asJsFile[] = '/component/form/resources/js/tiny_mce/jquery.tinymce.js';\n $asJsFile[] = '/component/form/resources/js/tiny_mce/tiny_mce.js';\n $asJsFile[] = '/component/form/resources/js/jquery.tokeninput.js';\n $asJsFile[] = CONST_PATH_JS_POPUP;\n $asJsFile[] = CONST_PATH_JS_COMMON;\n\n foreach($pasJsFile as $sFileName)\n {\n $sHTML.= '<script type=\"text/javascript\" src=\"'.$sFileName.$sTime.'\"></script>';\n $asFileDate = parse_url($sFileName);\n $asJsFile[] = str_replace('//', '/', $asFileDate['path']);\n }\n\n if(!empty($pasCustomJs))\n {\n $sHTML.= '<script type=\"text/javascript\">';\n foreach($pasCustomJs as $sJsCode)\n {\n $sHTML.= \"\\n\".$sJsCode.\"\\n\";\n }\n $sHTML.= '</script>';\n }\n\n // ==============================================================================================\n //allow page size management (js and/or php)\n if($pbIsLogged)\n {\n $oSetting = CDependency::getComponentByName('settings');\n $asSetting = $oSetting->getSettings(array('wide_size', 'wide_css', 'wide_css_file', 'wide_css_on'), false);\n\n if(!isset($asSetting['wide_css_file']) || empty($asSetting['wide_css_file']))\n $asSetting['wide_css_file'] = '/common/style/widescreen.css';\n\n //dump($asSetting);\n\n if(isset($asSetting['wide_css']) && (bool)$asSetting['wide_css'])\n {\n if(isset($asSetting['wide_css_on']) && (bool)$asSetting['wide_css_on'])\n {\n $sHTML.= '<link id=\"widecss\" rel=\"stylesheet\" href=\"'.$asSetting['wide_css_file'].'\" type=\"text/css\" media=\"screen\" />';\n $pasPageParam['wide-css'] = 1;\n }\n else\n $pasPageParam['wide-css'] = 0;\n\n $sHTML.= '<script type=\"text/javascript\" src=\"/common/js/page_resize.js\"></script>';\n $sHTML.= '<script type=\"text/javascript\"> var sWideCssFile = \"'.$asSetting['wide_css_file'].'\";\n var asPageParam = new Array('.$asSetting['wide_size'].');\n sizeManagement(asPageParam, '.(int)CONST_PAGE_USE_WINDOW_SIZE.'); </script>';\n }\n }\n\n //if there s no wide_css management, we bind the update on resize()\n if(!isset($asSetting['wide_css']) && empty($asSetting['wide_css']) && CONST_PAGE_USE_WINDOW_SIZE)\n {\n $sHTML.= '<script type=\"text/javascript\">\n $(window).resize(function(event)\n {\n //resize event is triggered by jquery-ui dialog, we dont treat those\n if($(event.target).hasClass(\"ui-resizable\"))\n return true;\n\n updatePhpWindowSize();\n });\n </script>';\n }\n // ==============================================================================================\n\n $sHTML.= '<script type=\"text/javascript\">';\n $sHTML.= 'var gasJsFile = [\"'.implode('\", \"', $asJsFile).'\"]; ';\n $sHTML.= 'var gasCssFile = [\"'.implode('\", \"', $asCssFile).'\"]; ';\n $sHTML.= 'var goPopup = new CPopup(); ';\n //$sHTML.= ' $(document).tooltip({items: \\'.tooltip\\', position: {my: \"center top\",at: \"center bottom+5\",}, show: {duration: \"fast\"},hide: {effect: \"hide\"}}); ';\n $sHTML.= '</script>';\n\n //For controlling the anchor tag\n $sHTML.= '<script type=\"text/javascript\">';\n $sHTML.= 'var anchorId = window.location.hash;';\n $sHTML.= 'if(anchorId){';\n $sHTML.= ' $(document).ready( function(){';\n $sHTML.= '$(anchorId).click();';\n $sHTML.= '});';\n $sHTML.= '}';\n $sHTML.= '</script>';\n $sHTML.= CONST_WEBSITE_GOOGLE_ANALYTICS;\n\n $sHTML.= '</head>';\n\n $sHTML.= '<body id=\"body\" ';\n\n $pasPageParam['logged']=(int)$pbIsLogged;\n\n foreach($pasPageParam as $sParam => $vValue)\n $sHTML.= ' '.$sParam.'=\"'.$vValue.'\" ';\n\n $sHTML.= '>';\n\n $sHTML.= $this->getBlocStart('pageContainerId');\n $sHTML.= $this->getBlocStart('pageMainId');\n\n return $sHTML;\n }",
"public function getMeta($main_page, $page_id = 0, $isAdmin = false)\n {\n\n global $db;\n $sql = \"SELECT sm.seo_id, sm.page_id, smd.meta_name, smd.meta_content\n FROM \" . TABLE_META . \" sm\n INNER JOIN \" . TABLE_META_DATA . \" smd\n ON sm.seo_id = smd.seo_id\n WHERE sm.main_page = :main_page\n AND sm.page_id = :page_id\n ORDER BY smd.seo_meta_data_id\";\n\n $sql = $db->bindVars($sql, \":main_page\", $main_page, 'string');\n $sql = $db->bindVars($sql, \":page_id\", $page_id, 'integer');\n\n $result = $db->Execute($sql);\n if ($result->RecordCount() > 0) {\n $meta['seo_id'] = $result->fields['seo_id'];\n $meta['main_page'] = $result->fields['main_page'];\n $meta['page_id'] = $result->fields['page_id'];\n\n while (!$result->EOF) {\n $meta['metas'][$result->fields['meta_name']] = $result->fields['meta_content'];\n $result->MoveNext();\n }\n }\n\n $fallback = (bool)$this->settings->get('plugins.riseo.zencart_fallback');\n if ($fallback) {\n if ((!isset($meta['metas']['title']) || !isset($meta['metas']['description']) || !isset($meta['metas']['keywords']))) {\n $current_page = $_GET['main_page'];\n $_GET['main_page'] = $main_page;\n /// code cho cai module\n /// $_GET['main_page'] = $current_page;\n// require($_SERVER['DOCUMENT_ROOT'] . '/includes/modules/meta_tags.php');\n global $currencies;\n require(\"meta_tags.php\");\n if (!$isAdmin) {\n if (!isset($meta['metas']['title'])) {\n $meta['metas']['title'] = META_TAG_TITLE;\n }\n if (!isset($meta['metas']['description'])) {\n $meta['metas']['description'] = META_TAG_DESCRIPTION;\n }\n if (!isset($meta['metas']['keywords'])) {\n $meta['metas']['keywords'] = META_TAG_KEYWORDS;\n }\n }\n }\n }\n\n return $meta;\n }",
"protected abstract function mainContent();",
"function gavernwp_metatags_hook() {\n\tglobal $tpl; \n\n\t// only for IE\n\tif(preg_match('/MSIE/i',$_SERVER['HTTP_USER_AGENT'])) {\n\t\techo '<meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\" />' . \"\\n\";\n\t}\n\techo '<meta charset=\"'.get_bloginfo('charset').'\" />' . \"\\n\";\n\techo '<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1\" />' . \"\\n\";\n\n\t// generates Gavern SEO metatags\n\tgk_metatags();\n\t// generates Gavern Open Graph metatags\n\tgk_opengraph_metatags();\n \t// YOUR HOOK CODE HERE\n}",
"function page_content_html(array $content, Page $page, bool $edit)\n{\n // script\n $html = \"\n<script src=\\\"/resources/js/jquery.js\\\" type=\\\"application/javascript\\\"></script>\n<script src=\\\"/resources/js/page.js\\\" type=\\\"application/javascript\\\"></script>\";\n if ($edit) {\n $html .= \"\n<script src=\\\"/resources/js/toolbar.js\\\" type=\\\"application/javascript\\\"></script>\n<script src=\\\"/resources/js/editor.js\\\" type=\\\"application/javascript\\\"></script>\";\n }\n\n // meta/other\n $html .= \"\n<span class=\\\"hidden\\\" id=\\\"hiddenpageid\\\">{$page->id}</span>\n<span class=\\\"hidden\\\" id=\\\"hiddenpageslug\\\">{$page->slug}</span>\n<span class=\\\"hidden\\\" id=\\\"hiddenedit\\\">{$edit}</span>\n<span class=\\\"hidden\\\" id=\\\"hiddenpagelivepath\\\">\" . ApplicationSettings::get_url_permalink_for_slug($page->slug) . \"</span>\";\n\n // toolbar when editing\n if ($edit) {\n $html .= get_editing_toolbar_html();\n }\n\n // modals/hoverers/etc.\n if ($edit) {\n $html .= \"\n<div class=\\\"base-modal link-modal hidden\\\">\n <div class=\\\"link-dialog base-dialog-modal base-dialog\\\">\n <div class=\\\"dialog-title\\\">\n <span>New Link</span>\n </div>\n <div class=\\\"dialog-content\\\">\n <div class=\\\"textbox-container\\\">\n <span id=\\\"text\\\">Link to:</span>\n <input type=\\\"text\\\" autocomplete=\\\"off\\\" max=\\\"2000\\\" placeholder=\\\"http://example.com\\\">\n </div>\n <button class=\\\"insert-link\\\">Insert</button>\n </div>\n </div>\n</div>\n<div class=\\\"base-modal options-modal hidden\\\">\n <div class=\\\"options-dialog base-dialog-modal base-dialog\\\">\n <div class=\\\"dialog-title\\\">\n <span>Options</span>\n </div>\n <div class=\\\"dialog-content\\\">\n <div class=\\\"textbox-container\\\">\n <span id=\\\"text\\\">URL slug:</span>\n <input type=\\\"text\\\" spellcheck=\\\"false\\\" id=\\\"sluginput\\\" autocomplete=\\\"off\\\" max=\\\"512\\\" placeholder=\\\"Untitled_Page\\\">\n </div>\n <button id=\\\"slugapply\\\">Apply</button>\n <span class=\\\"statustext\\\" id=\\\"slugstatustext\\\"></span>\n </div>\n </div>\n</div>\";\n }\n $html .= \"\n<div class=\\\"link-hoverer base-dialog-modal hidden\\\" tabindex=\\\"-1\\\">\n <span>\n <input type=\\\"text\\\" id=\\\"linkURL\\\" autocomplete=\\\"off\\\" max=\\\"2000\\\" placeholder=\\\"http://example.com\\\">\n <button id=\\\"apply\\\" class=\\\"small-button bold-text\\\">Apply</button>\n </span>\n <span style=\\\"margin-top:4px\\\">\n <input type=\\\"checkbox\\\" id=\\\"newtab\\\"><label for=\\\"newtab\\\">New tab</label>\n <button class=\\\"content-only small-button\\\" id=\\\"remove\\\">Remove</button>\n </span>\n</div>\";\n\n // start of actual content\n $html .= \"\n<div class=\\\"page-content\\\">\n <div class=\\\"content\\\">\";\n $html .= \"<div class=\\\"module page-title\\\"\";\n if ($edit) {\n $html .= \" contenteditable=\\\"true\\\"\";\n }\n $html .= \">{$page->title}</div>\";\n\n // modules (paragraphs, inline images, data tables, etc.)\n foreach ($content[\"modules\"] as $module) {\n $html .= \"<div class=\\\"module \";\n // content of module div\n if ($module[\"type\"] == \"section-content\") {\n // paragraph container\n $html .= \"section-content\\\">\";\n foreach ($module[\"value\"] as $submodule) {\n $html .= \"<div class=\\\"sub-module \";\n if ($submodule[\"type\"] == \"paragraph\") {\n // paragraph\n $html .= \"paragraph\\\">\";\n foreach ($submodule[\"value\"] as $pmodule) {\n // start element div\n $ptype = $pmodule[\"type\"];\n $html .= \"<span class=\\\"e {$ptype}\\\"\";\n if ($edit) {\n $html .= \" contenteditable=\\\"true\\\"\";\n }\n if ($ptype == \"text\" || $ptype == \"plain\") {\n $html .= \">\" . $pmodule[\"value\"];\n } else {\n $html .= \"Unknown type!\";\n }\n // end element div\n $html .= \"</span>\";\n }\n } else if ($submodule[\"type\"] == \"list\") {\n // list\n $html .= \"list\\\"><ul>\";\n foreach ($submodule[\"value\"] as $listitem) {\n $html .= \"<li id=\\\"list-item\\\"\";\n if ($edit) {\n $html .= \" contenteditable=\\\"true\\\"\";\n }\n $html .= \">{$listitem}</li>\";\n }\n $html .= \"</ul>\";\n } else {\n $html .= \"\\\">Unknown type!\";\n }\n // end sub-module of paragraph container module\n $html .= \"</div>\";\n }\n } else if ($module[\"type\"] == \"heading\") {\n // section heading\n $html .= \"heading\\\"><span\";\n if ($edit) {\n $html .= \" contenteditable=\\\"true\\\"\";\n }\n $html .= \">{$module[\"value\"]}</span>\";\n if ($edit) {\n $html .= \"<span id=\\\"removesection\\\"><img src=\\\"../resources/png/trash.png\\\" alt=\\\"[X]\\\" title=\\\"Remove this section\\\"></span>\";\n }\n } else {\n $html .= \"\\\">Unknown module type!\";\n }\n // end module\n $html .= \"</div>\";\n }\n // footer (hardcoded for now)\n $html .= \"\n <div class=\\\"module footer small-text\\\"><b>Last updated:</b> {$page->asPrettyString_updated()}<br><b>Published:</b> {$page->asPrettyString_created()}</div>\";\n // end all modules\n $html .= \"\n </div>\";\n\n // infobox\n $infobox = $content[\"infobox\"];\n $html .= \"\n <table class=\\\"infobox base-dialog-modal\\\"><tbody><tr class=\\\"heading\\\"><td colspan=\\\"2\\\"><div class=\\\"bold-text\\\"\";\n if ($edit) {\n $html .= \" contenteditable=\\\"true\\\"\";\n }\n // heading/title and main image\n $html .= \">{$infobox[\"heading\"]}</div></td></tr><tr class=\\\"main-image\\\"><td colspan=\\\"2\\\"><span class=\\\"flex-centered\\\"><table><tbody><tr><td><img alt=\\\"image\\\" src=\\\"{$infobox[\"image\"][\"file\"]}\\\"></td></tr><tr><td class=\\\"small-text\\\" id=\\\"caption\\\"\";\n if ($edit) {\n $html .= \" contenteditable=\\\"true\\\"\";\n }\n // main image caption\n $html .= \">{$infobox[\"image\"][\"caption\"]}</td></tr></tbody></table></span></td></tr>\";\n // properties & sub-headings\n foreach ($infobox[\"items\"] as $item) {\n $html .= \"<tr class=\\\"\";\n if ($item[\"type\"] == \"property\") {\n $html .= \"property\\\"><th\";\n if ($edit) {\n $html .= \" contenteditable=\\\"true\\\"\";\n }\n $html .= \">{$item[\"label\"]}</th><td id=\\\"value\\\"\";\n if ($edit) {\n $html .= \" contenteditable=\\\"true\\\"\";\n }\n $html .= \">{$item[\"value\"]}</td>\";\n } else if ($item[\"type\"] == \"sub-heading\") {\n $html .= \"sub-heading\\\"><td colspan=\\\"2\\\"><span class=\\\"bold-text\\\"\";\n if ($edit) {\n $html .= \" contenteditable=\\\"true\\\"\";\n }\n $html .= \">{$item[\"value\"]}</span></td>\";\n } else {\n $html .= \"\\\"><td>Unknown type!</td>\";\n }\n $html .= \"</tr>\";\n }\n\n return $html . \"</tbody>\n </table>\n</div>\";\n}",
"function render_templateMetaHead($page_data){\n $site_info = new SiteInfo();\n $site_data = $site_info->getSiteData();\n $path = new Route();\n \n if (isset($page_data['meta']['featured_image'])) {\n $fb_og = $page_data['meta']['featured_image'];\n $twitter_og = $page_data['meta']['featured_image'];\n } else {\n $fb_og = $site_info->baseUrl() . $site_data['front_theme'] . '/img/og_facebook.png';\n $twitter_og = $site_info->baseUrl() . $site_data['front_theme'] . '/img/og_twitter.png';\n }\n\n $canonical = $site_info->baseUrl() . $path->getPath();\n include('_templates/meta_head.tpl.php');\n}",
"function head()\r\n{\r\n\techo( '\r\n<!-- Basic App Metadata -->\r\n<meta charset=\"'. getOption( 'charset' ) .'\">\r\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\r\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no\">\r\n<meta name=\"description\" content=\"'. getOption( 'description' ) .'\">\r\n<meta name=\"keywords\" content=\"Keywords\">\r\n<meta name=\"theme-color\" content=\"white\"/>\r\n<meta name=\"background-color\" content=\"#008aff\"/>\r\n\r\n<!-- Make our app progressive -->\r\n<!-- Android -->\r\n<meta name=\"theme-color\" content=\"teal\">\r\n<meta name=\"mobile-web-app-capable\" content=\"yes\">\r\n\r\n<!-- Add to homescreen for Safari on iOS -->\r\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\">\r\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\">\r\n<meta name=\"apple-mobile-web-app-title\" content=\"'. getOption( 'name' ) .'\">\r\n<link rel=\"apple-touch-icon-precomposed\" href=\"' . getOption( 'favicon' ) .'\">\r\n\r\n<!-- Pinned Sites -->\r\n<meta name=\"application-name\" content=\"'. getOption( 'name' ) .'\">\r\n<meta name=\"msapplication-tooltip\" content=\"'. getOption( 'name' ) .'\">\r\n<meta name=\"msapplication-starturl\" content=\"/\">\r\n<link rel=\"icon\" sizes=\"192x192\" href=\"' . getOption( 'favicon' ) .'\">\r\n\r\n<!-- Tile icon for Win8 (144x144 + tile color) -->\r\n<meta name=\"msapplication-TileImage\" content=\"' . getOption( 'favicon' ) .'\">\r\n<meta name=\"msapplication-TileColor\" content=\"#008080\">\r\n\r\n<link rel=\"shortcut icon\" href=\"' . getOption( 'favicon' ) .'\">\r\n\r\n<link rel=\"manifest\" href=\"'. _ROOT.'/manifest\" >\r\n<link rel=\"alternate\" type=\"application/rss+xml\" href=\"'. _ROOT.'/feed/\" title=\"'. getOption( 'name' ) .'\">' );\r\n}",
"public function meta()\n {\n $this->load->view('layout/front/meta');\n }",
"function buildpage($request) {\n\n // Content definitions\n require INCLUDES . 'content.inc';\n\n // Routes our incoming request to the right content type and pulls\n // the content from out DB. \n\n $content_type = $request[0];\n $id = $request[1];\n $template_file = TEMPLATES . $content_type . '_template.inc';\n\n // Build the SQL and get the result\n\n $sql = \"SELECT * FROM $content_type WHERE id='$id' AND status > 0 LIMIT 1\";\n $result = mysql_select($sql);\n\n // Check we have some content to display\n\n if ($result[0] == 0) {\n\n echo 'No data';\n return;\n }\n\n // Check we have a template file\n\n if (!file_exists($template_file)) {\n\n echo 'No template';\n return;\n }\n\n // Don't write any output to browser yet as we want to post process\n // our content using a theme. If enabled use our optimization \n // callback to remove white space etc.\n\n ob_start(\"optimize_callback\");\n\n // Output our page header\n\n outfile(TEMPLATES . 'header.inc');\n\n // Create our body \n\n echo wraptag('title', $result['title']);\n echo HEAD;\n echo BODY;\n \n echo \"<script>preinit();</script>\";\n echo \"<script>globalmenu();</script>\";\n \n // Generate a unique ID based on content type\n // Map the requested content type from our real table name\n\n $ct = array_search($content_type, $content_tables);\n\n echo '<div id=\"' . $ct . '\">';\n\n // If we are in debug mode, show an alert\n\n if (DEBUG) {\n\n $theme['debug'] = div('¶', '', 'debug');\n }\n\n // Dump the title & id out to our theme template\n\n $theme['id'] = $result['id'];\n $theme['title'] = $result['title'];\n\n // As we don't know how many fields we will have in our content \n // type after our id, iterate through each in turn and wrap with \n // the field with a div\n\n $offset = $result[1]-1;\n $pos = 0;\n\n foreach ($result as $key => $value) {\n\n if ($pos >= $offset) {\n\n $theme[$key] = div($result[$key], $key . '-' . $id, $key);\n }\n\n $pos++;\n }\n\n // Add our standard copyright notice\n\n $theme['licence'] = div(ahref(COPYRIGHT, LICENCE, 'Copyright and licence details'), '', 'licence');\n\n // Include our template file\n\n require_once($template_file);\n\n // Close our content type tag\n\n echo '</div>';\n\n // Include our footer template\n\n require_once(TEMPLATES . FOOTERTEMPLATE);\n\n // Output our HTML page footer\n \n outfile(TEMPLATES . 'footer.inc');\n\n // Flush it all out and display\n \n echo \"<script>postinit();</script>\";\n\n ob_end_flush();\n}",
"public static function includeDefaultMeta(): void\n {\n $siteName = getSiteName();\n\n Assets::includeHttpEquivMetas([\n \"Content-Type\" => \"text/html; charset=UTF-8\",\n \"X-UA-Compatible\" => \"IE=edge\",\n ]);\n\n Assets::includeMetas([\n \"viewport\" => \"width=device-width,initial-scale=1\",\n \"robots\" => \"index, follow\",\n \"keywords\" => $siteName,\n \"description\" => $siteName,\n ]);\n }",
"public function headCustomContent()\n\t{\tglobal $wp_query;\n\t\t\n\t\tif (!$wp_query->is_singular) return;\n\t\t\n\t\tif ( ($content = wpi_get_postmeta('header_content') ) != false ){\n\t\t\t$content = apply_filters(wpiFilter::FILTER_CUSTOM_HEAD_CONTENT,$content);\n\t\t\techo PHP_EOL.PHP_T.$content.PHP_EOL;\n\t\t}\t\t\t\n\t}"
] | [
"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.5780464",
"0.5779359",
"0.5778829",
"0.5769639",
"0.5752093",
"0.5741629",
"0.57370424",
"0.57016236",
"0.5687743",
"0.567411"
] | 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 function actionDeleteMetaProperty()\n {\n SeoParams::model()->findByPk($_POST['id'])->delete();\n }",
"public function actionDeletemetaname()\n {\n SeoMain::model()->findByPk($_POST['id'])->delete();\n }",
"private function delete_field($meta_id)\n\t{\n\t\tglobal $wpdb;\n\t\t$wpdb->delete($wpdb->postmeta, array('meta_id' => abs($meta_id)));\n\t}",
"function delete_meta($guid, $name = NULL)\n\t{\n\t\treturn get_instance()->kbcore->metadata->delete($guid, $name);\n\t}",
"public function delete_meta() {\n\t\t\tdelete_metadata( 'user', null, 'tgmpa_dismissed_notice_wpex_theme', null, true );\n\t\t}",
"public static function delete_meta( $wc_object, $name ) {\n\t\tif ( self::is_wc_3_0() ) {\n\t\t\t$wc_object->delete_meta_data( $name );\n\t\t\t\n\t\t\treturn $wc_object->save();\n\t\t} else {\n\t\t\treturn delete_post_meta( self::get_prop( $wc_object, 'id' ), $name );\n\t\t}\n\t}",
"function payswarm_database_remove_old_metadata($post_id, $meta_id, $meta_key) {\n global $wpdb;\n\n // delete the post identifier\n $wpdb->query($wpdb->prepare(\n 'DELETE FROM ' . $wpdb->postmeta . ' ' .\n 'WHERE post_id=%s AND meta_id<%s AND meta_key=%s',\n $post_id, $meta_id, $meta_key));\n}",
"public function remove(SeoMetadataInterface $seoMetadata, $save = false);",
"public function destroy(Meta $meta)\n {\n //\n }",
"public function destroy(Meta $meta)\n {\n //\n }",
"function appthemes_delete_review_meta( $id, $meta_key, $meta_value ) {\n\t$review = appthemes_get_review( $id );\n\treturn $review->delete_meta( $meta_key, $meta_value );\n}",
"public function deleteMeta($key) {\n $this->changes[] = [\n 'type' => 'meta',\n 'action' => 'delete',\n 'key' => $key\n ];\n }",
"function delete_meta_by($field = null, $match = null)\n\t{\n\t\treturn get_instance()->kbcore->metadata->delete_by($field, $match);\n\t}",
"public function delete_single($id);",
"public function delete($id = null)\n { \n $this->db->where('id', $id);\n $this->db->delete('seo');\n if ($this->db->affected_rows() > 0) {\n return true;\n }else{\n return false;\n }\n\t}",
"public function delete_meta()\n\t{\n\t\t$args = func_get_args();\n\t\tif (empty($args))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// $guid is always the first element.\n\t\t$guid = array_shift($args);\n\t\tif ( ! is_numeric($guid))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// Prepare WHERE clause.\n\t\t$where = array('guid' => $guid);\n\n\t\t// Are there arguments left?\n\t\tif ( ! empty($args))\n\t\t{\n\t\t\t// Get rid of deep nasty array.\n\t\t\t(is_array($args[0])) && $args = $args[0];\n\t\t\t$where['name'] = $args;\n\t\t}\n\n\t\treturn $this->delete_by($where);\n\t}",
"function delete() {\n\t \t$sql = \"DELETE FROM evs_database.evs_set_form_mbo\n\t \t\t\tWHERE sfm_id=?\";\n\t \t$this->db->query($sql, array($this->sfm_id));\n\t }",
"public function deletePostMeta( $post_id, $field ){\n\t\t/* Remove the current meta */\n\t\tdelete_post_meta( $post_id, $field->field_id );\n\t\t\n\t\t/* Then if the join reference exist delete it as well */\n\t\t$exist = $this->db->get_var(\n\t\t\t'SELECT meta_id \n\t\t\tFROM '. EFM_DB_METAS .' \n\t\t\t\tWHERE post_id ='. $post_id .'\n\t\t\t\tAND field_id ='. $field->id \n\t\t);\n\t\tif( !empty( $exist ) ){\n\t\t\t$this->db->query('DELETE FROM '. EFM_DB_METAS .' WHERE meta_id = '. $exist);\n\t\t}\n\t}",
"function islandora_calliope_delete_mvd($id) {\n module_load_include('inc', 'islandora', 'includes/utilities');\n try {\n $db = islandora_calliope_create_mongo_db();\n $collection = $db->selectCollection('mvds');\n $collection->remove(array('_id' => $id));\n }\n catch (Exception $e) {\n drupal_add_http_header('Status', '500 Internal server error');\n echo $e->getMessage();\n exit;\n }\n}",
"function delete_meta_record($table, $id)\n{\n\tglobal $DB;\n\t\n\tif (empty($id)) { return false; }\n\t$result = false;\n\t\n\tswitch ($table)\n\t{\n\t\tcase 'activitytype':\n\t\t\t$result = $DB->delete_records('cpd_activity_type', array('id'=>$id));\n\t\t\tbreak;\n\t\tcase 'year':\n\t\t\t$result = $DB->delete_records('cpd_year', array('id'=>$id));\n\t\t\tbreak;\n\t\tcase 'status':\n\t\t\t$result = $DB->delete_records('cpd_status', array('id'=>$id));\n\t\t\tbreak;\n\t}\n\treturn $result;\n}",
"public function delete_medio_pago($id) {\n $sql = \"DELETE FROM mediospago WHERE medi_clave = $id\";\n $return = pg_query($this->conn, $sql);\n \n //Return false if have error\n return !$return;\n }",
"public function removeMeta($key) {\n if(! is_array($key))\n $key = (array)$key;\n\n if($key[0] == '*')\n $this->meta()\n ->delete();\n\n $this->meta()\n ->whereIn('key', $key)\n ->delete();\n }",
"function deleteOptionMetaBySwimmerId($swimmerid)\n {\n $query = sprintf(\"DELETE FROM %s WHERE swimmerid='%s'\",\n WPST_OPTIONS_META_TABLE, $swimmerid) ;\n\n return $this->deleteOptionMeta($query) ;\n }",
"function delete_rso($rsoName) {\n // TODO delete rso\n refresh();\n}",
"public function delete(){\n\t\tEDatabase::q(\"DELETE FROM ocs_content WHERE id=\".$this->id.\" LIMIT 1\");\n\t\tEDatabase::q(\"DELETE FROM ocs_comment WHERE content=\".$this->id);\n\t\tEFileSystem::rmdir(\"content/\".$this->id);\n\t}",
"public function saveMeta($data, $model)\n {\n \t$seoModel = self::model()->findOrNew($model);\n\t\t$seoModel->attributes = $data;\n\t\tif(strlen($data['title'])<1 && strlen($data['keywords'])<1 && strlen($data['description'])<1 && $seoModel->id>0)\n\t\treturn $seoModel->delete();\n\t\telseif(strlen($data['title'])>0 || strlen($data['keywords'])>0 || strlen($data['description'])>0)\n\t\treturn $seoModel->save();\n }",
"public function delete(){\n $query = \"DELETE FROM manga WHERE id_manga = :id\";\n\t $result = $this->pdo->prepare($query);\n\t $result->bindValue(\"id\", $this->id_manga, PDO::PARAM_INT);\n\t $result->execute();\n }",
"public function deleteMeta($iIdMeta) {\n\t\tif ($this->delete ( $this->getPrimary () . '=' . $iIdMeta . ' AND ' . $this->_foreign . '=' . $this->iIdNameSpace ) != 0) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}"
] | [
"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.57386756",
"0.57220083",
"0.5699982",
"0.5678582",
"0.56704885",
"0.5647253",
"0.55951184",
"0.5589749",
"0.55857587"
] | 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 }\n return $this->success($trans);\n }",
"function LocalizarTransacciones($control_number,$prefijo,$base_origen){\nglobal $db_path,$Wxis,$xWxis,$wxisUrl,$arrHttp,$msgstr;\n\t$tr_prestamos=array();\n\t$formato_obj=$db_path.\"trans/pfts/\".$_SESSION[\"lang\"].\"/loans_display.pft\";\n\tif (!file_exists($formato_obj)) $formato_obj=$db_path.\"trans/pfts/\".$lang_db.\"/loans_display.pft\";\n\t$query = \"&Expresion=\".$prefijo.\"_P_\".$control_number.\"&base=trans&cipar=$db_path\".\"par/trans.par&Formato=\".$formato_obj;\n\t$IsisScript=$xWxis.\"cipres_usuario.xis\";\n\tinclude(\"../common/wxis_llamar.php\");\n\t$prestamos=array();\n\tforeach ($contenido as $linea){\n\t\tif (trim($linea)!=\"\"){\n\t\t\t$l=explode('^',$linea);\n\t\t\tif (isset($l[13])){\n\t\t\t\tif ($base_origen==$l[13])\n\t\t\t\t\t$tr_prestamos[]=$linea;\n\t\t\t}else{\r\t\t\t\t$tr_prestamos[]=$linea;\r\t\t\t}\r }\n\t}\n\treturn $tr_prestamos;\n}",
"public function getAllTransaksi()\n {\n return $this->db->order_by('idOrder', 'DESC')->get_where('orders', ['status' => 1])->result_array();\n }",
"public function getTransactions() {\n return $this->trans;\n }",
"public function transferidos()\n\t{\n\t\t$consulta = $this->db->query(\"\n\t\t\t\tSELECT tr.*, i.descricao, DATE_FORMAT(tr.data_lan, '%d/%m/%Y') as data_lan\n\t\t\t\tFROM estoque_transferencia tr\n\t\t\t\tLEFT JOIN estoque_itemconsumo i ON tr.cod_itemconsumo = i.codigo\n\t\t\t\tWHERE\n\t\t\t\ti.descricao IS NOT NULL\n\t\t\t\tGROUP BY tr.cod_transferencia\n\t\t\t\");\n\n\t\tif($consulta)\n\t\t{\n\t\t\treturn $consulta;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t}",
"public function getTransactions();",
"public function getTransactions();",
"public function getTransactions();",
"public function getTranslations(): array;",
"public function testListTransactions()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }",
"public function getAllTransactions(){\n \t$transactions = Transaction::orderBy('id', 'DESC')->get();\n \t$trans_box = [];\n \tif(count($transactions) > 0){\n \t\tforeach ($transactions as $tl) {\n \t\t\t$user = User::where('id', $tl->user_id)->first();\n \t\t\tif($user !== null){\n \t\t\t\t$data = [\n \t\t\t\t\t'id' \t\t\t=> $tl->id,\n \t\t\t\t\t'name' \t\t\t=> $user->name,\n \t\t\t\t\t'email' \t\t=> $user->email,\n \t\t\t\t\t'description' \t=> $tl->name,\n \t\t\t\t\t'trans_ref'\t\t=> $tl->ref,\n \t\t\t\t\t'amount' \t\t=> number_format($tl->amount, 2),\n \t\t\t\t\t'last_updated' => $tl->updated_at->diffForHumans(),\n \t\t\t\t\t'date' \t\t\t=> $tl->created_at->toDateTimeString(),\n \t\t\t\t];\n\n \t\t\t\tarray_push($trans_box, $data);\n \t\t\t}\n \t\t}\n \t}\n\n \t// return\n \treturn $trans_box;\n }",
"public function get_tx_ids()\n {\n\n $transaction_id = UserMembership::all()->pluck('transaction_id')->toArray();\n\n foreach ($transaction_id as $tx_id){\n // El número máximo de IDs de transacciones a devolver de 1 a 100. (por defecto: 25)\n $txid = implode('|',$transaction_id);\n }\n\n // Create a new API wrapper instance\n $cps_api = new CoinpaymentsAPI($this->private_key, $this->public_key, $this->format);\n\n // Desde qué transacción # comenzar (para la iteración/paginación.) (por defecto: 0, comienza con sus transacciones más recientes.)\n $full = 1;\n\n // Make call to API to create the transaction\n try {\n $transaction_response = $cps_api->SearchAllTransaction($txid, $full);\n } catch (Exception $e) {\n echo 'Error: ' . $e->getMessage();\n exit();\n }\n\n if ($transaction_response['error'] == 'ok') {\n // Success!\n $i=0;\n $j=0;\n foreach ($transaction_response['result'] as $key=>$id_transaction) {\n\n $update_status = UserMembership::where('transaction_id', $key)->first();\n if ($id_transaction['status'] == 100){\n $update_status->status = 'A';\n\n if ($update_status->save()) {\n $i++;\n }\n\n }else {\n $j++;\n }\n\n $status_payment = new MembershipPaymentStatus();\n $status_payment->id_user_membership = $update_status->id;\n $status_payment->id_transaction = $key;\n $status_payment->status = $id_transaction['status'];\n $status_payment->status_description = $id_transaction['status_text'];\n $status_payment->type_coin = $id_transaction['coin'];\n $status_payment->payment_received = $id_transaction['amount'];\n $status_payment->save();\n }\n\n echo 'Pagos confirmados : '.$i.' Pagos por confirmar : '.$j;\n } else {\n // Something went wrong!\n echo 'Error: ' . $transaction_response['error'];\n\n return back();\n }\n }",
"function get_all_transaksi_sewa()\n {\n $this->db->order_by('ID_TRAKSAKSI', 'desc');\n return $this->db->get('transaksi_sewa')->result_array();\n }",
"private function getTranslations()\n\t{\n\t\t$this->translations = $this->wpml->getAllTranslations($this->data['post_id']);\n\t}",
"public function hasTransactions();",
"function getAllTranslations () {\n\t\t$fullTranslationTableName = $this->_db->getPrefix ().'translatedGroups';\n\t\t$ID = $this->getID ();\n\t\t$sql = \"SELECT language_code FROM $fullTranslationTableName WHERE group_id='$ID' ORDER BY language_code ASC\";\n\t\t$q = $this->_db->query ($sql);\n\t\tif (! isError ($q)) {\n\t\t\t$lCodes = array ();\n\t\t\twhile ($row = $this->_db->fetchArray ($q)) {\n\t\t\t\t$lCodes[] = $row['language_code'];\n\t\t\t}\n\t\t\treturn $lCodes;\n\t\t} else {\n\t\t\treturn $q;\n\t\t}\n\t}",
"function chequear_conflictos()\n\t{\n\t\t$importador_tablas = new toba_importador_tablas($this->dir_tablas.self::nombre_plan, $this->db);\t\t\t\t\t\n\t\t$importador_componentes = new toba_importador_componentes($this->dir_componentes.self::nombre_plan, $this->db);\t\t\n\t\t\n\t\t//Ejecuto todo dentro de una transaccion destinada a abortarse, \n\t\t//esto me permite resolver algunas cuestiones temporales que el chequeo a puro registro no.\n\t\t$this->db->abrir_transaccion();\t\t\n\t\t\n\t\t//Analizo los conflictos\n\t\t$this->analizar_conflictos($importador_tablas);\n\t\t$this->analizar_conflictos($importador_componentes);\n\t\t\n\t\t//Aborto la transaccion\n\t\t$this->db->abortar_transaccion();\n\t\t\n\t\t//Guardo un archivo con el log de los conflictos\n\t\t$path_log = $this->dir.'logs/conflictos.log';\n\t\t$reg_conflictos = self::get_registro_conflictos();\n\t\tif ($this->consola) {\n\t\t\t$this->consola->mensaje($reg_conflictos->get_reporte($path_log));\n\t\t} else {\n\t\t\treturn $reg_conflictos;\n\t\t}\n\t}",
"public function collectTransactions(){ }",
"public function collectTransactions() {}",
"static function getTruyenTranh(){\n $list=[];\n $db=DB::getInstance();\n $query= $db->query('SELECT * FROM truyen WHERE LoaiTruyen=0 ORDER BY LuotLike desc');\n foreach($query-> fetchAll() as $item){\n $tr= new Truyen($item['IDTruyen'], $item['TenTruyen'], $item['MoTa'], $item['SoChuong'],$item['LuotLike'], $item['AnhBia'],$item['TinhTrang'],$item['IDTacGia'],$item['LoaiTruyen'],$item['NgayDang']);\n $list[] = $tr;\n }\n return $list;\n }",
"abstract function getListTransportation();",
"public function index()\n {\n $data['transaccion'] = $this->{$this->model}->listar_transaccion();\n foreach ($data['transaccion'] as $key => $confirmacion){\n $confirmacion->Confirmacion = ($confirmacion->Confirmacion == 1) ? 'Aprobada' : 'No-Aprobada';\n }\n $this->load->view($this->views.'transacciones',$data);\n }",
"static function translationList()\n {\n $translationList = array();\n $languageList = eZContentLanguage::fetchList();\n\n foreach ($languageList as $language) {\n $translationList[] = $language->localeObject();\n }\n\n return $translationList;\n }",
"public function getTransaccion()\n {\n return $this->transaccion;\n }",
"public function getTransaccion()\n {\n return $this->transaccion;\n }",
"public function getTranslations(): array\n {\n return $this->translations;\n }",
"public function testTranscriptsList()\n {\n }",
"public function all()\n {\n return $this->translations;\n }",
"function bank_lister_prestas(){\n\tstatic $prestas = null;\n\tif (is_array($prestas))\n\t\treturn $prestas;\n\n\t$prestas = array();\n\t$regexp = \"(abonnement|acte)\\.php$\";\n\tforeach (creer_chemin() as $d){\n\t\t$f = $d . \"presta/\";\n\t\tif (@is_dir($f)){\n\t\t\t$all = preg_files($f, $regexp);\n\t\t\tforeach($all as $a){\n\t\t\t\t$a = explode(\"/presta/\",$a);\n\t\t\t\t$a = end($a);\n\t\t\t\t$a = explode(\"/\",$a);\n\t\t\t\tif (count($a)==3 AND $a[1]=\"payer\"){\n\t\t\t\t\t$prestas[reset($a)] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tksort($prestas);\n\t// a la fin\n\tforeach(array(\"cheque\",\"virement\",\"simu\") as $m){\n\t\tif (isset($prestas[$m])){\n\t\t\tunset($prestas[$m]);\n\t\t\t$prestas[$m] = true;\n\t\t}\n\t}\n\tif (isset($prestas['gratuit'])){\n\t\tunset($prestas['gratuit']);\n\t}\n\n\t$prestas = array_keys($prestas);\n\treturn $prestas;\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.54353243",
"0.54208755",
"0.5400272",
"0.53764445",
"0.53764445",
"0.5372849",
"0.53580785",
"0.5352547",
"0.53493434"
] | 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 $transaksi)\n {\n //\n }",
"public function edit($id)//chamado qunado pretende editar algum valor\n {\n //\n }",
"public function editar($id = null) {\n\n\t\t$this->Cargo->id = $id;\n\t\tif (!$this->Cargo->exists()) {\n\t\t\tthrow new NotFoundException(__('Invalid Cargo'));\n\t\t}\n\t\tif ($this->request->is('post') || $this->request->is('put')) {\n\t\t\tif ($this->Cargo->save($this->request->data)) {\n\t\t\t\t$this->Session->setFlash(__('El Servicio ha sido actualizado','flash_custom'));\n\t\t\t\t$this->redirect(array('action' => 'index'));\n\t\t\t} else {\n\t\t\t\t$this->Session->setFlash(__('El Servicio no puede ser actualizado. Intente otra vez.', 'flash_error'));\n\t\t\t}\n\t\t} else {\n\t\t\t$this->request->data = $this->Cargo->read(null, $id);\n\t\t}\n\t}",
"public function edit($id) // editar\n {\n //\n }",
"public function destaquePlato($id,$destaque){\n\n $data = array(\n 'en_destaque' => $destaque,\n );\n $this->tableGateway->update($data, array('in_id' => $id));\n \n// var_dump($id);\n// var_dump($destaque);exit;\n }",
"public function edit($id)\n {\n //formulario que permite modificar los datos \n }",
"public function edit($id) // modifica\n {\n \n }",
"public function editarComent(){\n\t\t \n$sql=\"Update usuarios set id_usuario=$this->id_usuario,observaciones='$this->observaciones' where id_usuario=\".$this->id_usuario;\n\t\t $this->con->query($sql);\n\t\t \n\t\t \n\t\t }",
"public function edit($id)\n {\n $transaction = Transaction::findOrFail($id);\n $this->transcation_id = $id;\n $this->Order_Id = $transaction->Order_Id;\n $this->Item_Id = $transaction->Item_Id;\n $this->Sequence = $transaction->Sequence;\n $this->Keterangan = $transaction->Keterangan;\n \n \n $this->openModal();\n }",
"function editar($id){\r\n \r\n\tif (ehPOST()) {\r\n $pagamento = $_POST[\"descricao\"];\r\n editarPagamento($pagamento);\r\n redirecionar(\"formapaga/listarPagamentos\");\r\n }else{\r\n $dados[\"pagamento\"] = pegarPagamentoPorId($id);\r\n exibir(\"pagamento/formulario\", $dados);\r\n }\r\n }",
"public function edit($id)\n {\n $messages = [\n 'required' => 'El campo: :attribute, es requerido.',\n 'string' => 'El campo: :attribute, debe de ser texto.',\n 'integer' => 'El campo: :attribute, debe contener números enteros.',\n 'exists' => 'El valor del campo: :attribute no existe en la tabla que hace referencia.',\n ];\n $validator = Validator::make($request->all(), [\n 'nombre' => 'required|string',\n 'edad' => 'required|integer',\n 'dueño_id' => 'required|exists:dueños,id',\n 'raza' => 'required|string',\n ], $messages);\n \n if ($validator->fails())\n {\n $response = array('response' => $validator->messages(), 'success' => false);\n return $response->json(,412);\n }\n else\n {\n $mascotaActualizar = Mascotas::findOrFail($id);\n $mascotaActualizar->nombre = $request->input('nombre');\n $mascotaActualizar->edad = $request->input('edad');\n $mascotaActualizar->dueño_id = $request->input('dueño_id');\n $mascotaActualizar->raza = $request->input('raza');\n $mascotaActualizar->save();\n return response()->json($mascotaActualizar)->setStatusCode(201);\n }\n }",
"function edit($id)\n { \n // check if the transaction exists before trying to edit it\n $data['transaction'] = $this->Transaction_model->get_transaction($id);\n \n if(isset($data['transaction']['id']))\n {\n if(isset($_POST) && count($_POST) > 0) \n { \n $params = array(\n\t\t\t\t\t'userId' => $this->input->post('userId'),\n\t\t\t\t\t'amount' => $this->input->post('amount'),\n\t\t\t\t\t'type' => $this->input->post('type'),\n\t\t\t\t\t'transactionMessage' => $this->input->post('transactionMessage'),\n );\n\n $this->Transaction_model->update_transaction($id,$params); \n redirect('transaction/index');\n }\n else\n {\n $data['_view'] = 'transaction/edit';\n $this->load->view('layouts/main',$data);\n }\n }\n else\n show_error('The transaction you are trying to edit does not exist.');\n }",
"public function edit($id)\n {\n $record = Caso::findOrFail($id);\n $this->selected_id = $id;\n $this->fecha_pcr = $record->fecha_pcr;\n $this->resultado_pcr = $record->resultado_pcr;\n $this->inicio_qrtna = $record->inicio_qrtna;\n $this->fin_qrtna = $record->fin_qrtna;\n $this->extension_qrtna = $record->extension_qrtna;\n $this->tto_farmacologico = $record->tto_farmacologico;\n $this->observaciones = $record->observaciones;\n $this->usuario = $record->usuario_id;\n $this->paciente = $record->paciente_id;\n $this->action = 2;\n\n }",
"function editar($id) {\r\n $this->_vista->setJs('bootstrapValidator.min');\r\n $this->_vista->setCss('bootstrapValidator.min');\r\n $this->_vista->setJs('validarForm', 'documentoEspacio');\r\n\r\n /* declarar e inicializar variables */\r\n $this->_vista->titulo = 'DocumentoEspacio-Editar';\r\n $this->_vista->errorForm = array();\r\n $id = $this->filtrarEntero($id);\r\n $this->_vista->documento = new DocumentoEspacio();\r\n\r\n /* logica */\r\n $this->_vista->documento->buscar($id);\r\n\r\n // comprobar que el registro exista\r\n if ($this->_vista->documento->getId() == -1) {\r\n $this->redireccionar('error/tipo/Registro_NoExiste');\r\n }\r\n\r\n //lista\r\n $this->_vista->listaTiposDocumento = $this->_vista->documento->getTipoDocumento()->lista();\r\n\r\n $this->_vista->render('documentoEspacio/editar');\r\n }",
"public function editarAction()\n {\n $id = $this->params('id');\n $idBeneficiario =$this->params('idBeneficiario');\n $em =$this->getEntityManager();\n \n $registroDeEntrega = $em->find('Application\\Entity\\RegistroDeEntrega', $id); \n $registroDeEntregaForm = new RegistroDeEntregaForm($em); \n $registroDeEntregaForm->bind($registroDeEntrega);\n if ($this->request->isPost()){\n $registroDeEntregaForm->setData($this->request->getPost());\n \n if($registroDeEntregaForm->isValid()) {\n \n $em->persist($registroDeEntrega);\n $em->flush();\n \n $this->flashMessenger()->addSuccessMessage(\n sprintf('Detalle de entrega \"%s\" actualizado correctamente', $registroDeEntrega->getIdRegistro()));\n return $this->redirect()->toRoute('index_asistencia',array('beneficiario'=>$idBeneficiario)); \n } \n }\n\n return new ViewModel([\n 'registroDeEntrega'=>$registroDeEntrega,\n 'form'=>$registroDeEntregaForm, \n 'idBeneficiario' =>$idBeneficiario\n ]);\n }",
"public function edit($id)\n {\n $articulo = Articulo::find($id);\n $articulo->estado = 'no se fabrica';\n $articulo->save();\n $dato_anterior = \"nombre: \".$articulo->nombre.\" || alto: \".$articulo->alo.\" || ancho: \".$articulo->ancho.\" || tipo_id:\".$articulo->tipo_id.\" \".$articulo->talle_id.\" || color_id: \".$articulo->color_id.\" || costo:\".$articulo->costo.\" || margen:\".$articulo->margen.\" || ganancia:\".$articulo->ganancia.\" || precioVta:\".$articulo->precioVta.\" || estado:\".$articulo->estado;\n /** Auditoria cambio de estado */\n $auditoria = new Auditoria();\n $auditoria->tabla = \"articulos\";\n $auditoria->elemento_id = $articulo->id;\n $autor = new Auth();\n $autor->id = Auth::user()->id; //Conseguimos el id del usuario actualmente logueado\n $auditoria->usuario_id = $autor->id; //lo asignamos a la auditorias\n $auditoria->accion = \"modificacion\";\n $auditoria->dato_anterior = $dato_anterior;\n $auditoria->save();\n Flash::error(\"Se cambio el estado del articulo \".$articulo->nombre.\" a 'inactivo'.\");\n return redirect()->route('admin.articulos.index');\n }",
"function Editar($id, $id_ciudad, $fecha, $placa_vehiculo, $numero_identificacion_conductor, $ayudantes, $id_ruta, $clientes) {\n $fecha=date(\"Y-m-d H:i:s\");\n $query=\"UPDATE \".self::$table.\" SET id_ciudad=$id_ciudad, fecha='$fecha', placa_vehiculo='$placa_vehiculo',\n numero_identificacion_conductor='$numero_identificacion_conductor', ayudantes='$ayudantes',\n id_ruta='$id_ruta', fecha_modificacion='$fecha', clientes='$clientes' WHERE id=$id\";\n return DBManager::execute($query);\n }",
"public function editarEquipamento($equipid)\n {\n /* verifica se existe acao no botao */\n if(isset($_POST['btn_salvar']))\n {\n /* coleta as informacoes */\n $equip = isset($_POST['txt_equipamento']) ? $this->tratamento($_POST['txt_equipamento']) : '';\n $idEquip = isset($_POST['opc_fabricante']) ? $this->tratamento($_POST['opc_fabricante']) : 0;\n \n /* montar query */\n $query = \"update tb_equipamento set nome = '{$equip}' , id_fabricante = {$idEquip} where id = {$equipid}\";\n \n /* verifica se realizou o update */\n if ($this->db->query($query))\n {\n echo \"<div class='mensagemSucesso'><span>Alterado com sucesso!</span></div>\";\n $login_uri = HOME_URI . \"/pesquisar/equipamentocadastrado/\";\n /* redireciona a pagina */\n echo '<script type=\"text/javascript\">setTimeout(function(){window.location.href = \"' . $login_uri . '\"},1500);</script>';\n }\n else\n {\n echo \"<div class='mensagemError'><span>Erro durante o salvamento.</span></div>\";\n }\n }\n }",
"function editar($id) {\r\n $this->_vista->setJs('bootstrapValidator.min');\r\n $this->_vista->setCss('bootstrapValidator.min');\r\n $this->_vista->setJs('validarForm', 'permisoRol');\r\n\r\n /* declarar e inicializar variables */\r\n $this->_vista->titulo = 'PermisoRol-Editar';\r\n $this->_vista->errorForm = array();\r\n $id = $this->filtrarEntero($id);\r\n $this->_vista->permisoRol = new PermisoRol();\r\n\r\n /* logica */\r\n $this->_vista->permisoRol->buscar($id);\r\n\r\n // comprobar que el registro exista\r\n if ($this->_vista->permisoRol->getId() == -1) {\r\n $this->redireccionar('error/tipo/Registro_NoExiste');\r\n }\r\n\r\n //llenar los select\r\n $this->_vista->listaRoles = $this->_vista->permisoRol->getRol()->lista();\r\n $this->_vista->listaPermisos = $this->_vista->permisoRol->getPermiso()->lista();\r\n\r\n $this->_vista->render('permisoRol/editar');\r\n }",
"public function edit($id)\n {\n $arregloBuscarTrabajos=['eliminado'=>0];\n $arregloBuscarTrabajos = new Request($arregloBuscarTrabajos);\n $arregloBuscarPersonas=['eliminado'=>0];\n $arregloBuscarPersonas = new Request($arregloBuscarPersonas);\n $trabajoController = new TrabajoController();\n $personaController = new PersonaController();\n $listaTrabajos=$trabajoController->buscar($arregloBuscarTrabajos);\n $listaTrabajos = json_decode($listaTrabajos);\n $listaPersonas=$personaController->buscar($arregloBuscarPersonas);\n $listaPersonas = json_decode($listaPersonas);\n $valoracion=Valoracion::find($id); //Buscamos el elemento para cargarlo en la vista para luego editarlo\n return view('valoracion.edit',compact('valoracion'),['listaTrabajos'=>$listaTrabajos,'listaPersonas'=>$listaPersonas]);\n }",
"public function Editar()\n {\n // section 10-25-2--51--31a7ca5b:13394855662:-8000:0000000000001108 begin\n\t\tif (@$_REQUEST[Aceptar]) {\t\t\t\t\t\t\t\t// Boton Aceptar\n\t\t\t\t$this->miModelo->updateRow(@$_REQUEST);\t\t// Graba en el modelo\n\t\t\t\t$this->mensage = \"El registro ha sido modificado\";\n\t\t\t\t$this->Lista();\t\t\t\t\t\t\t\t\t// Muestra la lista\n\t\t\t}\n\t\t\telse {\t\n\t\t\t\t\t$datos = $this->miModelo->searchById(@$_REQUEST[id]);\n\t\t\t\t\t$this->miVista->showPlantilla(\"VistaPlantillaFormaEditarProductos.php\",$datos);\n\t\t\t}\t \n // section 10-25-2--51--31a7ca5b:13394855662:-8000:0000000000001108 end\n }",
"public function edit($idOrdenServicio)\n {\n \n\n }",
"public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('FocalAppBundle:DatosGenerales')->find($id);\n $codMuni = $entity->getCodMunicipio(); \n $encsel = $entity->getIdEncuestador();\n $comsel = $entity->getCodColonia();\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find DatosGenerales entity.');\n }\n \n $dsql =\"select distinct co.codComunidad, co.nombre \"\n . \"from FocalAppBundle:AdComunidades co \"\n . \"where co.codMunicipio = :municipio \"\n . \"order by co.nombre\";\n $query = $em->createQuery($dsql);\n $query ->setParameter('municipio', $codMuni);\n $comunidades = $query->getResult();\n \n $editForm = $this->createEditForm($entity, $entity->getCodMunicipio());\n //$deleteForm = $this->createDeleteForm($id);\n\n return $this->render('FocalAppBundle:DatosGenerales:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $editForm->createView(),\n 'idenc' => $entity->getIdEnc(),\n 'comunidades' => $comunidades,\n 'encsel' => $encsel,\n 'comsel' => $comsel,\n //'delete_form' => $deleteForm->createView(),\n ));\n }",
"public function edit($id)\n {\n Cart::instance($this->instancia)->destroy();\n Cart::instance($this->instancia_carro_procesa)->destroy();\n $data['proceso'] = 'edita';\n $data['instancia'] = $this->instancia;\n $data['var'] = $this->var;\n $data['documentosCompra'] = PurchaseDocument::crsdocumentocom($this->ventana);\n $data['tiposBienServicio'] = GoodsServicesType::all();\n $data['impuestos'] = Taxes::crsimpuesto();\n $data['impuestos2'] = Taxes::crsimpuesto2();\n $data['impuestos3'] = Taxes::crsimpuesto3();\n $data['impuestos4'] = Taxes::crsimpuesto4();\n $data['docxpagar'] = DocumentToPay::findOrFail($id);\n $data['ingresoAlmacen'] = WarehouseIncome::where('docxpagar_id', $id)->first();\n $data['movctactes'] = CurrentAccountMovement::MuestraHistorial($id);\n $data['docxpagarReferencia'] = '';\n $data['referencia'] = Reference::where('parent_id', $id)->first();\n if ($data['referencia']) {\n $data['docxpagarReferencia'] = DocumentToPay::findOrFail($data['referencia']->referencia_id);\n }\n $data['tipocompras'] = PurchasesType::all();\n $data['monedas'] = Currency::all();\n $data['period'] = Period::where('descripcion', Session::get('period'))->first();\n $data['route'] = route('creditdebitnotes');\n $data['terceros'] = Customer::all();\n $data['condicionpagos'] = PaymentCondition::all();\n\n $this->carga_carros($id, $this->instancia);\n $data['view'] = link_view('Compras', 'Transacción', 'Notas de Crédito/Débito', '');\n $data['sucursales'] = Subsidiaries::all();\n return view('creditdebitnotes.edit', $data);\n }",
"public function edit($id){}",
"public function EditarIdiomaId($parametros) {\n try {\n //Pesquisa o id\n $tabela = $this->getTable()->find($parametros['cod_id']);\n\n //Verifica se o registro foi localizado\n if ($tabela) {\n //Recebe os campos da tabela preenchidos\n $campos_tabela = $this->setValues($tabela, $parametros, UPDATE);\n\n //Percorre os campos da tabela\n foreach ($campos_tabela as $chave => $valor) {\n //Atribui os valores resgatados para a tabela em questão\n $this->$chave = $campos_tabela->$chave;\n }\n\n //Atualiza o banco de dados\n $tabela->save();\n\n //Salva no log de alterações\n TableFactory::getInstance('LogsAlteracoes')->logAlteracoes($this->getTable()->getTableName(), $parametros['cod_id'], 'A');\n\n //Retorna true em caso de sucesso\n return true;\n } else {\n return false;\n }\n } catch (Doctrine_Exception $e) {\n echo $e->getMessage();\n }\n }",
"public function editar($id)\n {\n // Llamamos la funcion get_ficha() del modelo\n // function index($ficha=FALSE, $datos_ficha=null, $result=null, $edita=FALSE)\n\n $ficha = $this->Factura_model->get_ficha($id);\n $this->index(0, FALSE, $ficha, NULL, TRUE);\n }"
] | [
"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.65479976",
"0.653677",
"0.6526315",
"0.6519424",
"0.6506022",
"0.64851993",
"0.6465646",
"0.6458619",
"0.64511734",
"0.6438594"
] | 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 FROM promedios_hextras\n WHERE id_promedio_hextras = ? \n \";\n $stm = $this->pdo->prepare($query);\n $stm->bindValue(1, $id);\n $stm->execute();\n //$lista = $stm->fetchAll();\n $stm = null;\n return true;\n }",
"public function deleteTrans($id) {\n try {\n $ashop = AshopTransaction::find($id);\n $ashop->delete();\n } catch(\\Illuminate\\Database\\QueryException $ex){ \n $err[] = $ex->getMessage();\n }\n return back();\n }",
"function eliminar ($id){\n $data = $this->model->eliminar($id);\n return $data;\n }",
"public function remove($id) \n {\n $db = DBConnection::getConnection();\n $this->find($id); //Valido primero si existe el registro a eliminar...\n $query = \"DELETE FROM tipos WHERE idtipo = ?\";\n $stmt = $db->prepare($query);\n $status = $stmt->execute([$id]);\n return $stmt->rowCount();\n }",
"public function eliminar($id)\n {\n $obj_cliente2['operacion'] = \"ELIMINACIÓN\";\n $obj_cliente2['usuario'] =1;\n $obj_cliente2['host'] = \"LOCALHOST\";\n $obj_cliente2['fechaRegistro'] =date('Y-m-d H:i:s');\n $obj_cliente2['fechaModificacion'] = \"\";\n $obj_cliente2['tabla'] = \"CLIENTE\";\n $this->db->insert('bitacora', $obj_cliente2);\n\n $this->db->where('id', $id);\n return $this->db->update('cliente', array('estado' => get_state('INACTIVO')));\n\n \n }",
"public function eliminar($id) {\n\n foreach ($this->myCarrito->get_content() as $items) {\n if ($items['id'] == $id) {\n $this->myCarrito->remove_producto($items['unique_id']);\n }\n }\n\n redirect('Carrito', 'location', 301);\n }",
"public function eliminaidiomaAction(){\n $this->_helper->layout()->disableLayout();\n $this->_helper->viewRenderer->setNoRender(true); \n /* [PARAMETROS] */\n $id = $this->_getParam('id',0); \n /* [PROCESAR] */\n $idioma = new Default_Model_DbTable_Idioma();\n if($idioma->eliminar($id)){\n /* [EXITO] */\n $exito = new Zend_Session_Namespace(\"exito\");\n $exito->mensaje = true; \n /* [REDIRECCIONAR] */\n $this->_redirect('/mantenedor/idioma/'); \n }else{\n $this->view->error = true;\n }\n \n }",
"function eliminarDetalle($id){\n $i = DB::table('AYD2_DETALLE_201213562')->where('AYD2_DETALLE_ID',$id)->delete();\n DB::commit();\n return Redirect::action('Controller@getDetalles');\n }",
"public function dodeleteh_jual($idtrans)\n\t\t{\n\t\t\t$this->db->where('KD_TRANSAKSI_HJUAL',$idtrans);\n\t\t\t$this->db->delete('h_jual');\n\t\t}",
"public function destroy($id){\n // $trans = Transaction::where('courier_id', $id)->get();\n // foreach ($trans as $key) {\n // TransactionDetail::where('transaction_id', $key->id)->delete();\n // }\n // Transaction::where('courier_id', $id)->delete();\n Courier::with('transaksi')->where('couriers.id',$id)->delete();\n // $couriers=Courier::find($id);\n return redirect('courier')->with('delete','Data Telah Dihapus');\n \n }",
"public function borrarActividad(){\n \n // verificamos que hemos recibido los parámetros desde la vista de listado \n if (isset($_GET['id']) && (is_numeric($_GET['id']))) {\n $id = $_GET[\"id\"];\n \n //Realizamos la operación de suprimir el usuario con el id=$id\n $resultModelo = $this->modelo->delActividad($id);\n //Analizamos el valor devuelto por el modelo para definir el mensaje a \n //mostrar en la vista listado\n if ($resultModelo[\"correcto\"]) :\n $this->mensajes[] = [\n \"tipo\" => \"success\",\n \"mensaje\" => \"Se eliminó correctamente la Actividad $id\"\n ];\n else :\n $this->mensajes[] = [\n \"tipo\" => \"danger\",\n \"mensaje\" => \"La eliminación del usuario no se realizó correctamente!<br/>({$resultModelo[\"error\"]})\"\n ];\n endif;\n } else { //Si no recibimos el valor del parámetro $id generamos el mensaje indicativo:\n $this->mensajes[] = [\n \"tipo\" => \"danger\",\n \"mensaje\" => \"No se pudo acceder al id de la actividad a eliminar\"\n ];\n }\n //Realizamos el listado de los usuarios\n $this->listadoActividades();\n }",
"function eliminar($idconvocatoria)\n {\n $sql = \"UPDATE convocatoria SET estado='A' WHERE idconvocatoria = \" . $idconvocatoria ;\n\tglobal $cnx;\n return $cnx->query($sql); \t \t\n }",
"function deletar($id){\r\n $msg = deletarPagamento($id);\r\n redirecionar(\"formapaga/listarPagamentos\");\r\n }",
"public function destroy($id) //eliminar plan de auditoría\n {\n try\n {\n global $id1;\n $id1 = $id;\n global $res;\n $res = 1;\n DB::transaction(function() {\n\n $logger = $this->logger;\n //primero obtenemos audit_audit_plan para hacer las validaciones\n $audit_audit_plan = DB::table('audit_audit_plan')\n ->where('audit_plan_id','=',$GLOBALS['id1'])\n ->select('id')\n ->get();\n $rev2 = 0; //variable local para ver \n foreach ($audit_audit_plan as $audit)\n {\n //vemos si tiene issues\n $rev = DB::table('issues')\n ->where('audit_audit_plan_id','=',$audit->id)\n ->select('id')\n ->get();\n if (empty($rev))\n {\n //ahora vemos notas de supervisor\n $rev = DB::table('supervisor_notes')\n ->where('audit_audit_plan_id','=',$audit->id)\n ->select('id')\n ->get();\n if (empty($rev))\n {\n //audit_audit_plan_audit_program\n $rev = DB::table('audit_audit_plan_audit_program')\n ->where('audit_audit_plan_id','=',$audit->id)\n ->select('id')\n ->get();\n if (empty($rev))\n {\n //podemos eliminar\n $rev2 = 0;\n }\n else\n {\n $rev2 = 1;\n }\n }\n else\n {\n $rev2 = 1;\n }\n }\n else\n {\n $rev2 = 1;\n }\n if ($rev2 == 1)\n {\n break;\n }\n }\n if ($rev2 == 0)\n {\n //se puede eliminar\n //primero eliminaremos todo lo que tiene que ver con audit_audit_plan, por lo que volvemos a recorrer todas las audit_audit_plan\n foreach ($audit_audit_plan as $audit)\n {\n //eliminamos audit_risk\n DB::table('audit_risk')\n ->where('audit_audit_plan_id','=',$audit->id)\n ->delete();\n //ahora eliminamos audit_audit_plan\n DB::table('audit_audit_plan')\n ->where('id','=',$audit->id)\n ->delete();\n }\n\n $name = \\Ermtool\\Audit_plan::name($GLOBALS['id1']);\n //eliminamos audit_plan_risk\n DB::table('audit_plan_risk')\n ->where('audit_plan_id','=',$GLOBALS['id1'])\n ->delete();\n //eliminamos audit_plan_stakeholder\n DB::table('audit_plan_stakeholder')\n ->where('audit_plan_id','=',$GLOBALS['id1'])\n ->delete();\n //ahora eliminamos audit_plan\n DB::table('audit_plans')\n ->where('id','=',$GLOBALS['id1'])\n ->delete();\n $GLOBALS['res'] = 0;\n\n $logger->info('El usuario '.Auth::user()->name.' '.Auth::user()->surnames. ', Rut: '.Auth::user()->id.', ha eliminado el plan de auditoría con Id: '.$GLOBALS['id1'].' llamado: '.$name.' con fecha '.date('d-m-Y').' a las '.date('H:i:s'));\n }\n });\n return $res;\n }\n catch (\\Exception $e)\n {\n enviarMailSoporte($e);\n return view('errors.query',['e' => $e]);\n }\n }",
"public function eliminarelacionAction(){\n $this->_helper->layout()->disableLayout();\n $this->_helper->viewRenderer->setNoRender(true); \n /* [PARAMETROS] */\n $id = $this->_getParam('id',0); \n /* [PROCESAR] */\n $relacion = new Default_Model_DbTable_Relacion();\n if($relacion->eliminarelacion($id)){\n /* [EXITO] */\n $exito = new Zend_Session_Namespace(\"exito\");\n $exito->mensaje = true; \n /* [REDIRECCIONAR] */\n $this->_redirect('/mantenedor/relacion/'); \n }else{\n $this->view->error = true;\n }\n \n }",
"public function eliminaestadoAction(){\n $this->_helper->layout()->disableLayout();\n $this->_helper->viewRenderer->setNoRender(true); \n /* [PARAMETROS] */\n $id = $this->_getParam('id',0); \n /* [PROCESAR] */\n $estado = new Default_Model_DbTable_Estado();\n if($estado->eliminar($id)){\n /* [EXITO] */\n $exito = new Zend_Session_Namespace(\"exito\");\n $exito->mensaje = true; \n /* [REDIRECCIONAR] */\n $this->_redirect('/mantenedor/estado/'); \n }else{\n $this->view->error = true;\n }\n \n }",
"public function getElimarteledit(){\n\t $id = Input::get('id');\n\n\t $t_s = TelefonoSucursal::find($id);\n\t $t_s->delete();\n\n}",
"public function excluirPessoa($id)\n\t{\n\t\t$cmd = $this->pdo->prepare(\"DELETE FROM tbfaleconosco WHERE id_fale = :id\");\n\t\t$cmd->bindValue(\":id\",$id);\n\t\t$cmd->execute();\n\t}",
"public function destroy($id_so)\n {\n $solicitante =Solicitante::where('id',$id_so)->firstOrFail();\n $tramite = DB::table('Tramites')->pluck('idSolicitante');\n\n\n $encontrado=false;\n\n $resultado= \"Es imposible destruir el registro puesto que el Identificador: \".\"($id_so)\".\" perteneciente al Solicitante esta siendo referenciado en uno o mas Tramites\";\n \n foreach($tramite as $elemento){\n if ($elemento==$id_so)\n $encontrado=true;\n }\n\n if ($encontrado){ \n return redirect()->route('superuser.solicitantes-index')->with('advertencia',$resultado);\n }else{\n $solicitante->delete();\n return redirect()->route('superuser.solicitantes-index')\n ->with('danger','Solicitante Eliminado Satisfactoriamente'); \n }\n }",
"function eliminar($id){\n $i = DB::table('AYD2_CATEGORIA_201213562')->where('AYD2_CATEGORIA_ID',$id)->delete();\n DB::commit();\n return Redirect::action('Controller@getData');\n }",
"function make_remove($id){\n\t/*\tfor ($i=0;$i<count($this->table_names_modify);$i++){\n\t\t\t$this->modify_all_id_cat_vehicle($id,$this->table_names_modify[$i]);\n\t\t}\n\t\t//borramos todos aquellos registros en los que hay un id_user;\t\t\n\t\tfor ($i=0;$i<count($this->table_names_delete);$i++){\n\t\t\t$this->delete_all_id_cat_vehicle($id,$this->table_names_delete[$i]);\n\t\t}\n\t\t*/\n\t}",
"function deletar($id)\n \t{\n\t $this->db->where('auditoriaID', $id);\n\t $this->db->delete('NC');\n\n\t}",
"function eliminarAsegurado(){\r\n\t\t$this->procedimiento='res.ft_asegurado_ime';\r\n\t\t$this->transaccion='RES_ASE_ELI';\r\n\t\t$this->tipo_procedimiento='IME';\r\n\t\t\t\t\r\n\t\t//Define los parametros para la funcion\r\n\t\t$this->setParametro('id_asegurado','id_asegurado','int4');\r\n\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t$this->ejecutarConsulta();\r\n\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}",
"public function eliminarDespacho($id)\n {\n $despacho = \\App\\Transporte::find($id);\n $despacho->requerimientos()->get()->map(function($requerimiento) {\n $requerimiento->transporte()->dissociate();\n $requerimiento->save();\n });\n\n $despacho->delete();\n\n $msg = [\n \"meta\" => [\n \"title\" => \"Despacho programado eliminado\",\n \"msg\" => \"El despacho fue eliminado exitosamente\"\n ]\n ];\n\n return response()->json($msg);\n }",
"public function excluirAction(){\r\n \r\n // Recupera os parametros da requisição\r\n $params = $this->_request->getParams();\r\n \r\n // Instancia o modelo\r\n $grupoTransacoes = new WebGrupoTransacaoModel();\r\n \r\n // Captura o código da transação pai\r\n $pai_cd_grupo = Zend_Registry::get(\"pai_cd_grupo\");\r\n \r\n // Valida os dados obrigatórios\r\n if($pai_cd_grupo != \"\" && $params['cd_transacao'] != \"\") {\r\n // Monta a condição do where\r\n $where = \"CD_GRUPO = \" . $pai_cd_grupo . \" AND \" . \r\n \"CD_TRANSACAO = \" . $params[\"cd_transacao\"] . \" AND \" . \r\n \t\t \"TO_CHAR(DT_ACESSO_INI, 'DD/MM/YYYY') = '\" . $params[\"dt_acesso_ini\"] . \"'\";\r\n \r\n // Atualiza os dados\r\n $delete = $grupoTransacoes->delete($where);\r\n\r\n // Verifica se o registro foi excluído\r\n if($delete) {\r\n // Limpa os dados da requisição\r\n $params = $this->_helper->LimpaParametrosRequisicao->limpar();\r\n \r\n // Redireciona para o index\r\n $this->_forward(\"index\", null, null, $params);\r\n \r\n } else {\r\n // Se não conseguir excluir, retorna pra seleção do registro\r\n $this->_forward(\"selecionar\");\r\n }\r\n }\r\n \r\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.6348232",
"0.63403064",
"0.63392144",
"0.6333768",
"0.63125163",
"0.6307714",
"0.6307064",
"0.6301441",
"0.6289363",
"0.62878233"
] | 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\n }",
"public function getErrorMessage(): ?string;",
"public static function error()\n {\n\n printf(\"\\033[37;01;41m An Error Has Occured \\n \\033[00m\\033[37;41mAn action and provider is required \\033[0m \\n\\n\");\n self::help();\n }",
"abstract public function errorInfo();",
"public function getError() {}",
"public function getError() {}",
"Public Abstract Function getErrorAPI();",
"public function getError()\n\t{\n\t}",
"public function getErrorInfo();",
"public static function providersWrapperInvalidExpressionProviderInstance()\n {\n return 'The value returned by IQueryProvider::getExpressionProvider method must be an implementation'\n . ' of IExpressionProvider';\n }",
"public function lastError()\n {\n $this->notImplemented();\n }",
"private function AddErrorInfo()\n{\n $this->error .= 'Error: ';\n switch($this->type)\n {\n case 'mysql4':\n case 'mysql': $this->error .= '['.mysql_errno().'] '.mysql_error(); break;\n case 'sqlsrv': $err=end(sqlsrv_errors()); $this->error .= $err['message']; break;\n case 'mssql': $this->error .= mssql_get_last_message(); break;\n case 'pg': $this->error .= pg_last_error(); break;\n case 'ibase': $this->error .= ibase_errmsg(); break;\n case 'sqlite': $this->error .= '['.sqlite_last_error($this->con).'] '.sqlite_error_string(sqlite_last_error($this->con)); break;\n case 'db2': $this->error .= db2_conn_errormsg(); break;\n case 'oci': $e=oci_error(); $this->error .= $e['message']; break;\n }\n}",
"abstract protected function _getErrorString();",
"public function getErrorDescription()\n {\n if (array_key_exists(\"errorDescription\", $this->_propDict)) {\n return $this->_propDict[\"errorDescription\"];\n } else {\n return null;\n }\n }",
"public function getError();",
"public function getError();",
"public function getError();",
"public function getError();",
"public static function providersWrapperExpressionProviderMustNotBeNullOrEmpty()\n {\n return 'The value returned by IQueryProvider::getExpressionProvider method must not be null or empty';\n }",
"public function errorCode(): ?string;",
"protected function getDefaultMessage(): string\n {\n return 'Invalid params';\n }",
"public function providerForFunction()\n {\n return array(\n array(null, false, 'error message in here'),\n );\n }",
"public function prevError()\n {\n $this->notImplemented();\n }",
"public function error(string $message) {}",
"public function getLastError(): ?string;",
"function errorInfo()\n {\n return parent::errorInfo();\n }",
"abstract public function getErrorMessage();",
"public function error();"
] | [
"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.54051256",
"0.54026604",
"0.5396634",
"0.53555894",
"0.5352206",
"0.5345358",
"0.5326617",
"0.53255266",
"0.5325196"
] | 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 'IService.getQueryProvider returns invalid object.';\n }",
"protected final function getQueryErrorInfo()\n {\n if (is_null($this->PDOStatement)) {\n return false;\n } else {\n return $this->PDOStatement->errorInfo();\n }\n }",
"public function getErrorInfo();",
"public function message()\n {\n return 'Invalid condition found.';\n }",
"public static function getDatabaseQueryException(): string {\n\t\treturn static::$databaseQueryException;\n\t}",
"public function getErrorMsg()\r\n\t{\r\n\t\tif($this->getConnection() == null)\r\n\t\t{\r\n\t\t\tthrow new Lumine_Dialect_Exception('Conexão não setada');\r\n\t\t}\r\n\t\treturn $this->getConnection()->getErrorMsg();\r\n\t}",
"public function getErrorMessage(): ?string;",
"public static function providersWrapperNull()\n {\n return 'For custom providers, GetService should not return null for both IMetadataProvider and'\n . ' IQueryProvider types.';\n }",
"public function getErrorMessage() {\r\n\t\tif ($this->hasError()) {\r\n\t\t\treturn \"Anfrage:\\n{$this->sql}\\nAntwort:\\n{$this->errorString}\";\r\n\t\t}\r\n\r\n\t\treturn \"Kein Fehler aufgetreten.\";\r\n\t}",
"public function __toString()\n {\n if (trim($this->query) == '') {\n throw new Exception\\InvalidUsageException(__METHOD__ . ': Empty query given.');\n }\n\n return $this->query;\n }",
"public function getErrorMessage();",
"public function getErrorMessage();",
"public function getErrorMessage();",
"public function getExpressionProvider();",
"private function error_msg(){\n\t\t# Sanitize the user entered data to prevent any funny-business (re: SQL Injection Attacks)\n\t\t$_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\t\t\n\t\t//Build query to find email/user\n\t\t$q_findemail=\"select email from users where email='\".$_POST['email'].\"'\" ;\n\t\t\n\t\t$username=DB::instance(DB_NAME)->select_field($q_findemail);\n\t\n\t\tif(!$username){ //Check if email is registered\n\t\t\t$this->error_provided=\"Username \". $_POST['email'].\" is not registered\";\n\t\t}\n\t\telse //Email is registered but password supplied by user is incorrect\n\t\t{\n\t\t\t$this->error_provided=\"Password supplied for user is incorrect\";\n\t\t}\n\t\t\n\t}",
"public function getErrorInfo()\n {\n return $this->getConnection()->getErrorInfo();\n }",
"function get_query_error(){\n $err = $this -> query_err;//copy the query error in another variable\n //clear the original query error\n $this -> query_err = '';\n return $err;//return the error\n }",
"public static function providersWrapperContainerNameMustNotBeNullOrEmpty()\n {\n return 'The value returned by IMetadataProvider::getContainerName method must not be null or empty';\n }",
"abstract protected function _getErrorString();",
"protected function getDefaultMessage(): string\n {\n return 'Invalid params';\n }",
"public function getErrorInfo()\n {\n return $this->ErrorInfo;\n }",
"public function getError()\n {\n return $this->getParam('error', '');\n }",
"public function getError() : ?InvalidEmail;",
"public function sqlErrorString(){\n\t\treturn $this->getLastError();\n\t}",
"public function getErrorMessage()\n {\n return parent::getErrorMessage();\n }",
"public function getError(): string\n {\n $error_array = self::$statement->errorInfo();\n if (!is_array($error_array) || count($error_array) < 3) {\n return 'Generic error in PdoMySql::getError';\n }\n return $error_array[2];\n }",
"public function getExpression()\n {\n return $this->data->getExpression();\n }",
"public function getErrorMessage(): string;",
"protected function getErrorMsgTemplate()\n {\n return 'The function %s() is not present in PHP version %s or earlier';\n }"
] | [
"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.52217096",
"0.52025396",
"0.519829",
"0.51905364",
"0.518837",
"0.5186022",
"0.5183361",
"0.5166454",
"0.5149025"
] | 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 be null or empty';\n }",
"public function getExpressionProvider();",
"public function getExpression();",
"public function getExpression();",
"public function getExpression();",
"protected final function getQueryErrorInfo()\n {\n if (is_null($this->PDOStatement)) {\n return false;\n } else {\n return $this->PDOStatement->errorInfo();\n }\n }",
"public function getErrorInfo();",
"public function getExpression()\n {\n return $this->data->getExpression();\n }",
"public static function providersWrapperNull()\n {\n return 'For custom providers, GetService should not return null for both IMetadataProvider and'\n . ' IQueryProvider types.';\n }",
"public function getExpressionProvider(RequestDescription $request);",
"public function math($expression) {\n throw new \\BadMethodCallException('Not implemented');\n }",
"public function __toString()\n {\n if (trim($this->query) == '') {\n throw new Exception\\InvalidUsageException(__METHOD__ . ': Empty query given.');\n }\n\n return $this->query;\n }",
"public static function getDatabaseQueryException(): string {\n\t\treturn static::$databaseQueryException;\n\t}",
"public function getExpression()\n {\n return $this->expression;\n }",
"public function getExpression()\n {\n return $this->expression;\n }",
"public function expression($expr){ }",
"public function testRqlSyntaxError()\n {\n $client = static::createRestClient();\n\n $client->request('GET', '/core/app/?eq(name)');\n\n $response = $client->getResponse();\n $results = $client->getResults();\n\n $this->assertEquals(400, $response->getStatusCode());\n\n $this->assertStringContainsString('syntax error in rql: ', $results->message);\n $this->assertStringContainsString('Unexpected token', $results->message);\n }",
"public function getExpression() {\n return $this->expression;\n }",
"public function __toString() {\n return 'dummy_expression';\n }",
"public static function invalidMetadataInstance()\n {\n return 'IService.getMetadataProvider returns invalid object.';\n }",
"abstract protected function createExpression();",
"public function testGetExpression()\n\t{\n\t\tTestReflection::setValue($this->object, 'expression', true);\n\t\t$this->assertTrue($this->object->getExpression());\n\t}",
"public function testHasExpression()\n\t{\n\t\t$this->assertFalse($this->object->hasExpression());\n\n\t\t$expression = $this->getMockForAbstractClass('PNArcExpression');\n\t\tTestReflection::setValue($this->object, 'expression', $expression);\n\n\t\t$this->assertTrue($this->object->hasExpression());\n\t}",
"public function getException(): DataProviderException\n {\n return $this->e;\n }",
"public static function resolveExpressionFactory(): ExpressionFactory\n {\n return new ExpressionFactoryImpl();\n }",
"public function __construct(IExpressionProvider $expressionProvider) {\n\n $this->_expressionProvider = $expressionProvider;\n }",
"public function __toString()\n {\n if ($this->query_string != '') {\n $sql = str_replace(\"\\n\", ' ', $this->query_string);\n } elseif ($this->select !== null) {\n $sql = $this->sql->getSqlStringForSqlObject($this->select);\n } else {\n throw new Exception\\InvalidUsageException(__METHOD__ . \": No select given.\");\n }\n return $sql;\n }",
"public static function Expression($expression);",
"public function expressionNode()\n {\n }"
] | [
"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.49079672",
"0.48492867",
"0.48176724",
"0.48036203",
"0.48024267",
"0.47690198",
"0.4723957",
"0.4720411",
"0.47142386",
"0.4693248"
] | 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\");\n\t\t$image_container = $this->SiteSetting->getVal('image-container-name');\n\t\tif ($image_container === false) {\n\t\t\t$this->SiteSetting->major_error('The cloud files component was called without a container name.');\n\t\t\treturn false;\n\t\t}\n\t\treturn $image_container;\n\t}",
"public static function invalidMetadataInstance()\n {\n return 'IService.getMetadataProvider returns invalid object.';\n }",
"public function getContainerName();",
"abstract public function containerName();",
"public function name(): string\n {\n throw new ErrorException();\n }",
"public function getContainerName()\n {\n return $this->containerName;\n }",
"public function getUsernameMissingMsg()\r\n {\r\n return \"Username is missing\";\r\n }",
"public function testNameEmptyException(): void\n {\n $name = '';\n $this->expectException(\\InvalidArgumentException::class);\n $this->expectExceptionMessage(\n AssertionException::notEmpty(\n 'MetaService::name'\n )->getMessage()\n );\n new MetaService(1, 10, 1, $name, 'Central', new ServiceStatus('OK', 0, 0));\n }",
"public function message()\n {\n return \"$this->name is not the name of your course.\";\n }",
"public function getContainerTitle()\n {\n return $this->containerTitle;\n }",
"public function errorMsg()\n {\n $err = $this->client()->errorInfo();\n if (!isset($err[0]) || !(int) $err[0]) {\n return '';\n }\n return $err[0] . ($err[1] ? ' (' . $err[1] . ')' : '') . ':' . $err[2];\n }",
"public function testViewContainerFailure(){\r\n //create client\r\n $client = static::createClient(array(), array('PHP_AUTH_USER' => 'admin', 'PHP_AUTH_PW' => 'password'));\r\n $client->followRedirects(true);\r\n\r\n $crawler = $client->request(\"GET\",\"/container/NotAnId\");\r\n\r\n //get the content to check\r\n $content = $client->getResponse()->getContent();\r\n\r\n //check that the error message is on the page\r\n $this->assertContains(\"Container does not exist\",$content);\r\n\r\n //check that the field labels are not on the page\r\n $this->assertNotContains('Id:',$content);\r\n $this->assertNotContains('Frequency:',$content);\r\n $this->assertNotContains('Container Serial:',$content);\r\n $this->assertNotContains('Location Description:',$content);\r\n $this->assertNotContains('Longitude:',$content);\r\n $this->assertNotContains('Latitude:',$content);\r\n $this->assertNotContains('Type:',$content);\r\n $this->assertNotContains('Size:',$content);\r\n $this->assertNotContains('Augmentation:',$content);\r\n $this->assertNotContains('Status:',$content);\r\n $this->assertNotContains('Reason for status:',$content);\r\n $this->assertNotContains('Property:',$content);\r\n $this->assertNotContains('Structure:',$content);\r\n\r\n }",
"public function toString()\n {\n return 'exists in container ' . $this->container;\n }",
"static function DefaultContainerName()\t\t\t\t\t\t\t\t{\treturn NULL;\t}",
"public function message()\n {\n return '标签不存在.';\n }",
"public static function containerServiceNotFound(string $service): string\n {\n return \"A dependency injection container is required to access \" . $service;\n }",
"protected function getErrorMsgTemplate()\n {\n return \"INI directive '%s' is \";\n }",
"protected function getErrorBag(): string\n {\n return $this->errorBag ?: 'default';\n }",
"private function getErrorMessage(): ?string\n {\n // @codeCoverageIgnoreStart\n if (\\version_compare(Util::getComposerVersion(), '1.8.0', '<')) {\n return \\sprintf('Your version \"%s\" of Composer is too old; Please upgrade', Composer::VERSION);\n }\n // @codeCoverageIgnoreEnd\n\n return null;\n }",
"public function message()\n {\n return 'This username contains invalid strings';\n }",
"public function description(): string\n {\n throw new ErrorException();\n }",
"public static function noApplicationName()\n {\n\n printf(\"\\033[37;01;41m An Error Has Occured \\n \\033[00m\\033[37;41mAn application name is required \\033[0m \\n\\n\");\n self::help();\n }",
"public function getErrorMessage()\n {\n if(!is_null($this->error)){\n return $this->error->getMessage();\n }\n }",
"public function errorMessage() {\n if ( !$this->isOK() ) {\n $errors = $this->body->Message();\n return (string)$errors[0];\n }\n }",
"public function message()\n {\n return \"The :attribute contains a logo you haven't permission to use.\";\n }",
"public function message()\n {\n return __('register-advert.fields.domain.errors.exists');\n }",
"public function getErrorDescription()\n {\n if (array_key_exists(\"errorDescription\", $this->_propDict)) {\n return $this->_propDict[\"errorDescription\"];\n } else {\n return null;\n }\n }",
"public function getRpcErrorMessage(): ?string\n {\n return $this->content['error']['message'] ?? null;\n }",
"public function getErrorMessage(): string {\n if (isset($this->_arguments[0]) === false) {\n throw new LogicException('The error message must be set as the first argument of the class constructor.');\n }\n\n return $this->_arguments[0];\n }"
] | [
"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.52930474",
"0.5281357",
"0.5280177",
"0.5279958",
"0.52771646",
"0.5266917",
"0.5262407",
"0.52584255",
"0.5231053",
"0.51936376"
] | 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$image_container = $this->SiteSetting->getVal('image-container-name');\n\t\tif ($image_container === false) {\n\t\t\t$this->SiteSetting->major_error('The cloud files component was called without a container name.');\n\t\t\treturn false;\n\t\t}\n\t\treturn $image_container;\n\t}",
"public function getContainerNamespace();",
"public function getContainerNamespace()\n {\n return $this->namespaceName;\n }",
"public static function invalidMetadataInstance()\n {\n return 'IService.getMetadataProvider returns invalid object.';\n }",
"public function getContainerName();",
"abstract public function containerName();",
"abstract public function getMetadataNamespace();",
"public function getForEmptyNamespaceThrowsException() {\n\t\t$this->setExpectedException(\n\t\t\t'InvalidArgumentException',\n\t\t\t'$namespace must not be empty.'\n\t\t);\n\n\t\tTx_Oelib_ConfigurationRegistry::get('');\n\t}",
"public function testGetNamespace()\n\t{\n\t\t$s = $this->session->getNamespace('default');\n\t\t$this->assertType(/*Nette\\Web\\*/'SessionNamespace', $s);\n\n\t\t$this->setExpectedException('InvalidArgumentException', 'must be a non-empty string');\n\t\t$s = $this->session->getNamespace('');\n\t}",
"public function getNamespace(): string\n {\n return '';\n }",
"public function getNamespace(): string\n {\n return '';\n }",
"public function getNamespace()\n {\n return '';\n }",
"static function DefaultContainerName()\t\t\t\t\t\t\t\t{\treturn NULL;\t}",
"public function getContainerName()\n {\n return $this->containerName;\n }",
"public static function containerServiceNotFound(string $service): string\n {\n return \"A dependency injection container is required to access \" . $service;\n }",
"protected function getErrorMsgTemplate()\n {\n return \"INI directive '%s' is \";\n }",
"abstract protected function getDefaultNamespace(): string;",
"function _campaign_validate_namespace($namespace) {\n // Make sure the namespace is valid.\n if (!preg_match('/^[a-z0-9_-]+$/', $namespace)) {\n return t('The machine name retrieved from the facebook application can only consist of lowercase letters, underscores, dashes, and numbers.');\n }\n\n // Make sure the context doesn't already exist.\n ctools_include('export');\n if (ctools_export_crud_load('context', $namespace)) {\n return t('A context with this same name as the facebook namespace already exists. Please rename it on facebook and try again.');\n }\n\n return TRUE;\n}",
"public function getTemplateNamespace(): ?string\n {\n return null;\n }",
"public function getUsernameMissingMsg()\r\n {\r\n return \"Username is missing\";\r\n }",
"public function testNamespaceGetNull()\n\t{\n\t\t$s = $this->session->getNamespace('default');\n\t\t$this->assertNull($s->undefined, 'Getting value of non-existent key failed to return NULL.');\n\t}",
"public function containerClassName(): string\n {\n if (!empty($this->metadata['root']) || !$this->isEmbedded()) {\n return $this->resolver->className();\n }\n\n return $this->embedded()->class(); // @todo polymorph ?\n }",
"public function getContainerTitle()\n {\n return $this->containerTitle;\n }",
"public function message()\n {\n return \"Provide a standard domain or subdomain. Services can not be mapped to paths and should not contain any trailing slashes. \"\n . \"Only lowercase alphanumeric characters, in addition to '.' and '-', are allowed.\";\n }",
"public function getNamespaceName(){ }",
"public function toString()\n {\n return 'exists in container ' . $this->container;\n }",
"public function testViewContainerFailure(){\r\n //create client\r\n $client = static::createClient(array(), array('PHP_AUTH_USER' => 'admin', 'PHP_AUTH_PW' => 'password'));\r\n $client->followRedirects(true);\r\n\r\n $crawler = $client->request(\"GET\",\"/container/NotAnId\");\r\n\r\n //get the content to check\r\n $content = $client->getResponse()->getContent();\r\n\r\n //check that the error message is on the page\r\n $this->assertContains(\"Container does not exist\",$content);\r\n\r\n //check that the field labels are not on the page\r\n $this->assertNotContains('Id:',$content);\r\n $this->assertNotContains('Frequency:',$content);\r\n $this->assertNotContains('Container Serial:',$content);\r\n $this->assertNotContains('Location Description:',$content);\r\n $this->assertNotContains('Longitude:',$content);\r\n $this->assertNotContains('Latitude:',$content);\r\n $this->assertNotContains('Type:',$content);\r\n $this->assertNotContains('Size:',$content);\r\n $this->assertNotContains('Augmentation:',$content);\r\n $this->assertNotContains('Status:',$content);\r\n $this->assertNotContains('Reason for status:',$content);\r\n $this->assertNotContains('Property:',$content);\r\n $this->assertNotContains('Structure:',$content);\r\n\r\n }",
"public function testNullableNamespace()\n {\n $token = $this->getTargetToken('/* testNullableNamespace */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 15, 18);\n\n }",
"protected function getErrorBag(): string\n {\n return $this->errorBag ?: 'default';\n }"
] | [
"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.50801134",
"0.50658643",
"0.5061845",
"0.5060208",
"0.50395566",
"0.50155115",
"0.5004872",
"0.49964076",
"0.497058",
"0.4956808"
] | 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->error($errors);\n }",
"private function messages() {\n return [\n 'name.unique' => 'A district with same name exists',\n ];\n }",
"public function message()\n {\n return ':attribute already exists. Choose a different :attribute!';\n }",
"public function messages()\n {\n return [\n 'title.unique_in_type' => 'This committee already exists. Please choose a different title.',\n ];\n }",
"public function getErrorMessage()\n {\n $message = sprintf(\"Input Data contains %s corrupt records (from a total of %s)\",\n $this->getInvalidRowsCount(), $this->getProcessedRowsCount()\n );\n foreach ($this->getErrors() as $type => $lines) {\n $message .= \"\\n:::: \" . $type . \" ::::\\nIn Line(s) \" . implode(\", \", $lines) . \"\\n\";\n }\n return $message;\n }",
"public function message()\n {\n return 'The :attribute is already exist.';\n }",
"public static function providersWrapperEntityTypeNameShouldBeUnique($entityTypeName)\n {\n return 'More than one entity type with the name \\'' . $entityTypeName\n . '\\' was found. Entity type names must be unique';\n }",
"public function getErrorsSimp()\n {\n // Bring together all errors and information rows in an array\n $result = array_merge_recursive($this->errors, $this->information);\n\n // Echo error and information messages\n $numItems = count($result);\n $i = 0;\n $allMessages = '';\n foreach ($result as $message) {\n $allMessages .= $message;\n if (++$i != $numItems) {\n $allMessages .= \"<br/>\";\n }\n }\n\n return $allMessages;\n }",
"public function message()\n {\n return __('validation.already_has_internship');\n }",
"public function messages()\n {\n return [\n 'name.unique' => 'The name has already been taken.',\n ];\n }",
"public function messages()\n {\n return [\n 'name.unique' => 'The name already exist.',\n ];\n }",
"public function message()\n {\n return 'Supplier name is already exists.';\n }",
"public function message()\n {\n return 'Site name within a team should be unique.';\n }",
"function error_too_many() {\n\n\tglobal $error_occured;\n\t\n\t# only display error, if no other errors occured\n\tif ( !$error_occured ) {\n\t\n\t\t$tpl = new TemplatePower( \"templates/course_error2.tpl\" );\n\t\t$tpl->prepare();\n\t\n\t\t$tpl->assign(\"ERROR_TYPE\", \"There are too many users on SIS. <BR>Please try again later.\");\n\t\n\t\t$tpl->printToScreen();\n\t\t\t$error_occured = true;\n\t}\n}",
"public function messages()\n\t{\n\t\treturn [\n\t\t\t'venue_id.required' => 'Please choose a venue',\n\t\t\t'name.unique_with' => '\"@name@\" has already been used'\n\t\t];\n\t}",
"public function getErrorMessagesAsString()\n {\n $sMessage = '';\n foreach($this->getMessages() as $sElementName => $aElement){\n foreach($aElement as $sMessage){\n $sMessage .= $sElementName . ': ' . $sMessage . PHP_EOL;\n }\n }\n\n return $sMessage;\n }",
"function local_family_show_error($renderer,$message){\n\t\t$this->show_all_families($renderer, $message);\n\t}",
"public function toString()\n {\n return 'Product url duplication error on save message is present.';\n }",
"public function errors()\n {\n $elts = array();\n if (is_array($this->errors) && !empty($this->errors))\n {\n foreach ($this->errors as $valid => $error)\n \t$elts[] = sprintf('<div class=\"validation-advice\" id=\"advice-%s-%s\">%s</div>', $error[0], (string)$this->get_attribute('id'), $error[1]);\n }\n return implode(\"\\n\\t\", $elts);\n }",
"public function messages()\n {\n return [\n 'name.unique' => 'A role with this name already exists',\n ];\n }",
"public function getErrorsString()\n {\n $errors = $this->getErrors();\n $errorMsg = '';\n\n if (!$errors)\n return NULL;\n\n foreach ($errors as $error)\n $errorMsg .= ' ' . implode(' ', $error);\n\n return $errorMsg;\n }",
"public function message()\n {\n return trans('validation.custom.data_repeated');\n }",
"public static function summarize( array $messages ) : string {\n if ( ! count( $messages ) ) return 'The given data was invalid.' ;\n $message = array_shift( $messages );\n if ( $additional = count( $messages ) ) {\n $pluralized = 1 === $additional ? 'error' : 'errors';\n $message .= \" (and {$additional} more {$pluralized})\";\n }\n return $message;\n }",
"public function errorMessage() {\n return sprintf('Error on line %d in %s:%s%s%s', $this->getLine(), $this->getFile(), $this->linefeed, $this->getMessage(), $this->linefeed);\n }",
"public function test_errors_first_return_message_with_label() {\n\t\tself::$error_collection->set_errors( self::$errors );\n\t\t$expected = 'First name is required';\n\t\t$result = self::$error_collection->first('first_name');\n\t\t$this->assertEquals( $expected, $result );\n\t}",
"public function beforeSet()\n {\n $name = trim($this->getProperty('name'));\n if (empty($name)) {\n $this->modx->error->addField('name', $this->modx->lexicon('cdekintgrate_item_err_name'));\n } elseif ($this->modx->getCount($this->classKey, ['name' => $name])) {\n $this->modx->error->addField('name', $this->modx->lexicon('cdekintgrate_item_err_ae'));\n }\n\n return parent::beforeSet();\n }",
"public function getAnyErrors() { \n $errorsString = '';\n $adviceString = '** Enter it by hand from the PayPal notification email.'; // . PHP_EOL;\n if ($this->multipleWorksMatch) {\n $errorsString = '** Multiple works in the DB might match this PayPal payment. ' . $adviceString;\n } else if (!$this->uniqueWorkFound) {\n $errorsString = '** No works in the DB match this PayPal payment. ' . $adviceString;\n } else if (isset($this->dbWorkDataValue['checkOrPaypalNumber']) && ($this->dbWorkDataValue['checkOrPaypalNumber'] != 0) \n && ($this->dbWorkDataValue['checkOrPaypalNumber'] != '') && ($this->paypalIPNDataValue['txn_id'] != $this->dbWorkDataValue['checkOrPaypalNumber'])) {\n $errorsString = '** The unique work found already has a different checkOrPaypalNumber (' . $this->dbWorkDataValue['checkOrPaypalNumber'] . '). ' . $adviceString;\n }\n// SSFDebug::globalDebugger()->belch('aaa. errorsString', $errorsString, 1);\n return $errorsString;\n }",
"public function errors() {\r\n $_output = '';\r\n foreach ($this->errors as $error) {\r\n $errorLang = $this->lang->line($error) ? $this->lang->line($error) : '##' . $error . '##';\r\n $_output .= $this->error_start_delimiter . $errorLang . $this->error_end_delimiter;\r\n }\r\n\r\n return $_output;\r\n }",
"function validation_errors($prefix = '', $suffix = '', $limit = 5)\n{\n\tif (FALSE === ($OBJ =& _get_validation_object()) || $OBJ->error_string() == '')\n\t{\n\t\treturn '';\n\t}\n\n\treturn '<ul class=\"error\">' . $OBJ->error_string($prefix, $suffix, $limit) . '</ul>';\n}",
"abstract protected function getEntityNamePlural();"
] | [
"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.5076575",
"0.5072415",
"0.502269",
"0.5007154",
"0.50049853",
"0.50003964",
"0.49828234",
"0.49575165",
"0.49538022"
] | 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->error($errors);\n }",
"private function messages() {\n return [\n 'name.unique' => 'A district with same name exists',\n ];\n }",
"public function messages()\n {\n return [\n 'title.unique_in_type' => 'This committee already exists. Please choose a different title.',\n ];\n }",
"function formatError($type, $message)\n{\n return '<b style=\"color: red;\">' . $type . ': </b>'. $message . \"<br>\\n\";\n}",
"public static function providersWrapperEntitySetNameShouldBeUnique($entitySetName)\n {\n return 'More than one entity set with the name \\'' . $entitySetName\n . '\\' was found. Entity set names must be unique';\n }",
"public function message()\n {\n return \"Данный тип не был найдет в $this->tableName\";\n }",
"public function message()\n {\n return ':attribute already exists. Choose a different :attribute!';\n }",
"function simple_feed_validate_entity_types($entity_types) {\n $accepted_types = array(\n \"node\",\n \"taxonomy_term\",\n );\n foreach ($entity_types as $type) {\n if (!in_array($type, $accepted_types)) {\n throw new Exception (t('Unknown entity type passed. You passed @type.', array('@type' => '\"'.$type.'\"')));\n }\n }\n }",
"private function AddErrorInfo()\n{\n $this->error .= 'Error: ';\n switch($this->type)\n {\n case 'mysql4':\n case 'mysql': $this->error .= '['.mysql_errno().'] '.mysql_error(); break;\n case 'sqlsrv': $err=end(sqlsrv_errors()); $this->error .= $err['message']; break;\n case 'mssql': $this->error .= mssql_get_last_message(); break;\n case 'pg': $this->error .= pg_last_error(); break;\n case 'ibase': $this->error .= ibase_errmsg(); break;\n case 'sqlite': $this->error .= '['.sqlite_last_error($this->con).'] '.sqlite_error_string(sqlite_last_error($this->con)); break;\n case 'db2': $this->error .= db2_conn_errormsg(); break;\n case 'oci': $e=oci_error(); $this->error .= $e['message']; break;\n }\n}",
"abstract protected function getEntityNamePlural();",
"public function getErrorMessage()\n {\n $message = sprintf(\"Input Data contains %s corrupt records (from a total of %s)\",\n $this->getInvalidRowsCount(), $this->getProcessedRowsCount()\n );\n foreach ($this->getErrors() as $type => $lines) {\n $message .= \"\\n:::: \" . $type . \" ::::\\nIn Line(s) \" . implode(\", \", $lines) . \"\\n\";\n }\n return $message;\n }",
"public function message()\n {\n return 'The :attribute is already exist.';\n }",
"public function messages()\n\t{\n\t\treturn [\n\t\t\t'venue_id.required' => 'Please choose a venue',\n\t\t\t'name.unique_with' => '\"@name@\" has already been used'\n\t\t];\n\t}",
"function error_too_many() {\n\n\tglobal $error_occured;\n\t\n\t# only display error, if no other errors occured\n\tif ( !$error_occured ) {\n\t\n\t\t$tpl = new TemplatePower( \"templates/course_error2.tpl\" );\n\t\t$tpl->prepare();\n\t\n\t\t$tpl->assign(\"ERROR_TYPE\", \"There are too many users on SIS. <BR>Please try again later.\");\n\t\n\t\t$tpl->printToScreen();\n\t\t\t$error_occured = true;\n\t}\n}",
"public function messages()\n {\n return [\n 'name.unique' => 'The name has already been taken.',\n ];\n }",
"public function messages()\n {\n return [\n 'name.unique' => 'The name already exist.',\n ];\n }",
"protected function getErrorActionValidateInputMessage($login)\n {\n return 'The <i>' . $login . '</i> profile is already registered. '\n . 'Please, try some other email address.';\n }",
"protected function showNoEntityTypesMessage() {\n drupal_set_message(t('Entities available for export have not been defined. <a href=\"/admin/cohesion/sync/export_settings\">Click here to go to the export settings.</a>'), 'warning');\n }",
"public function message()\n {\n return 'Supplier name is already exists.';\n }",
"public function messages()\n {\n return [\n 'name.unique' => 'A role with this name already exists',\n ];\n }",
"public static function summarize( array $messages ) : string {\n if ( ! count( $messages ) ) return 'The given data was invalid.' ;\n $message = array_shift( $messages );\n if ( $additional = count( $messages ) ) {\n $pluralized = 1 === $additional ? 'error' : 'errors';\n $message .= \" (and {$additional} more {$pluralized})\";\n }\n return $message;\n }",
"public function display_duplicate_message( $type ) {\n if ( 'product_duplicated' === $type ) {\n dokan_get_template_part(\n 'global/dokan-success',\n '',\n array(\n 'deleted' => true,\n 'message' => __( 'Product succesfully duplicated', 'dokan' ),\n )\n );\n }\n }",
"function seo_friend_duplicate_message($pages = 'nodes', $type = 'meta tag') {\n return t('You currently are using the same @type content for multiple @pages. For optimal SEO, it is recommended that each page should have its own @type content.',\n array('@type'=>$type, '@pages'=>$pages));\n}",
"public function errors()\n {\n $className = TextHelper::remove(\"Exception\", TextHelper::className(static::class));\n return [TextHelper::toSnakeCase($className)];\n }",
"function local_family_show_error($renderer,$message){\n\t\t$this->show_all_families($renderer, $message);\n\t}",
"public function message()\n {\n return trans('validation.custom.data_repeated');\n }",
"public function formatErrorMessage($errorObject){\r\n /*\r\n * Form has errors. Put errors into an array\r\n */\r\n $messages = \"\";\r\n \r\n foreach($errorObject as $messageObject){\r\n foreach($messageObject as $messages){\r\n \r\n if(count($messages)>1){\r\n foreach($messages as $ms){\r\n return $ms;\r\n }\r\n }else{\r\n return $messages;\r\n }\r\n }\r\n }\r\n }",
"public function message()\n {\n return 'Site name within a team should be unique.';\n }",
"public function getErrorsSimp()\n {\n // Bring together all errors and information rows in an array\n $result = array_merge_recursive($this->errors, $this->information);\n\n // Echo error and information messages\n $numItems = count($result);\n $i = 0;\n $allMessages = '';\n foreach ($result as $message) {\n $allMessages .= $message;\n if (++$i != $numItems) {\n $allMessages .= \"<br/>\";\n }\n }\n\n return $allMessages;\n }",
"function validation_errors($prefix = '', $suffix = '', $limit = 5)\n{\n\tif (FALSE === ($OBJ =& _get_validation_object()) || $OBJ->error_string() == '')\n\t{\n\t\treturn '';\n\t}\n\n\treturn '<ul class=\"error\">' . $OBJ->error_string($prefix, $suffix, $limit) . '</ul>';\n}"
] | [
"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.50596166",
"0.50438994",
"0.5037492",
"0.50253975",
"0.50059885",
"0.4996705",
"0.49903482",
"0.4986782",
"0.49831602"
] | 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\t$this->onPass($test.\", \".$this->getDuration($start));\n\t\t\t}\n\t\t\tcatch (ExceptionAssertionFail $e){\n\t\t\t\t$this->onFail($test.\" \".TEST_CASE_ASSERTION_FAILED);\n\t\t\t}\n\t\t\tcatch (Exception $e) {\n\t\t\t\t$this->onFail($test.\" \".TEST_CASE_EXCEPTION_CAUGHT.\" (\".$e->getMessage().\")\");\n\t\t\t}\n\t\t}\n\t\t$this->onEnd('Test end');\n\t}",
"public function testGetActivityInstanceStatistics() {\n $restClient = new camundaRestClient(self::$restApi);\n $pdi = $restClient->getProcessDefinitions()[0]->id;\n $asi = $restClient->getActivityInstanceStatistics($pdi)[0]->id;\n $this->assertEquals('UserTask_1', $asi);\n \n }",
"public function how_to_measure()\n {\n $this->template->write('title', 'Boutique: How to Measure?'); \n \n $data['measuring_info'] = '';\n \n $this->template->write_view('home_main_content', 'front_end/site_information/measuring', $data, TRUE);\n $this->template->render();\n }",
"public function run()\n {\n $start = Carbon::today();\n $end = Carbon::today();\n\n $activity = new Activity();\n $activity->name = \"Eat\";\n $activity->start = $start->hour(14)->minute(30);\n $activity->end = $end->hour(14)->minute(53);\n $activity->save();\n\n $activity = new Activity();\n $activity->name = \"Sleep\";\n $activity->start = $start->hour(15)->minute(30);\n $activity->end = $end->hour(20)->minute(15);\n $activity->save();\n\n $activity = new Activity();\n $activity->name = \"Rave\";\n $activity->start = $start->hour(23)->minute(00);\n $activity->end = $end->addDay()->hour(5)->minute(53);\n $activity->save();\n\n $activity = new Activity();\n $activity->name = \"Repeat\";\n $activity->start = $start->addDay()->hour(14)->minute(30);\n $activity->end = $end->addDay();\n $activity->save(); \n }",
"public function testCollectTestStatistics()\n {\n // Arrange\n $this->loadFixtures();\n $time = 0.1239999;\n $this->StatisticTool->getFixtureManager()->collectDirtyTables();\n $this->StatisticTool->collectTestStatistics($this, $time);\n\n // Act\n $stats = $this->StatisticTool->getStatistics();\n\n // Assert\n $this->assertSame(1, count($stats));\n $stats = $stats[0];\n\n $this->assertSame(0.124, $stats[0]);\n $this->assertSame(self::class, $stats[1]);\n $this->assertSame(__FUNCTION__, $stats[2]);\n $this->assertSame(2, $stats[3]);\n $this->assertSame('test_suite_light.cities, test_suite_light.countries', $stats[4]);\n }",
"public function test()\n {\n $this->executeScenario();\n }",
"public function test()\n {\n $this->executeScenario();\n }",
"public function test()\n {\n $this->executeScenario();\n }",
"public function test()\n {\n $this->executeScenario();\n }",
"public function test()\n {\n $this->executeScenario();\n }",
"public function test()\n {\n $this->executeScenario();\n }",
"public function run()\n {\n for ($i = 0; $i < 30; $i++) {\n for ($j = 1; $j <= 3; $j++) {\n Performance::create([\n 'event_id' => $j,\n 'user_id' => 1 + $i,\n 'performer_id' => 32 + $i,\n 'music_id' => 1 + $i\n ]);\n }\n }\n }",
"public function getAwpbActivities()\n {\n return $this->hasMany(AwpbActivity::className(), ['unit_of_measure_id' => 'id']);\n }",
"public function test_performing() {\n foreach (array(\n array( 'level' => Log_Level::DEBUG, 'method' => 'debug'),\n array( 'level' => Log_Level::CRITICAL, 'method' => 'critical'),\n array( 'level' => Log_Level::WARNING, 'method' => 'warning'),\n array( 'level' => Log_Level::INFO, 'method' => 'info')\n ) as $v) {\n extract($v);\n $message = $this->context->$method('Test1', 'Test2');\n $this->\n assert_true(is_int($message->time))->\n asserts->accessing->assert_read($message, array(\n 'body' => array('Test1', 'Test2'),\n 'level' => $level,\n 'number' => 1,\n 'string' => 'test'\n ));\n }\n }",
"public function runningUnitTests()\n {\n }",
"public function runningUnitTests()\n {\n }",
"function startMeasure($mpoint)\n{\n global $perf_data;\n\n global $script_started_time;\n if ($mpoint == 'TOTAL' && $script_started_time) {\n $perf_data[$mpoint]['START'] = $script_started_time;\n } else {\n $perf_data[$mpoint]['START'] = getmicrotime();\n }\n\n if (defined('TRACK_MEMORY_USAGE')) {\n if ((isset($perf_data[$mpoint]['MEMORY_START']) && !$perf_data[$mpoint]['MEMORY_START'])\n || !isset($perf_data[$mpoint]['MEMORY_START'])\n && function_exists('memory_get_usage')\n ) {\n $perf_data[$mpoint]['MEMORY_START'] = memory_get_usage();\n }\n }\n}",
"public function testAction() {\n\t\trequire_once(ROOT . '/lib/simpletest/autorun.php');\n\n\t\t$test_files_app = MagicUtils::get_directory_list(DIR_APP . \"/temp/tests\");\n\t\t$test_files_core = MagicUtils::get_directory_list(ROOT . \"/tests\");\n\t\t$test_files = array_merge($test_files_core, $test_files_app);\n\t\tMagicLogger::log(\"Running tests\");\n\t\tforeach ($test_files as $test_file) {\n\t\t\trequire_once($test_file);\n\t\t\t$test_class = basename($test_file, \".test.php\");\n\t\t\t$test = new $test_class();\n\t\t\t$test->setUp();\n\t\t\tunset($test);\n\t\t}\n\t\texit;\n\t\tob_start();\n\t\tforeach ($test_files as $test_file) {\n\t\t\t//echo \"Test case file: $test_file\\n\";\n\t\t\trequire_once($test_file);\n\t\t\t$test_class = basename($test_file, \".test.php\");\n\t\t\t$test = new $test_class();\n\t\t\t$test->run(new MagicTestTextReporter());\n\t\t\tunset($test);\n\t\t}\n\n\t\t$test_results = ob_get_flush();\n\t\t//echo $test_results;\n\n\t\tMail::Factory()->add_to(\"[email protected]\")->set_subject(APPNAME . \" automatic test results\")->set_message(\"Test results generated for project \" . APPNAME . \"\\n\\n\" . $test_results)->add_attachment($test_results, \"test_results.txt\")->send()->save();\n\n\t}",
"public function testScenarioAnalysis()\n {\n }",
"public function testCalculateDITMetricNoInheritance()\n {\n $this->assertEquals(0, $this->getCalculatedMetric(__METHOD__, 'dit'));\n }",
"public function run()\n {\n Lead::all()->each(function (Lead $lead){\n Activity::factory()->count(3)->create(\n [\n \"lead_id\" => $lead->id,\n ]\n );\n });\n }",
"public function testExecuteContainsTests()\n {\n $this->actingAs(self::$user)\n ->visit('/sets_runs/run/execution/1/overview')\n ->see(self::$testSuite[0]->testCases()->where('TestCaseOverview_id', 1)->first()->Name);\n }",
"public function test_event() {\n $this->timer->start();\n $this->timer->stop();\n $this->asserts->accessing->\n assert_exists($this->timer->events[0], array('note', 'lap', 'cumulative', 'percentage', 'time'));\n }",
"public function run() {\n\n\t\t$timeStart = microtime(true);\n\n\t\tif(is_callable($this->before) === true) {\n\n\t\t\tcall_user_func($this->before);\n\n\t\t}\n\n\t\t$specReport = [];\n\n\t\tif($this->numTests > 0) {\n\n\t\t\tforeach($this->tests as $testDescription => $testCallback) {\n\n\t\t\t\tif(is_callable($this->beforeEach) === true) {\n\n\t\t\t\t\tcall_user_func($this->beforeEach);\n\n\t\t\t\t}\n\n\t\t\t\t$testCallbackResult = call_user_func($testCallback);\n\n\t\t\t\tif($testCallbackResult === true) {\n\n\t\t\t\t\t$this->pass($testDescription);\n\n\t\t\t\t\t$specReport[$testDescription] = ['pass', $testDescription];\n\n\t\t\t\t} else if($testCallbackResult === false) {\n\n\t\t\t\t\t$this->fail($testDescription);\n\n\t\t\t\t\t$specReport[$testDescription] = ['fail', $testDescription];\n\n\t\t\t\t} else {\n\n\t\t\t\t\t$this->skip($testDescription);\n\n\t\t\t\t\t$specReport[$testDescription] = ['skip', $testDescription];\n\n\t\t\t\t}\n\n\t\t\t\tif(is_callable($this->afterEach) === true) {\n\n\t\t\t\t\tcall_user_func($this->afterEach);\n\n\t\t\t\t}\n\n\t\t\t\t$this->emit('tick', $testDescription);\n\n\t\t\t\tusleep(self::TEST_SLEEP_DELAY);\n\n\t\t\t}\n\n\t\t}\n\n\t\t$timeEnd = microtime(true);\n\n\t\t$timeElapsed = $timeEnd - $timeStart;\n\n\t\t$timeLabel = implode(' ', ['Spec finished in', $timeElapsed, 'seconds.']);\n\n\t\t$this->report[$this->description] = [\n\t\t\t'timeStart' => $timeStart,\n\t\t\t'timeEnd' => $timeEnd,\n\t\t\t'timeElapsed' => $timeElapsed,\n\t\t\t'timeLabel' => $timeLabel,\n\t\t\t'skipped' => $this->skipped(),\n\t\t\t'passed' => $this->passed(),\n\t\t\t'failed' => $this->failed(),\n\t\t\t'numTests' => $this->numTests,\n\t\t\t'numSkipped' => $this->numSkipped,\n\t\t\t'numPassed' => $this->numPassed,\n\t\t\t'numFailed' => $this->numFailed,\n\t\t\t'tests' => $specReport\n\t\t];\n\n\t\tif(is_callable($this->after) === true) {\n\n\t\t\tcall_user_func($this->after);\n\n\t\t}\n\n\t}",
"public function reportMiningActivity(FunctionalTester $I)\n {\n // id del projecto con el que voy a trabajar\n $project_id = 1; // Beteitiva\n\n // quito el permiso de asignar costos, pues el supervisor no debe hacerlo\n $permissions = \\sanoha\\Models\\Permission::where('name', '!=', 'activityReport.assignCosts')->get()->lists('id')->all(); // obtengo el permiso que quiero quitar\n $admin_role = \\sanoha\\Models\\Role::where('name', '=', 'admin')->first();\n $admin_role->perms()->sync($permissions);\n \n // necesito la lista de labores mineras que puedo registrar\n $labors = \\sanoha\\Models\\MiningActivity::all();\n $date = \\Carbon\\Carbon::now();\n \n // creo dos registros antiguos para que tenga referencia para asígnar el precio\n // de la actividad que voy a registrar, los parametros para resolver el precio\n // de la actividad son la bocamina y el empleado.\n \\sanoha\\Models\\ActivityReport::create([\n 'sub_cost_center_id' => 1,\n 'employee_id' => 1,\n 'mining_activity_id' => 2,\n 'quantity' => 2,\n 'price' => '5000',\n //'worked_hours' => 4,\n 'comment' => 'test comment',\n 'reported_by' => 1,\n 'reported_at' => '2015-01-01 01:01:01'\n ]);\n \n \\sanoha\\Models\\ActivityReport::create([\n 'sub_cost_center_id' => 1,\n 'employee_id' => 2,\n 'mining_activity_id' => 2,\n 'quantity' => 4,\n 'price' => '7000',\n //'worked_hours' => 4,\n 'comment' => 'comentario para actividad',\n 'reported_by' => 1,\n 'reported_at' => '2015-01-02 01:01:01'\n ]);\n \n // -----------------------\n // --- Empieza el test ---\n // -----------------------\n\n $I->am('soy un supervisor del Proyecto Beteitiva');\n $I->wantTo('registrar la actividad minera de un trabajador');\n \n // estoy en el home del sistema\n $I->amOnPage('/home');\n \n // hago clic en el proyecto que quiero trabajar\n $I->click('Proyecto Beteitiva', 'a');\n \n // doy clic al botón de registrar una actividad minera\n $I->click('Registrar Actividad Minera', 'a');\n \n // veo que estoy en la url indicada\n $I->seeCurrentUrlEquals('/activityReport/create');\n \n // veo que está divido en secciones el formulario, un fielset donde\n // están los compos para el registro y otro fieldset donde está la vista previa de\n // los datos cargados al trabajador\n $I->see('Reportar Labor Minera', 'fieldset legend');\n $I->see('Vista Previa de Actividades', 'fieldset legend');\n \n // veo que hay un select con los nombres de los trabajadores del centro\n // de costos que seleccioné\n $I->see('B1 Trabajador 1', 'select optgroup option');\n $I->see('B2 Trabajador 2', 'select optgroup option');\n // no debo ver a este trabajador el cual no tiene el cargo que requiere\n // el módulo, para este caso sólo requiere mineros y supervisores de proyectos\n $I->dontSee('Williams John', 'select optgroup option');\n \n // veo que no están presentes muchos campos porque debo elegir primero al trabajador\n $I->dontSeeElement('input', ['type' => 'checkbox', 'checked' => 'checked']); // por defecto está marcado\n $I->dontSeeElement('select', ['name' => 'mining_activity_id']);\n $I->dontSeeElement('input', ['name' => 'quantity']);\n $I->dontSeeElement('input', ['name' => 'price']);\n $I->dontSeeElement('input', ['name' => 'reported_at']);\n $I->dontSeeElement('input', ['name' => 'worked_hours']); // éste elemento ya no se debe ver en ningún escenario\n $I->dontSeeElement('textarea', ['name' => 'comment']);\n $I->dontSeeElement('button', ['type' => 'submit']);\n \n // veo que en la vista preliminar tengo un mensaje que dice \"Selecciona un trabajador\"\n // pues no he seleccionado alguno para ver los datos de las labores mineras que se le\n // han cargado del día en curso\n $I->see('Selecciona un trabajador...', '.alert-warning');\n \n // veo que el atributo action del formulario es /localhost/activityReport/create,\n // para que en la siguiente carga pueda pueda cargar la vista previa de los datos\n // del empleado\n $I->seeElement('form', ['method' => 'GET']);\n \n // selecciono un trabajador de la lista y hago la simulación de envío del formulario\n // aunque no tengo botón, esto se hará con javascript en el onChange del select\n $I->submitForm('form', ['employee_id' => 1]);\n \n // la página se recarga al elejir al trabajador, veo que estoy de nuevo en\n // la misma página pero con el parámetro del trabajador seleccionado\n $I->seeCurrentUrlEquals('/activityReport/create?employee_id=1');\n \n // veo que el select tiene ya cargado el empleado seleccionado anteriormente\n $I->seeOptionIsSelected('#employee_id', 'B1 Trabajador 1');\n \n // ahora si veo los campos faltantes del formulario para poder registrar la actividad\n $I->seeElement('input', ['type' => 'checkbox', 'name' => 'attended', 'checked' => 'checked']);\n $I->seeElement('select', ['name' => 'mining_activity_id']); // el select con las labores mineras\n $I->seeElement('input', ['name' => 'quantity']); // el input para digitar la cantidad\n $I->dontSeeElement('input', ['name' => 'worked_hours']); // el input para digitar la cantidad\n $I->seeElement('input', ['name' => 'reported_at']); // el input para digitar la fecha en que se hizo la actividad\n // ------------------------------------------------------------------------------------------\n // Nuevo Requerimiento...\n //\n // el supervisor no puede asignar precios de las labores mineras registradas, por lo tanto\n // no puede ver el campo price o precio en el formulario, esto queda para un proceso aparte,\n // pero el precio jamás debe quedar vació, se debe asignar automáticamente en el backend según\n // los históricos de x actividad.\n // ------------------------------------------------------------------------------------------\n $I->dontSeeElement('input', ['name' => 'price']); // NO VEO el input para digitar el precio\n $I->dontSeeElement('input', ['name' => 'worked_hours', 'step' => '1', 'max' => '12']); // campo de horas trabajadas, máximo 12 horas a reportar\n $I->seeElement('button', ['type' => 'submit']); // el botton para enviar el formulario\n\n // ahora si veo la tabla donde se mostrarán los registros de las actividades del trabajador\n $I->seeElement('table', ['class' => 'table table-hover table-bordered table-vertical-align-middle']);\n \n //veo que el nombre corto de todas las actividades mineras están en\n // la cabecera de la tabla, pero tienen su nombre completo en el atributo title\n foreach ($labors as $activity) {\n $I->see($activity->short_name, 'th');\n $I->seeElement('th span', ['title' => $activity->name, 'data-toggle' => 'tooltip']);\n }\n \n // el nombre del trabajador no debe aparecer en la tabla, pues no reporta actividades\n $I->dontSee('B1 Trabajador 1', 'tbody tr:first-child td:first-child');\n \n // veo que hay un mensaje de alerta que me dice que nada se le ha cargado al trabajador\n $I->see('No hay actividades registradas...', 'div.alert-warning');\n \n // lleno y envío el fomulario registrando una nueva actividad del trabajador\n $activityToReport = [\n 'employee_id' => 1,\n 'mining_activity_id' => 2,\n 'quantity' => 2.5,\n //'worked_hours' => 8,\n 'reported_at' => $date->copy()->addDay()->toDateTimeString(),\n 'comment' => 'Comentario de prueba'\n ];\n \n $I->dontSeeRecord('activity_reports', $activityToReport);\n \n $activityToReport['reported_at'] = $date->copy()->toDateString();\n $I->submitForm('form', $activityToReport, 'Registrar');\n \n // veo que estoy de nuevo en la página de registro de actividad minera\n $I->seeCurrentUrlEquals('/activityReport/create?employee_id=1');\n \n // no debe haber mensajes de alerta o error\n $I->dontSeeElement('div', ['class' => 'alert alert-warning alert-dismissible']);\n $I->dontSeeElement('div', ['class' => 'alert alert-danger alert-dismissible']);\n \n // veo un mensaje de éxito en la operación\n $I->see('Actividad Registrada Correctamente.', '.alert-success');\n\n // refresco la página\n $I->amOnPage('/activityReport/create?employee_id=1');\n \n // veo que en la tabla de la vista previa está el registro que acabo de cargar, con el precio histórico que se ha asignado en ese centro de costo a esa actividad\n $I->see('2.5', 'tbody tr td');\n $I->dontSee('17.500', 'tbody tr td'); // no veo 17.500 porque los 7 mil se le han pagado a otro minero, 2.5 * 7000 = 17.500\n $I->see('12.500', 'tbody tr td'); // 2.5 a $5.000 cada actividad que fue lo que se ha pagado antes a \"este empelado\"\n }",
"public function testDamageCompoundsWithEachExecution(){\r\n $attack = new Attack();\r\n $soldier = new Soldier();\r\n $enemy = new Soldier();\r\n $soldier->setDamage(25);\r\n\r\n $coordinate = new Coordinate();\r\n $coordinate->setSoldier($enemy);\r\n\r\n $attack->execute($soldier, $coordinate);\r\n $attack->execute($soldier, $coordinate);\r\n\r\n $enemy = $coordinate->getSoldier();\r\n\r\n $this->assertEquals(50, $enemy->getHitPoints());\r\n }",
"function buildTestPlanMetrics($statistics,$platform_id = 0)\r\n{\r\n static $lbl;\r\n if(!$lbl)\r\n {\r\n $lbl = lang_get('execution_time_metrics');\r\n } \r\n\r\n $output ='';\r\n $dummy = renderTestDuration($statistics,$platform_id);\r\n if($dummy != '')\r\n { \r\n $output = '<h1 class=\"doclevel\">' . $lbl . \"</h1>\\n\" . $dummy;\r\n }\r\n return $output; \r\n}",
"abstract public function metric();",
"public function test_countalphasearch() {\n $this->load_csv_data();\n $result = track_assignment_count_records(1, null, \"alpha\");\n $this->assertEquals(2, (int)$result);\n }",
"public function run()\n {\n $test_suites = [\n [\n 'name' => 'sysbench',\n 'url' => 'https://github.com/akopytov/sysbench'\n ],\n [\n 'name' => 'Geekbench',\n 'url' => 'http://geekbench.com'\n ],\n [\n 'name' => 'Redis Benchmark',\n 'url' => 'https://redis.io/topics/benchmarks'\n ],\n [\n 'name' => 'Speedtest',\n 'url' => 'https://github.com/sivel/speedtest-cli'\n ],\n ];\n\n foreach($test_suites as $test_suite) {\n TestSuite::create($test_suite);\n }\n }"
] | [
"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.48995322",
"0.48965332",
"0.48961094",
"0.48856023",
"0.48826444",
"0.4876157",
"0.48387396",
"0.48259538",
"0.48225877",
"0.48167694"
] | 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 => 'completed', 2 => 'verified', 3 => 'published'];\n\n foreach ($activities as $activity) {\n $stats[$statsMapping[$activity->activity_workflow]] = $stats[$statsMapping[$activity->activity_workflow]] + 1;\n }\n\n return $stats;\n }",
"function getCount() {\n $user = $this->loadUser(Yii::app()->user->id);\n return $user->count_visit;\n }",
"public function get_count() {\n\t\t$all = $this->get_all();\n\n\t\treturn count( $all );\n\t}",
"public function getNbMoviesActifs()\n {\n $nbMovies = DB::table('movies')\n ->where('visible', 1)\n ->count();\n\n return $nbMovies;\n\n }",
"public function count(): int\n {\n return count($this->events);\n }",
"public function count()\n {\n return count($this->collectedLogs);\n }",
"public function count()\n {\n $endpoint = 'marketing_events/count.json';\n $response = $this->request($endpoint);\n return $response['count'];\n }",
"public function actionCount()\n {\n $session = Yii::$app->session;\n $count = $session->get(\"counter\");\n $count = $count ? $count + 1 : 1;\n $session->set( \"counter\", $count );\n return $count;\n }",
"public static function getCountActiveTasks(){\n $count = \\DB::table('tasks')\n ->where('status', '1')\n ->get()\n ->count();\n return $count;\n }",
"public function count()\n {\n return count($this->events);\n }",
"public function count()\n {\n return count($this->load());\n }",
"public function count()\n {\n return count($this->all());\n }",
"public function count()\n {\n return count($this->all());\n }",
"public function appointmentsCount()\n {\n $input = Request::all();\n\n if (!isset($input['for']) || !isset($input['users'])) {\n $input['for'] = 'users';\n $input['users'] = (array)\\Auth::id();\n }\n\n if (!isset($input['duration'])) {\n $input['duration'] = 'upcoming';\n }\n\n $input['appointment_counts_only'] = true;\n\n $appointments = $this->repo->getFilteredAppointments($input);\n\n $count = $appointments->count();\n\n return ApiResponse::success(['count' => $count]);\n }",
"public function count()\n {\n return count($this->requests);\n }",
"public function count()\n {\n return $this->getTotalCount();\n }",
"public function count()\n\t{\n\t\treturn $this->getTotalCount();\n\t}",
"public function viewCount()\n {\n return $this->views()->sum('count');\n }",
"public function count()\n {\n return count($this->tabs);\n }",
"public function count()\n {\n return count($this->_events);\n }",
"public function count(): int {\n return $this->transitions->count();\n }",
"public function count(): int {\n return $this->transitions->count();\n }",
"public function countVisit() {\n }",
"public function nbActeurs(){\n $query = $this->db->query('\n SELECT COUNT(id) AS nb\n FROM actors');\n\n return $query->row();\n }",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function determine_activity_count( $modifier = NULL )\n {\n return $this->get_record()->get_activity_count( $modifier );\n }"
] | [
"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.64737964",
"0.6473492",
"0.6473492",
"0.64728725",
"0.64654976",
"0.646372",
"0.646372",
"0.646372",
"0.646372",
"0.6460787"
] | 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) ? $this->non_removed_campaign_count : 0;\n }",
"function getTotalRemoved() {\n\t\treturn $this->getOption(self::STAT_TOTAL_REMOVED, 0);\n\t}",
"public function getDroppedAttributesCount()\n {\n return $this->dropped_attributes_count;\n }",
"public function getDroppedAttributesCount()\n {\n return $this->dropped_attributes_count;\n }",
"public function getDropItemsCount()\n {\n return $this->count(self::DROP_ITEMS);\n }",
"public function nonTrashCount()\n\t{\n\t\t$owner=$this->getOwner();\n\t\t$criteria=$owner->getDbCriteria();\t\t\n\t\t$criteria->addCondition($this->trashFlagField.'!='.CDbCriteria::PARAM_PREFIX.CDbCriteria::$paramCount);\n\t\t$criteria->params[CDbCriteria::PARAM_PREFIX.CDbCriteria::$paramCount++]=$this->removedFlag;\t\t\n\n\t\treturn $owner->count();\n\t}",
"public function getDeaths(): int\n {\n return $this->deaths;\n }",
"public function cantidadDisponible()\n\t{\n\t\t$itemsEnviados = EnvioItem::where('items_compras_id', $this->id)->get();\n\n\t\tif ($itemsEnviados->count() > 0) {\n\t\t\treturn $this->cantidad - $itemsEnviados->sum('contidad');\n\t\t}else{\n\t\t\treturn $this->cantidad;\n\t\t}\n\t}",
"public function getTotalInactive() {\n return count($this->findBy(array('status' => 0)));\n }",
"public function count(): int {\n return $this->transitions->count();\n }",
"public function count(): int {\n return $this->transitions->count();\n }",
"public function getItemCount()\n {\n return count($this->shipment);\n }",
"public function countNonDeletedAlbums(): int\n {\n return $this->createQueryBuilder('a')\n ->select('count(a.id)')\n ->getQuery()\n ->getSingleScalarResult();\n }",
"public function getRemainingViews()\n {\n $remainingViews = parent::getRemainingViews();\n sort($remainingViews);\n\n return $remainingViews;\n }",
"public function getAttendingCountAttribute(): int\n {\n $responses = $this->eventResponses()->get();\n $responses->filter(function ($e) {\n return 'Attending' === $e->responseType->name;\n });\n\n return \\count($responses);\n }",
"public static function getPendingCount()\n {\n $q = Doctrine_Query::create()\n ->select('COUNT(r.id) as count')\n ->from('ObservationRevision r')\n ->where('r.status = ?', 'pending');\n $row = $q->fetchOne(array(), Doctrine_Core::HYDRATE_ARRAY);\n return $row['count'];\n }",
"public function getAttachmentCountAttribute()\n {\n return $this->attachments()->count();\n }",
"public function delete()\n {\n $entries = $this->get();\n\n $count = 0;\n\n foreach ($entries as $entry) {\n if ($entry->delete()) {\n ++$count;\n }\n }\n\n return $count;\n }",
"public function delete()\n {\n $entries = $this->get();\n\n $count = 0;\n\n foreach ($entries as $entry) {\n if ($entry->delete()) {\n ++$count;\n }\n }\n\n return $count;\n }",
"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 share count\n\t\t\t$share_count = bp_activity_get_meta( $activity->secondary_item_id, 'yz_activity_share_count' );\n\n\t\t\t// Get share count\n\t\t\t$share_count = ! empty( $share_count ) ? (int) $share_count - 1 : 0;\n\n\t\t\t// Update count\n\t\t\tbp_activity_update_meta( $activity->secondary_item_id, 'yz_activity_share_count', $share_count );\n\n\t\t}\n\n\t}",
"public function getThrowableTNTs() : int {\n return $this->getFetchedData()['Profile']['Gadgets']['THROWABLE TNT'];\n }",
"public function getNumberOfDeaths()\n {\n return $this->numberOfDeaths;\n }",
"public function count()\n {\n return count($this->collectedLogs);\n }",
"public function getNumItemsSkip()\n {\n return $this->tracker->getNumProcessedItems(Tick::SKIP);\n }",
"public static function getLifetimeAmount()\n {\n $waterLogs = WaterLog::all();\n\n $amount = 0;\n\n foreach ($waterLogs as $waterLog) {\n $amount += $waterLog->amount;\n }\n\n return $amount;\n }",
"public function totalActive() {\n\t\treturn $this->getActiveDepartments()->count();\n\t}",
"public function getEntityCount()\n {\n return $this->count(self::ENTITY);\n }"
] | [
"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.5200766",
"0.5200766",
"0.51912206",
"0.5186155",
"0.5178276",
"0.51643497",
"0.51626796",
"0.51578885",
"0.513782",
"0.5136021"
] | 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 share count\n\t\t\t$share_count = bp_activity_get_meta( $activity->secondary_item_id, 'yz_activity_share_count' );\n\n\t\t\t// Get share count\n\t\t\t$share_count = ! empty( $share_count ) ? (int) $share_count - 1 : 0;\n\n\t\t\t// Update count\n\t\t\tbp_activity_update_meta( $activity->secondary_item_id, 'yz_activity_share_count', $share_count );\n\n\t\t}\n\n\t}",
"public function setDroppedAttributesCount($var)\n {\n GPBUtil::checkInt32($var);\n $this->dropped_attributes_count = $var;\n\n return $this;\n }",
"public function setDroppedAttributesCount($var)\n {\n GPBUtil::checkUint32($var);\n $this->dropped_attributes_count = $var;\n\n return $this;\n }",
"public function afterDelete()\n {\n if ($this->group_id > 0) {\n Group::findOne($this->group_id)->updateCounters(['projects_count' => -1]);\n }\n\n parent::afterDelete();\n }",
"public function decrementNumViews()\n {\n $this->numViews--;\n }",
"public function getDroppedAttributesCount()\n {\n return $this->dropped_attributes_count;\n }",
"public function getDroppedAttributesCount()\n {\n return $this->dropped_attributes_count;\n }",
"public function decrementInstanceCount ()\n\t{\n\t $this->setInstanceCount($this->getInstanceCount() - 1);\n\t $this->save();\n\t}",
"public function setNotApplicableCount(?int $value): void {\n $this->getBackingStore()->set('notApplicableCount', $value);\n }",
"public function addUniqueTagedCount()\n {\n $select = clone $this->getSelect();\n \n $select->reset()\n ->from(array('rel' => $this->getTable('tag/relation')), 'COUNT(DISTINCT rel.tag_id)')\n ->where('rel.product_id = e.entity_id');\n\n $this->getSelect()\n ->columns(array('utaged' => new Zend_Db_Expr(sprintf('(%s)', $select))));\n return $this;\n }",
"public function addViewCount() {\n $this->view_count = $this->view_count + 1;\n $this->save();\n }",
"public function setConflictCount(?int $value): void {\n $this->getBackingStore()->set('conflictCount', $value);\n }",
"public function resetCount(): void\n {\n $this->totalCount = null;\n }",
"public function setFailedCount(?int $value): void {\n $this->getBackingStore()->set('failedCount', $value);\n }",
"public function updateCount()\n {\n $this->count = $this->posts()->count();\n\n $this->save();\n }",
"public function getDropItemsCount()\n {\n return $this->count(self::DROP_ITEMS);\n }",
"public function setCount($count);",
"public function setFailedDeviceCount(?int $value): void {\n $this->getBackingStore()->set('failedDeviceCount', $value);\n }",
"public function resetNrOfVendorArticles()\n {\n // resetting vendors cache\n $this->resetContentCache();\n }",
"public function reset() {\n $this->itemcount = 0;\n parent::reset();\n }",
"protected function _afterImport($cnt)\n {\n // alternative: run save en masse at end:\n //$this->applyAllChanges();\n parent::_afterImport($cnt);\n }",
"public function unsetCount($index)\n {\n unset($this->count[$index]);\n }",
"public function incrementRejectionCount()\n {\n $this->rejectionCount++;\n }",
"function set_activity_share_count( $content, $user_id, $activity_id ) {\n\t\t$this->update_activity_share_count( $activity_id );\n\t}",
"public function ignoreCount() {\n $this->ignoreCount = true;\n return $this;\n }",
"public function onDelete()\n {\n Activity::insert(array(\n 'actor_id' => Auth::user()->id,\n 'trackable_type' => get_class($this),\n 'trackable_id' => $this->id,\n 'action' => 'deleted',\n 'details' => $this->toJson(),\n 'created_at' => new DateTime(),\n 'updated_at' => new DateTime(),\n ));\n }",
"public function setResolvedTargetsCount(?int $value): void {\n $this->getBackingStore()->set('resolvedTargetsCount', $value);\n }",
"public function getActiveShipmentCountAttribute()\n {\n return ($this->belongsToMany('App\\Product', 'shipment_products')->count());\n }"
] | [
"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.44663",
"0.44641334",
"0.44526997",
"0.4417248",
"0.4387691",
"0.4373397",
"0.4349412",
"0.4319503",
"0.43156967",
"0.43146214"
] | 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_2;\n if(empty($team2))return SL_TEAM_1;\n\n // all player of a team left the game. Winner is the other team\n if($this->countPlayerLeft($team1)==count($team1)){\n return SL_TEAM_2;\n }\n if($this->countPlayerLeft($team2)==count($team2)){\n\n return SL_TEAM_1;\n }\n\n // this works in most cases: player that executed the last commands is the winner\n if($this->lastActionInTeam($team1)>$this->lastActionInTeam($team2)){\n return SL_TEAM_1;\n }else{\n return SL_TEAM_2;\n }\n\n }",
"function getOtherTeam($thisTeamID, $thisWeek, $thisSeason, $conn)\n{\n $getTeamSQL = \"SELECT if(s.scorea >= s.scoreb, s.teamA, s.teamB) as 'teamA', \";\n $getTeamSQL .= \"if(s.scorea >= s.scoreb, s.teamB, s.teamA) as 'teamB', \";\n $getTeamSQL .= \"if(s.scorea >= s.scoreb, tna.name, tnb.name), \";\n $getTeamSQL .= \"if(s.scorea >= s.scoreb, tnb.name, tna.name) \";\n $getTeamSQL .= \"FROM schedule s, team ta, team tb, teamnames tna, teamnames tnb \";\n $getTeamSQL .= \"WHERE s.Week=$thisWeek AND s.Season=$thisSeason \";\n $getTeamSQL .= \"AND (s.TeamA=$thisTeamID OR s.TeamB=$thisTeamID) \";\n $getTeamSQL .= \"AND s.teamA=ta.teamid and s.teamb=tb.teamid \";\n $getTeamSQL .= \"AND ta.teamid=tna.teamid AND tb.teamid=tnb.teamid \";\n $getTeamSQL .= \"AND tna.season=s.Season AND tnb.season=s.season \";\n\n $results = mysqli_query($conn, $getTeamSQL);\n $row = mysqli_fetch_array($results);\n return $row;\n}",
"function getEarliestLoggedInTeam() \n {\n $retval = \"\";\n $query = \"SELECT * FROM $this->tableName WHERE timeLoggedIn > 0 ORDER BY timeLoggedIn DESC\";\n $result = mysql_query($query);\n if ($row = mysql_fetch_object($result)) \n {\n $retval = $row->Name;\n }\n\n mysql_free_result($result);\n return $retval;\n }",
"public function hasTeamallfree(){\n return $this->_has(4);\n }",
"public function currentTeam()\n {\n if (is_null($this->current_team_id) && $this->hasTeams()) {\n $this->switchToTeam($this->teams->first());\n\n return $this->currentTeam();\n } elseif (! is_null($this->current_team_id)) {\n $currentTeam = $this->teams->find($this->current_team_id);\n\n return $currentTeam ?: $this->refreshCurrentTeam();\n }\n }",
"function havePlayersInEarlyGame($earliestGame, $fantasyTeamName, $leagueName, $leagueYear) \n{\n $retval = false;\n $found = false;\n\n $CNFLPlayer = new NFLPlayer($leagueName, $leagueYear);\n $CNFLTeam = new NFLTeam($leagueYear);\n\n //Step 1 -- convert time of earliest game to YYYYMMDD000000\n $dayOfGame = substr(makeTimeStamp($earliestGame), 0, 8) . \"000000\";\n //Find all games for that day\n $CNFLSchedule = new NFLSchedule($leagueName, $leagueYear);\n $CNFLSchedule->GetAllGamesForDate($dayOfGame);\n while ($CNFLSchedule->GetNextRecord()) \n {\n //Get nfl teams for the week\n $visitorName = $CNFLTeam->getShortNameFromID($CNFLSchedule->getVisitorNumber());\n $homeName = $CNFLTeam->getShortNameFromID($CNFLSchedule->getHomeNumber());\n $CNFLPlayer->GetPlayersOnFantasyTeam($fantasyTeamName);\n while ($CNFLPlayer->GetNextRecord()) \n {\n if ($CNFLPlayer->getNFLTeam() == $visitorName || $CNFLPlayer->getNFLTeam() == $homeName) \n {\n $found = true;\n break;\n }\n }\n if ($found == true) \n {\n $retval = true;\n break;\n }\n }\n\n $CNFLTeam->Destroy();\n $CNFLSchedule->Destroy();\n $CNFLPlayer->Destroy(); \n\n return $retval;\n}",
"public static function matchTeams()\n {\n $newcomers = User::newcomer()->whereNull('team_id')->get();\n\n // Create an array to branch_id with number of newcomers in the team\n $countPerTeam = [];\n $teams = Team::all();\n foreach ($teams as $team) {\n if (!isset($countPerTeam[$team->branch])) {\n $countPerTeam[$team->branch] = [];\n }\n $countPerTeam[$team->branch][$team->id] = $team->newcomers->count();\n }\n\n foreach ($newcomers as $newcomer) {\n // Remove exchange or master students from auto team assignement\n if ($newcomer->branch == 'CV ING' || $newcomer->branch == 'PAIP-GS' || $newcomer->branch == 'RE' || $newcomer->branch == 'ISC') {\n continue;\n }\n\n // Select teams associated with newcomer's branch if exist\n $branch = null;\n if (isset($countPerTeam[$newcomer->branch])) {\n $branch = $newcomer->branch;\n }\n\n // find teams with less newcomers and take it randomly\n $min = min($countPerTeam[$branch]);\n $keys = array_keys($countPerTeam[$branch], $min);\n $key = array_rand($keys);\n\n // set the new team and tell there is another number\n $newcomer->team_id = $keys[$key];\n $countPerTeam[$branch][$keys[$key]]++;\n }\n\n // Save it to DB\n foreach ($newcomers as $newcomer) {\n $newcomer->save();\n }\n }",
"public function getTeam()\n {\n return $this->team;\n }",
"function get_players(){\r\n\t$cond[] = array(\"col\" => \"team\", \"value\" => \"999\", \"func\" => \"!=\");\r\n\t$players = uli_get_results('player', $cond);\r\n\tif ($players){return $players;}\r\n\telse {return FALSE;}\r\n}",
"function getFreeGame($url) {\n\t\t//http://www.mlb.com/mediacenter/#date=5/29/2015\n\t\t$json = file_get_contents($url);\n\t\t$obj = json_decode($json,true);\n\n\t\t// Loop through today's game, checking for which game is free based on the json structure\n\n\t\t// no data yet on mlb's website\n\t\tif (empty($obj['data']['games']['game'])) {\n\t\t\treturn 'No Free Game Scheduled Yet';\n\t\t}\n\n\t\tforeach ($obj['data']['games']['game'] as $game) {\n\t\t\t// no data yet on mlb's website\n\t\t\tif (empty($game['game_media']) or empty($game['game_media']['homebase'])) {\n\t\t\t\treturn 'No Free Game Scheduled Yet';\n\t\t\t}\n\n\t\t\tforeach ($game['game_media']['homebase']['media'] as $media) {\n\t\t\t\tif (!empty($media['free']) && $media['free'] == 'ALL') {\n\t\t\t\t\t//return $game['home_team_name'] . \" - \" . $game['away_team_name'];\n\t\t\t\t\treturn $game;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public function hasTeamid(){\n return $this->_has(15);\n }",
"public function getWinner() {\r\n if($this->lotsTotal == 0) { return false; }\r\n\r\n // * 1,000,000, to make sure that lots in decimal form are handled right\r\n $rand = mt_rand(1, $this->lotsTotal * 1000000);\r\n $currentLot = 0;\r\n\r\n foreach($this->participants as $participant) {\r\n $currentLot += $participant['lots'] * 1000000;\r\n if($currentLot >= $rand) {\r\n return $participant['participant'];\r\n }\r\n }\r\n return false; // should never happen\r\n }",
"function getTeamOnClock($season) {\n global $conn;\n // Get the current Pick\n // Make sure this is the correct team for it\n $draftPicks = new DataObjects_Draftpicks;\n $draftPicks->Season = $season;\n $draftPicks->whereAdd(\"playerid is null\");\n $draftPicks->orderBy(\"Round\");\n $draftPicks->orderBy(\"Pick\");\n $draftPicks->find(true);\n\n $sql = \"SELECT value FROM config where `key`='draft.start'\";\n $result = mysqli_query($conn, $sql) or die(\"Unable to get start: \" . mysqli_error($conn));\n $row = mysqli_fetch_array($result);\n if ($row[0] == \"true\") {\n return $draftPicks->teamid;\n } else {\n return null;\n }\n}",
"function getTeam($name){\n foreach($this->teams as $team){\n if($team['name'] == $name){\n return $team;\n }\n }\n }",
"public function getTeamsWithStuffToReview()\n {\n $this->ensureAuthed();\n\n $allTeams = TeamStatus::listAllTeams();\n $teams = array_filter($allTeams, function($team) {\n $status = new TeamStatus($team);\n return $status->needsReview('image');\n });\n\n $output = Output::getInstance();\n\n $teams = array_values($teams);\n $output->setOutput('teams', $teams);\n return true;\n }",
"public function refreshCurrentTeam()\n {\n $this->current_team_id = null;\n\n $this->save();\n\n return $this->currentTeam();\n }",
"public function getCurrentTeamAttribute()\n {\n return $this->currentTeam();\n }",
"public static function get_current_streamer_team(){\n if (is_user_logged_in()):\n $teams = get_posts(array(\n 'post_type' => 'teams',\n 'post_status' => 'any',\n 'author' => get_current_user_id()\n ));\n if (!empty($teams)):\n return $teams;\n else:\n return;\n endif;\n else: \n return;\n endif; \n }",
"public function get_STE_Team() {\n return $this->ste_team;\n }",
"public function getTeam()\n {\n if ($this->type == Config\\Config::SENIOR) {\n $url = Network\\Request::buildUrl(array('file' => 'teamdetails', 'teamID' => $this->getId(), 'version' => Config\\Version::TEAMDETAILS));\n return new Xml\\Team\\Senior(Network\\Request::fetchUrl($url), $this->getId());\n } elseif ($this->type == Config\\Config::YOUTH) {\n $url = Network\\Request::buildUrl(array('file' => 'youthteamdetails', 'youthTeamId' => $this->getId(), 'version' => Config\\Version::YOUTHTEAMDETAILS));\n return new Xml\\Team\\Youth(Network\\Request::fetchUrl($url));\n }\n return null;\n }",
"function get_mostplayedmatch() {\n\n\t\tif (empty($this->request->params['requested'])) {\n throw new ForbiddenException();\n }\n\t\t\n\t\t$dataInfosArray = $mostplayedData = $data = $dataInfos = array();\t\t\n\t $events = $this->Event->mostplayedMatch();\t\n\n\t\tif(!empty($events)){\n\t\t\n\t\t\tforeach ($events as $eventKey => $event) {\n\n\t\t\t\t$data[$event['l']['sport_id']][$event['e']['event_id']]['totalbets'] = $event['0']['totalbets'];\n\t\t\t\t$data[$event['l']['sport_id']][$event['e']['event_id']]['bet_id'] = $event['b']['bet_id'];\n\t\t\t\t$data[$event['l']['sport_id']][$event['e']['event_id']]['league_id'] = $event['e']['league_id'];\n\t\t\t\t$data[$event['l']['sport_id']][$event['e']['event_id']]['league_name'] = $event['l']['league_name'];\n\t\t\t\t$data[$event['l']['sport_id']][$event['e']['event_id']]['sport_name'] = $event['s']['sport_name']; \n\t\t\t\t$data[$event['l']['sport_id']][$event['e']['event_id']]['event_id'] = $event['e']['event_id']; \n\t\t\t\t$data[$event['l']['sport_id']][$event['e']['event_id']]['event_name'] = $event['e']['event_name']; \n\t\t\t\t$data[$event['l']['sport_id']][$event['e']['event_id']]['event_date'] = $event['e']['event_date'];\n\t\t\t\t$data[$event['l']['sport_id']][$event['e']['event_id']]['event_date'] = $event['e']['event_date'];\n\t\t\t\t$betArray = $this->Event->query(\"select id from bets where event_id='\".$event['e']['event_id'].\"'\");\n\t\t\t\tif(!empty($betArray)){\t\t\n\t\t\t\t\tforeach ($betArray as $betKey => $bets) {\n\t\t\t\t\t\t$betPartsArray = $this->Event->query(\"select * from bet_parts where bet_id='\".$bets['bets']['id'].\"' order by odd \");\t\t\t\n\t\t\t\t\t\tforeach ($betPartsArray as $betPartsKey => $betParts) {\t\t\t\t\t\t\n\t\t\t\t\t\t\t$data[$event['l']['sport_id']][$event['e']['event_id']]['bet_part_odd_most'][$betParts['bet_parts']['id']] = $betParts['bet_parts']['odd'];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$data[$event['l']['sport_id']][$event['e']['event_id']]['bet_part_odd_most'][] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!empty($data)){\t\t\t\t\t\n\t\t $dataEventsOut = array_slice($data, 0 ,4,true);\t\n\t\t\tforeach($dataEventsOut as $dataEventsOutkey =>$dataEventsOutkeyAll){\n\t\t\t\t$dataEventsOutAll[$dataEventsOutkey] = array_slice($dataEventsOutkeyAll, 0 ,5);\t\t\n\t\t\t}\n\t\t\tforeach($dataEventsOutAll as $dataEventsOutAllkey =>$dataEventsOutallVal){\t\t\t\t\t\t\n\t\t\t\t$mostplayedData['navigation'][$dataEventsOutAllkey] = $dataEventsOutallVal[0]['sport_name'];\t\n\t\t\t\t$mostplayedData['mostplayedbet'][$dataEventsOutAllkey] = $dataEventsOutallVal;\n\t\t\t}\n\t\t\t$this->set('mostplayedData',$mostplayedData);\n\t\t}\n }",
"function get_latestwins() {\n\t\t$getlatestResult=1;\n\t\t$this->set('getlatestResult',$getlatestResult);\n\t}",
"function mostplayedMatch(){\n\n\t\t$data = array();\n\t\t$data = $this->query(\"select count(*) as totalbets, b.id as bet_id,bp.name as bet_part_name, bp.odd as bet_part_odd, e.league_id, l.name as league_name, s.name as sport_name, l.sport_id,e.id as event_id,e.name as event_name,e.date as event_date FROM bet_parts as bp,bets as b, events as e, leagues as l, sports as s where e.active = 1 and l.active = 1 and s.active = 1 and b.event_id = e.id and l.id = e.league_id and s.id = l.sport_id and b.id = bp.bet_id and e.date >= DATE(NOW()) AND (e.result = '' or e.result = 'NULL') group by e.league_id order by totalbets DESC\");\n\t\treturn $data;\n\t}",
"public function winner()\n\t{\n\t\treturn $this->belongs_to('Clan', 'clan_winner_id');\n\t}",
"function lastMatchInfo(){\nglobal $region, $riotapikey, $lastMatchID, $summonerID, $champNameURL1, $champNameURL2, $champNameURL3, $participantDamageDealt, $participantDeaths, $participantKills, $participantAssists, $participantGold, $participantCSMin, $participantWLresult, $participantWLcolor;\n $participantIDorder = $participantID = '';\n//parse lastest match information from Riot API\n$lastMatchInfoURL = \"https://\". $region .\".api.riotgames.com/lol/match/v3/matches/\". $lastMatchID .\"?api_key=\" . $riotapikey;\n$lastMatchInfoResult = file_get_contents($lastMatchInfoURL);\n$lastMatchInfoResult = json_decode($lastMatchInfoResult, true);\n//search in the 10 participants in the game for your participant ID\nfor ($i = 0; $i <= 9; $i++) {\n if($lastMatchInfoResult[\"participantIdentities\"][$i][\"player\"][\"summonerId\"] == $summonerID ){\n $participantID= $i + 1 ;\n $participantIDorder = $i;\n };\n};\n//fetch game win, game time, damage dealt, deaths, kills, assists, gold and cs by your player\n$participantWL = $lastMatchInfoResult[\"participants\"][$participantIDorder][\"stats\"][\"win\"];\n$participantDamageDealt = $lastMatchInfoResult[\"participants\"][$participantIDorder][\"stats\"][\"totalDamageDealtToChampions\"];\n$participantDeaths = $lastMatchInfoResult[\"participants\"][$participantIDorder][\"stats\"][\"deaths\"];\n$participantKills = $lastMatchInfoResult[\"participants\"][$participantIDorder][\"stats\"][\"kills\"];\n$participantAssists = $lastMatchInfoResult[\"participants\"][$participantIDorder][\"stats\"][\"assists\"];\n$participantGold = $lastMatchInfoResult[\"participants\"][$participantIDorder][\"stats\"][\"goldEarned\"];\n$participantCS = $lastMatchInfoResult[\"participants\"][$participantIDorder][\"stats\"][\"totalMinionsKilled\"] + $lastMatchInfoResult[\"participants\"][$participantIDorder][\"stats\"][\"neutralMinionsKilledEnemyJungle\"] + $lastMatchInfoResult[\"participants\"][$participantIDorder][\"stats\"][\"neutralMinionsKilledTeamJungle\"];\n$participantGameTime = $lastMatchInfoResult[\"gameDuration\"];\n//transform seconds into average minutes of game\n$participantGameTime = round($participantGameTime / 60);\n//calculate cs per min\n$participantCSMin = round($participantCS / $participantGameTime,1);\n //get color for the chip, red for loss, green for win\nif($participantWL == true){\n $participantWLresult = \"Win\";\n $participantWLcolor = \"green\";\n} else {\n $participantWLresult = \"Loss\";\n $participantWLcolor = \"red\";\n};\n}",
"function get_all_team_names(){\r\n\t$cond[] = array(\"col\" => \"active\", \"value\" => 0);\r\n\r\n\t$fields = array('ID', 'teamname');\r\n\t$result = uli_get_results('teams', $cond, $fields);\r\n\tif ($result){\r\n\t\tforeach ($result as $name){\r\n\t\t\t$teamname[$name['ID']] = $name['teamname'];\r\n\t\t}}\r\n\t\tif ($teamname){return $teamname;}\r\n\t\telse {return FALSE;}\r\n}",
"public function ByeTeam() \r\n\t{\r\n\t\t//Byeteams hebben een ID van -1 zodat ze uit de resultaten te halen zijn.\r\n\t\t$iTeamID = -1;\r\n\t}",
"public function hasTeam()\n {\n return $this->team !== null;\n }",
"public function WatchingV2(){\n\t\t$memberId = Member::currentUserID();\n\t\t$watching = Watching::get()->filter(array(\n\t\t\t\t'ContractorID' => $memberId,\n\t\t\t\t'TenderID' => $this->ID\n\t\t))->first();\n\t\tif($watching)\n\t\t\treturn $watching;\n\t\treturn false;\n\t}"
] | [
"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.50608706",
"0.50579625",
"0.4980892",
"0.49803635",
"0.4954041",
"0.49454656",
"0.4942998",
"0.4937185",
"0.49317718",
"0.49127805"
] | 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 = get_option('mbtng_path');\r\n\t\tif (stripos($filename, 'admin') !== FALSE) {\r\n\t\t\t//$filename = substr ($filename, 6);\r\n\t\t\t$admin = true;\r\n\t\t\t//$tng_folder .= 'admin';\r\n\t\t} else {\r\n\t\t\tini_set('include_path', ini_get('include_path').PATH_SEPARATOR.$tng_folder);\r\n\t\t\t$admin = false;\r\n\t\t}\r\n\t\teval('?>'.get_option('mbtng_globalvars').'<?php ');\r\n $filename = mbtng_folder_trailingslashit($tng_folder).$filename;\r\n\t\tob_start();\r\n\t\tif ($admin || $filename == 'pdfform.php')\r\n\t\t\tchdir($tng_folder);\r\n\r\n require $filename;\r\n $output = ob_get_contents();\r\n ob_end_clean();\r\n\t\t$tng_output = $output;\r\n\t}\r\n\tmbtng_close_tng_table();\r\n\treturn $tng_output;\r\n}",
"function _ca_custom_php_eval($php, $arguments) {\n $argument_data = array();\n\n // Convert the arguments to an array of data that we can extract.\n foreach ($arguments as $key => $value) {\n $argument_data[$key] = $value['#data'];\n }\n\n extract($argument_data);\n return eval($php);\n}",
"function drupal_eval($code) {\n ob_start();\n print eval('?>'. $code);\n $output = ob_get_contents();\n ob_end_clean();\n return $output;\n}",
"function exp ($arg) {}",
"function wpv_evaluate_expression($expression){\n //Replace AND, OR, ==\n $expression = strtoupper($expression);\n $expression = str_replace(\"AND\", \"&&\", $expression);\n $expression = str_replace(\"OR\", \"||\", $expression);\n $expression = str_replace(\"NOT\", \"!\", $expression);\n $expression = str_replace(\"=\", \"==\", $expression);\n $expression = str_replace(\"!==\", \"!=\", $expression); // due to the line above\n \n // validate against allowed input characters\n\t$count = preg_match('/[0-9+-\\=\\*\\/<>&\\!\\|\\s\\(\\)]+/', $expression, $matches);\n\t\n\t// find out if there is full match for the entire expression\t\n\tif($count > 0) {\n\t\tif(strlen($matches[0]) == strlen($expression)) {\n\t\t\t \t$valid_eval = wpv_eval_check_syntax(\"return $expression;\");\n\t\t\t \tif($valid_eval) {\n\t\t\t \t\treturn eval(\"return $expression;\");\n\t\t\t \t}\n\t\t\t \telse {\n\t\t\t \t\treturn __(\"Error while parsing the evaluate expression\", 'wpv-views');\n\t\t\t \t}\n\t\t}\n\t\telse {\n\t\t\treturn __(\"Conditional expression includes illegal characters\", 'wpv-views');\n\t\t}\n\t}\n\telse {\n\t\treturn __(\"Correct conditional expression has not been found\", 'wpv-views');\n\t}\n\t\n}",
"function evalLoop($bot)\n{\n echo \"Enter code to be evaluated:\";\n for(;;)\n {\n $code = eval(trim($bot->Console->get(\"> \")));\n if ($code) print_r($code);\n }\n}",
"private function evaluateExpression($expr) {\n // echo $expr->getExpressionType().$expr->getEvaluationMethod();\n if( in_array($expr->getExpressionType(),Config::$allowedExpressionTypes ) and\n in_array($expr->getEvaluationMethod(),Config::$allowedExpressionTypeMethods )) {\n $reflClass = new ReflectionClass($expr->getEvaluationMethod());\n if( $reflClass->implementsInterface($expr->getExpressionType()) ) {\n $reflMethod = $reflClass->getMethod(Config::getMethodForExpression($expr));\n $arguments = array();\n $methodParams = $expr->getMethodParameters();\n\n foreach($reflMethod->getParameters() as $param) {\n /* @var $param ReflectionParameter */\n if($param->getName()==\"usersArray\" and isset( $methodParams[$param->getName()]) and is_array($methodParams[$param->getName()]) ){\n $arguments[] = $methodParams[$param->getName()];\n }else if($param->getName()==\"usersArray\"){\n $arguments[] = $this->userExpressionResult;\n\n }else if( isset( $methodParams[$param->getName()] ) ) {\n $arguments[] = $methodParams[$param->getName()];\n }else {\n if($param->getName()==\"objectList\") {\n $arguments[] = $this->objectList;\n }else if($param->isDefaultValueAvailable()) {\n $arguments[] = $param->getDefaultValue();\n }else{\n $arguments[] = Config::getDefaultValueForParameter($param);\n }\n }\n\n }\n //print_r(\"<!--\".$arguments.\"-->\");\n /**\n * TODO: improve getting methods!! (eval)\n */\n //print_r($reflMethod);\n $methodClass = $expr->getEvaluationMethod();\n $result = $reflMethod->invokeArgs(new $methodClass, $arguments);\n //print_r($result);\n return $result;\n\n\n }else {\n //method doesnt support expression type\n return false;\n }\n }else {\n //method or expression type not allowed\n return false;\n }\n }",
"function testc($cond,$pargs=Array()) {\r\n$cond = $this->execLine($cond,$pargs);\r\n\r\n\r\n$operatorArray = Array(\r\n\"isin\" => \"isinfunc\",\r\n\"isincs\" => \"isincsfunc\",\r\n\"iswm\" => \"iswmfunc\",\r\n\"iswmcs\" => \"iswmcsfunc\",\r\n\"isnum\" => \"isnumfunc\",\r\n\"isletter\" => \"isletterfunc\",\r\n\"isalphanum\" => \"isalphanumfunc\",\r\n\"isalpha\" => \"isalphafunc\",\r\n\"islower\" => \"islowerfunc\",\r\n\"isupper\" => \"isupperfunc\",\r\n\r\n\"=\" => \"equalfunc\",\r\n\"==\" => \"equalfunc\",\r\n\"===\" => \"equalcsfunc\",\r\n\"!=\" => \"notequalfunc\",\r\n\"//\" => \"multiplefunc\",\r\n\"\\\\\\\\\" => \"notmultiplefunc\",\r\n\"&\" => \"bitwisefunc\",\r\n\">\" => \"graterthanfunc\",\r\n\"<\" => \"lessthanfunc\",\r\n\">=\" => \"graterthanequalfunc\",\r\n\"<=\" => \"lessthanequalfunc\");\r\n \r\n\r\n\r\n\t$t = explode(\" \",$cond);\r\n\tif (count($t)==1) {\r\n\t\tif ($t[0][0] == \"!\") { \r\n\t\t\t$n = true;\r\n\t\t\t$t[0] = $this->execScript(substr($t[0],1));\r\n\t\t} \r\n\t\t$this->_scope['defined']['v1'] = $cond;\r\n\t\t$this->_scope['defined']['ifmatch'] = $cond;\r\n\t\t\r\n\t\t$r = (($t[0] != \"\") && ($t[0] !== \"0\"));\r\n\t\tif ($n) { return !$r; }\r\n\t\telse { return $r; }\r\n\t}\r\n\t$func = null;\r\n\tfor ($i=0;$i<count($t);$i++) { \r\n\t\tif (array_key_exists($t[$i],$operatorArray)) { \r\n\t\t\t$func = $operatorArray[$t[$i]];\r\n\t\t\t$v1 = implode(\" \",array_slice($t,0,$i));\r\n\t\t\t$v2 = implode(\" \",array_slice($t,$i+1));\r\n\t\t\t\r\n\t\t\tif (method_exists($this,$func)) { \r\n\t\t\t\t$r = call_user_func_array(Array($this,$func),Array($v1,$v2));\r\n\t\t\t\t$this->_scope['defined']['v1'] = $v1;\r\n\t\t\t\t$this->_scope['defined']['v2'] = $v2;\r\n\t\t\t\t$this->_scope['defined']['ifmatch'] = ($r)?'$true':'$false';\r\n\t\t\t\treturn $r;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthrow new Exception(\"IF_OPERATOR_NOT_IMPLIMENTED {$t[$i]}\");\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n}",
"protected function compiler_eval($source)\n {\t\n // Shorten up the text here\n $l_delim = \"<\";\n $r_delim = \">\";\n $trigger = $this->config['trigger'];\n \n // Look for Compiler eval Messages, We must process these first!\n if(strpos($source, $l_delim . $trigger .\"eval\") !== FALSE)\n {\n // Create our regex and fid all matches in the source\n $regex = $l_delim . $trigger .\"eval\". $r_delim .\"(.*)\". $l_delim . \"/\". $trigger .\"eval\". $r_delim;\n preg_match_all(\"~\". $regex .\"~iUs\", $source, $matches, PREG_SET_ORDER);\n \n // Loop through each match and eval it\n foreach($matches as $match)\n {\n ob_start();\n eval('?>'.$match[1]);\n $content = ob_get_contents();\n ob_end_clean();\n $source = str_replace($match[0], $content, $source);\n }\n }\n \n return $source;\n }",
"function evaluateExpression($expression) {\n\t\treturn eval('return '.$expression.';');\n\t}",
"public function expr( $data )\n\t{\n\t\tdebug('psp', \"EVAL: $data\");\n\t\t$ret = eval( strpos($data, \"return\")===false? \"return $data;\" : $data );\n\t\tdebug('psp', \"EVAL result: $ret\");\n\n\t\treturn $ret;\n\t}",
"public static function ICodeEval($code)\n {\n return eval($code);\n }",
"private static function _methodEvalPHP ($matches)\n {\n $source = str_replace( array('<?php', '<?', '?>'), '', $matches[0]);\n ob_start();\n eval($source);\n $source = ob_get_contents();\n ob_end_clean();\n\n return $source;\n }",
"function evaluateExpression($expression)\n {\n return eval('return ' . $expression . ';');\n }",
"static function evaluateRestrictedFunction($realpath_of_submitted_file){\n try{\n if( self::searchSystemWords($realpath_of_submitted_file) ){\n self::$RESULTS[\"judgment\"] = self::$VERDICTS['RF'];\n return true;\n }\n return false;\n }catch(\\Exception $e){\n self::$RESULTS[\"judgment\"] = self::$VERDICTS['IE'];\n return true;\n } \n }",
"abstract protected function Interpret();",
"public function __invoke()\n {\n echo \"I'm not a function, im above that\\n\";\n }",
"public function functionCall($expr){ }",
"public function testVariablesAssignedByFunctions () {\n // list of known functions both that can and cannot set variable's value\n //\n // strict mode:\n // known_function_that_assign_variable($unknown_var); // ok\n // known_function_that_doesnt_assign_variable($unknown_var); // error\n // unknown_function($unknown_var); // warning\n // unknown_function($unknown_var_in_expression*2); // error\n // relaxed mode:\n // known_function_that_assign_variable($unknown_var); // ok\n // known_function_that_doesnt_assign_variable($unknown_var); // warning\n // unknown_function($unknown_var); // warning\n // unknown_function($unknown_var_in_expression*2); // warning\n //\n // list-of-known-function =\n // explicit list of functions +\n // config file defined funcions +\n // result of get_defined_functions() + // don't overwrite functions from above\n // parsing of current file // overwrite or not?\n //\n\n $testPhpCode = '<?php\n\n function foo () {\n // internal functions\n preg_match(\"#pattern#\", \"string-to-be-mateched\", $matches); // ok\n preg_match(\"#pattern#\", \"string-to-be-mateched\", null); // error (non-var pass by ref)\n preg_grep(\"pattern\", $input); // error\n sort($array); // error\n sort( array(1,2,3) ); // error (non-var pass by ref)\n\n // locally-defined functions\n local_function_with_pass_by_reference_argument2(1, $var2); // ok\n local_function_with_pass_by_reference_argument2($var3, $var4); // error in $var3 only\n\n // unknown functions\n unknown_function($unknown_var); // warning\n unknown_function($unknown_var_in_expression*2); // error\n }\n\n function bar ($args) {\n extract($args); // relaxed mode from here\n\n // internal functions\n preg_match(\"#pattern#\", \"string-to-be-mateched\", $matches); // ok\n preg_match(\"#pattern#\", \"string-to-be-mateched\", null); // error (non-var pass by ref)\n preg_grep(\"pattern\", $input); // warning\n sort($array); // warning\n sort( array(1,2,3) ); // error (non-var pass by ref)\n\n // locally-defined functions\n local_function_with_pass_by_reference_argument2(1, $var2); // ok\n local_function_with_pass_by_reference_argument2($var3, $var4); // warning in $var3 only\n\n // unknown functions\n unknown_function($unknown_var); // warning\n unknown_function($unknown_var_in_expression*2); // warning\n }\n\n function local_function_with_pass_by_reference_argument2($arg1, &$arg2) {\n $arg2 = $arg1;\n }\n\n sort( array(1,2,3) ); // error (non-var pass by ref)\n sort( Foo::$bar ); // ok\n\n ';\n\n $expectedDefects = array(\n array('null', 6, XRef::ERROR),\n array('$input', 7, XRef::ERROR),\n array('$array', 8, XRef::ERROR),\n array('array', 9, XRef::ERROR),\n array('$var3', 13, XRef::ERROR),\n array('$unknown_var', 16, XRef::WARNING),\n array('$unknown_var_in_expression', 17, XRef::ERROR),\n\n array('null', 25, XRef::ERROR),\n array('$input', 26, XRef::WARNING),\n array('$array', 27, XRef::WARNING),\n array('array', 28, XRef::ERROR),\n array('$var3', 32, XRef::WARNING),\n array('$unknown_var', 35, XRef::WARNING),\n array('$unknown_var_in_expression', 36, XRef::WARNING),\n\n array('array', 43, XRef::ERROR),\n );\n $this->checkPhpCode($testPhpCode, $expectedDefects);\n\n $testPhpCode = '<?php\n\n class Foo {\n public function preg_match() {}\n public function sort(&$x) {}\n\n public function bar() {\n $this->preg_match(\"\", \"\", $x); // error: method preg_match doesnt initialize vars\n Foo::preg_match(\"\", \"\", $y); // error\n self::preg_match(\"\", \"\", $z); // error\n preg_match(\"\", \"\", $ok); // ok, this is internal preg_match\n\n $this->sort($a); // ok\n Foo::sort($b); // ok\n self::sort($c); // ok\n sort($d); // error - internal sort doesnt intialize vars\n }\n }\n\n function test () {\n Foo::preg_match(\"\", \"\", $i); // error\n preg_match(\"\", \"\", $j); // ok\n $foo = new SomeClass();\n $foo->preg_match(\"\", \"\", $k); // warning: unknown preg_match (?)\n\n Foo::sort($l); // ok\n sort($m); // error, internal sort\n $foo->sort($n); // warning, unknown $foo sort\n }\n\n Foo::preg_match(\"\", \"\", $i); // warning (global relaxed scope, otherwise - error)\n preg_match(\"\", \"\", $j); // ok\n $foo = new SomeClass();\n $foo->preg_match(\"\", \"\", $k); // warning: this is unknown preg_match\n\n Foo::sort($l); // ok\n sort($m); // warning, internal sort\n $foo->sort($n); // warning, unknown sort\n '\n ;\n\n $expectedDefects = array(\n array('$x', 8, XRef::ERROR),\n array('$y', 9, XRef::ERROR),\n array('$z', 10, XRef::ERROR),\n array('$d', 16, XRef::ERROR),\n\n array('$i', 21, XRef::ERROR),\n array('$k', 24, XRef::WARNING),\n array('$m', 27, XRef::ERROR),\n array('$n', 28, XRef::WARNING),\n\n array('$i', 31, XRef::WARNING),\n array('$k', 34, XRef::WARNING),\n array('$m', 37, XRef::WARNING),\n array('$n', 38, XRef::WARNING),\n );\n $this->checkPhpCode($testPhpCode, $expectedDefects);\n\n //\n $testPhpCode = '<?php\n\n $arraysort = array();\n array_multisort($arraysort, SORT_ASC); // ok, no error on second arg\n echo $expectedError;\n '\n ;\n $expectedDefects = array(\n array('$expectedError', 5, XRef::WARNING),\n );\n $this->checkPhpCode($testPhpCode, $expectedDefects);\n\n //\n XRef::setConfigValue(\n 'lint.add-function-signature',\n array(\n 'foo(&$x)',\n 'Foo::bar($a, &$b)',\n 'Bar::baz(&$a, &$b)',\n '?::qux(&$a, &$b)',\n )\n );\n\n // re-create the lint plugins with new config settings\n $this->resetPlugins();\n\n $testPhpCode = '<?php\n\n function t() {\n foo($x); // ok\n foo($y, $z); // error on $z\n\n Foo::bar(1, $a); // ok\n Foo::bar($b, $c); // error on $b\n\n $i = 0;\n $x->baz($i, $j); // warning on $j\n $l = $m = 10;\n $x->foo->baz($k, $l, $m); // warning on $k\n\n $x->qux($p, $q); // ok, unknown class of $x, matches \"?::qux\"\n $p->foo->bar->qux($r); // ok\n $x->qux($s, $t, $u); // error on $u\n\n }\n '\n ;\n\n $expectedDefects = array(\n array('$z', 5, XRef::ERROR),\n array('$b', 8, XRef::ERROR),\n array('$j', 11, XRef::WARNING),\n array('$k', 13, XRef::WARNING),\n array('$u', 17, XRef::ERROR),\n );\n $this->checkPhpCode($testPhpCode, $expectedDefects);\n\n $testPhpCode = '<?php\n\n class Foo {\n public $bar = array();\n public static $baz = array();\n }\n\n function passed_by_ref_arg(Array &$a) {\n echo array_pop($a);\n }\n\n $a = array();\n $foo = new Foo;\n\n passed_by_ref_arg($a); // ok\n passed_by_ref_arg($foo->bar); // ok\n passed_by_ref_arg(Foo::$baz); // ok\n passed_by_ref_arg(\\External\\Code::$x); // ok\n passed_by_ref_arg(Some\\Other::$z); // ok\n passed_by_ref_arg( array(1, 2, 3) ); // error\n '\n ;\n\n $expectedDefects = array(\n array('array', 20, XRef::ERROR),\n );\n $this->checkPhpCode($testPhpCode, $expectedDefects);\n\n }",
"function __call($func,$args){\n\t\treturn FALSE;\n\t}",
"function __p()\n{\n\t//$translate=Frd::getGlobal(\"translate\");\n\tglobal $global;\n\t$translate=$global->translate;\n\n\t$args=func_get_args();\n\t$num=func_num_args();\n\n\tif($num == 0)\n\treturn '';\n\n\t$str=$args[0];\n\tif($num == 1)\n\t{\n\t\techo $translate->_($str);\n\t\treturn ;\n\t}\n\n\tunset($args[0]);\n\t//$param='\"'.implode('\",\"',$args).'\"';\n\n\t//$str='$ret=sprintf(\"'.$translate->_($str).'\",'.$param.');';\n\t//eval($str);\n\n$str=$translate->_($str);\n\t//echo $ret;\n\tforeach($args as $parameter)\n\t{\n\t$str=Frd_Regexp::replace($str,\"%s\",$parameter,1);\n\t}\n\t\n\techo $str;\n\n}",
"public function execute($eval, $context, $rule);",
"public function testAllVariablesAccessable()\r\n {\r\n $this->assertEquals('foobarblar', $this->smarty->fetch('eval:{$foo}{$bar}{$blar}'));\r\n }",
"function eval_formula($formula, $values)\n{\n\t$macros = ['{impressions}', '{ctr}', '{clicks}', '{cr}', '{conversions}', '{payout}', '{revenue}'];\n\t$formula = 'if('.str_replace($macros, $values, $formula).') { return true; } else { return false; }';\n\treturn eval($formula);\n}",
"public function getInternalEvalautorString() {\r\n $line = \"\";\r\n for ($i = 0; $i < count($this->internalEvaluators); $i++) {\r\n $line .= $this->internalEvaluators[$i] . \" . \";\r\n }\r\n return $line;\r\n }",
"private static function functionCall($globals) {\n\t\t$scanner = $globals->curr_pkg->scanner;\n\t\t$scanner->readSym();\n\t\tif ($scanner->sym === Symbol::$sym_rround) {\n\t\t\t$scanner->readSym();\n\t\t\treturn;\n\t\t}\n\t\tdo {\n\t\t\t/* $ignore = */ Expression::parse($globals);\n\t\t\tif ($scanner->sym === Symbol::$sym_comma) {\n\t\t\t\t$scanner->readSym();\n\t\t\t} else if ($scanner->sym === Symbol::$sym_rround) {\n\t\t\t\t$scanner->readSym();\n\t\t\t\treturn;\n\t\t\t}\n\t\t} while (TRUE);\n\t}",
"function function_usable($function_name)\n\t{\n\t\tstatic $_suhosin_func_blacklist = NULL;\n\n\t\tif (function_exists($function_name))\n\t\t{\n\t\t\tif ( ! isset($_suhosin_func_blacklist))\n\t\t\t{\n\t\t\t\tif (extension_loaded('suhosin'))\n\t\t\t\t{\n\t\t\t\t\t$_suhosin_func_blacklist = explode(',', trim(@ini_get('suhosin.executor.func.blacklist')));\n\n\t\t\t\t\tif ( ! in_array('eval', $_suhosin_func_blacklist, TRUE) && @ini_get('suhosin.executor.disable_eval'))\n\t\t\t\t\t{\n\t\t\t\t\t\t$_suhosin_func_blacklist[] = 'eval';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$_suhosin_func_blacklist = array();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn ! in_array($function_name, $_suhosin_func_blacklist, TRUE);\n\t\t}\n\n\t\treturn FALSE;\n\t}",
"public function getName()\n {\n return 'eval';\n }"
] | [
"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.5301062",
"0.52936363",
"0.5291122",
"0.52714163",
"0.52584404",
"0.52528787",
"0.52405924",
"0.5223178",
"0.52162975",
"0.51851004"
] | 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 $_usertime->subYear($_birthdate);\r\n\t\t $_birthdate->setYear($_usertime->getYear());\r\n\t\t $this->age = $_birthdate->get(Zend_Date::YEAR);\r\n\t\t if($_birthdate->compare($_usertime)>=0)$this->age-=1;\r\n } else {\r\n $this->age = 0;\r\n }\r\n return $this->age;\r\n }",
"public function age() {\n\tdate_default_timezone_set('Europe/Amsterdam');\n\t\t$age = date_create($this->birthdate)->diff(date_create('today'))->y;\n \n\t\treturn $age;\n\t}",
"public function age()\n {\n return (Carbon::now()->year - $this->birth_year);\n }",
"public function getAge()\n {\n return $this->age;\n }",
"public function getAge()\n {\n return $this->age;\n }",
"public function getAge()\n {\n return $this->age;\n }",
"public function getAge()\n {\n return $this->age;\n }",
"public function getAge()\n {\n return $this->age;\n }",
"public function getAge()\n {\n return $this->age;\n }",
"public function getAge() {\n\t\treturn $this->age;\n\t}",
"public function getAge() {\n return $this->age;\n }",
"public function getAge()\n\t{\n\t\treturn $this->age;\n\t}",
"public function recordAge()\n {\n $timestamp = time();\n $modified = $this->attribute( 'modified' );\n return $timestamp - $modified;\n }",
"function getAge($userDob){\n $dob = new DateTime($userDob);\n $now = new DateTime();\n $difference = $now->diff($dob);\n\n $age = $difference->y;\n\n return $age;\n}",
"public function age() {\n if ($this->athletes->count()< 1) {\n return '-';\n }\n\n $minAge = $this->athletes->max('birth')->age;\n $maxAge = $this->athletes->min('birth')->age;\n\n if ($minAge == $maxAge) {\n return $minAge;\n }\n\n return $minAge . ' - ' . $maxAge;\n }",
"function getAge(){\r\n return $this->age;\r\n }",
"protected function getAge()\n {\n return $this->search_start->diffInYears($this->birth_date) + 1;\n }",
"public function getAge()\n {\n if ($this->_age === NULL) {\n $this->_age = date_diff(date_create($this->birth_date), date_create('today'))->y;\n\n }\n return $this->_age;\n }",
"public function getAgeAttribute()\n {\n $now = Carbon::now();\n $birthday = Carbon::createFromFormat('Y-m-d', $this->attributes['birthday']);\n return $birthday->diffInYears($now);\n }",
"public function getAge()\n {\n return $this->ageGroup;\n }",
"public function getAge()\n {\n $now = new \\DateTime();\n $diff = $this->birthday->diff($now);\n return $diff->y;\n }",
"public function getAge() {\n if ($this->getBirthdate() && $this->getBirthdate() != '0000-00-00') {\n return date('Y-m-D', time()) - $this->getBirthdate();\n }\n return 0;\n }",
"public function getAge(): int\n {\n return $this->_age;\n }",
"public function getAge(): int\n {\n return $this->_age;\n }",
"public function getProfileAge() {\n\t\treturn (TIME_NOW - $this->registrationDate) / 86400;\n\t}",
"public function getAge()\n {\n if (is_null($this->birthdate)) {\n return null;\n }\n\n $age = $this->birthdate->diffInYears(Carbon::now());\n\n return $age;\n }",
"public function getAge()\n {\n if (null !== ($age = $this->headers->get('Age'))) {\n return (int) $age;\n }\n return max(time() - $this->getDate()->format('U'), 0);\n }",
"public function getAge():float\n {\n return $this->age;\n }",
"public function getAge($date){\r\n return (int) ((time() - strtotime($date)) / 3600 / 24 / 365);\r\n }",
"public function getAge() {\n list($year, $month, $day) = explode(\"-\", $this->getBirthday());\n \n $year_diff = date(\"Y\") - $year;\n $month_diff = date(\"m\") - $month;\n $day_diff = date(\"d\") - $day;\n \n if ($day_diff < 0 || $month_diff < 0)\n $year_diff--;\n \n return $year_diff; \n\t\t}"
] | [
"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.6451209",
"0.6434465",
"0.6434465",
"0.6344639",
"0.6333409",
"0.62819695",
"0.6281928",
"0.6260362",
"0.62599504"
] | 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 instance.\r\n\t\tGoogle_Auth\\Auth::instance()->setup_default( $network, $client_id );\r\n\r\n\t\t// Access code.\r\n\t\t$access_code = sanitize_text_field( $access_code );\r\n\r\n\t\t// Exchange access code and get access token.\r\n\t\ttry {\r\n\t\t\t$token = Google_Auth\\Auth::instance()->client()->fetchAccessTokenWithAuthCode( $access_code );\r\n\r\n\t\t\t// Save access and refresh tokens if success.\r\n\t\t\tif ( isset( $token['access_token'], $token['refresh_token'] ) ) {\r\n\t\t\t\tif ( isset( $token['scope'] ) ) {\r\n\t\t\t\t\tunset( $token['scope'] );\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Get default credentials.\r\n\t\t\t\t$default_credentials = Google_Auth\\Data::instance()->credentials();\r\n\r\n\t\t\t\t// Save the token.\r\n\t\t\t\tGoogle_Auth\\Actions::instance()->save_settings(\r\n\t\t\t\t\t'google_login',\r\n\t\t\t\t\tarray(\r\n\t\t\t\t\t\t'access_token' => wp_json_encode( $token ), // For backward compatibility.\r\n\t\t\t\t\t\t'logged_in' => 2, // Logged in flag.\r\n\t\t\t\t\t\t'method' => 'connect', // Login method.\r\n\t\t\t\t\t\t'name' => '', // Clear old name.\r\n\t\t\t\t\t\t'email' => '', // Clear old email.\r\n\t\t\t\t\t\t'photo' => '', // Clear old photo.\r\n\t\t\t\t\t\t'client_id' => $client_id,\r\n\t\t\t\t\t\t'client_secret' => isset( $default_credentials[ $client_id ]['secret'] ) ? $default_credentials[ $client_id ]['secret'] : '',\r\n\t\t\t\t\t),\r\n\t\t\t\t\t$network\r\n\t\t\t\t);\r\n\r\n\t\t\t\t// Setup user data.\r\n\t\t\t\tGoogle_Auth\\Data::instance()->user( $network );\r\n\r\n\t\t\t\t/**\r\n\t\t\t\t * Hook to execute after authentication.\r\n\t\t\t\t *\r\n\t\t\t\t * @param bool $success Is success or fail?.\r\n\t\t\t\t * @param bool $default Did we connect using default credentials?.\r\n\t\t\t\t * @param bool $network Network flag.\r\n\t\t\t\t *\r\n\t\t\t\t * @since 3.2.0\r\n\t\t\t\t */\r\n\t\t\t\tdo_action( 'beehive_google_auth_completed', true, true, $network );\r\n\r\n\t\t\t\t// Send response.\r\n\t\t\t\treturn $this->get_response();\r\n\t\t\t}\r\n\t\t} catch ( Exception $e ) {\r\n\t\t\t/**\r\n\t\t\t * Hook to execute after authentication failure.\r\n\t\t\t *\r\n\t\t\t * @param bool $success Is success or fail?.\r\n\t\t\t * @param bool $default Did we connect using default credentials?.\r\n\t\t\t * @param bool $network Network flag.\r\n\t\t\t *\r\n\t\t\t * @since 3.2.0\r\n\t\t\t */\r\n\t\t\tdo_action( 'beehive_google_auth_completed', false, true, $network );\r\n\r\n\t\t\t// Well, failed. Go home.\r\n\t\t\treturn $this->get_response(\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'error' => $e->getMessage(),\r\n\t\t\t\t),\r\n\t\t\t\tfalse\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\t// Send response.\r\n\t\treturn $this->get_response( array(), false );\r\n\t}",
"function getClient() {\n $client = getBaseClient();\n // Load previously authorized credentials from a file.\n $credentialsPath = expandHomeDirectory(CREDENTIALS_PATH);\n if (file_exists($credentialsPath)) {\n $accessToken = json_decode(file_get_contents($credentialsPath), true);\n } else {\n moveCredentials();\n // Request authorization from the user.\n $authUrl = $client->createAuthUrl();\n $vShellCommand = \"x-www-browser \\\"$authUrl\\\"\";\n shell_exec($vShellCommand);\n echo \"Trying to directly open url by $vShellCommand\\n\";\n printf(\"Open the following link in your browser:\\n%s\\n\", $authUrl);\n print 'Enter verification code: ';\n $authCode = trim(fgets(STDIN));\n writeClientAuth($client, $authCode);\n\n }\n $client->setAccessToken($accessToken);\n\n // Refresh the token if it's expired.\n if ($client->isAccessTokenExpired()) {\n if (!$client->getRefreshToken()){\n unlink($credentialsPath);\n throw new Exception('refresh token not found. deleted ' . $credentialsPath . ' retry');\n }\n $client->fetchAccessTokenWithRefreshToken($client->getRefreshToken());\n file_put_contents($credentialsPath, json_encode($client->getAccessToken()));\n }\n return $client;\n}",
"private function exchangeToken(string $client_id, string $client_secret, string $code)\n {\n $payload = [\n 'client_id' => $client_id,\n 'client_secret' => $client_secret,\n 'grant_type' => 'authorization_code',\n 'code' => $code,\n 'redirect_uri' => route('seatnotifications.callback.discord.server'),\n 'scope' => implode(self::SCOPES, ' '),\n ];\n\n $request = (new Client())->request('POST', 'https://discordapp.com/api/oauth2/token', [\n 'form_params' => $payload,\n ]);\n\n $response = json_decode($request->getBody(), true);\n\n if (is_null($response))\n throw new Exception('response from Discord was empty.');\n\n return array_merge($response, [\n 'request_date' => array_first($request->getHeader('Date')),\n ]);\n }",
"public function deactivate_client() {\n $data = get_plugin_data($this->plugin_file, $markup = false, $translate = false);\n $license = get_option('zpm_license');\n\n $activation_data = $this->call_api(\n 'bye', array(\n 'l' => $license,\n 'h' => preg_replace('/^www\\./', '', $_SERVER['HTTP_HOST']),\n 'n' => $data['Name']\n )\n );\n\n delete_option('zpm_plugin_id');\n delete_option('zpm_license');\n }",
"public function client_credentials(){\n\t\t$this->server->addGrantType(new OAuth2\\GrantType\\ClientCredentials($this->storage, array(\n \t\t\"allow_credentials_in_request_body\" => true\n\t\t)));\n\t\t$this->server->handleTokenRequest($this->request)->send();\n\t}",
"function onlineserver_GetEPPCode($params)\n{\n // user defined configuration values\n $url = $params['Url'];\n $username = $params['Username'];\n $password = $params['Password'];\n\n // domain parameters\n $sld = $params['sld'];\n $tld = $params['tld'];\n\n // Build post data\n $postfields=[\n 'username'=>$username,\n 'password'=>$password,\n 'data'=>[\n 'domain'=> [\n 'name' => $sld,\n 'extension' => $tld\n ],\n \"authCodeType\" => \"external\"\n ]\n ];\n\n try {\n $api = new ApiClient();\n $api->call('getAuthCode', $postfields);\n\n if ($api->getFromResponse('authCode')) {\n // If EPP Code is returned, return it for display to the end user\n return array(\n 'eppcode' => $api->getFromResponse('authCode'),\n );\n } else {\n // If EPP Code is not returned, it was sent by email, return success\n return array(\n 'success' => 'success',\n );\n }\n\n } catch (\\Exception $e) {\n return array(\n 'error' => $e->getMessage(),\n );\n }\n}",
"public function getCodeClient() {\n return $this->codeClient;\n }",
"public function getCodeClient() {\n return $this->codeClient;\n }",
"public function getCodeClient() {\n return $this->codeClient;\n }",
"public function getCodeClient() {\n return $this->codeClient;\n }",
"public function getCodeClient() {\n return $this->codeClient;\n }",
"function exchangeCode($authorizationCode) {\n try {\n $client = new Google_Client();\n $client->setClientId($this->ClientId);\n $client->setClientSecret($this->ClientSecret);\n $client->setRedirectUri($this->redirect_url);\n $client->setAccessType('offline');\n $client->setApprovalPrompt('force');\n $_GET['code'] = $authorizationCode;\n return $client->authenticate();\n } catch (Google_AuthException $e) {\n print 'An error occurred: ' . $e->getMessage();\n throw new CodeExchangeException(null);\n }\n }",
"function ilSoapAuthentication()\n\t{\n\t\tunset($_COOKIE['PHPSESSID']);\n\n\t\tparent::ilBaseAuthentication();\n\t\t$this->__setMessageCode('Client');\n\t}",
"function instant_to_cryptox($mtgox_code, $amount) {\n$request = bitinstant_req('GetQuote', 'mtgoxcoupon', $amount, 'cryptoxchange', 'cryptox_account_number_goes_here');\n\n$quoteid = $request->QuoteID;\n\n$request = bitinstant_req('NewOrder', 'mtgoxcoupon', '', 'cryptoxchange', '', '', $quoteid, array(\"code\"=>\"$mtgox_code\", \"mtgoxusername\"=>\"mtgox_username_goes_here\"), '', '');\nreturn $request->OrderID;\n}",
"static function subscribe_site($context) {\n $context->setProperty('http_basic_auth_username');\n $context->setProperty('http_basic_auth_password');\n $context->setProperty('http_basic_auth_message');\n }",
"public function transfer($options = ['test-mode' => FALSE]) {\n $root = $this->getConfigValue('repo.root');\n $sites = Multisite::getAllSites($root);\n $site = $this->askChoice('Select which site to transfer.', $sites);\n $id = Multisite::getIdentifier(\"https://$site\");\n $mode = $options['test-mode'] ? 'test' : 'prod';\n $old = $this->getApplicationFromDrushRemote($id, $mode);\n\n // Get the applications and unset the current as an option.\n $applications = $this->config->get('uiowa.applications');\n $choices = $applications;\n unset($choices[$old]);\n $new = $this->askChoice(\"Site $site is currently on $old. Which cloud application should it be transferred to?\", array_keys($choices));\n\n // Instantiate a new API client to use with requests.\n $client = $this->getAcquiaCloudApiClient();\n\n // Check that new application has SSL coverage.\n $client->addQuery('filter', \"name=$mode\");\n $response = $client->request('GET', \"/applications/$applications[$new]/environments\");\n $client->clearQuery();\n\n // If for some odd reason there is more than one environment, bail.\n if (!$response || count($response) > 1) {\n return new CommandError(\"Error getting information for new application $mode environment.\");\n }\n\n /** @var object $target_env */\n $target_env = array_shift($response);\n\n if ($mode == 'prod') {\n $this->logger->notice('Checking SSL coverage...');\n $certificates = new SslCertificates($client);\n $has_ssl_coverage = FALSE;\n $certs = $certificates->getAll($target_env->id);\n $sans_search = Multisite::getSslParts($site)['sans'];\n\n foreach ($certs as $cert) {\n if ($cert->flags->active == TRUE) {\n foreach ($cert->domains as $san) {\n if ($san == $site || $san == $sans_search) {\n $has_ssl_coverage = TRUE;\n break 2;\n }\n }\n }\n }\n\n if (!$has_ssl_coverage) {\n return new CommandError(\"No SSL coverage for $site on $new.\");\n }\n }\n else {\n $this->logger->info('Skipping SSL check in test mode.');\n }\n\n // Make the user confirm before proceeding.\n if (!$this->confirm(\"You will transfer $site from $old $mode -> local -> $new $mode. Are you sure?\", TRUE)) {\n throw new \\Exception('Aborted.');\n }\n\n $databases = new Databases($client);\n $db = Multisite::getDatabaseName($site);\n $this->logger->notice(\"Starting cloud database creation for <comment>{$db}</comment> on $new...\");\n\n // With test mode, the source database is never deleted. We can allow this\n // to fail in test mode to make transferring sites back and forth easier.\n try {\n $database_op = $databases->create($applications[$new], $db);\n $notification = $this->waitForOperation($database_op, $client);\n\n // Its possible the task fails for another reason, bail if so. Everything\n // below hinges on it succeeding so the new site code can bootstrap.\n if ($notification->status != 'completed') {\n return new CommandError('Database create operation did not complete. Cannot proceed with transfer.');\n }\n }\n catch (ApiErrorException $e) {\n if ($mode == 'prod') {\n return new CommandError(\"Unable to create database on $new application.\");\n }\n else {\n $this->logger->warning(\"Database $db already exists on $new application. Allowing command to proceed in test mode.\");\n }\n }\n\n // Toggle users to block everyone on the site while the transfer happens.\n $this->taskDrush()\n ->alias(\"$id.$mode\")\n ->drush('users:toggle')\n ->printOutput(FALSE)\n ->stopOnFail()\n ->run();\n\n // Sync from old application environment to local.\n $this->taskDrush()\n ->alias(\"$id.local\")\n ->drush('sql:create')\n ->stopOnFail()\n ->run();\n\n $this->taskDrush()\n ->drush('sql:sync')\n ->args([\n \"@$id.$mode\",\n \"@$id.local\",\n ])\n ->stopOnFail()\n ->run();\n\n $this->taskDrush()\n ->drush('rsync')\n ->args([\n \"@$id.$mode:%files\",\n \"@$id.local:%files\",\n ])\n ->stopOnFail()\n ->run();\n\n // Now that the site is synced locally, change the Drush alias to point at\n // the new application. This is necessary for the Drush tasks below.\n $new_app_alias = YamlMunge::parseFile(\"{$root}/drush/sites/{$new}.site.yml\");\n $site_alias = YamlMunge::parseFile(\"{$root}/drush/sites/{$id}.site.yml\");\n\n // Change dev/test/prod - local stays the same.\n foreach (['dev', 'test', 'prod'] as $env) {\n $site_alias[$env]['host'] = $new_app_alias[$env]['host'];\n $site_alias[$env]['user'] = $new_app_alias[$env]['user'];\n $site_alias[$env]['root'] = $new_app_alias[$env]['root'];\n }\n\n $this->taskWriteToFile(\"{$root}/drush/sites/{$id}.site.yml\")\n ->text(Yaml::dump($site_alias, 10, 2))\n ->run();\n\n $this->taskGit()\n ->dir($root)\n ->add(\"drush/sites/$id.site.yml\")\n ->commit(\"Update $site Drush alias to new application $new\")\n ->interactive(FALSE)\n ->printOutput(FALSE)\n ->printMetadata(FALSE)\n ->run();\n\n // Sync from local to new application environment.\n $this->taskDrush()\n ->drush('sql:sync')\n ->args([\n \"@$id.local\",\n \"@$id.$mode\",\n ])\n ->stopOnFail()\n ->run();\n\n $this->taskDrush()\n ->drush('rsync')\n ->args([\n \"@$id.local:%files\",\n \"@$id.$mode:%files\",\n ])\n ->stopOnFail()\n ->run();\n\n // Toggle users again to unblock. This is using the new alias which is key.\n $this->taskDrush()\n ->alias(\"$id.$mode\")\n ->drush('users:toggle')\n ->printOutput(FALSE)\n ->stopOnFail()\n ->run();\n\n // Remove the domain from the old application and create on the new one.\n $domains = new Domains($client);\n\n // Get the old environment UUID.\n $client->addQuery('filter', \"name=$mode\");\n $response = $client->request('GET', \"/applications/$applications[$old]/environments\");\n $client->clearQuery();\n\n if (!$response || count($response) > 1) {\n return new CommandError('Unable to get old application environment information. Domain not transferred.');\n }\n\n // Shift the environment off the response array.\n $source_env = array_shift($response);\n\n // Transfer both the prod and internal domains, if they exist.\n $domains_to_transfer = [\n $site,\n Multisite::getInternalDomains($id)[$mode],\n ];\n\n // Try to get the domain first and catch the exception if it doesn't exist.\n foreach ($domains_to_transfer as $domain) {\n try {\n $domains->get($source_env->id, $domain);\n $domains->delete($source_env->id, $domain);\n $this->logger->notice(\"Deleted domain $domain from $old $mode.\");\n try {\n $domains->create($target_env->id, $domain);\n $this->logger->notice(\"Created domain $domain on $new $mode.\");\n }\n catch (ApiErrorException $e) {\n $this->logger->warning(\"Could not create domain $domain on $new $mode.\");\n }\n }\n catch (ApiErrorException $e) {\n $this->logger->warning(\"Domain $domain does not exist on $old $mode.\");\n }\n }\n\n $this->say(\"Site <comment>$site</comment> has been transferred. Inspect the site and then run the cleanup tasks below if everything looks ok.\");\n\n if ($this->confirm(\"Permanently delete old database and files from $old $mode?\", FALSE)) {\n // Only delete database in prod mode since it gets deleted in all envs.\n if ($mode == 'prod') {\n $databases->delete($applications[$old], $db);\n }\n else {\n $this->logger->warning(\"Test mode. Skipping database deletion.\");\n }\n\n $this->deleteRemoteMultisiteFiles($id, $old, $mode, $site);\n }\n\n $this->say('Transfer process complete. Transfer additional sites if needed and deploy this branch as per the usual release process.');\n }",
"public function unregister_site( Credentials $credentials ) {\n\t\tif ( ! $credentials->has() ) {\n\t\t\tthrow new Exception( 'oauth_credentials_not_exist' );\n\t\t}\n\n\t\t$creds = $credentials->get();\n\n\t\t$response = wp_remote_post(\n\t\t\t$this->url( self::OAUTH2_DELETE_SITE_URI ),\n\t\t\tarray(\n\t\t\t\t'body' => array(\n\t\t\t\t\t'site_id' => $creds['oauth2_client_id'],\n\t\t\t\t\t'site_secret' => $creds['oauth2_client_secret'],\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\n\t\tif ( is_wp_error( $response ) ) {\n\t\t\tthrow new Exception( $response->get_error_code() );\n\t\t}\n\n\t\t$raw_body = wp_remote_retrieve_body( $response );\n\t\t$response_data = json_decode( $raw_body, true );\n\n\t\tif ( ! $response_data || isset( $response_data['error'] ) ) {\n\t\t\tthrow new Exception(\n\t\t\t\tisset( $response_data['error'] ) ? $response_data['error'] : 'failed_to_parse_response'\n\t\t\t);\n\t\t}\n\n\t\treturn $response_data;\n\t}",
"function unproxyify() {\r\n\t\t\t\t// clean the connection\r\n\t\t\t\tunset ( $this->ch );\r\n\t\t\t\t\r\n\t\t\t\t// curl ini\r\n\t\t\t\t$this->ch = curl_init ();\r\n\t\t\t\tcurl_setopt ( $this->ch, CURLOPT_HEADER, 0 );\r\n\t\t\t\tcurl_setopt ( $this->ch, CURLOPT_RETURNTRANSFER, 1 );\r\n\t\t\t\tcurl_setopt ( $this->ch, CURLOPT_CONNECTTIMEOUT, 20 );\r\n\t\t\t\tcurl_setopt ( $this->ch, CURLOPT_TIMEOUT, 30 );\r\n\t\t\t\tcurl_setopt ( $this->ch, CURLOPT_REFERER, 'http://www.google.com' );\r\n\t\t\t\tcurl_setopt ( $this->ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8' );\r\n\t\t\t\tcurl_setopt ( $this->ch, CURLOPT_MAXREDIRS, 5 ); // Good leeway for redirections.\r\n\t\t\t\tcurl_setopt ( $this->ch, CURLOPT_FOLLOWLOCATION, 1 ); // Many login forms redirect at least once.\r\n\t\t\t\tcurl_setopt ( $this->ch, CURLOPT_COOKIEJAR, \"cookie.txt\" );\r\n\t\t\t}",
"public function exchangeAccessToken()\n {\n $exchangeTokenParameters = [\n 'grant_type' => 'fb_exchange_token',\n 'client_id' => $this->clientId,\n 'client_secret' => $this->clientSecret,\n 'fb_exchange_token' => $this->getStoredData('access_token'),\n ];\n\n $response = $this->httpClient->request(\n $this->accessTokenUrl,\n 'GET',\n $exchangeTokenParameters\n );\n\n $this->validateApiResponse('Unable to exchange the access token');\n\n $this->validateAccessTokenExchange($response);\n\n return $response;\n }",
"public function getProxyPassword() { return $this->proxyPassword; }",
"function getToken($code) {\n if(!isset($this->clientId) || !isset($this->clientSecret)) { throw new Exception(\"Client Id or Client Secret is not set.\\n\"); }\n $url = self::exchangeUrl;\n $req = curl_init($url);\n $body = http_build_query(\n array(\n 'client_id' => $this->clientId,\n 'client_secret' => $this->clientSecret,\n 'code' => $code\n )\n );\n\n curl_setopt($req, CURLOPT_POST, 1);\n curl_setopt($req, CURLOPT_POSTFIELDS, $body);\n curl_setopt($req, CURLOPT_RETURNTRANSFER, true);\n\n $jsonString = curl_exec($req);\n\n if (curl_error($req)) $error_msg = curl_error($req);\n curl_close($req);\n if (isset($error_msg)) throw new Exception($error_msg);\n\n $json = json_decode($jsonString);\n return $json->{'access_token'};\n }",
"public function shareSite($site, $client) {\n\n global $xoopsUser;\n \n $postdata = \\http_build_query(\n array(\n 'ptype' => 'share-site',\n 'client_key' => $client['client_key'],\n 'client_url' => $client['client_url'],\n 'site_name' => $site['site_name'],\n 'site_descr' => $site['site_descr'],\n 'site_url' => $site['site_url'],\n 'site_uniqueid' => $site['site_uniqueid'],\n 'site_active' => $site['site_active'],\n 'site_submitter' => $xoopsUser->getVar('uname') . ' - ' . \\XOOPS_URL\n )\n );\n\n $helper = Helper::getInstance();\n return $helper->execExchangeData($client['client_url'], $postdata);\n }",
"static function subscribe_site($context) {\n $context->setProperty('site_data');\n }",
"public function exchangeCode($authorizationCode) {\n try {\n $client = new Google_Client();\n $client->setClientId($this->ClientId);\n $client->setClientSecret($this->ClientSecret);\n $client->setRedirectUri($this->redirect_url);\n $client->setAccessType('offline');\n $client->setApprovalPrompt('force');\n $_GET['code'] = $authorizationCode;\n return $client->authenticate();\n } catch (Google_AuthException $e) {\n print 'An error occurred: ' . $e->getMessage();\n throw new CodeExchangeException(null);\n }\n }",
"function cas_server_proxy_page() {\n $targetService = urldecode($_GET['targetService']);\n $pgt = $_GET['pgt'];\n \n $response = array('proxy' => TRUE);\n if (!$targetService || !$pgt) {\n $response['code'] = 'INVALID_REQUEST';\n $response['error'] = '\"pgt\" and \"targetService\" parameters are both required';\n }\n elseif (!$pgt_ticket = cas_server_load_proxy_granting_ticket($pgt)) {\n $response['code'] = 'INVALID_TICKET';\n $response['error'] = 'Ticket '. $pgt .'is not recognized';\n }\n else if ($pgt_ticket->service_url != $targetService) {\n watchdog('cas_server', 'PROXY request invalid. The given proxy granting ticket (@pgt) does not belong to the target service (@service).', array('@pgt' => $$pgt, '@service' => $targetService), WATCHDOG_WARNING);\n $response['code'] = 'INVALID_TICKET';\n $response['error'] = 'Ticket '. $pgt .' does not match with '. $targetService;\n }\n else {\n if ($proxy_ticket = cas_server_new_proxy_ticket($pgt, $targetService)) {\n $response['success'] = $proxy_ticket->proxy_ticket;\n }\n else {\n $response['code'] = 'INTERNAL_ERROR';\n $response['error'] = 'An internal error occurred while granting proxy ticket';\n }\n }\n \n _cas_server_validate_response('2.0', $response);\n}",
"function & client_proxy($url) {\n\t\t$wsdl = $this->_get_wsdl($url);\n\t\t$this->soapclient = new soap_client($wsdl, true);\n\n\t\t$proxy = $this->soapclient->getProxy();\n\t\treturn $proxy;\n\t}",
"function getAuthCodeFresh()\r\n {\r\n $refreshToken = $this->_scopeConfig->getValue(self::XML_PATH_ZOHO_CONFIG_REFRESH_TOKEN, ScopeInterface::SCOPE_STORE);\r\n $clientId = $this->_scopeConfig->getValue(self::XML_PATH_ZOHO_CONFIG_CLIENT_ID, ScopeInterface::SCOPE_STORE);\r\n $clientSecret = $this->_scopeConfig->getValue(self::XML_PATH_ZOHO_CONFIG_CLIENT_SECRET, ScopeInterface::SCOPE_STORE);\r\n $url = $this->getUrlGetToken();\r\n $data = [\r\n 'refresh_token' => $refreshToken,\r\n 'client_id' => $clientId,\r\n 'client_secret' => $clientSecret,\r\n 'grant_type' => 'refresh_token'\r\n ];\r\n $client = $this->_httpClientFactory->create();\r\n $client->setUri($url);\r\n $client->setConfig(['timeout' => 300]);\r\n $client->setParameterPost($data);\r\n $response = $client->request('POST')->getBody();\r\n $result = json_decode($response, true);\r\n if (isset($result['error'])) {\r\n $authkey = $result['error'];\r\n } else {\r\n $authkey = $result['access_token'];\r\n $this->configWriter->save(self::XML_PATH_ZOHO_CONFIG_ACCESS_TOKEN, $authkey, $scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, 0);\r\n $this->configWriter->save(self::XML_PATH_ZOHO_CONFIG_TIME_GET_TOKEN, time(), $scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeId = 0);\r\n $this->_resourceConfig->saveConfig(self::XML_PATH_ZOHO_CONFIG_TIME_GET_TOKEN, time(), $scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, 0);\r\n\r\n }\r\n $this->_resourceConfig->saveConfig(self::XML_PATH_ZOHO_CONFIG_ACCESS_TOKEN, $authkey, $scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, 0);\r\n return $authkey;\r\n\r\n }",
"function proxy($domain, $postvars) {\nlog_prog('proxy', 'domain: ' . $domain );\nlog_prog('proxy', 'POSTVARS: ' . $postvars);\n\n\t$ch = curl_init($domain);\n\n\tcurl_setopt($ch, CURLOPT_POST , 0);\n\tcurl_setopt($ch, CURLOPT_VERBOSE , 0);\n//\tcurl_setopt($ch, CURLOPT_USERAGENT , isset( $_SERVER[ 'User-Agent' ]) ? $_SERVER[ 'User-Agent' ] : '');\n\tcurl_setopt($ch, CURLOPT_POSTFIELDS , $postvars);\n//\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n\tcurl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\n\tcurl_setopt($ch, CURLOPT_REFERER , $domain);\n\tcurl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);\n\tcurl_setopt($ch, CURLOPT_AUTOREFERER , 0);\n\tcurl_setopt($ch, CURLOPT_COOKIEJAR , 'ses_' . session_id());\n\tcurl_setopt($ch, CURLOPT_COOKIEFILE , 'ses_' . session_id());\n//\tcurl_setopt($ch, CURLOPT_COOKIE , $COOKIE);\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\tcurl_setopt($ch, CURLOPT_FAILONERROR , 1);\n\n\t$content = curl_exec ($ch);\n//log_prog('proxy', 'content: ' . $content);\n\t$response = curl_getinfo($ch);\n//log_prog('proxy', 'response: ' . json_encode($response));\n\n\tcurl_close($ch);\n\n\t$filename = 'ses_' . session_id();\n\tif (file_exists($filename))\t\tunlink($filename);\n\n\treturn $content;\n}",
"abstract protected function setClient();",
"private function getSparoApiCredentials(){\n if( $this->isLoginIn() ){\n\n $fields = array(\n //login\n 'email' => Mage::getStoreConfig($this->login_config_prefix . 'email' ),\n 'password' => Mage::getStoreConfig($this->login_config_prefix . 'password' )\n );\n\n $credentials = $this->curlSparoServerForLogin($fields);\n $this->storeSparoAccoutnInfo($credentials);\n }else{\n\n $fields = array(\n 'merchant' => array(\n //signup_config\n 'name' => urlencode( Mage::getStoreConfig($this->signup_config_prefix . 'businessname') ),\n 'sales_per_month' => urlencode( Mage::getStoreConfig($this->signup_config_prefix . 'sales_per_month') ),\n 'website' => urlencode( Mage::getStoreConfig($this->signup_config_prefix . 'website') ),\n 'employer_id' => urlencode( Mage::getStoreConfig($this->signup_config_prefix . 'employer_id') ),\n 'category_id' => urlencode( Mage::getStoreConfig($this->signup_config_prefix . 'category') ),\n //donation\n 'pct_donation' => urlencode( Mage::getStoreConfig($this->donation_config_prefix . 'donation_percentage') ),\n //contact_billing\n 'address_attributes' =>\n array(\n 'contact_first_name' => urlencode( Mage::getStoreConfig($this->contact_billing_config_prefix . 'firstname') ),\n 'contact_last_name' => urlencode( Mage::getStoreConfig($this->contact_billing_config_prefix . 'lastname') ),\n 'contact_email' => urlencode( Mage::getStoreConfig($this->contact_billing_config_prefix . 'email') ),\n 'contact_phone' => urlencode( Mage::getStoreConfig($this->contact_billing_config_prefix . 'phone') ),\n 'contact_address' => urlencode( Mage::getStoreConfig($this->contact_billing_config_prefix . 'address1') ) . \" \" . urlencode( Mage::getStoreConfig($this->contact_billing_config_prefix . 'adress2') ),\n 'contact_city' => urlencode( Mage::getStoreConfig($this->contact_billing_config_prefix . 'city') ),\n 'contact_state' => urlencode( Mage::getStoreConfig($this->contact_billing_config_prefix . 'state') ),\n 'contact_zipcode' => urlencode( Mage::getStoreConfig($this->contact_billing_config_prefix . 'zipcode') ),\n 'contact_country' => 'US',\n ),\n //contact_billing\n 'users_attributes' =>\n array(\n array(\n 'first_name' => urlencode( Mage::getStoreConfig($this->contact_billing_config_prefix . 'firstname') ),\n 'last_name' => urlencode( Mage::getStoreConfig($this->contact_billing_config_prefix . 'lastname') ),\n 'email' => Mage::getStoreConfig($this->contact_billing_config_prefix . 'email'),\n ),\n ),\n //merchant_agreement\n 'agreement' => urlencode( Mage::getStoreConfig($this->merchant_agreement_config_prefix . 'agreement_text') ),\n )\n );\n\n $credentials = $this->curlSparoServer( $fields );\n $this->storeSparoApiCredentials($credentials);\n $this->setupFields();\n }\n }"
] | [
"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.44104308",
"0.43985626",
"0.43631235",
"0.43603873",
"0.43592507",
"0.43564293",
"0.43468407",
"0.43361074",
"0.43330115",
"0.43275753"
] | 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; //Will be casted to false\n $expectedFalseResult = false;\n $cleanFalse = $filterInstance->filterBool($dirtyFalseVal);\n $this->assertEquals($expectedFalseResult, $cleanFalse);\n }",
"function to_bool($value)\n {\n if (is_bool($value)) {\n return $value;\n }\n\n $_value = strtolower((string)$value);\n\n //\tFILTER_VALIDATE_BOOLEAN doesn't catch 'Y' or 'N', so convert to full words...\n if ('y' == $_value) {\n $_value = 'yes';\n } elseif ('n' == $_value) {\n $_value = 'no';\n //\tFILTER_VALIDATE_BOOLEAN doesn't catch 'T' or 'F', so convert to full words...\n } elseif ('t' == $_value) {\n $_value = 'true';\n } elseif ('f' == $_value) {\n $_value = 'false';\n }\n\n return filter_var($_value, FILTER_VALIDATE_BOOLEAN);\n }",
"protected function interpretAsBool() {\n\t\treturn function( &$_value ) {\n\t\t\t$_value\t=\tis_string( $_value ) && $_value === 'true' || $_value;\n\t\t};\n\t}",
"protected function getSonata_Admin_Orm_Filter_Type_BooleanService()\n {\n return new \\Sonata\\DoctrineORMAdminBundle\\Filter\\BooleanFilter();\n }",
"public function convertValueNotBool()\n {\n Booleans::convert('abc');\n }",
"public function filterByValueBool($valueBool = null, $comparison = null)\n {\n if (is_string($valueBool)) {\n $valueBool = in_array(strtolower($valueBool), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;\n }\n\n return $this->addUsingAlias(ParameterPeer::VALUE_BOOL, $valueBool, $comparison);\n }",
"public function testFormatBool()\n {\n $caster = new DataToArrayCaster();\n $caster->cast(true);\n }",
"protected function getLexikFormFilter_Type_FilterBooleanService()\n {\n return $this->services['lexik_form_filter.type.filter_boolean'] = new \\Lexik\\Bundle\\FormFilterBundle\\Filter\\Form\\Type\\BooleanFilterType();\n }",
"function _wfAllowOnlyBoolean($value) {\n\treturn ($value === false || $value === true);\n}",
"function booleanify($data) {\n return (bool) $data;\n}",
"public function toFilter();",
"private function castBool($value): bool\n {\n return (bool) $value;\n }",
"private function castToBoolean(&$value)\n {\n if ($value == 'on') {\n $value = true;\n } else if ($value == 'off') {\n $value = false;\n }\n }",
"public function filterable($value) {\n return $this->setProperty('filterable', $value);\n }",
"function getBoolean($value)\n{\n return $value !== 'false' && $value;\n}",
"public function castValueToBool($value)\n {\n if (in_array(strtolower($value), array('false', 'no'))) {\n return false;\n }\n return (bool)$value;\n }",
"static public function toBoolean($value)\n\t\t{\n\t\t\t$result = false;\n\n\t\t\tif (is_scalar($value))\n\t\t\t{\n\t\t\t\t$result = in_array(''.$value, array('1', 'true', 'yes', 'on'));\n\t\t\t}\n\t\t\telse if (is_object($value) && is_callable(array($value, 'booleanValue')))\n\t\t\t{\n\t\t\t\t$result = $value->booleanValue();\n\t\t\t}\n\n\t\t\treturn $result;\n\t\t}",
"public function createFilter();",
"public function filterable($value)\n {\n return $this->setProperty('filterable', $value);\n }",
"final public function bool(): self\n {\n return $this->constraint($this->constraintFactory()->type(IsType::TYPE_BOOL));\n }",
"public function getFilterableFilter();",
"protected function convertToBoolean($value) {\n if (is_string($value)) $value = strtolower($value);\n if ($value === 'true') return true;\n if ($value === 'false') return false;\n return $value;\n }",
"public static function booleanValue()\n {\n return Hamcrest_Type_IsBoolean::booleanValue();\n }",
"protected function toBoolean($value)\n {\n if ($value === 'true') {\n return true;\n }\n\n if ($value === 'false') {\n return false;\n }\n\n return $value;\n }",
"public static function toBoolean($value) : bool {\n\t\t\t$type = gettype($value);\n\t\t\tswitch ($type) {\n\t\t\t\tcase 'boolean':\n\t\t\t\t\treturn $value;\n\t\t\t\tcase 'double':\n\t\t\t\t\treturn boolval($value);\n\t\t\t\tcase 'integer':\n\t\t\t\t\treturn boolval($value);\n\t\t\t\tcase 'NULL':\n\t\t\t\t\treturn false;\n\t\t\t\tcase 'object':\n\t\t\t\t\tif (method_exists($value, 'toBoolean')) {\n\t\t\t\t\t\treturn $value->toBoolean();\n\t\t\t\t\t}\n\t\t\t\t\telse if ($value instanceof Common\\StringRef) {\n\t\t\t\t\t\treturn static::toBoolean($value->__toString());\n\t\t\t\t\t}\n\t\t\t\t\telse if ($value instanceof Core\\Data\\Undefined) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthrow new Throwable\\Parse\\Exception('Invalid cast. Could not convert value of type \":type\" to a boolean.', array(':type' => get_class($value)));\n\t\t\t\t\t}\n\t\t\t\tcase 'string':\n\t\t\t\t\treturn (in_array(strtolower($value), array('false', 'f', 'no', 'n', '0', 'null', 'nil', ''))) ? false : (bool) $value;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new Throwable\\Parse\\Exception('Invalid cast. Could not convert value of type \":type\" to a boolean.', array(':type' => $type));\n\t\t\t}\n\t\t}",
"public function toBool($val = true)\n {\n $this->toBool = (boolean)$val;\n\n return $this;\n }",
"public function setType(string $typeIndicator): Filter\n {\n if ($typeIndicator !== 'bool') {\n throw new \\Exception(\n 'Type must always be set to \"bool\".'\n );\n }\n return parent::setType('bool');\n }",
"public function asBoolean($value)\n {\n return $value;\n }",
"public function to_boolean( $value ) {\n\t\tif ( in_array( $value, array( 'yes', 'enabled', 'true', '1' ) ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif ( in_array( $value, array( 'no', 'disabled', 'false', '0' ) ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn boolval( $value );\n\t}",
"public function __construct($value)\n {\n $this->value = (bool) $value;\n }"
] | [
"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.5525429",
"0.552333",
"0.5507297",
"0.55057794",
"0.5503642",
"0.548855",
"0.5487615",
"0.5447147",
"0.54268056"
] | 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-10abcder';\n $expectedTrueIntResult = -5;\n $cleanFalse = $filterInstance->filterInt($dirtyTrueInt);\n $this->assertEquals($expectedTrueIntResult, $cleanFalse);\n $dirtyTrueInt = -6.9;\n $expectedTrueIntResult = -6;\n $cleanFalse = $filterInstance->filterInt($dirtyTrueInt);\n $this->assertEquals($expectedTrueIntResult, $cleanFalse);\n }",
"function filterInt($field, $value) {\n if (($value = ltrim($value, '=')) !== '') {\n switch ($value[0]) {\n case '>': $this->where($field, '>', (int) substr($value, 1)); break;\n case '<': $this->where($field, '<', (int) substr($value, 1)); break;\n case '!': $this->where($field, '<>', (int) substr($value, 1)); break;\n default: $this->where($field, '=', (int) $value); break;\n }\n }\n }",
"public static function filter_integer ( $name, $filter_type = INPUT_POST ) {\n return filter_input( $filter_type, $name, FILTER_SANITIZE_NUMBER_INT );\n }",
"function asInt() { return $this->map('intval'); }",
"function castInts() {\n\t\t$this->fact_id = (null === $this->fact_id) ? null : (int) $this->fact_id;\n\t\t$this->user_id = (null === $this->user_id) ? null : (int) $this->user_id;\n\t\t$this->active = (null === $this->active) ? null : (int) $this->active;\n\t\treturn $this;\n\t}",
"public function filterByValueInt($valueInt = null, $comparison = null)\n {\n if (is_array($valueInt)) {\n $useMinMax = false;\n if (isset($valueInt['min'])) {\n $this->addUsingAlias(ParameterPeer::VALUE_INT, $valueInt['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($valueInt['max'])) {\n $this->addUsingAlias(ParameterPeer::VALUE_INT, $valueInt['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(ParameterPeer::VALUE_INT, $valueInt, $comparison);\n }",
"public function filterIntegerRequest($ids) {\n\n $ids = json_decode($ids, true);\n\n $set = array();\n foreach($ids as $id) {\n if(is_int($id)) {\n $set[] = $id;\n }\n }\n\n return $set;\n }",
"function valint($raw_int){\n \n return filter_var($raw_int, FILTER_VALIDATE_INT);\n \n}",
"public function testFilter()\n {\n $dirtyVal = '456Garbage text';\n $expectedResult = 456;\n $filterInstance = new Filter();\n $cleanVal = $filterInstance->filter($dirtyVal, FILTER::TYPE_INTEGER);\n $this->assertEquals($expectedResult, $cleanVal);\n }",
"public static function getNumericFilters()\n {\n \n return [\n self::FILTER_NOT_SET => Yii::t('frontend', 'FILTER NOT SET'),\n self::FILTER_MORE => Yii::t('frontend', 'FILTER MORE'),\n self::FILTER_MORE_EQUAL => Yii::t('frontend', 'FILTER MORE EQUAL'),\n self::FILTER_LESS => Yii::t('frontend', 'FILTER LESS'),\n self::FILTER_LESS_EQUAL => Yii::t('frontend', 'FILTER LESS EQUAL'),\n self::FILTER_EQUAL => Yii::t('frontend', 'FILTER EQUAL'),\n self::FILTER_NOT_EQUAL => Yii::t('frontend', 'FILTER NOT EQUAL'),\n self::FILTER_BETWEEN => Yii::t('frontend', 'FILTER BETWEEN'),\n self::FILTER_NOT_BETWEEN => Yii::t('frontend', 'FILTER NOT BETWEEN')\n ];\n }",
"function i_filter($i) {\r\n return $i;\r\n}",
"public function testFormatInt()\n {\n $caster = new DataToArrayCaster();\n $caster->cast(1);\n }",
"protected function filtrarInt($int) {\n $int = (int) $int;\n if(is_int($int)){\n return $int;\n }else{\n return 0;\n }\n }",
"public function filter($value);",
"public static function filterInt( $value, $nullIfZero = true, $min = null, $max = null )\n\t{\n\t\t$_value = false;\n\n\t\tif ( false !== ( $_value = filter_var( $value, FILTER_SANITIZE_NUMBER_INT ) ) )\n\t\t{\n\t\t\tif ( null !== $min && $_value < $min )\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ( null !== $max && $_value > $max )\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ( $nullIfZero && 0 == $_value )\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\treturn $_value;\n\t}",
"public function toFilter();",
"function castInts() {\n\t\t$this->id = (null === $this->id) ? null : (int) $this->id;\n\t\t$this->type = (null === $this->type) ? null : (int) $this->type;\n\t\t$this->updated = (null === $this->updated) ? null : (int) $this->updated;\n\t\t$this->created = (null === $this->created) ? null : (int) $this->created;\n\t\treturn $this;\n\t}",
"public function getFilters()\n {\n return array('number' => new Twig_Filter_Function('twig_number_filter'));\n }",
"function castInts() {\n\t\t$this->id = (null === $this->id) ? null : (int) $this->id;\n\t\t$this->wedding_id = (null === $this->wedding_id) ? null : (int) $this->wedding_id;\n\t\t$this->created = (null === $this->created) ? null : (int) $this->created;\n\t\t$this->updated = (null === $this->updated) ? null : (int) $this->updated;\n\t\treturn $this;\n\t}",
"abstract public function filter($value);",
"public function testFilterNumber()\n {\n $dirtyVal = '<pre>-4.56</pre>';\n $expectedResult = '-4.56';\n $filterInstance = new Filter();\n $cleanVal = $filterInstance->filterNumber($dirtyVal);\n $this->assertEquals($expectedResult, $cleanVal);\n }",
"public function stream_cast(int $cast_as);",
"public function only_ints(&$value, &$key)\n {\n if ($value)\n $value = (int) $value;\n }",
"function validateint($raw_int)\r\n{\r\n return (filter_var($raw_int,FILTER_VALIDATE_INT)); \r\n}",
"function _int($in)\n{\n if (is_array($in)) {\n return array_map(function ($in) {\n return (int) $in;\n }, $in);\n }\n return (int) $in;\n}",
"function toInt($val) {\n return (int) $val;\n}",
"public function createFilter();",
"function val_int($raw_int){ //$cl_age = val_int($_POST['age']);\n\n return filter_var($raw_int, FILTER_VALIDATE_INT);\n\n }",
"public function filter($value)\n {\n settype($value, $this->type);\n return $value;\n }",
"function filter_id($id){\n\t\treturn intval($id);\n\t}"
] | [
"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.52056897",
"0.519413",
"0.5168409",
"0.51636225",
"0.51253414",
"0.5106378",
"0.50736845",
"0.50323945",
"0.49929425"
] | 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.9e-10abcder';\n $expectedTrueFloatResult = -5.9e-10;\n $cleanFalse = $filterInstance->filterFloat($dirtyTrueFloat);\n $this->assertEquals($expectedTrueFloatResult, $cleanFalse);\n $trueFloat = 132.22;\n $expectedTrueFloatResult2 = 132.22;\n $cleanFalse = $filterInstance->filterFloat($trueFloat);\n $this->assertEquals($expectedTrueFloatResult2, $cleanFalse);\n }",
"public function filter($value) {\n $value = (float)$value;\n try {\n $this->validate($value);\n return $value;\n } catch (PapayaFilterException $e) {\n }\n return NULL;\n }",
"public function filterByValueFloat($valueFloat = null, $comparison = null)\n {\n if (is_array($valueFloat)) {\n $useMinMax = false;\n if (isset($valueFloat['min'])) {\n $this->addUsingAlias(ParameterPeer::VALUE_FLOAT, $valueFloat['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($valueFloat['max'])) {\n $this->addUsingAlias(ParameterPeer::VALUE_FLOAT, $valueFloat['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(ParameterPeer::VALUE_FLOAT, $valueFloat, $comparison);\n }",
"function asFloat() { return $this->map('floatval'); }",
"public static function of(float ...$values) : FloatPipeline\n {\n $iterator = new ArrayIterator($values);\n $pipeline = new FloatPipeline($iterator);\n\n return $pipeline;\n }",
"public function toFloat(): float\n {\n if (is_scalar($this->var)) {\n $sanitize = new Sanitize($this->var);\n return (float)$sanitize->data();\n }\n\n return 0.0;\n }",
"final public function float(): self\n {\n return $this->constraint($this->constraintFactory()->type(IsType::TYPE_FLOAT));\n }",
"function isFloat($var)\n{\n filter_var($var,FILTER_VALIDATE_FLOAT); \n}",
"function castToFloat($value)\n {\n if (is_string($value) && (float)'1.1' != 1.1\n && ($test = (string)1.1) != '1.1' && strlen($test) == 3) {\n return (float)str_replace('.', $test{1}, $value);\n }\n return (float)$value;\n }",
"public static function filterGetFloat($var){\n return filter_input(INPUT_GET, $var, FILTER_SANITIZE_NUMBER_FLOAT);\n }",
"private function castFloat($value): float\n {\n return (float) $value;\n }",
"final protected function asFloat($value)\n\t{\n\t\treturn is_null($value) ? $value : floatval($value);\n\t}",
"public static function float($queryName, $type = INPUT_POST)\n {\n return filter_input($type, $queryName, FILTER_VALIDATE_FLOAT);\n }",
"public static function init(): self\n {\n return new self(new FloatNumberRange());\n }",
"public static function ensureFloat($value)\r\n {\r\n\r\n $filtered_number = 0;\r\n if (preg_match('~^\\s*(?P<sign>-|\\+|)(?P<digit>\\d{1,3}(?:(\\D?)\\d{3})?(?:\\3\\d{3})*)(?:\\D(?P<part>\\d{1,2}))?\\s*$~', $value, $numberpart)) {\r\n $filtered_number = preg_replace('~\\D~', '', $numberpart['digit']);\r\n\r\n if (isset($numberpart['part'])) { //Nachkommastellen vorhanden?\r\n if (strlen($numberpart['part']) === 2) { //zwei Nachkommastellen\r\n $filtered_number += $numberpart['part'] / 100;\r\n } else { //eine Nachkommastelle\r\n $filtered_number += $numberpart['part'] / 10;\r\n }\r\n }\r\n\r\n if ($numberpart['sign'] === '-') { //evl. negatives Vorzeichen wieder dazu\r\n $filtered_number = -$filtered_number;\r\n }\r\n\r\n }\r\n\r\n return (float)$filtered_number;\r\n\r\n }",
"public function floatval($data) {\n return $this->process($data, function($data) {\n return floatval($data);\n });\n }",
"function _float($in)\n{\n if (is_array($in)) {\n return array_map(function ($in) {\n return (float) $in;\n }, $in);\n }\n return (float) $in;\n}",
"public final function float(): Validation\n {\n return $this->customValidator(\n new FloatingPoint(),\n 'Value must be floating point number'\n );\n }",
"private function getFloatValues($value) {\n\t\tif(is_array($value)) {\n\t\t\t$valueAsAnArray = array();\n\t\t\tforeach ($value as $eachValue) {\n\t\t\t\t$valueAsAnArray[] = floatval($eachValue);\n\t\t\t}\n\t\t\treturn $valueAsAnArray;\n\t\t} else {\n\t\t\treturn floatval($value);\n\t\t}\n\t}",
"public function scopeFilteredByFloat($query, $page, $value, $inequality){\n return self::where(\"general_score\", $inequality, $value)\n ->orderBy(\"general_score\", ($inequality == \"<\") ? \"desc\" : \"asc\")\n ->offset(self::PER_PAGE * ($page - 1))\n ->limit(self::PER_PAGE);\n }",
"function scrubFloat($float)\n{\n\treturn floatval(str_replace(',', '', $float));\n\n}",
"function testFloatDataType() {\n $data = array(\n 'id' => 1,\n 'floatfield' => 10.35,\n );\n $this->insertValues($data);\n $this->selectAndCheck($data);\n }",
"function FILTER_SANITIZE_IT_CURRENCY($value)\r\n{\r\n $dotPos = strrpos($value, '.');\r\n $commaPos = strrpos($value, ',');\r\n $separatorIsComma = (($commaPos > $dotPos) && $commaPos);\r\n \r\n // format like 1.121.345,200 moved to 1121345.200 \r\n if($separatorIsComma) {\r\n $value = preg_replace('/\\./', '', $value); // remove dots\r\n $value = preg_replace('/,/', '.', $value); // substitute ',' with '.'\r\n }\r\n \r\n $value = preg_replace('/[^\\d\\.]/', '', $value); // remove anything except digits and dot\r\n \r\n assert( preg_match('/^\\d*\\.?\\d*$/', $value), \"expected a float or empty value, found: <$value>\" );\r\n \r\n return floatval($value);\r\n}",
"public function float(): Variable\n\t{\n\t\tif($this->value === null)\n\t\t{\n\t\t\t$this->ambiguous = false;\n\t\t}\n\t\telseif(\n\t\t\tis_int($this->value) || is_float($this->value)\n\t\t\t|| (is_string($this->value) && is_numeric($this->value))\n\t\t)\n\t\t{\n\t\t\t$this->value = (float)$this->value;\n\t\t\t$this->ambiguous = false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->value = 0.0;\n\t\t\t$this->state = self::STATE_IGNORE;\n\t\t\t$this->addError('float');\n\t\t}\n\t\t\n\t\treturn $this;\n\t}",
"private function toFloat($value)\n {\n $value = str_replace('.', '', $value);\n return (float) $value;\n }",
"public function isFloat(): Validate\n {\n if (!is_float(self::$var)) {\n throw new InvalidTypeException(\n gettype(self::$var) . ' given. The variable must be a float.'\n );\n }\n\n return new Validate();\n }",
"function checkVarFloat($float) {\r\n $validation = filter_var($float, FILTER_VALIDATE_FLOAT);\r\n return $validation;\r\n}",
"public function float(...$args)\n {\n return $this->append('f', $args);\n }",
"function floatval ($var) {}",
"function formateFloat(array $donnees){\n\tforeach ($donnees as $key => $value) {\n\t \tif (is_numeric($value) && intval($value) == floatval($value)){\n\t \t\t$donnees[$key] = intval($value);\n\t \t}\n\t \tif (is_numeric($value)){\n\t \t\t$donnees[$key] = str_replace('.',',',$donnees[$key]);\n\t \t} \n\t}\n\treturn $donnees; \n}"
] | [
"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.54168624",
"0.5410737",
"0.54014915",
"0.5388341",
"0.5386529",
"0.5355889",
"0.53556734",
"0.53227437",
"0.53017175",
"0.52954733"
] | 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('1234567890123456', 6),\n );\n }",
"public function providerIpAddress3()\n {\n return [\n ['HTTP_CLIENT_IP', \"127.45.6.7\", \"valid Ipv4\"],\n ['HTTP_X_FORWARDED_FOR', \"192.96.76.1\", \"valid Ipv4\"],\n ['HTTP_X_FORWARDED', \"145.38.5.6\", \"valid Ipv4\"],\n ['HTTP_FORWARDED_FOR', \"0.2.1.8\", \"valid Ipv4\"],\n ['HTTP_FORWARDED', \"fd12:3456:789a:1::1\", \"valid Ipv6\"],\n ['REMOTE_ADDR', \"fd12:3456:789a:1::1\", \"valid Ipv6\"],\n ['HTTP_CLIENT_IP', \"127.45\", \"is NOT a valid\"],\n // [\"23.34\"],\n // [\"35.158.84.49, 23.34\"],\n ];\n }",
"public function ips()\n\t{\n\t\treturn $this->ip();\n\t}",
"public static function getAllowedIPs()\n {\n if (!is_file(self::$file)) {\n return false;\n }\n\n if (!$content = file_get_contents(self::$file)) {\n Log::warning(self::NO_READABLE);\n\n return false;\n }\n\n return explode(PHP_EOL, $content);\n }",
"public function notInRangeIPs()\n {\n return array(\n array('0.0.0.1', '255.255.255.254', 1),\n array('12.34.143.96', '12.34.201.26', 18),\n array('12.34.255.230', '12.34.255.255', 31),\n array('::a8f2:103', '12.255.255.255', 5),\n );\n }",
"public function inRangeIPs()\n {\n return array(\n array('12.34.56.78', '12.34.56.78', 32),\n array('0.0.0.1', '255.255.255.254', 0),\n array('12.34.143.96', '12.34.201.26', 16),\n array('12.34.255.252', '12.34.255.255', 30),\n array('::cff:103', '12.255.255.255', 5),\n );\n }",
"function validateIp($wl_ips)\n{\n\n // $ip = getClientIp();\n $ip = '192.168.1.1';\n\n $allowedIps = array();\n foreach ($wl_ips as $wl_ip) {\n if ($wl_ip->end_ip) {\n $allowedIps[] = $wl_ip->start_ip.'-'.$wl_ip->end_ip;\n } else {\n $allowedIps[] = $wl_ip->start_ip;\n }\n }\n\n foreach ($allowedIps as $allowedIp) {\n if (strpos($allowedIp, '*')) {\n $range = [\n str_replace('*', '0', $allowedIp),\n str_replace('*', '255', $allowedIp)\n ];\n if (ipExistsInRange($range, $ip)) {\n return true;\n }\n } elseif (strpos($allowedIp, '-')) {\n $range = explode('-', str_replace(' ', '', $allowedIp));\n if (ipExistsInRange($range, $ip)) {\n return true;\n }\n } else {\n if (ip2long($allowedIp) === ip2long($ip)) {\n return true;\n }\n }\n }\n return false;\n}",
"public function privateUseIpAddresses()\n {\n return array(\n array('9.255.255.255', false),\n array('10.0.0.0', true),\n array('10.255.255.255', true),\n array('11.0.0.0', false),\n array('172.15.255.255', false),\n array('172.16.0.0', true),\n array('172.31.255.255', true),\n array('172.32.0.0', false),\n array('192.167.255.255', false),\n array('192.168.0.0', true),\n array('192.168.255.255', true),\n array('192.169.0.0', false),\n array('fcff:ffff:ffff:ffff:ffff:ffff:ffff:ffff', false),\n array('fd00::', true),\n array('fdff:ffff:ffff:ffff:ffff:ffff:ffff:ffff', true),\n array('fe00::', false),\n );\n }",
"public function providerIp()\n\t{\n\t\treturn array(\n\t\t\tarray('75.125.175.50', FALSE, TRUE),\n\t\t array('127.0.0.1', FALSE, TRUE),\n\t\t array('256.257.258.259', FALSE, FALSE),\n\t\t array('255.255.255.255', FALSE, FALSE),\n\t\t array('192.168.0.1', FALSE, FALSE),\n\t\t array('192.168.0.1', TRUE, TRUE)\n\t\t);\n\t}",
"static private function apbct_get_possible_ips()\n\t{\n\t\t$result_ips = array(\n\t\t\t'X-Forwarded-For' => null,\n\t\t\t'X-Forwarded-For-Last' => null,\n\t\t\t'X-Real-Ip' => null,\n\t\t);\n\t\t\n\t\t$headers = function_exists('apache_request_headers')\n\t\t\t? apache_request_headers()\n\t\t\t: self::apbct_apache_request_headers();\n\t\t\n\t\t// X-Forwarded-For\n\t\tif(array_key_exists( 'X-Forwarded-For', $headers )){\n\t\t\t$ips = explode(\",\", trim($headers['X-Forwarded-For']));\n\t\t\t// First\n\t\t\t$ip = trim($ips[0]);\n\t\t\t$ip = filter_var(trim($ip), FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 );\n\t\t\t$ip = !$ip ? filter_var(trim($ip), FILTER_VALIDATE_IP, FILTER_FLAG_IPV6 ) : $ip;\n\t\t\t$result_ips['X-Forwarded-For'] = !$ip ? '' : $ip;\n\t\t\t// Last\n\t\t\tif(count($ips) > 1){\n\t\t\t\t$ip = trim($ips[count($ips)-1]);\n\t\t\t\t$ip = filter_var(trim($ip), FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 );\n\t\t\t\t$ip = !$ip ? filter_var(trim($ip), FILTER_VALIDATE_IP, FILTER_FLAG_IPV6 ) : $ip;\n\t\t\t\t$result_ips['X-Forwarded-For-Last'] = !$ip ? '' : $ip;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// X-Real-Ip\n\t\tif(array_key_exists( 'X-Real-Ip', $headers )){\n\t\t\t$ip = trim($headers['X-Real-Ip']);\n\t\t\t$ip = filter_var( $ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 );\n\t\t\t$ip = !$ip ? filter_var( $ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6 ) : $ip;\n\t\t\t$result_ips['X-Real-Ip'] = !$ip ? '' : $ip;\n\t\t}\n\t\treturn ($result_ips) ? $result_ips : null;\n\t}",
"public function my_wb_allowed_ip(){\n\n\t\t$query = $this->db->get(\"web_bundy_allowed_ip_address\");\n\t\treturn $query->result();\t\t\n\t}",
"public function getAccessIPs()\n {\n\n $ips = \\App\\Http\\Controllers\\ClientController::get('client_data', 'ips');\n $parsed = '';\n\n foreach ($ips as $ip) {\n if($ip !== 'FORCEIP') {\n $details = json_decode(file_get_contents(\"http://ipinfo.io/{$ip}/json\"));\n $loc = $details->city.', '.$details->region;\n if(\\App\\TimeSessions::where('ip_address', $ip)->value('last_activity') > time())\n {\n $status = ' style=\"color:green\"><i class=\"fas fa-circle\" style=\"color:green; margin-left:-13px; width:\"></i> ONLINE'; \n } else {\n $status = ' style=\"color:red\"><i class=\"fas fa-circle\" style=\"color:red; margin-left:-13px\"></i> OFFLINE';\n }\n $parsed .= \"<tr><td>{$ip}</td><td>{$loc}</td><td{$status}</td><td onclick='remove_access_ip(`{$ip}`); ((this.parentNode).parentNode).removeChild(this.parentNode);' style='padding-left:23px'><i class='far fa-trash-alt hoverred'></i></td></tr>\";\n }\n }\n\n return $parsed;\n\n }",
"function checkBadips() {\n global $xoopsConfig;\n if ($xoopsConfig['enable_badips'] == 1 && isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] != '') {\n foreach ($xoopsConfig['bad_ips'] as $bi) {\n if (!empty($bi) && preg_match(\"/\".$bi.\"/\", $_SERVER['REMOTE_ADDR'])) {\n exit();\n }\n }\n }\n unset($bi);\n unset($bad_ips);\n unset($xoopsConfig['badips']);\n }",
"public function getAllowedIp()\n {\n return $this->allowed_ip;\n }",
"function checkAdminIpAccess()\n{\n if(!empty($GLOBALS['admin']['allowed_ips']))\n {\n if(in_array($_SERVER['REMOTE_ADDR'], $GLOBALS['admin']['allowed_ips'])) return true;\n else\n {\n foreach($GLOBALS['admin']['allowed_ips'] as $ip)\n {\n if(preg_match('/'.$ip.'/', $_SERVER['REMOTE_ADDR'])) return true;\n }\n }\n\n header('HTTP/1.0 403 Forbidden');\n exit('access denied');\n }\n}",
"public function admin_ip(): Array \n {\n $ips = $this->config->setting['admin_ip'];\n $ip = preg_split( '/,/', $ips);\n\n foreach($ip as $addr => $val)\n {\n $this->admin_ip_allowed[$val] = $val;\n }\n\n return $this->admin_ip_allowed;\n }",
"public function providerIpAddress4()\n {\n return [\n ['HTTP_CLIENT_IP', \"127.45.6.7\", \"a valid Ipv4\"],\n // [\"23.34\"],\n // [\"35.158.84.49, 23.34\"],\n ];\n }",
"public function ips()\n {\n return $this->getClientIps();\n }",
"public function invalidIpAddresses()\n {\n return array(\n array('12.34.567.89'),\n array('2001:db8::a60:8a2e:370g:7334'),\n array('1.2.3'),\n array('This one is completely wrong.'),\n // 15 bytes instead of 16.\n array(pack('H*', '20010db8000000000a608a2e037073')),\n array(123),\n array(1.3),\n array(array()),\n array((object) array()),\n array(null),\n array(true),\n array('123456789012345'),\n array('12345678901234567'),\n );\n }",
"function dzk_validip($ip) \n{\n if (!empty($ip) && ip2long($ip)!=-1) {\n $reserved_ips = array (\n array('0.0.0.0','2.255.255.255'),\n array('10.0.0.0','10.255.255.255'),\n array('127.0.0.0','127.255.255.255'),\n array('169.254.0.0','169.254.255.255'),\n array('172.16.0.0','172.31.255.255'),\n array('192.0.2.0','192.0.2.255'),\n array('192.168.0.0','192.168.255.255'),\n array('255.255.255.0','255.255.255.255')\n );\n\n foreach ($reserved_ips as $r) {\n $min = ip2long($r[0]);\n $max = ip2long($r[1]);\n if ((ip2long($ip) >= $min) && (ip2long($ip) <= $max)) return false;\n }\n return true;\n } else {\n return false;\n }\n}",
"public static function checkIP(){\n\t\t\n\t\tif(self::checkCert()){\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif(self::$trustednets===null){\n\t\t\t$tnet = \\OCP\\Config::getSystemValue('trustednet', '');\n\t\t\t$tnet = trim($tnet);\n\t\t\t$tnets = explode(' ', $tnet);\n\t\t\tself::$trustednets = array_map('trim', $tnets);\n\t\t\tif(count(self::$trustednets)==1 && substr(self::$trustednets[0], 0, 8)==='TRUSTED_'){\n\t\t\t\tself::$trustednets = [];\n\t\t\t}\n\t\t}\n\t\tforeach(self::$trustednets as $trustednet){\n\t\t\tif(strpos($_SERVER['REMOTE_ADDR'], $trustednet)===0){\n\t\t\t\t\\OC_Log::write('files_sharding', 'Remote IP '.$_SERVER['REMOTE_ADDR'].' OK', \\OC_Log::DEBUG);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\\OC_Log::write('files_sharding', 'Remote IP '.$_SERVER['REMOTE_ADDR'].\n\t\t\t\t' not trusted --> '.$_SERVER['REQUEST_URI'], \\OC_Log::WARN);\n\t\treturn false;\n\t}",
"public function providerIpAddress2()\n {\n // $expectedValues = ['{\"ip\":\"145.38.5.6\",\"hostname\":\"145.38.5.6\",\"type\":\"ipv4\",\"continent_code\":\"EU\",\"continent_name\":\"Europe\",\"country_code\":\"NL\",\"country_name\":\"Netherlands\",\"region_code\":null,\"region_name\":null,\"city\":null,\"zip\":null,\"latitude\":52.3824,\"longitude\":4.8995,\"location\":{\"country_flag\":\"http:\\/\\/assets.ipstack.com\\/flags\\/nl.svg\",\"country_flag_emoji\":\"\\ud83c\\uddf3\\ud83c\\uddf1\"}}'];\n $expectedValues = ['A response was received from ipStack.'];\n return [\n // [\"\", \"NOT a valid\"],\n // [\"192.96.76.1\", \"valid Ipv4\"],\n // [\"145.38.5.6\", \"valid Ipv4\"],\n // [\"35.158.84.49\"],\n // [\"23.34\"],\n // [\"35.158.84.49, 23.34\"],\n [\"145.38.5.6\", 1544913716, \"Web\", $expectedValues[0]],\n // [\"128.33.2.1\", 2002345678, \"Web\", \"valid Ipv4\"],\n // [\"::\", 2002345678, \"Web\", \"reserved\"],\n // // [\"::ffff:0.0.0.0\", 2002345678, \"Web\", \"reserved\"],\n // [\"145.38\", 1544913716, \"Web\", \"NOT a valid\"],\n ];\n }",
"public function getIpsArray()\n\t{\n\n\t\tif ($this->ips) {\n\t\t\t$ips = explode(',', trim($this->ips));\n\t\t\t\n\t\t\tforeach ($ips as $ip) {\n\t\t\t\t$allowedIps []= $ip;\n\t\t\t}\n\n\t\t\treturn $allowedIps;\n\t\t}\n\t}",
"protected function checkIpRestricted()\n {\n $ipAddressChecks = $this->getIpAddresChecks();\n\n // no addresses defined, so no check needed\n if (empty($ipAddressChecks)) {\n return false;\n }\n\n $userIp = $this->getIpAddress();\n\n if (\\IpUtils\\Address\\IPv4::isValid($userIp)) {\n $ip = new \\IpUtils\\Address\\IPv4($userIp);\n } elseif (\\IpUtils\\Address\\IPv6::isValid($userIp)) {\n $ip = new \\IpUtils\\Address\\IPv6($userIp);\n }\n\n // no valid IP address found - enable restriction just to be sure\n if (empty($ip)) {\n return true;\n }\n\n // check if the IP matches any of the specified address patterns\n\n foreach ($ipAddressChecks as $addressCheck) {\n\n if (strpos($addressCheck, '/') !== false) {\n // address is a subnet\n $expression = new \\IpUtils\\Expression\\Subnet($addressCheck);\n $match = $ip->matches($expression);\n\n if ($match === true) {\n // user's IP checks out - no restriction needed\n return false;\n }\n\n } elseif (strpos($addressCheck, '*') !== false) {\n // address is a pattern\n $expression = new \\IpUtils\\Expression\\Pattern($addressCheck);\n $match = $ip->matches($expression);\n\n if ($match === true) {\n // user's IP checks out - no restriction needed\n return false;\n }\n } elseif (\n (($ip instanceof \\IpUtils\\Address\\IPv4) && \\IpUtils\\Address\\IPv4::isValid($addressCheck)) ||\n (($ip instanceof \\IpUtils\\Address\\IPv6) && \\IpUtils\\Address\\IPv6::isValid($addressCheck))\n ) {\n // address is a literal\n $expression = new \\IpUtils\\Expression\\Literal($addressCheck);\n $match = $ip->matches($expression);\n\n if ($match === true) {\n // user's IP checks out - no restriction needed\n return false;\n }\n }\n }\n\n // user's IP didn't match any specified address patterns, so turn on restriction\n return true;\n }",
"public function getClientIpinfo(): array;",
"function ip_valid ( $ips )\n\t{\n\t\tif ( isset( $ips ) ) {\n\t\t\t$ip = ip_first ( $ips );\n\t\t\t$ipnum = ip2long ( $ip );\n\t\t\tif ( $ipnum !== -1 && $ipnum !== false && ( long2ip ( $ipnum ) === $ip ) ) {\n\t\t\t\tif ( ( $ipnum < 167772160 || $ipnum > 184549375 ) && // Not in 10.0.0.0/8\n\t\t\t\t( $ipnum < - 1408237568 || $ipnum > - 1407188993 ) && // Not in 172.16.0.0/12\n\t\t\t\t( $ipnum < - 1062731776 || $ipnum > - 1062666241 ) ) // Not in 192.168.0.0/16\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"function random_valid_public_ip() {\n\t\t $ip =\n\t\t\t mt_rand(0, 255) . '.' .\n\t\t\t mt_rand(0, 255) . '.' .\n\t\t\t mt_rand(0, 255) . '.' .\n\t\t\t mt_rand(0, 255);\n\n\t\t // Return the IP if it is a valid IP, generate another IP if not\n\t\t if (\n\t\t\t !ip_in_range($ip, '10.0.0.0', '10.255.255.255') &&\n\t\t\t !ip_in_range($ip, '172.16.0.0', '172.31.255.255') &&\n\t\t\t !ip_in_range($ip, '192.168.0.0', '192.168.255.255')\n\t\t ) {\n\t\t\t return $ip;\n\t\t } else {\n\t\t\t return random_valid_public_ip();\n\t\t }\n\t }",
"public function getEnablePrivatelyUsedPublicIps()\n {\n return $this->enable_privately_used_public_ips;\n }",
"protected function getIpAddresChecks()\n {\n $ipAddressChecks = trim($this->params->get('ipaddresses'));\n $ipAddressChecks = str_replace(\"\\r\\n\", PHP_EOL, $ipAddressChecks);\n $ipAddressChecks = explode(PHP_EOL, $ipAddressChecks);\n\n return $ipAddressChecks;\n }",
"function ipFree() {\n\t\t$link = Db::link();\n\t\n\t\t$ipList = $this->ipList();\n\t\t$ipUsed = array();\n\t\t$ipFree = array();\n\t\n\t\t$sql = 'SELECT vps_ipv4\n\t\t FROM vps';\n\t\t$req = $link->prepare($sql);\n\t\t$req->execute();\n\t\twhile ($do = $req->fetch(PDO::FETCH_OBJ)) {\n\t\t\t$ipUsed[] = $do->vps_ipv4;\n\t\t}\n\t\n\t\tforeach($ipList as $ip) {\n\t\t\tif(!in_array($ip['ip'], $ipUsed)) {\n\t\t\t\t$ipFree[] = $ip['ip'];\n\t\t\t}\n\t\t}\n\t\n\t\treturn $ipFree;\n\t}"
] | [
"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.6615151",
"0.66064894",
"0.660625",
"0.6593017",
"0.64909565",
"0.6476118",
"0.6448752",
"0.6407925",
"0.6405979",
"0.63965523"
] | 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(APPLICATION_PATH . DIRECTORY_SEPARATOR . 'models');\n\t\tforeach($directoryIterator as $file) {\n\t\t\t/* @var $file DirectoryIterator */\n\t\t\tif ($file->isFile() &&\n\t\t\t\tpreg_match('/^(.+)\\.php$/', $file->getFilename(), $match)) {\n\n\t\t\t\t/**\n\t\t\t\t * retrieve model name\n\t\t\t\t */\n\t\t\t\t$modelName = $this->getModelClassName($match[1]);\n\n\t\t\t\t/**\n\t\t\t\t * create model name record\n\t\t\t\t */\n\t\t\t\t$modelNameRecord = L8M_Doctrine_Record::factory($this->getModelClassName('ModelName'));\n\t\t\t\t$modelNameRecord->name = $modelName;\n\n\t\t\t\t/**\n\t\t\t\t * load model\n\t\t\t\t */\n\t\t\t\t$loadedModel = new $modelName();\n\n\t\t\t\t/**\n\t\t\t\t * retrieve columns\n\t\t\t\t */\n\t\t\t\t$modelColumns = $loadedModel->getTable()->getColumns();\n\n\t\t\t\t/**\n\t\t\t\t * create model column name\n\t\t\t\t */\n\t\t\t\tforeach ($modelColumns as $columnName => $columnDefinition) {\n\t\t\t\t\t$modelColumnNameRecord = L8M_Doctrine_Record::factory($this->getModelClassName('ModelColumnName'));\n\t\t\t\t\t$modelColumnNameRecord->name = $columnName;\n\t\t\t\t\t$modelColumnNameRecord->ModelName = $modelNameRecord;\n\n\t\t\t\t\t/**\n\t\t\t\t\t * add to collection\n\t\t\t\t\t */\n\t\t\t\t\t$this->_dataCollection->add($modelColumnNameRecord);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private function componentSource(): Collection\n {\n $content = [];\n\n if (realpath($this->componentPath) !== false) {\n $componentFile = Collection::make(\n Finder::create()\n ->files()\n ->name(self::FILE_NAME . self::FILE_EXT)\n ->in($this->componentPath)\n )->first();\n\n if ($componentFile !== null) {\n $content = include $componentFile->getRealPath();\n }\n }\n\n return Collection::make($content);\n }",
"protected function _prepareCollection()\n {\n $collection = Mage::getSingleton('languagecsv/file_collection');\n// Mage::log($collection->load(), null, 'debug.log', true);\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }",
"public function getCollectionFor($source);",
"public function main()\n\t{\n\t\tif (!($this->_file instanceof PhingFile) && !count($this->_file_collections)) {\n\t\t\tthrow new BuildException(\"At least one of the file attributes, a fileset element or a filelist element must be specified.\");\n\t\t}\n\n\t\t// Handle individual files.\n\t\tif ($this->_file instanceof PhingFile)\n\t\t{\n\t\t\tif ($this->_target->isDirectory()) {\n\t\t\t\t$target = new PhingFile($this->_target, $this->_file->getName());\n\t\t\t} else {\n\t\t\t\t$target = $this->_target;\n\t\t\t}\n\t\t\t\n\t\t\t$this->_compress($this->_file, $target);\n\t\t}\n\n\t\t// Handle FileSets and FileLists\n\t\tforeach ($this->_file_collections as $collection)\n\t\t{\n\t\t\tif ($collection instanceof FileSet) {\n\t\t\t\t$files = $collection->getDirectoryScanner($this->project)->getIncludedFiles();\t\t\t\t\n\t\t\t} else {\n\t\t\t\t$files = $collection->getFiles($this->project);\n\t\t\t}\n\n\t\t\t$path = realpath($collection->getDir($this->project));\n\n\t\t\tforeach ($files as $file_name)\n\t\t\t{\n\t\t\t\t$file = new PhingFile($path, $file_name);\n\t\t\t\t$target = new PhingFile($this->_target, $file_name);\n\t\t\t\t\n\t\t\t\t$this->_compress($file, $target);\n\t\t\t}\n\t\t}\n\t}",
"public function __construct($css_file) {\n\t\t$this->collection = json_decode(file_get_contents($css_file . \".json\"), true);\n\t}",
"public function __construct($collection) { }",
"private function importCollectionFile(string $file): void\n {\n $pathInfo = pathinfo($file);\n $rollback = $this->getJournalMode() !== self::MODE_JOURNAL_NONE;\n if ($rollback) {\n $this->beginTransaction($pathInfo['filename']);\n }\n try {\n $collection = $this->collection($pathInfo['filename']);\n $format = $pathInfo['extension'];\n $data = $this->fileSystem->read($file);\n $serializer = $collection->getSerializer();\n $items = $serializer->decode($data, $format);\n foreach ($items as $item) {\n if (!isset($item[self::ID_FIELD])) {\n $item[self::ID_FIELD] = $collection->getUuid();\n }\n $document = new Document($item, $collection);\n $document->save();\n unset($document);\n }\n if ($rollback) {\n $this->commit($pathInfo['filename']);\n }\n } catch (Exception $e) {\n if ($rollback) {\n $this->rollback($pathInfo['filename']);\n }\n throw new DatabaseException(\n 'Unable to import documents from collection',\n DatabaseException::ERR_IMPORT_DATA,\n $e,\n '',\n [\n 'error' => $e->getMessage(),\n 'collection' => $pathInfo['filename'],\n 'format' => $format ?? null,\n ]\n );\n }\n }",
"public function readSource()\n\t{\n\t\t$S = new Source($this->_path);\n\t\treturn $S;\n\t}",
"protected function _generateDataCollection()\n\t{\n\t\t/**\n\t\t * retrieve class name\n\t\t */\n\t\t$modelName = $this->_standsForClass;\n\n\t\t/**\n\t\t * check whether translatable or not\n\t\t */\n\t\t$model = new $modelName();\n\t\t$modelRelations = $model->getTable()->getRelations();\n\t\tif (array_key_exists('Translation', $modelRelations)) {\n\t\t\t$transCols = $model->Translation->getTable()->getColumns();\n\t\t\t$transLangs = L8M_Locale::getSupported(TRUE);\n\t\t\t$translateable = TRUE;\n\t\t} else {\n\t\t\t$translateable = FALSE;\n\t\t}\n\n\t\t/**\n\t\t * add data to collection\n\t\t */\n\t\t$this->_dataCollection = new Doctrine_Collection($modelName);\n\t\tforeach($this->_data as $data) {\n\t\t\t$model = new $modelName();\n\t\t\t$model->merge($data);\n\n\t\t\t/**\n\t\t\t * add translatables\n\t\t\t */\n\t\t\tif ($translateable) {\n\t\t\t\tforeach ($transCols as $transCol => $colDefinition) {\n\t\t\t\t\tif ($transCol != 'id' &&\n\t\t\t\t\t\t$transCol != 'lang' &&\n\t\t\t\t\t\t$transCol != 'created_at' &&\n\t\t\t\t\t\t$transCol != 'updated_at' &&\n\t\t\t\t\t\t$transCol != 'deleted_at') {\n\n\t\t\t\t\t\tforeach ($transLangs as $transLang) {\n\t\t\t\t\t\t\tif (array_key_exists($transCol . '_' . $transLang, $data)) {\n\t\t\t\t\t\t\t\t$model->Translation[$transLang]->$transCol = $data[$transCol . '_' . $transLang];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * just add data\n\t\t\t */\n\t\t\t$this->_dataCollection->add($model, $data['id']);\n\t\t}\n\t}",
"protected function _generateDataCollection()\n\t{\n\t\t/**\n\t\t * retrieve class name\n\t\t */\n\t\t$modelName = $this->_standsForClass;\n\n\t\t/**\n\t\t * check whether translatable or not\n\t\t */\n\t\t$model = new $modelName();\n\t\t$modelRelations = $model->getTable()->getRelations();\n\t\tif (array_key_exists('Translation', $modelRelations)) {\n\t\t\t$transCols = $model->Translation->getTable()->getColumns();\n\t\t\t$transLangs = L8M_Locale::getSupported(TRUE);\n\t\t\t$translateable = TRUE;\n\t\t} else {\n\t\t\t$translateable = FALSE;\n\t\t}\n\n\t\t/**\n\t\t * add data to collection\n\t\t */\n\t\t$this->_dataCollection = new Doctrine_Collection($modelName);\n\t\tforeach($this->_data as $data) {\n\t\t\t$model = new $modelName();\n\t\t\t$model->merge($data);\n\n\t\t\t/**\n\t\t\t * add translatables\n\t\t\t */\n\t\t\tif ($translateable) {\n\t\t\t\tforeach ($transCols as $transCol => $colDefinition) {\n\t\t\t\t\tif ($transCol != 'id' &&\n\t\t\t\t\t\t$transCol != 'lang' &&\n\t\t\t\t\t\t$transCol != 'created_at' &&\n\t\t\t\t\t\t$transCol != 'updated_at' &&\n\t\t\t\t\t\t$transCol != 'deleted_at') {\n\n\t\t\t\t\t\tforeach ($transLangs as $transLang) {\n\t\t\t\t\t\t\tif (array_key_exists($transCol . '_' . $transLang, $data)) {\n\t\t\t\t\t\t\t\t$model->Translation[$transLang]->$transCol = $data[$transCol . '_' . $transLang];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * just add data\n\t\t\t */\n\t\t\t$this->_dataCollection->add($model, $data['id']);\n\t\t}\n\t}",
"public function __construct()\n {\n $this->countries = Collection::make(json_decode(file_get_contents(base_path('countries1.json')), false));\n }",
"public static function getSourcesSpecification(string $group_name = null): Collection\n {\n $group_name = $group_name ?? self::GROUP_NAME_DEFAULT;\n\n $result = new Collection;\n $input = static::getJsonFileContent(\n static::getRootDirectoryPath(\"/sources/{$group_name}/sources_list.json\")\n );\n\n foreach ((array) $input as $source_data) {\n $result->put($source_data['name'], new Source($source_data));\n }\n\n return $result;\n }",
"public function getCollection()\n {\n //@todo create logic for getting all records from database\n return $this->collectionFactory->create();\n }",
"protected function _generateCustomizedDataCollection()\n\t{\n\t\t/**\n\t\t * model name\n\t\t *\n\t\t * @var string\n\t\t */\n\t\t$model = 'ModelColumnName';\n\n\t\t/**\n\t\t * import class\n\t\t */\n\t\t$importClass = NULL;\n\n\t\t/**\n\t\t * if a model class prefix is present in options, let's try to retrieve an import\n\t\t * class from the corresponding module\n\t\t */\n\t\tif (isset($this->_options['options']['builder']['classPrefix'])) {\n\t\t\t$importClass = $this->_options['options']['builder']['classPrefix']\n\t\t\t\t\t\t . $model\n\t\t\t\t\t\t . '_Import'\n\t\t\t;\n\t\t\tif (!class_exists($importClass)) {\n\t\t\t\ttry {\n\t\t\t\t\t@Zend_Loader::loadClass($importClass);\n\t\t\t\t} catch (Zend_Exception $exception) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($importClass !== NULL &&\n\t\t\tclass_exists($importClass)) {\n\n\t\t\t/**\n\t\t\t * check whether the import class actually extends L8M_Doctrine_Import_Abstract\n\t\t\t */\n\t\t\t$reflectionClass = new ReflectionClass($importClass);\n\t\t\tif (!$reflectionClass->isSubclassOf('L8M_Doctrine_Import_Abstract')) {\n\t\t\t\tthrow new L8M_Doctrine_Import_Exception($importClass . ' does not extend L8M_Doctrine_Import_Abstract.');\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * construct $import of $model\n\t\t\t */\n\t\t\t$import = new $importClass($this->_options);\n\n\t\t\tif ($import instanceof L8M_Doctrine_Import_Abstract) {\n\t\t\t\t$import->process();\n\t\t\t\t$this->addMessages($import->getMessages());\n\t\t\t}\n\t\t}\n\t}",
"public function generateResourceModelGridCollectionFile($folder, $file, $entityName, $vendorNamespaceArr, $dbName)\n {\n try {\n $this->filesystemIo->checkAndCreateFolder($folder);\n } catch (\\Exception $e) {\n $result['success'] = false;\n $result['message'] = $e->getMessage();\n return $result;\n }\n $filePath = $folder . '/' . $file;\n if (!$this->filesystemIo->fileExists($filePath)) {\n $contents = '<?php' . PHP_EOL;\n $contents .= '' . PHP_EOL;\n $contents .= 'namespace ' . $vendorNamespaceArr[0] . '\\\\' . $vendorNamespaceArr[1] . '\\\\' . 'Model\\\\' . 'ResourceModel' . '\\\\' . $entityName . '\\\\' . 'Grid;' . PHP_EOL;\n $contents .= '' . PHP_EOL;\n $contents .= 'use Magento\\\\Framework\\\\Data\\\\Collection\\\\Db\\\\FetchStrategyInterface as FetchStrategy;' . PHP_EOL;\n $contents .= 'use Magento\\\\Framework\\\\Data\\\\Collection\\\\EntityFactoryInterface as EntityFactory;' . PHP_EOL;\n $contents .= 'use Magento\\\\Framework\\\\Event\\\\ManagerInterface as EventManager;' . PHP_EOL;\n $contents .= 'use Psr\\\\Log\\\\LoggerInterface as Logger;' . PHP_EOL;\n $contents .= '' . PHP_EOL;\n $contents .= 'class Collection extends \\\\Magento\\\\Framework\\\\View\\\\Element\\\\UiComponent\\\\DataProvider\\\\SearchResult' . PHP_EOL;\n $contents .= '{' . PHP_EOL;\n $contents .= ' public function __construct(' . PHP_EOL;\n $contents .= ' EntityFactory $entityFactory,' . PHP_EOL;\n $contents .= ' Logger $logger,' . PHP_EOL;\n $contents .= ' FetchStrategy $fetchStrategy,' . PHP_EOL;\n $contents .= ' EventManager $eventManager,' . PHP_EOL;\n $contents .= ' $mainTable = \\'' . $dbName . '\\',' . PHP_EOL;\n $contents .= ' $resourceModel = \\'' . $vendorNamespaceArr[0] . '\\\\' . $vendorNamespaceArr[1] . '\\\\' . 'Model\\\\' . 'ResourceModel' . '\\\\' . $entityName . '\\'' . PHP_EOL;\n $contents .= ' )' . PHP_EOL;\n $contents .= ' {' . PHP_EOL;\n $contents .= ' parent::__construct(' . PHP_EOL;\n $contents .= ' $entityFactory,' . PHP_EOL;\n $contents .= ' $logger,' . PHP_EOL;\n $contents .= ' $fetchStrategy,' . PHP_EOL;\n $contents .= ' $eventManager,' . PHP_EOL;\n $contents .= ' $mainTable,' . PHP_EOL;\n $contents .= ' $resourceModel' . PHP_EOL;\n $contents .= ' );' . PHP_EOL;\n $contents .= ' }' . PHP_EOL;\n $contents .= '}' . PHP_EOL;\n if ($this->filesystemIo->write($filePath, $contents)) {\n return true;\n }\n return false;\n } else {\n //TODO: define action when file already exists\n return true;\n }\n }",
"protected function _prepareCollection()\n {\n $collection = $this->_collectionFactory->create();\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }",
"public function build()\n {\n foreach ($this->fileContents as $key => $element) {\n if ($this->generatePrimaryElements($element, $key))\n continue;\n\n $this->generateArrayBasedElements($element, false);\n }\n }",
"public static function collection() {\n\t\treturn static::_connection()->connection->{static::_object()->_meta['source']};\n\t}",
"public function getCollection();",
"public function getCollection();",
"public function fromFile($filename);",
"function druvel_gen_collection($field_collection) {\n\n $results = array();\n $collection = array();\n\n $ids = entity_collection($field_collection, 'value');\n\n foreach ($ids as $key => $id) {\n $results[$key] = entity_load('field_collection_item', array($id));\n }\n\n foreach (json_decode(json_encode($results), true) as $value) {\n $element = array_shift($value);\n array_push($collection, $element);\n }\n return $collection;\n }",
"public function generateResourceModelCollectionFile($folder, $file, $entityName, $vendorNamespaceArr)\n {\n try {\n $this->filesystemIo->checkAndCreateFolder($folder);\n } catch (\\Exception $e) {\n $result['success'] = false;\n $result['message'] = $e->getMessage();\n return $result;\n }\n $filePath = $folder . '/' . $file;\n if (!$this->filesystemIo->fileExists($filePath)) {\n $contents = '<?php' . PHP_EOL;\n $contents .= '' . PHP_EOL;\n $contents .= 'namespace ' . $vendorNamespaceArr[0] . '\\\\' . $vendorNamespaceArr[1] . '\\\\' . 'Model\\\\' . 'ResourceModel' . '\\\\' . $entityName . ';' . PHP_EOL;\n $contents .= '' . PHP_EOL;\n $contents .= 'use Magento\\Framework\\Model\\ResourceModel\\Db\\Collection\\AbstractCollection;' . PHP_EOL;\n $contents .= 'use ' . $vendorNamespaceArr[0] . '\\\\' . $vendorNamespaceArr[1] . '\\\\' . 'Model\\\\' . $entityName . ';' . PHP_EOL;\n $contents .= 'use ' . $vendorNamespaceArr[0] . '\\\\' . $vendorNamespaceArr[1] . '\\\\' . 'Model\\\\' . 'ResourceModel' . '\\\\' . $entityName . ' as ' . $entityName . 'Resource;' . PHP_EOL;\n $contents .= '' . PHP_EOL;\n $contents .= 'class Collection extends AbstractCollection' . PHP_EOL;\n $contents .= '{' . PHP_EOL;\n $contents .= ' protected $_idFieldName = \\'id\\';' . PHP_EOL;\n $contents .= '' . PHP_EOL;\n $contents .= ' protected function _construct()' . PHP_EOL;\n $contents .= ' {' . PHP_EOL;\n $contents .= ' $this->_init(' . $entityName . '::class, ' . $entityName . 'Resource::class);' . PHP_EOL;\n $contents .= ' }' . PHP_EOL;\n $contents .= '}' . PHP_EOL;\n $contents .= '' . PHP_EOL;\n if ($this->filesystemIo->write($filePath, $contents)) {\n return true;\n }\n return false;\n } else {\n //TODO: define action when file already exists\n return true;\n }\n }",
"public function load($file, $type = null) {\n \n // Locate the file and make sure it is not an external file or something\n $path = $this->locator->locate($file);\n if (!stream_is_local($path)) {\n throw new \\InvalidArgumentException(sprintf('This is not a local file \"%s\".', $path));\n }\n if (!file_exists($path)) {\n throw new \\InvalidArgumentException(sprintf('File \"%s\" not found.', $path));\n }\n \n // Read the configuration\n $config = json_decode(file_get_contents($path), true);\n \n // Create the collection\n $collection = new RouteCollection();\n $collection->addResource(new FileResource($file));\n \n // Handle empty files\n if ($config === null) {\n return $collection;\n }\n \n // Not an array\n if (!is_array($config)) {\n throw new \\InvalidArgumentException(sprintf('The file \"%s\" must contain a valid JSON object.', $path));\n }\n \n // Loop config settings and start parsing routes\n foreach ($config as $config) {\n \n // If a resource was specified, import, otherwise parse route\n if (isset($config['resource'])) {\n $this->parseImport($collection, $config, $path, $file);\n } else {\n $this->parseRoutes($collection, $config);\n }\n }\n \n return $collection;\n \n }",
"function generate_collection_aus($alias, $total_records, $cli_mode) {\n if ($cli_mode) {\n global $self;\n global $chunk_size;\n global $max_au_file_count;\n global $collections_to_harvest; \n }\n else {\n $self = Zend_Registry::get('self');\n $chunk_size = Zend_Registry::get('chunk_size');\n $max_au_file_count = Zend_Registry::get('max_au_file_count');\n $collections_to_harvest = Zend_Registry::get('collections_to_harvest');\n }\n $au_list = array();\n $total_files = 0;\n $au_count = 0;\n $au_num = '1';\n $au_list[] = array('au_num' => $au_num, 'alias' => $alias, 'start_at' => '1');\n $rec_count = 0;\n\n // Generate a list of all records so we can then iterate through them \n // and create the AUs.\n $all_items = array();\n $num_queries = (int) $total_records / (int) $chunk_size;\n $rounded_num_queries = ceil($num_queries);\n\n $all_records = array();\n for ($i = 0; $i <= $rounded_num_queries; $i++) {\n $start_at = ($i == 0) ? ($start_at = 1) : ($start_at = $i * $chunk_size + 1);\n if ($start_at < $total_records) {\n $query_results = query_contentdm($alias, $start_at);\n foreach ($query_results['records'] as $record) {\n $all_records[] = $record;\n }\n }\n }\n $record_count = count($all_records);\n\n // At this point we have a list of all the records in a collection. \n // We now need to loop through this list and create AU URLs expressing\n // $chunk_size or less each having fewer than $max_au_file_count files.\n $record_num = 0;\n foreach ($all_records as $record) {\n $record_num++;\n if ($record['filetype'] != 'cpd') {\n // Web page, thumbnail, image file each count as 1 file.\n $file_count = 3;\n }\n else {\n $file_count = count_items_children($alias, $record['pointer']);\n // Children, web page, thumbnail.\n $file_count = $file_count + 2;\n }\n $total_files = $total_files + $file_count;\n\n // Check for total files first, then record number. \n if (($total_files >= $max_au_file_count) || ($record_num >= $chunk_size)) {\n $au_num++;\n // Assemble an entry in the list of AUs to be generated.\n $au_list[] = array('au_num' => $au_num, 'alias' => $alias, 'start_at' => $record_num);\n // Reset file counter since we're starting a new AU.\n $total_files = 0;\n // Reset record counter since we're starting a new AU.\n $record_num = 0;\n } \n }\n \n if ($cli_mode) {\n // In CLI mode, write out the manifest files for each collection,\n // using the naming convention alias_aunum.html.\n foreach ($au_list as $au) {\n $alias = trim($au['alias'], '/');\n $au_filename = getcwd() . DIRECTORY_SEPARATOR . 'manifest_' . $alias . '_' . $au['au_num'] . '.html';\n print \"Generating $au_filename\\n\";\n $manifest_content = generate_au_manifest($alias, $au['au_num'], $au['start_at']);\n file_put_contents($au_filename, $manifest_content);\n }\n }\n else {\n // In realtime mode, generate the links to each AU for the current collection.\n $au_links = '';\n foreach ($au_list as $au) {\n $url = $self . 'manifest' . $au['alias'] . '/' . $au['au_num'];\n $label = $collections_to_harvest[$alias] . ' (AU ' . $au['au_num'] . ')';\n $au_links .= '<li><a href=\"' . $url . '\">' . $label . \"</a></li>\\n\";\n }\n return $au_links;\n }\n}",
"public static function index(): CollectionInterface\n {\n $finder = (new Finder())->files()->name('/\\.sql(\\.(gz|bz2))?$/')->in(Configure::readOrFail('DatabaseBackup.target'));\n\n return collection($finder)->map(function (SplFileInfo $file) {\n $filename = $file->getFilename();\n\n return new Entity(compact('filename') + [\n 'extension' => self::getExtension($filename),\n 'compression' => self::getCompression($filename),\n 'size' => $file->getSize(),\n 'datetime' => FrozenTime::createFromTimestamp($file->getMTime()),\n ]);\n })->sortBy('datetime');\n }",
"protected function readCollectionList()\n {\n $this->collections = $this->getChildren(self::COLLECTIONS_ZKNODE);\n }",
"static function fromFile($file) {\n\t\t$cls = static::class;\n\t\t$inst = new $cls;\n\t\treturn $inst->loadFile($file);\n\t}"
] | [
"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.5107314",
"0.5107314",
"0.50993603",
"0.509649",
"0.5066665",
"0.5057608",
"0.5037752",
"0.5008316",
"0.500706",
"0.5001042"
] | 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 getSourceFilePath()\n {\n return $this->getSourceDirPath() . DIRECTORY_SEPARATOR .\n trim($this->getSourceFileName(), DIRECTORY_SEPARATOR);\n }",
"public function getSourceFile();",
"public function get_file_name()\n {\n return $this->get_full_name();\n }",
"protected function getFileName(SourceInterface $source) {\n $source = str_replace('/', '_', $source);\n return \"{$this->directory}/$source.csv\";\n }",
"public function getTargetFileName()\n {\n return $this->target_file_name;\n }",
"public function filename()\n\t{\n\t\treturn $this->path . $this->name;\n\t}",
"public function getSourceName(): string|null\n {\n return $this->sourceName;\n }",
"public function getSourceFile() {}",
"protected function getFileName(): string\n {\n if (!$this->fileName) {\n $this->fileName = preg_replace('#\\W#', '.', $this::class) . '.' . $this->extension;\n }\n return codecept_data_dir() . $this->fileName;\n }",
"private function getname():string { return $this->nameOfFile; }",
"public function \t\t filename() {\n Debug::trace();\n return $this->filename;\n }",
"public function getFileName()\n {\n return $this->dir . $this->fname;\n }",
"public function getSource(): string\n {\n return $this->source;\n }",
"public function getSource(): string\n {\n return $this->source;\n }",
"public function getSource(): string\n {\n return $this->source;\n }",
"public function getName() {\n\t\treturn $this->file;\n\t}",
"public function source(): string\n {\n return $this->source;\n }",
"protected function _source_path ()\n {\n return __FILE__;\n }",
"private function _getFilename() {\n $debug = debug_backtrace();\n return $debug[1][file];\n }",
"public function toFileName(): string {\n if ($this->isSource())\n return $this->fs->sourceFile($this->index, $this->ext);\n else\n return $this->fs->derivedFile($this->density, $this->ext);\n }",
"public function getSource() : string\n {\n return $this->source;\n }",
"public function get_file_name()\n {\n return $this->file_name;\n }",
"public function getFileName()\n\t{\n\t\treturn $this->file_name;\n\t}",
"public function name()\n\t{\n\t\treturn pathinfo($this->file, PATHINFO_FILENAME);\n\t}",
"public function name()\n {\n return $this->source_data['name'];\n }",
"function getFilename()\n {\n return __FILE__;\n }",
"function getFilename()\n {\n return __FILE__;\n }"
] | [
"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.6931659",
"0.6912367",
"0.6910811",
"0.69022006",
"0.6881956",
"0.687525",
"0.68547535",
"0.6832029",
"0.6798748",
"0.6798748"
] | 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 $root = self::getRootPath();\n\n // NOTE: This is now handled in Plugin::initialize().\n // IF the directory does not exist, THEN create it...\n //if(!file_exists(\"$root/src/\"))\n // mkdir(\"$root/src/\");\n\n // Finally, return the SOURCE path!\n return realpath(\"$root/\".self::PATH_SOURCE.\"/\");\n }",
"public function getSourceDir(): string\n {\n return $this->source_dir;\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\t}",
"public function yiiSrcPath()\n {\n return getcwd();\n }",
"public final function getSourceDir() {\n return $this->sourceDir;\n }",
"private function getSourceFilePath()\n {\n return $this->getSourceDirPath() . DIRECTORY_SEPARATOR .\n trim($this->getSourceFileName(), DIRECTORY_SEPARATOR);\n }",
"protected function _source_path ()\n {\n return __FILE__;\n }",
"function dirPath() {return (\"../../../../\"); }",
"private function getImageSourcePath()\r\n {\r\n // check if relative\r\n if (substr($this->_imagesource, 0, 2) == \"..\" || $this->_imagesource{0} == \".\")\r\n {\r\n return dirname($_SERVER['SCRIPT_FILENAME']).'/'.$this->_imagesource;\r\n }\r\n else\r\n {\r\n return $this->_imagesource;\r\n }\r\n }",
"function core_src_path($path = '')\n {\n $root = core_path('src');\n\n return $path ? $root.DIRECTORY_SEPARATOR.$path : $root;\n }",
"public function get_src_path()\n {\n return $this->src_path;\n }",
"public function get_source_path() {\n $path = '';\n\n if ($this->node_id > 0) {\n $path = 'node/' . $this->node_id;\n }\n\n return $path;\n }",
"function dirPath() { return (\"../../\"); }",
"public function getRelativePath()\n\t{\n\t\treturn trim(str_replace(array($this->app['path.public'], '\\\\'), array('', '/'), $this->path), '/');\n\t}",
"static function project_path(): string\n {\n list($scriptPath) = get_included_files();\n return dirname($scriptPath);\n }",
"public function relativePath(){\n\t\treturn static::joinCleanPaths([$this->sub, $this->path]);\n\t}",
"function src_path(string $path = ''): string\n {\n return app()->joinPaths(app()->basePath('src'), $path);\n }",
"public function getRelativePath()\n {\n return str_replace($this->getRootPath(), null, $this->getPath());\n }",
"public function getPathToSiteFiles()\n {\n return sprintf('%s/../../httpdocs', __DIR__);\n }",
"public function getRelativeFilePath()\n {\n return $this->relativePath;\n }",
"private function getRelativePath()\n\t{\n//\t\t{\n// return 'files';\n//\t\t}\n//\n//\t\treturn $path;\n\n // All files hashed for deduplication will be inside a public/hashed folder\n return 'public/hashed';\n\t}",
"protected function determineSourcePath()\n {\n $this->sourcePath = realpath(__DIR__.'/../');\n\n if ($this->sourcePath == '/' || empty($this->sourcePath)) {\n CLI::error('Unable to determine the correct source directory.');\n exit();\n }\n }",
"public function getSourcePath($file);",
"protected function resolveDirectory()\n {\n return $this->getDirInput().'src';\n }",
"public function getSourcePath()\n {\n $request = RequestFactory::create(func_get_args(), $this->defaultManipulations);\n\n $path = trim($request->getPathInfo(), '/');\n\n if (substr($path, 0, strlen($this->baseUrl)) === $this->baseUrl) {\n $path = trim(substr($path, strlen($this->baseUrl)), '/');\n }\n\n if ($path === '') {\n throw new FileNotFoundException('Image path missing.');\n }\n\n if ($this->sourcePathPrefix) {\n $path = $this->sourcePathPrefix.'/'.$path;\n }\n\n return rawurldecode($path);\n }",
"public function getPath(): string\n {\n return \\dirname(__DIR__);\n\n }",
"final public function getRelativeFilePath()\n {\n return $this->file->getRelativeFilePath();\n }",
"function relative($path)\n {\n return str_replace(ROOT_DIR, '', $path);\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.66550446",
"0.66548413",
"0.66283053",
"0.6614985",
"0.65876323",
"0.65531176",
"0.65295184",
"0.6517623",
"0.6513024",
"0.6485378"
] | 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\t}",
"public static function getSourcePath(): string\n {\n // Get the ROOT path, which will also throw the PluginNotInitializedException if necessary.\n $root = self::getRootPath();\n\n // NOTE: This is now handled in Plugin::initialize().\n // IF the directory does not exist, THEN create it...\n //if(!file_exists(\"$root/src/\"))\n // mkdir(\"$root/src/\");\n\n // Finally, return the SOURCE path!\n return realpath(\"$root/\".self::PATH_SOURCE.\"/\");\n }",
"public function getSourcePath($file);",
"public function getSourceFile();",
"public function getSourceFile() : string\n {\n return $this->getRecordStringKey('source_file');\n }",
"public function getSourcePath()\r\n {\r\n return $this->dir->getRelativePath($this->subDir);\r\n }",
"public function getSourceFile() {}",
"public function get_src_path()\n {\n return $this->src_path;\n }",
"public function get_source_path() {\n $path = '';\n\n if ($this->node_id > 0) {\n $path = 'node/' . $this->node_id;\n }\n\n return $path;\n }",
"public function getSourceDir();",
"private function getSourceDirPath()\n {\n return __DIR__ . DIRECTORY_SEPARATOR .\n '..' . DIRECTORY_SEPARATOR . '..' .\n DIRECTORY_SEPARATOR . self::SOURCES_DIR_NAME;\n }",
"private function getSourcePath()\n {\n if (null === $this->sourcePath) {\n $filenameWithoutExtension = parse_url($this->path, PHP_URL_HOST);\n if (false === $filenameWithoutExtension) {\n throw new \\InvalidArgumentException('Could not determine the file name');\n }\n\n $filename = $filenameWithoutExtension . '.' . $this->getOption('extension', 'xml');\n $sourcePath = $this->getOption('directory') . DIRECTORY_SEPARATOR . $filename;\n\n if (!file_exists($sourcePath)) {\n throw new \\InvalidArgumentException(sprintf('File \"%s\" was not found', $sourcePath));\n }\n\n if ($this->isWriteMode() && !is_writeable($sourcePath)) {\n throw new \\InvalidArgumentException(sprintf('File \"%s\" is not writeable', $sourcePath));\n }\n\n $this->sourcePath = $sourcePath;\n }\n\n return $this->sourcePath;\n }",
"public function getSourcePath()\n {\n $request = RequestFactory::create(func_get_args(), $this->defaultManipulations);\n\n $path = trim($request->getPathInfo(), '/');\n\n if (substr($path, 0, strlen($this->baseUrl)) === $this->baseUrl) {\n $path = trim(substr($path, strlen($this->baseUrl)), '/');\n }\n\n if ($path === '') {\n throw new FileNotFoundException('Image path missing.');\n }\n\n if ($this->sourcePathPrefix) {\n $path = $this->sourcePathPrefix.'/'.$path;\n }\n\n return rawurldecode($path);\n }",
"public function getSourceDir(): string\n {\n return $this->source_dir;\n }",
"public function getSource()\n {\n // Assign a default source file if none has been defined yet.\n if (!isset($this->sourceFile)) {\n return $this->sourceFile = __DIR__.'/data/urls.json';\n }\n\n return $this->sourceFile;\n }",
"public function getSource()\n {\n return file_get_contents($this->fileName);\n }",
"public function yiiSrcPath()\n {\n return getcwd();\n }",
"abstract protected function getSourceFileName();",
"public function source(): string\n {\n return $this->source;\n }",
"private function getImageSourcePath()\r\n {\r\n // check if relative\r\n if (substr($this->_imagesource, 0, 2) == \"..\" || $this->_imagesource{0} == \".\")\r\n {\r\n return dirname($_SERVER['SCRIPT_FILENAME']).'/'.$this->_imagesource;\r\n }\r\n else\r\n {\r\n return $this->_imagesource;\r\n }\r\n }",
"public function getSource(): string\n {\n return $this->source;\n }",
"public function getSource(): string\n {\n return $this->source;\n }",
"public function getSource(): string\n {\n return $this->source;\n }",
"public final function getSourceDir() {\n return $this->sourceDir;\n }",
"public function getSourceFilename()\n {\n return $this->_sourceFilename;\n }",
"final function source(): string { return $this->source; }",
"public function getSource() : string\n {\n return $this->source;\n }",
"function src_path(string $path = ''): string\n {\n return app()->joinPaths(app()->basePath('src'), $path);\n }",
"protected function getSource($path)\n\t{\n\t\treturn File::get($path);\n\t}"
] | [
"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.69817394",
"0.69817394",
"0.69817394",
"0.69427806",
"0.6938536",
"0.69330496",
"0.6895722",
"0.68823785",
"0.68547976"
] | 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 use this to establish the display order of the zones\n\t\t\t\t\t'classes' => array(),\n\t\t\t\t\t// by default we will add the classes 'c-footer__zone' and 'c-footer__zone--%zone_id%' to each zone\n\t\t\t\t\t'display_blank' => false,\n\t\t\t\t\t// determines if we output markup for an empty zone\n\t\t\t\t),\n\t\t\t\t'middle' => array( // the zone's id\n\t\t\t\t\t'order' => 20,\n\t\t\t\t\t// We will use this to establish the display order of the zones\n\t\t\t\t\t'classes' => array(),\n\t\t\t\t\t// by default we will add the classes 'c-footer__zone' and 'c-footer__zone--%zone_id%' to each zone\n\t\t\t\t\t'display_blank' => true,\n\t\t\t\t\t// determines if we output markup for an empty zone\n\t\t\t\t),\n\t\t\t\t'bottom' => array( // the zone's id\n\t\t\t\t\t'order' => 30,\n\t\t\t\t\t// We will use this to establish the display order of the zones\n\t\t\t\t\t'classes' => array(),\n\t\t\t\t\t// by default we will add the classes 'c-footer__zone' and 'c-footer__zone--%zone_id%' to each zone\n\t\t\t\t\t'display_blank' => true,\n\t\t\t\t\t// determines if we output markup for an empty zone\n\t\t\t\t),\n\t\t\t),\n\t\t\t// The bogus items can sit in either sidebars or menu_locations.\n\t\t\t// It doesn't matter as long as you set their zone and order properly\n\t\t\t'sidebars' => array(\n\t\t\t\t'sidebar-footer' => array(\n\t\t\t\t\t'default_zone' => 'middle',\n\t\t\t\t\t// This callback should always accept 3 parameters as documented in pixelgrade_footer_get_zones()\n\t\t\t\t\t'zone_callback' => false,\n\t\t\t\t\t'order' => 10,\n\t\t\t\t\t// We will use this to establish the display order of nav menu locations, inside a certain zone\n\t\t\t\t\t'container_class' => array( 'c-gallery', 'c-footer__gallery', 'o-grid', 'o-grid--4col-@lap' ),\n\t\t\t\t\t// classes to be added to the sidebar <aside> wrapper\n\t\t\t\t\t'sidebar_args' => array( // skip 'id' arg as we will force that\n\t\t\t\t\t\t'name' => esc_html__( 'Footer', '__components_txtd' ),\n\t\t\t\t\t\t'description' => esc_html__( 'Widgets displayed in the Footer Area of the website.', '__components_txtd' ),\n\t\t\t\t\t\t'class' => 'c-gallery c-footer__gallery o-grid o-grid--4col-@lap',\n\t\t\t\t\t\t// in case you need some classes added to the sidebar - in the WP Admin only!!!\n\t\t\t\t\t\t'before_widget' => '<div id=\"%1$s\" class=\"c-gallery__item widget widget--footer c-footer__widget %2$s\"><div class=\"o-wrapper u-container-width\">',\n\t\t\t\t\t\t'after_widget' => '</div></div>',\n\t\t\t\t\t\t'before_title' => '<h3 class=\"widget__title h3\">',\n\t\t\t\t\t\t'after_title' => '</h3>',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\n\t\t\t'menu_locations' => array(\n\t\t\t\t'footer-back-to-top-link' => array(\n\t\t\t\t\t'default_zone' => 'bottom',\n\t\t\t\t\t// This callback should always accept 3 parameters as documented in pixelgrade_footer_get_zones()\n\t\t\t\t\t'zone_callback' => false,\n\t\t\t\t\t'order' => 5,\n\t\t\t\t\t// We will use this to establish the display order of nav menu locations, inside a certain zone\n\t\t\t\t\t'bogus' => true,\n\t\t\t\t\t// this tells the world that this is just a placeholder, not a real nav menu location\n\t\t\t\t),\n\t\t\t\t'footer-copyright' => array(\n\t\t\t\t\t'default_zone' => 'bottom',\n\t\t\t\t\t// This callback should always accept 3 parameters as documented in pixelgrade_footer_get_zones()\n\t\t\t\t\t'zone_callback' => false,\n\t\t\t\t\t'order' => 20,\n\t\t\t\t\t// We will use this to establish the display order of nav menu locations, inside a certain zone\n\t\t\t\t\t'bogus' => true,\n\t\t\t\t\t// this tells the world that this is just a placeholder, not a real nav menu location\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\n\t\tif ( pixelgrade_user_has_access( 'pro-features' ) ) {\n\n\t\t\t$this->config['menu_locations']['footer'] = array(\n\t\t\t\t'title' => esc_html__( 'Footer', '__components_txtd' ),\n\t\t\t\t'default_zone' => 'bottom',\n\t\t\t\t// This callback should always accept 3 parameters as documented in pixelgrade_footer_get_zones()\n\t\t\t\t'zone_callback' => false,\n\t\t\t\t'order' => 10,\n\t\t\t\t// We will use this to establish the display order of nav menu locations, inside a certain zone\n\t\t\t\t'nav_menu_args' => array( // skip 'theme_location' and 'echo' args as we will force those\n\t\t\t\t\t'menu_id' => 'menu-footer',\n\t\t\t\t\t'container' => 'nav',\n\t\t\t\t\t'container_class' => 'menu-footer-menu-container',\n\t\t\t\t\t'depth' => - 1, // by default we will flatten the menu hierarchy, if there is one\n\t\t\t\t\t'fallback_cb' => false,\n\t\t\t\t),\n\t\t\t);\n\n\t\t\t// Add theme support for Jetpack Social Menu, if we are allowed to\n\t\t\tif ( apply_filters( 'pixelgrade_footer_use_jetpack_social_menu', false ) ) {\n\n\t\t\t\t// Add it to the config\n\t\t\t\t$this->config['menu_locations']['jetpack-social-menu'] = array(\n\t\t\t\t\t'default_zone' => 'bottom',\n\t\t\t\t\t// This callback should always accept 3 parameters as documented in pixelgrade_footer_get_zones()\n\t\t\t\t\t'zone_callback' => false,\n\t\t\t\t\t'order' => 15, // We will use this to establish the display order of nav menu locations, inside a certain zone\n\t\t\t\t\t'bogus' => true, // this tells the world that this is just a placeholder, not a real nav menu location\n\t\t\t\t);\n\n\t\t\t\t// Add support for it\n\t\t\t\tadd_theme_support( 'jetpack-social-menu' );\n\t\t\t}\n\t\t}\n\n\t\t// Allow others to make changes to the config\n\t\t// Make the hooks dynamic and standard\n\t\t$hook_slug = self::prepareStringForHooks( self::COMPONENT_SLUG );\n\t\t$modified_config = apply_filters( \"pixelgrade_{$hook_slug}_initial_config\", $this->config, self::COMPONENT_SLUG );\n\n\t\t// Check/validate the modified config\n\t\tif ( method_exists( $this, 'validate_config' ) && ! $this->validate_config( $modified_config ) ) {\n\t\t\t/* translators: 1: the component slug */\n\t\t\t_doing_it_wrong( __METHOD__, sprintf( 'The component config modified through the \"pixelgrade_%1$s_initial_config\" dynamic filter is invalid! Please check the modifications you are trying to do!', esc_html( $hook_slug ) ), null );\n\n\t\t\treturn;\n\t\t}\n\n\t\t// Change the component's config with the modified one\n\t\t$this->config = $modified_config;\n\t}",
"function setZones()\n {\n $json = $this->callCFapi(\"GET\", \"client/v4/zones\");\n if (!$json['success']) {\n if(isset($json['errors'][0]['code'])) {\n if($json['errors'][0]['code'] == 9109 || $json['errors'][0]['code'] == 6003) {\n echo Output::AUTHENTICATION_FAILED;\n exit();\n }\n }\n\n $this->badParam('getZone unsuccessful response');\n }\n $arZones = [];\n foreach ($json['result'] as $ar) {\n $arZones[] = [\n 'hostname' => $ar['name'],\n 'zoneId' => $ar['id']\n ];\n }\n\n foreach ($this->hostList as $hostname => $arHost) {\n $res = $this->isZonesContainFullname($arZones, $arHost['fullname']);\n if(!empty($res)) {\n $this->hostList[$hostname]['zoneId'] = $res['zoneId'];\n $this->hostList[$hostname]['hostname'] = $res['hostname'];\n }\n }\n }",
"public function getThemeAreaLayoutPresets()\n {\n }",
"protected function registerLayoutBefore() {}",
"protected function initAreas()\n {\n $this->structure[static::AREAS_KEY] = [\n 'type' => $this->namespace,\n 'config' => [\n 'namespace' => $this->namespace,\n ],\n 'children' => [],\n ];\n }",
"public function set_layouts() {\n\n\t\t// For 2.4- themes, merge client added layouts with core layouts -- @deprecated\n\t\tif ( version_compare(TB_FRAMEWORK_VERSION, '2.5.0', '<') ) {\n\n\t\t\tif ( $this->client_layouts ) {\n\t\t\t\tforeach ( $this->client_layouts as $id => $layouts ) {\n\n\t\t\t\t\t// Establish areas\n\t\t\t\t\t$this->client_layouts[$id]['featured'] = array();\n\t\t\t\t\t$this->client_layouts[$id]['primary'] = array();\n\t\t\t\t\t$this->client_layouts[$id]['featured_below'] = array();\n\n\t\t\t\t\t// Loop through and format elements, splitting them into\n\t\t\t\t\t// their areas -- featured, primary, & featured_below\n\t\t\t\t\tif ( $layouts['import'] ) {\n\t\t\t\t\t\t$i = 1;\n\t\t\t\t\t\tforeach ( $layouts['import'] as $element ) {\n\n\t\t\t\t\t\t\t// Skip if the element isn't registered\n\t\t\t\t\t\t\tif ( ! $this->is_element( $element['type'] ) ) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Setup default option values\n\t\t\t\t\t\t\t$options = array();\n\t\t\t\t\t\t\tif ( ! empty( $element['defaults'] ) ) {\n\t\t\t\t\t\t\t\tforeach ( $this->elements[$element['type']]['options'] as $option ) {\n\n\t\t\t\t\t\t\t\t\t// Is this an actual configurable option?\n\t\t\t\t\t\t\t\t\tif ( ! isset( $option['id'] ) ) {\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t$default_value = null;\n\n\t\t\t\t\t\t\t\t\t// Did the client put in a default value for this element?\n\t\t\t\t\t\t\t\t\tforeach ( $element['defaults'] as $key => $value ) {\n\t\t\t\t\t\t\t\t\t\tif ( $key == $option['id'] ) {\n\t\t\t\t\t\t\t\t\t\t\t$default_value = $value;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Is there a default value for the element in the builder\n\t\t\t\t\t\t\t\t\t// we can use instead if client didn't pass one?\n\t\t\t\t\t\t\t\t\tif ( $default_value === null && isset( $option['std'] ) ) {\n\t\t\t\t\t\t\t\t\t\t$default_value = $option['std'];\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Apply value\n\t\t\t\t\t\t\t\t\t$options[$option['id']] = $default_value;\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Add element to proper area\n\t\t\t\t\t\t\t$this->client_layouts[$id][$element['location']]['element_'.$i] = array(\n\t\t\t\t\t\t\t\t'type' \t\t\t=> $element['type'],\n\t\t\t\t\t\t\t\t// 'query_type' \t=> $this->elements[$element['type']]['info']['query'],\n\t\t\t\t\t\t\t\t'options'\t\t=> $options\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t$i++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Remove overall elements array, now that it's been\n\t\t\t\t\t// split into areas.\n\t\t\t\t\tunset( $this->client_layouts[$id]['elements'] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Merge core layouts with client API-added layouts\n\t\t$this->layouts = array_merge( $this->core_layouts, $this->client_layouts );\n\n\t\t// Remove layouts\n\t\tif ( $this->remove_layouts ) {\n\t\t\tforeach ( $this->remove_layouts as $layout ) {\n\t\t\t\tunset( $this->layouts[$layout] );\n\t\t\t}\n\t\t}\n\n\t\t// Extend\n\t\t$this->layouts = apply_filters( 'themeblvd_sample_layouts', $this->layouts );\n\n\t\t// Sort alphabetically\n\t\tuasort( $this->layouts, array($this, 'sort_by_name') );\n\t}",
"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'left' => array( // the zone's id\n\t\t\t\t\t'order' => 10, // We will use this to establish the display order of the zones\n\t\t\t\t\t'classes' => array(), // by default we will add the classes 'c-navbar__zone' and 'c-navbar__zone--%zone_id%' to each zone\n\t\t\t\t\t'display_blank' => true, // determines if we output markup for an empty zone\n\t\t\t\t),\n\t\t\t\t'middle' => array( // the zone's id\n\t\t\t\t\t'order' => 20, // We will use this to establish the display order of the zones\n\t\t\t\t\t'classes' => array(), // by default we will add the classes 'c-navbar__zone' and 'c-navbar__zone--%zone_id%' to each zone\n\t\t\t\t\t'display_blank' => true, // determines if we output markup for an empty zone\n\t\t\t\t),\n\t\t\t\t'right' => array( // the zone's id\n\t\t\t\t\t'order' => 30, // We will use this to establish the display order of the zones\n\t\t\t\t\t'classes' => array(), // by default we will add the classes 'c-navbar__zone' and 'c-navbar__zone--%zone_id%' to each zone\n\t\t\t\t\t'display_blank' => true, // determines if we output markup for an empty zone\n\t\t\t\t),\n\t\t\t),\n\t\t\t'menu_locations' => array(\n\t\t\t\t'header-branding' => array(\n\t\t\t\t\t'default_zone' => 'middle',\n\t\t\t\t\t// This callback should always accept 3 parameters as documented in pixelgrade_header_get_zones()\n\t\t\t\t\t'zone_callback' => array( $this, 'headerBrandingZone' ),\n\t\t\t\t\t'order' => 10, // We will use this to establish the display order of nav menu locations, inside a certain zone\n\t\t\t\t\t'bogus' => true, // this tells the world that this is just a placeholder, not a real nav menu location\n\t\t\t\t),\n\t\t\t\t'primary-right' => array(\n\t\t\t\t\t'title' => esc_html__( 'Header Right', '__components_txtd' ),\n\t\t\t\t\t'default_zone' => 'right',\n\t\t\t\t\t// This callback should always accept 3 parameters as documented in pixelgrade_header_get_zones()\n\t\t\t\t\t'zone_callback' => array( $this, 'primaryRightNavMenuZone' ),\n\t\t\t\t\t'order' => 10, // We will use this to establish the display order of nav menu locations, inside a certain zone\n\t\t\t\t\t'nav_menu_args' => array( // skip 'theme_location' and 'echo' args as we will force those\n\t\t\t\t\t\t'menu_id' => 'menu-2',\n\t\t\t\t\t\t'container' => 'nav',\n\t\t\t\t\t\t'container_class' => '',\n\t\t\t\t\t\t'fallback_cb' => false,\n\t\t\t\t\t\t'depth' => 1,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\n\t\tif ( pixelgrade_user_has_access( 'pro-features' ) ) {\n\t\t\t$this->config['menu_locations'] = Pixelgrade_Array::insertBeforeKey( $this->config['menu_locations'], 'primary-right', array(\n\t\t\t\t'primary-left' => array(\n\t\t\t\t\t'title' => esc_html__( 'Header Left', '__components_txtd' ),\n\t\t\t\t\t'default_zone' => 'left',\n\t\t\t\t\t// This callback should always accept 3 parameters as documented in pixelgrade_header_get_zones()\n\t\t\t\t\t'zone_callback' => false,\n\t\t\t\t\t'order' => 10,\n\t\t\t\t\t// We will use this to establish the display order of nav menu locations, inside a certain zone\n\t\t\t\t\t'nav_menu_args' => array( // skip 'theme_location' and 'echo' args as we will force those\n\t\t\t\t\t\t'menu_id' => 'menu-1',\n\t\t\t\t\t\t'container' => 'nav',\n\t\t\t\t\t\t'container_class' => '',\n\t\t\t\t\t\t'fallback_cb' => false,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t) );\n\n\t\t\t/**\n\t\t\t * Allow the primary menu to have the desired depth, only for the Pro version.\n\t\t\t */\n\t\t\t$this->config['menu_locations']['primary-right']['nav_menu_args']['depth'] = 0;\n\n\t\t\t// Add theme support for Jetpack Social Menu, if we are allowed to\n\t\t\tif ( apply_filters( 'pixelgrade_header_use_jetpack_social_menu', true ) ) {\n\n\t\t\t\t// Add it to the config\n\t\t\t\t$this->config['menu_locations']['jetpack-social-menu'] = array(\n\t\t\t\t\t'default_zone' => 'right',\n\t\t\t\t\t// This callback should always accept 3 parameters as documented in pixelgrade_header_get_zones()\n\t\t\t\t\t'zone_callback' => false,\n\t\t\t\t\t'order' => 20, // We will use this to establish the display order of nav menu locations, inside a certain zone\n\t\t\t\t\t'bogus' => true, // this tells the world that this is just a placeholder, not a real nav menu location\n\t\t\t\t);\n\n\t\t\t\t// Add support for the Jetpack Social Menu\n\t\t\t\tadd_theme_support( 'jetpack-social-menu' );\n\t\t\t}\n\t\t}\n\n\t\t// Allow others to make changes to the config\n\t\t// Make the hooks dynamic and standard\n\t\t$hook_slug = self::prepareStringForHooks( self::COMPONENT_SLUG );\n\t\t$modified_config = apply_filters( \"pixelgrade_{$hook_slug}_initial_config\", $this->config, self::COMPONENT_SLUG );\n\n\t\t// Check/validate the modified config\n\t\tif ( method_exists( $this, 'validate_config' ) && ! $this->validate_config( $modified_config ) ) {\n\t\t\t/* translators: 1: the component slug */\n\t\t\t_doing_it_wrong( __METHOD__, sprintf( 'The component config modified through the \"pixelgrade_%1$s_initial_config\" dynamic filter is invalid! Please check the modifications you are trying to do!', esc_html( $hook_slug ) ), null );\n\t\t\treturn;\n\t\t}\n\n\t\t// Change the component's config with the modified one\n\t\t$this->config = $modified_config;\n\t}",
"protected function registerLayoutAfter() {}",
"protected function setupLayout() {\r\n\r\n if (null !== $this->layout) {\r\n $this->changeLayout($this->layout);\r\n }\r\n }",
"public function register_widget_areas() {\n\t\t}",
"protected function registerLayoutFieldsBefore() {}",
"protected function _prepareLayout()\r\n {\r\n parent::_prepareLayout();\r\n }",
"public function setupLayout()\n {\n $this->layout = CoreView::getLayout();\n }",
"function set_layout($layout) {\r\n $this->layout = $layout;\r\n $this->load_area_array = $this->_get_load_area();\r\n }",
"protected function setLayout () {\n\t\tif ($this->_getParam('catalog')) {\n\t\t\t$config = Zend_Registry::getInstance()->config;\n\t\t\tif (count($config->catalog->layouts)) {\n\t\t\t\t$catalogId = $this->_helper->osidId->fromString($this->_getParam('catalog'));\n\t\t\t\tforeach ($config->catalog->layouts as $layoutConfig) {\n\t\t\t\t\tif ($catalogId->isEqual(new phpkit_id_URNInetId($layoutConfig->catalog_id))) {\n\t\t\t\t\t\t$this->_helper->layout()->setLayout($layoutConfig->layout);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"function setLayout($layout)\n {\n // override me\n }",
"function &getLayout()\n {\n // override me\n }",
"public function setLayout()\n\t{\n \t$this->_helper->layout->setLayout('admin');\t\n\t}",
"protected function registerLayoutFieldsAfter() {}",
"private function InitAreas()\n {\n $sql = Access::SqlBuilder();\n $tbl = Area::Schema()->Table();\n $where = $sql->Equals($tbl->Field('Layout'), $sql->Value($this->layout->GetID()))\n ->And_($sql->IsNull($tbl->Field('Previous')));\n $area = Area::Schema()->First($where);\n while ($area)\n {\n $this->areas[$area->GetName()] = $area;\n $area = Area::Schema()->ByPrevious($area);\n }\n }",
"protected function setUp()\n\t{\n\t\t$this->layoutBase = new JLayoutBase;\n\t}",
"function r2r_zen_home_page_panels_layouts() {\n \n $items['home_page'] = array(\n 'title' => t('Reality - Home Page Layout'),\n 'icon' => 'home_page.png',\n 'theme' => 'home_page',\n // 'css' => 'home_page.css',\n 'regions' => array(\n 'top_row' => t('Top Row'),\n // 'right_row' => t('Right Row'),\n 'left' => t('Left side'),\n 'middle' => ('Middle'),\n 'right' => t('Right side'),\n ),\n );\n\n return $items;\n}",
"abstract protected function options_layout();",
"public function __construct()\n {\n $this->setData('frame_parent', 'HomePage');\n $this->setData('places', array(\n 'top' => array(//'top' - key used in config\n 'label' => Mage::helper('quartic')->__('Top'), //Label used in configuration form\n 'block_name' => 'content', //Original block's name in layout\n 'block_layout' => 'cms_index_index', //[optional] If set, our block will be inserted only on pages with this layout hadle\n 'block_position' => 'before', //'before' - prepend custom block's html; 'after' - append it\n 'frame_block' => 'quartic/frame_home', //Class of our custom block\n 'frame_template' => 'quartic/frame/home.phtml', //Template of our custom block\n ),\n 'bottom' => array(\n 'label' => Mage::helper('quartic')->__('Bottom'),\n 'block_name' => 'content',\n 'block_layout' => 'cms_index_index',\n 'block_position' => 'after',\n 'frame_block' => 'quartic/frame_home',\n 'frame_template' => 'quartic/frame/home.phtml',\n ),\n ));\n }",
"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 for ($i = 0; $i < $count; $i++) {\n $zoneInfos = $layoutZones[$i];\n $currentZone = $currentpageRootZones->item($i);\n\n if (\n null !== $currentZone\n && null !== $zoneInfos\n && true === property_exists($zoneInfos, 'mainZone')\n && true === $zoneInfos->mainZone\n ) {\n $result[$currentZone->getUid()] = $currentZone;\n }\n }\n\n return $result;\n }",
"public function layout();",
"public function init()\n {\n \t$this->registry = Zend_Registry::getInstance();\n \t$this->_helper->layout->setLayout('admin');\t\n }",
"protected function setupLayout(){\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}",
"protected function setupLayout()\n\t{\n\t\t// if ( ! is_null($this->layout))\n\t\t// {\n\t\t// \t$this->layout = View::make($this->layout);\n\t\t// }\n\t}"
] | [
"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.5118637",
"0.5117829",
"0.5093977",
"0.50861627",
"0.5058315",
"0.5044185",
"0.50233686",
"0.49950558",
"0.4989574"
] | 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 for ($i = 0; $i < $count; $i++) {\n $zoneInfos = $layoutZones[$i];\n $currentZone = $currentpageRootZones->item($i);\n\n if (\n null !== $currentZone\n && null !== $zoneInfos\n && true === property_exists($zoneInfos, 'mainZone')\n && true === $zoneInfos->mainZone\n ) {\n $result[$currentZone->getUid()] = $currentZone;\n }\n }\n\n return $result;\n }",
"public static function getLayouts(): array;",
"public function setLayoutzones($layoutzones)\n {\n $this->layoutzones = $layoutzones;\n\n return $this;\n }",
"public function getZones()\n {\n return $this->zones;\n }",
"public function getZones()\n {\n return $this->zones;\n }",
"public function getThemeAreaLayoutPresets()\n {\n }",
"function getLayouts(): array\n {\n return array_keys($this->options['layouts']);\n }",
"function &getLayout()\n {\n // override me\n }",
"public function getThemeLayout();",
"public function getThemeLayout();",
"function r2r_zen_home_page_panels_layouts() {\n \n $items['home_page'] = array(\n 'title' => t('Reality - Home Page Layout'),\n 'icon' => 'home_page.png',\n 'theme' => 'home_page',\n // 'css' => 'home_page.css',\n 'regions' => array(\n 'top_row' => t('Top Row'),\n // 'right_row' => t('Right Row'),\n 'left' => t('Left side'),\n 'middle' => ('Middle'),\n 'right' => t('Right side'),\n ),\n );\n\n return $items;\n}",
"public function getLayout();",
"public function getLayout();",
"public function get_layouts() {\n\t\treturn $this->layouts;\n\t}",
"function getI55Layouts() {\n return array(\n 'default' => 'default',\n 'tabbed' => 'tabbed',\n 'stacking' => 'stacking'\n );\n}",
"public static function getLayouts() {\n static $layouts = FALSE;\n\n if (!$layouts) {\n // This can be called before ds_update_8003() has run. If that is the case\n // return an empty array and don't static cache anything.\n if (!\\Drupal::hasService('plugin.manager.core.layout')) {\n return [];\n }\n $layouts = \\Drupal::service('plugin.manager.core.layout')->getDefinitions();\n }\n\n return $layouts;\n }",
"public function getDnsZones();",
"public function getAvailableZones()\n {\n return $this->available_zones;\n }",
"abstract public function getLayout();",
"public function contentAreas()\n {\n\t\treturn $this->_contentAreas;\n\t}",
"public function getInheritedContensetZoneParams(ContentSet $contentSet)\n {\n $zone = null;\n\n if (\n null === $this->getLayout()\n || null === $this->getParent()\n || false === is_array($this->getLayout()->getZones())\n ) {\n return $zone;\n }\n\n $layoutZones = $this->getLayout()->getZones();\n $count = $this->getParent()->getContentSet()->count();\n for ($i = 0; $i < $count; $i++) {\n $parentContentset = $this->getParent()->getContentSet()->item($i);\n\n if ($contentSet->getUid() === $parentContentset->getUid()) {\n $zone = $layoutZones[$i];\n }\n }\n\n return $zone;\n }",
"public function getLayoutZoneMapper()\n {\n if (null === $this->layoutZoneMapper) {\n $this->layoutZoneMapper = $this->getServiceManager()->get('playgroundcms_layoutzone_mapper');\n }\n\n return $this->layoutZoneMapper;\n }",
"public function obtenerAreas();",
"function _govcms_parkes_prepare_panel_layout_array_extract_layout($rows_cols) {\n\n $retval = array(\n 'regions' => array(),\n 'grid' => array(),\n );\n\n foreach ($rows_cols as $delta => $row) {\n\n $retval['grid'][$delta] = array();\n\n foreach ($row as $key => $data) {\n\n // If data contains a name key, this is a panel pane\n if (!empty($data['name'])) {\n $retval['regions'][$key] = $data['name'];\n }\n\n // If data contains a grid key, this is part of the grid\n if (!empty($data['grid'])) {\n $retval['grid'][$delta][$key] = $data['grid'];\n }\n\n // if data contains children, there is a sub-grid\n if (!empty($data['children'])) {\n $returned = _govcms_parkes_prepare_panel_layout_array_extract_layout($data['children']);\n $retval['grid'][$delta][$key] = array(\n 'grid' => $retval['grid'][$delta][$key],\n 'children' => array($returned['grid'][$delta]),\n );\n $retval['regions'] += $returned['regions'];\n }\n }\n }\n\n return $retval;\n}",
"public function getLayout(): array\n {\n return $this->layout;\n }",
"public function getBlockLayoutZoneMapper()\n {\n if (null === $this->blockLayoutZoneMapper) {\n $this->blockLayoutZoneMapper = $this->getServiceManager()->get('playgroundcms_blocklayoutzone_mapper');\n }\n\n return $this->blockLayoutZoneMapper;\n }",
"public function getPageLayouts()\n\t{\n\t\t$objLayout = $this->Database->execute(\"SELECT l.id, l.name, t.name AS theme FROM tl_layout l LEFT JOIN tl_theme t ON l.pid=t.id ORDER BY t.name, l.name\");\n\n\t\tif ($objLayout->numRows < 1)\n\t\t{\n\t\t\treturn array();\n\t\t}\n\n\t\t$return = array();\n\n\t\twhile ($objLayout->next())\n\t\t{\n\t\t\t$return[$objLayout->theme][$objLayout->id] = $objLayout->name;\n\t\t}\n\n\t\treturn $return;\n\t}",
"public function get_core_layouts() {\n\t\treturn $this->core_layouts;\n\t}",
"public function getZones(){\n $resultat = $this->db->select()\n ->from($this->table)\n ->get()\n ->result();\n \n $zoneCollection = new ZoneCollection();\n \n foreach($resultat as $element){\n $dto = $this->hydrateFromDatabase($element);\n $zoneCollection->append($dto);\n }\n \n return $zoneCollection;\n }",
"public function get_client_layouts() {\n\t\treturn $this->client_layouts;\n\t}"
] | [
"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.54684204",
"0.545458",
"0.5323206",
"0.52963114",
"0.52821916",
"0.5249618",
"0.52468085",
"0.52382445",
"0.5222962",
"0.5220115"
] | 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 $order->cart;\n\n return $this->showOne($order);\n }",
"public function createPaymentForOrder(Order $order, $paymentMethod) {\n\n\t\t// Wrap this in a try-catch block\n\t\ttry {\n\n\t\t\t// Create the array of payment data that we are going to send to Mollie\n\t\t\t$paymentData = [\n\t\t\t \"amount\" => (float) $order->effectiveTotalPrice() / 100,\n\t\t\t \"description\" => \"Eurest bestelling #\" . $order->id,\n\t\t\t \"redirectUrl\" => baseURL() . '/payment/return/' . $order->id,\n\t\t\t \"webhookUrl\" => baseURL() . '/payment/process/' . $order->id,\n\t\t\t \"metadata\" \t => [\n\t\t\t \t\"order_id\" => $order->id\n\t\t\t ]\n\t\t\t] + $this->filterPaymentMethod($paymentMethod);\n\n\t\t\t// Get the payment created by Mollie, can throw an exception\n\t\t\t$payment = $this->mollie->payments->create($paymentData);\n\n\t\t\t// Update the order in the database with the newly created mollie_id\n\t\t\tapp('database')->table('orders')->where('id', $order->id)->update(['mollie_id' => $payment->id]);\n\n\t\t\t// Return the payment\n\t\t\treturn $payment;\n\t\t}\n\n\t\t// Catch any exceptions that Mollie might throw\n\t\tcatch (\\Mollie_API_Exception $e) {\n\n\t\t\t// Return false when we get an exception\n\t\t\treturn false;\n\t\t}\n\t}",
"public static function createPayment(WC_Order $order){\r\n\t\t$invoiceId = sprintf('%s%s',WP_Manager()->invoice_prefix, $order->id);\r\n\t\t$payer = new Payer();\r\n\t\t$payer->setPaymentMethod('paypal');\r\n\t\t$itemList = self::getItemsFromOrder($order);\r\n\t\t$details = new Details();\r\n\t\t$details->setShipping($order->get_total_shipping())->setTax($order->get_total_tax())\r\n\t\t\t->setSubtotal($order->get_subtotal());\r\n\t\t$amount = new Amount();\r\n\t\t$amount->setCurrency(get_woocommerce_currency())->setTotal($order->get_total())->setDetails($details);\r\n\t\t$transaction = new Transaction();\r\n\t\t$transaction->setAmount($amount)->setItemList($itemList)->setDescription('Test Description')->setInvoiceNumber($invoiceId);\r\n\t\t$redirectUrls = new RedirectUrls();\r\n\t\t$redirectUrls->setReturnUrl(get_site_url().'?paypal_payments=success&order_id='.$order->id)\r\n\t\t\t->setCancelUrl(get_site_url().'?paypal_payments=cancel&order_id='.$order->id);\r\n\t\t$payment = new Payment();\r\n\t\t$payment->setIntent('sale');\r\n\t\t$payment->setRedirectUrls($redirectUrls)->setTransactions(array($transaction))->setPayer($payer); \r\n\t\t\r\n\t\ttry{\r\n\t\t\t$payment->create(self::generateApiContext());\r\n\t\t\tWP_Manager()->log->writeToLog(sprintf('Paypal payment API request was successful for order %s', $order->id));\r\n\t\t\treturn $payment->getApprovalLink();\r\n\t\t}\r\n\t\tcatch(Exception $e){\r\n\t\t\tWP_Manager()->log->writeErrorToLog($e->getMessage());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public function createOrder()\n {\n try {\n if(empty($this->orderPayload))\n {\n return ApiResponseHandler::validationError(\"Transaction data is required\");\n }\n\n $order = new CreateOrderController();\n $result = $order->create($this->orderPayload);\n return json_decode($result->getContent(), true);\n// return $result->getContent();\n //code...\n } catch (\\Throwable $th) {\n throw $th;\n }\n }",
"public function paymentObject(){\n $paymentObj = PaymentMaker::makePaymentRequest( $this->orderObject(), $this->credential, $this->configArray );\n\n return $paymentObj;\n\n }",
"static public function create(\n string $purchase_type,\n string $payment_mode,\n string|float $amount,\n int|string|null $created_by = null,\n string|int $time_created = 0,\n array|object $data = [],\n ): DB\\paymentX\n {\n Assert::inTransaction();\n if($created_by) $created_by = DataUser::get($created_by)->id;\n else $created_by = Session::getCurrentUser(true)->id;\n\n $time_created =\n $time_created == 0 ?\n TimeHelper::getCurrentTime() :\n TimeHelper::getTimeAsCarbon($time_created);\n\n $newPayment = new DB\\paymentX();\n $newPayment->loadValues(data:$data,isNew: true);\n $newPayment->payment_referrence = self::generatePaymentReference();\n self::assertValidPurchaseType($purchase_type);\n $newPayment->purchase_type = $purchase_type;\n self::assertValidPaymentMode($payment_mode);\n $newPayment->payment_mode = $payment_mode;\n $newPayment->amount = $amount;\n $newPayment->created_by = $created_by;\n $newPayment->time_created = $time_created->getTimestamp();\n $newPayment->time_payment = $time_created->getTimestamp();\n $newPayment->status = \"n\";\n\n if (is_string($newPayment->time_payment)) {\n $newPayment->time_payment = TimeHelper::getTimeAsCarbon($newPayment->time_payment)->getTimestamp();\n }\n self::checkNewPayment($newPayment);\n $newPayment->save();\n return $newPayment;\n }",
"public static function create($order)\n {\n $data = OpenPayU_Util::buildJsonFromArray($order);\n\n if (empty($data)) {\n throw new OpenPayU_Exception('Empty message OrderCreateRequest');\n }\n\n try {\n $authType = self::getAuth();\n } catch (OpenPayU_Exception $e) {\n throw new OpenPayU_Exception($e->getMessage(), $e->getCode());\n }\n\n $pathUrl = OpenPayU_Configuration::getServiceUrl() . self::ORDER_SERVICE;\n\n $result = self::verifyResponse(OpenPayU_Http::doPost($pathUrl, $data, $authType), 'OrderCreateResponse');\n\n return $result;\n }",
"public function createOrder(Order $order)\n {\n return $this->post('createorder', [\n 'form_params' => $order->toArray()\n ]);\n }",
"public function createOrder(Order $order)\n {\n $orderData = $this->transformer->transformOrder($order);\n $response = $this->call(self::HTTP_METHOD_POST, '/orders', $orderData);\n $result = $response->decodeBodyAsJson();\n\n return !empty($result['id']) ? $this->getOrder($result['id']) : Order::fromArray($result);\n }",
"public function new_transaction(Order $order)\n {\n $transaction = new Transaction;\n $transaction->site_id = $order->site_id;\n $transaction->order_id = $order->id;\n $transaction->date = time();\n $transaction->status = Transaction::PENDING;\n\n return $transaction;\n }",
"public function getPaymentCreateRequest() {\n $data = null;\n if ($this->amount && $this->currency) {\n // capture pre-authorized payment\n if ($this->parentTransactionId) {\n $data = array(\n \"amount\" => $this->amount,\n \"description\" => $this->description,\n \"authorization\" => $this->parentTransactionId,\n \"reference\" => $this->reference,\n \"currency\" => $this->currency\n );\n }\n // authorize/capture payment using Simplify customer identifier\n else if ($this->cardId) {\n $data = array(\n \"amount\" => $this->amount,\n \"description\" => $this->description,\n \"customer\" => $this->cardId,\n \"reference\" => $this->reference,\n \"currency\" => $this->currency\n );\n }\n // authorize/capture payment using card token\n else if ($this->cardToken) {\n $data = array(\n \"amount\" => $this->amount,\n \"description\" => $this->description,\n \"token\" => $this->cardToken,\n \"reference\" => $this->reference,\n \"currency\" => $this->currency\n );\n }\n // authorize/capture payment using raw card data\n else if ($this->cardNumber) {\n $data = array(\n \"amount\" => $this->amount,\n \"description\" => $this->description,\n \"card\" => array(\n \"expYear\" => $this->expirationYear,\n \"expMonth\" => $this->expirationMonth, \n \"cvc\" => $this->cvc,\n \"number\" => $this->cardNumber\n ),\n \"reference\" => $this->reference,\n \"currency\" => $this->currency\n );\n if ($this->billing) {\n $data[\"card\"][\"name\"] = $this->billing->getName();\n $data[\"card\"][\"addressCity\"] = $this->billing->getCity();\n $data[\"card\"][\"addressLine1\"] = $this->billing->getStreetLine(1);\n $data[\"card\"][\"addressLine2\"] = $this->billing->getStreetLine(2);\n $data[\"card\"][\"addressZip\"] = $this->billing->getPostcode();\n $data[\"card\"][\"addressState\"] = $this->billing->getRegion();\n $data[\"card\"][\"addressCountry\"] = $this->billing->getCountryId();\n }\n } \n }\n return $data;\n }",
"public function createPayment(){\n \t$this->pushTransaction();\n\n \t$this->info['intent'] = $this->intent;\n\n \t$fields_string = http_build_query($this->info);\n\t\tcurl_setopt($this->ch, CURLOPT_URL, \"https://api.sandbox.paypal.com/v1/payments/payment\");\n\t\tcurl_setopt($this->ch,CURLOPT_POSTFIELDS, json_encode($this->info));\n\t\tcurl_setopt($this->ch, CURLOPT_RETURNTRANSFER, 1);\n\t\tcurl_setopt($this->ch, CURLOPT_POST, 1);\n\t\tcurl_setopt($this->ch, CURLOPT_HTTPHEADER, $this->headers);\n\n\t\t$result = curl_exec($this->ch);\n\n\t\tif (curl_errno($this->ch)) {\n\t\t echo 'Error:' . curl_error($this->ch);\n\t\t}\n\n\t\tcurl_close ($this->ch);\n\n\t\treturn $result;\n }",
"public function order_create() {\n\t\t\t/** @var order $order */\n\t\t\t$order = $this->module->getBasketOrder();\n\t\t\tif ($order->isEmpty()) {\n\t\t\t\t$this->module->errorNewMessage(getLabel('error-market-empty-basket'));\n\t\t\t}\n\n\t\t\t//Fill order & customer fields\n\t\t\tif (isset($_REQUEST['data']) && isset($_REQUEST['data']['new']) && is_array($_REQUEST['data']['new'])) {\n\t\t\t\t$_REQUEST['data'][$order->getId()] = $_REQUEST['data']['new'];\n\t\t\t\t/** @var DataForms $data */\n\t\t\t\t$data = cmsController::getInstance()->getModule('data');\n\t\t\t\t$data->saveEditedObjectWithIgnorePermissions($order->getId(), false, true);\n\n\t\t\t\tif (!Service::Auth()->isAuthorized()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\t$oCustomer = umiObjectsCollection::getInstance()->getObject($order->getCustomerId());\n\t\t\t\t\t\tforeach ($_REQUEST['data']['new'] as $field => $value) {\n\t\t\t\t\t\t\t$oCustomer->setValue(str_replace('cust_', '', $field), $value);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$oCustomer->commit();\n\t\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\t\t$this->module->errorNewMessage($e->getMessage());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$paysystemsEnabled = $this->paysystemEnabled();\n\t\t\t//If paysystems disabled - set default payment type - cash\n\t\t\tif (!$paysystemsEnabled) {\n\t\t\t\t$cash = $this->getCustomPaysystem('courier');\n\t\t\t\t$order->setValue('custom_order_payment_type', $cash->getId());\n\t\t\t}\n\n\t\t\t// Если передана информация о варианте доставки, сохраняем её в заказе\n\t\t\tif (isset($_REQUEST['delivery_id']) && is_numeric($_REQUEST['delivery_id']) && $_REQUEST['delivery_id'] > 0) {\n\n\t\t\t\t$sel = new selector('objects');\n\t\t\t\t$sel->types('object-type')->name('emarket', 'delivery');\n\t\t\t\t$sel->where('id')->equals($_REQUEST['delivery_id']);\n\t\t\t\t$sel->limit(0, 1);\n\t\t\t\t$sel->option('return')->value(['id', 'name', 'sum']);\n\t\t\t\t$deliveryOptionData = isset($sel->result()[0]) ? $sel->result()[0] : null;\n\t\t\t\tif (!empty($deliveryOptionData) &&\n\t\t\t\t\tisset($deliveryOptionData['id'], $deliveryOptionData['name'], $deliveryOptionData['sum'])) {\n\t\t\t\t\t$order->setValue('delivery_id', $deliveryOptionData['id']);\n\t\t\t\t\t$order->setValue('delivery_name', $deliveryOptionData['name']);\n\t\t\t\t\t$order->setValue('delivery_price', $deliveryOptionData['sum']);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Перед комитом пересчитываем стоимость заказа, если указана доставка, то стоимость изменится\n\t\t\t$order->refresh();\n\n\t\t\t// Сохраняем изменения\n\t\t\t$order->commit();\n\n\t\t\t//Form order\n\t\t\t$order->order();\n\n\t\t\t//return current setup\n\t\t\t$arResult = [\n\t\t\t\t'order_id' => $order->getId(),\n\t\t\t\t'paysystem' => $paysystemsEnabled,\n\t\t\t];\n\n\t\t\t$module = $this->module;\n\t\t\treturn $module::parseTemplate([], $arResult);\n\t\t}",
"public function create(): ?Order\n\t{\n\t\t$order = $this->build();\n\t\tif ($order)\n\t\t{\n\t\t\t$result = $order->save();\n\t\t\tif ($result->isSuccess())\n\t\t\t{\n\t\t\t\tself::$createdOrders[$this->ownerTypeId][$this->ownerId] = $order->getId();\n\n\t\t\t\treturn $order;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}",
"public function makePayment(PaymentInterface $payment): CreatedPaymentResponseModel;",
"public function createPayment($Payment){\n\n\t\t$Result = new Result();\t\n\t\t$Result = $this->_PaymentDAO->createPayment($Payment);\n\t\t\n\t\tif(!$Result->getIsSuccess())\n\t\t\t$Result->setResultObject(\"Database failure in PaymentDAO.createPayment()\");\t\t\n\n\t\treturn $Result;\n\n\t\n\t}",
"function createNewOrder($order, $conn){\n // Returns the id number of the last inserted record.\n \n $dbService = new OrderDataService();\n return $dbService->createNewOrder($order, $conn);\n }",
"public static function payment()\n {\n $env = self::getEnv();\n $credentials = self::getCredentials();\n \n return new Payment($credentials, $env);\n }",
"public function createPayment(Payment $payment)\n {\n $paymentData = $this->transformer->transformPayment($payment);\n $response = $this->call(self::HTTP_METHOD_POST, '/payments', $paymentData);\n $result = $response->decodeBodyAsJson();\n\n return Payment::fromArray($result);\n }",
"public function ordersPaymentCreate(array $payment)\n {\n if (!count($payment)) {\n throw new \\InvalidArgumentException(\n 'Parameter `payment` must contains a data'\n );\n }\n\n return $this->client->makeRequest(\n '/orders/payments/create',\n RetailcrmHttpClient::METHOD_POST,\n array('payment' => json_encode($payment))\n );\n }",
"public function create($order) {\n $array = [$order->getStatusId(),\n $order->getTableId(),\n $order->getChefId(),\n $order->getWaiterId(),\n $order->getClientId(),\n $order->getMenuId(),\n $order->getTotalPrice()];\n\n return $this->dataSource->executeTransaction(self::INSERT_ORDER, $array);\n }",
"public function create(Order $order)\n {\n return view('payments.create',['order'=>$order]);\n }",
"function createOrder($amount, $currency) {\n\n\t//Building headers\n\t$headers = AUTH_HEADER;\n\t$headers[] = 'content-type: application/json';\n\n\t//Building data\n\t$data = Array(\n \"depositCoin\" => $currency\n ,\"destinationCoin\" => PAYOUT_CURRENCY\n ,\"depositCoinAmount\" => $amount\n ,\"destinationCoinAmount\" => \"\"\n ,\"destinationAddress\" => \"\" // PAYOUT_ADDRESS[PAYOUT_CURRENCY]\n //,\"refundAddress\" => \"\" // alternate JSON object to recollect in caso of a trade error\n\t\t//,\"callback\" => CS_CALLBACK //to receive any change in the status of the order\n\t\t);\n //$data['refundAddress'] = Array(\n // \"address\" => \"\" // alternative collecting address\n // ,'tag' => null);\n\n $data['destinationAddress'] = Array(\n \"address\" => PAYOUT_ADDRESS[PAYOUT_CURRENCY]\n ,'tag' => null);\n\n\terror_log(\"Creating order with data = \" . json_encode($data));\n\n\t//POSTing\n\t$res = httpPost(URL_ORDERCREATE,json_encode($data), $headers);\n\terror_log($res);\n\treturn json_decode($res,true);\n}",
"public function createOrder() {\n\n\t if(!$this->getOrderid()){\n\t\t\t\n\t\t\t$theOrder = Orders::create ( $this->getCustomerId(), Statuses::id('tobepaid', 'orders'), null );\n\t\n\t\t\t// For each item in the cart\n\t\t\tforeach ($this->getItems() as $item){\n\t\t\t\t$item = Orders::addOrderItem ($item);\n\t\t\t}\n\t\t\t\n\t\t\t$this->setOrderid($theOrder['order_id']);\n\t\t\t\n\t\t\t// Send the email to confirm the order\n\t\t\tOrders::sendOrder ( $theOrder['order_id'] );\n\t\t\t\n\t\t\treturn Orders::getOrder();\n\t\t\t\n\t\t}else{\n\t\t\t\n\t\t\treturn Orders::find($this->getOrderid());\n\t\t}\n\t\t\n\t}",
"public function preparePayment()\n {\n\n\n $payment = Mollie::api()->payments()->create([\n 'amount' => [\n 'currency' => 'EUR',\n 'value' => number_format($this->countTotalPrice(Order::find(session('lastCreatedOrderId'))->products), 2), // You must send the correct number of decimals, thus we enforce the use of strings\n ],\n 'description' => 'My first API payment',\n 'webhookUrl' => action('PaymentController@paymentReceive'),\n 'redirectUrl' => action('OrderController@createOrderConfirmed'),\n 'metadata' => [\n 'order_id' => session('lastCreatedOrderId'),\n ],\n ]);\n $payment = Mollie::api()->payments()->get($payment->id);\n // redirect customer to Mollie checkout page\n return redirect($payment->getCheckoutUrl(), 303);\n }",
"public function created(Order $order)\n {\n }",
"public function createOrder()\n {\n $this->conveyor['isAlreadyOrdered'] = (bool) Order::getOrderByCartId((int) $this->conveyor['id_cart']);\n\n if ($this->conveyor['isAlreadyOrdered']) {\n ProcessLoggerHandler::logInfo(\n 'Prestashop order has been already created for this cart',\n null,\n null,\n 'ValidationOrderActions - createOrder'\n );\n\n return true;\n }\n\n if ($this->conveyor['status'] != 'succeeded'\n && $this->conveyor['status'] != 'pending'\n && $this->conveyor['status'] != 'requires_capture'\n && $this->conveyor['status'] != 'requires_action'\n && $this->conveyor['status'] != 'processing') {\n return false;\n }\n\n $message = 'Stripe Transaction ID: ' . $this->conveyor['paymentIntent'];\n\n if (strpos($this->conveyor['token'], 'pm_') !== false) {\n $this->conveyor['payment_method'] = \\Stripe\\PaymentMethod::retrieve($this->conveyor['token']);\n $this->conveyor['datas']['type'] = $this->conveyor['payment_method']->type;\n $this->conveyor['datas']['owner'] = $this->conveyor['payment_method']->billing_details->name;\n } else {\n $this->conveyor['source'] = \\Stripe\\Source::retrieve($this->conveyor['token']);\n $this->conveyor['datas']['type'] = $this->conveyor['source']->type;\n $this->conveyor['datas']['owner'] = $this->conveyor['source']->owner->name;\n }\n\n $this->conveyor['cart'] = new Cart((int) $this->conveyor['id_cart']);\n\n $paid = $this->conveyor['amount'];\n\n /* Add transaction on Prestashop back Office (Order) */\n if ($this->conveyor['datas']['type'] == 'card' && Configuration::get(Stripe_official::CATCHANDAUTHORIZE) == 'on') {\n $orderStatus = Configuration::get('STRIPE_CAPTURE_WAITING');\n $this->conveyor['result'] = 2;\n } elseif ($this->conveyor['status'] == 'requires_action') {\n $orderStatus = Configuration::get('STRIPE_OXXO_WAITING');\n $this->conveyor['result'] = 2;\n } elseif (!empty($this->conveyor['datas']['type'])\n && $this->conveyor['datas']['type'] == 'sofort'\n && $this->conveyor['status'] == 'pending') {\n $orderStatus = Configuration::get('STRIPE_OS_SOFORT_WAITING');\n $this->conveyor['result'] = 4;\n } elseif ($this->conveyor['datas']['type'] == 'sepa_debit') {\n $orderStatus = Configuration::get(Stripe_official::SEPA_WAITING);\n $this->conveyor['result'] = 3;\n } else {\n $orderStatus = Configuration::get('PS_OS_PAYMENT');\n $this->conveyor['result'] = 1;\n }\n\n ProcessLoggerHandler::logInfo(\n 'Beginning of validateOrder',\n null,\n null,\n 'ValidationOrderActions - createOrder'\n );\n\n try {\n $addressDelivery = new Address($this->conveyor['cart']->id_address_delivery);\n $this->context->country = new Country($addressDelivery->id_country);\n\n ProcessLoggerHandler::logInfo(\n 'Paid Amount => ' . $paid,\n null,\n null,\n 'ValidationOrderActions - createOrder'\n );\n\n $this->module->validateOrder(\n $this->conveyor['cart']->id,\n (int) $orderStatus,\n $paid,\n sprintf(\n $this->module->l('%s via Stripe', 'ValidationOrderActions'),\n Tools::ucfirst(Stripe_official::$paymentMethods[$this->conveyor['datas']['type']]['name'])\n ),\n $message,\n [],\n null,\n false,\n $this->conveyor['cart']->secure_key\n );\n\n ProcessLoggerHandler::logInfo(\n 'Prestashop order created',\n null,\n null,\n 'ValidationOrderActions - createOrder'\n );\n\n $idOrder = Order::getOrderByCartId($this->conveyor['cart']->id);\n $order = new Order($idOrder);\n\n // capture payment for card if no catch and authorize enabled\n $intent = \\Stripe\\PaymentIntent::retrieve($this->conveyor['paymentIntent']);\n ProcessLoggerHandler::logInfo(\n 'payment method => ' . $intent->payment_method_types[0],\n null,\n null,\n 'ValidationOrderActions - createOrder'\n );\n\n if ($intent->payment_method_types[0] == 'card'\n && $intent->capture_method != 'automatic'\n && Configuration::get(Stripe_official::CATCHANDAUTHORIZE) == null) {\n ProcessLoggerHandler::logInfo(\n 'Capturing card',\n null,\n null,\n 'ValidationOrderActions - createOrder'\n );\n\n $currency = new Currency($order->id_currency, $this->context->language->id, $this->context->shop->id);\n\n $amount = $this->module->isZeroDecimalCurrency($currency->iso_code) ? $order->getTotalPaid() : $order->getTotalPaid() * 100;\n\n ProcessLoggerHandler::logInfo(\n 'Capture Amount => ' . $amount,\n null,\n null,\n 'ValidationOrderActions - createOrder'\n );\n\n $paid = $this->module->isZeroDecimalCurrency($currency->iso_code) ? $paid : $paid * 100;\n\n if ($amount != $paid) {\n ProcessLoggerHandler::logInfo(\n 'Fix invalid amount \"' . $amount . '\" to \"' . $paid,\n null,\n null,\n 'ValidationOrderActions - createOrder'\n );\n $amount = $paid;\n }\n\n if (!$this->module->captureFunds($amount, $this->conveyor['paymentIntent'])) {\n ProcessLoggerHandler::closeLogger();\n\n return false;\n }\n\n ProcessLoggerHandler::logInfo(\n 'Payment captured',\n null,\n null,\n 'ValidationOrderActions - createOrder'\n );\n }\n // END capture payment for card if no catch and authorize enabled\n\n if (empty($this->conveyor['source'])) {\n \\Stripe\\PaymentIntent::update(\n $this->conveyor['paymentIntent'],\n [\n 'description' => $this->context->shop->name . ' ' . $order->reference,\n ]\n );\n } else {\n \\Stripe\\Charge::update(\n $this->conveyor['chargeId'],\n [\n 'description' => $this->context->shop->name . ' ' . $order->reference,\n ]\n );\n }\n\n if ($this->conveyor['status'] == 'requires_capture') {\n $stripeCapture = new StripeCapture();\n $stripeCapture->id_payment_intent = $this->conveyor['paymentIntent'];\n $stripeCapture->id_order = Order::getOrderByCartId($this->conveyor['cart']->id);\n $stripeCapture->expired = 0;\n $stripeCapture->date_catch = date('Y-m-d H:i:s');\n $stripeCapture->save();\n }\n\n ProcessLoggerHandler::logInfo(\n 'createOrder : OK',\n Order::class,\n $order->id,\n 'ValidationOrderActions - createOrder'\n );\n ProcessLoggerHandler::closeLogger();\n } catch (Exception $e) {\n ProcessLoggerHandler::logError(\n preg_replace(\"/\\n/\", '<br>', (string) $e->getMessage() . '<br>' . $e->getTraceAsString()),\n null,\n null,\n 'ValidationOrderActions - createOrder'\n );\n ProcessLoggerHandler::closeLogger();\n\n return false;\n }\n\n return true;\n }",
"public function postAction()\n\t{\n\t\t$config = Esquire_Config_Factory::getApplicationConfig();\n\t\t$logger = Esquire_Log_Factory::getLogger($config, 'payment');\n\t\t$logger->log('Beginning new payment request', Zend_Log::INFO);\n\n\t\t$invoiceObjects = null;\n\t\t$paymentId = null;\n\t\t$values = json_decode(stripslashes($this->_getParam('values')), true);\n $values['payment_amount'] = number_format(\n\t\t\tpreg_replace('/[^\\d\\.]/', '', $values['payment_amount']), \n\t\t\t2, \n\t\t\t'.', \n\t\t\t''\n\t\t);\n $source = $this->_getParam('source');\n \n\t\ttry {\n\t\t\t\n\t\t\t$payment = Esquire_Payment_Factory::getInstance($config);\n\n /**\n * If coming from cashapp interface the structure of the parameters are\n * different. We add in a couple of keys that are named differently on ECN.\n */\n if (isset($values['PaymentDistribution'])) {\n $invoiceArray = $values['PaymentDistribution'];\n } elseif (isset($values['invoices'])) {\n $invoiceArray = $values['invoices'];\n }\n $logger->log('Invoice Array: ' . print_r($invoiceArray, true), Zend_Log::INFO);\n \n\t\t\tif (count($invoiceArray) > 0) {\n\t\t\t\t$invoiceObjects = $this->_getInvoiceObjects($invoiceArray);\n\t\t\t\tif ($invoiceObjects instanceof Doctrine_Collection) {\n\t\t\t\t\t$logger->log('Got invoice objects ' . $invoiceObjects->count(), Zend_Log::INFO);\n\t\t\t\t} else {\n\t\t\t\t\t$logger->log('Got NO invoices', Zend_Log::INFO);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (count($invoiceArray) > 0) {\n\t\t\t\t$invoices = $payment->setAmountAppliedToInvoice($invoiceArray, $invoiceObjects);\n\t\t\t}\n\t\t\t$success = $payment->createPayment($values, $invoices);\n\t\t\t$logger->log('Payment creation success: ' . $success, Zend_Log::INFO);\n\n\t\t\tif ($success === false) {\n\t\t\t\t$logger->log(\n\t\t\t\t\t'Payment creation error: ' . $payment->getErrorMessage(), \n\t\t\t\t\tZend_Log::ERR\n\t\t\t\t);\n\t\t\t\t$this->getResponse()\n\t\t\t\t\t ->setHttpResponseCode(500);\n\t\t\t\t$this->view->data = array(\n\t\t\t\t\t'success' => false,\n\t\t\t\t\t'error_code' => 10,\n\t\t\t\t\t'error_message' => $payment->getErrorMessage()\n\t\t\t\t);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$paymentId = $payment->getPaymentId();\n\t\t} catch (Exception $e) {\n\t\t\t$this->getResponse()\n\t\t\t\t ->setHttpResponseCode(500);\n\t\t\t$this->view->data = array(\n\t\t\t\t'success' => false,\n\t\t\t\t'error_code' => 11,\n\t\t\t\t'error_message' => 'A system error occurred.'\n\t\t\t);\n\t\t\t$logger->log($e->getMessage(), Zend_Log::ERR);\n\t\t\t$logger->log($e->getTraceAsString(), Zend_Log::ERR);\n\t\t\treturn;\n\t\t}\n\n\t\t$commitMessage = '';\n\n /**\n * Call ModPayController. Format $params first in a way that ModPay expects.\n * ModPay will commit payments to Solaria.\n */\n $params = array (\n\t\t\t'card_name' => $values['card_name'],\n\t\t\t'email' => $values['cc_email'], // Customer's billing email address\n\t\t\t'address' => $values['cc_address'],\n\t\t\t'city' => $values['cc_city'],\n\t\t\t'state' => $values['cc_state'],\n\t\t\t'zipcode' => $values['cc_zipcode'],\n\t\t\t'shiptophone' => $values['cc_shiptophone'],\n\t\t\t'card_number' => $values['card_number'],\n\t\t\t'expiration_date' => $values['expiration_date'],\n\t\t\t'payment_amount' => $values['payment_amount'],\n\t\t\t'cvv2' => $values['cvv2'],\n\t\t\t'npc_payment_id' => $paymentId,\n 'source' => $source,\n\t\t\t'payor_name' => $values['card_name'],\n 'transaction_date' => $values['transaction_date']\n\t\t);\n\n if ($invoiceObjects instanceof Doctrine_Collection && $invoiceObjects->count() > 0) {\n $serverBaseUrl = $config->server->url;\n $url = $serverBaseUrl . '/cashapp.php?control=modpay';\n\n\t\t\t/**\n\t\t\t * The old cash app system expects a \"PaymentType\" string:\n\t\t\t * CREDIT-AMERICAN EXPRESS\n\t\t\t * CREDIT-MC\n\t\t\t * CREDIT-VISA\n\t\t\t * CREDIT-DISCOVER\n\t\t\t */\n\t\t\tswitch(substr($values['card_number'], 0, 1)) {\n\t\t\t\tcase 6:\n\t\t\t\t\t$params['PaymentType'] = 'CREDIT-DISCOVER';\n $paymentType = 'CREDIT-DISCOVER';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\t$params['PaymentType'] = 'CREDIT-MC';\n $paymentType = 'CREDIT-MC';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\t$params['PaymentType'] = 'CREDIT-VISA';\n $paymentType = 'CREDIT-VISA';\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$params['PaymentType'] = 'CREDIT-AMERICAN EXPRESS';\n $paymentType = 'CREDIT-AMERICAN EXPRESS';\n\t\t\t\t\tbreak;\n\t\t\t}\n\n $client = Esquire_Http_Builder::getInstance($config, $url);\n \n $postVars = array(\n 'control' => 'modpay',\n 'action' => 'processcreditcard',\n 'values' => json_encode($params),\n 'invoices' => json_encode($invoiceArray),\n\t\t\t\t\t'PaymentType' => $paymentType,\n 'entered_login' => $config->system->sys_account_name,\n 'entered_password' => $config->system->sys_key,\n 'login' => $config->system->sys_account_name,\n 'password' => $config->system->sys_key,\n 'paymentId' => $paymentId\n );\n \n $client->setParameterPost(\n $postVars\n );\n\n\t\t\t$json = null;\n\n\t\t\t/**\n\t\t\t * Errors from Modpay shouldn't bubble up\n\t\t\t */\n\t\t\ttry {\n\t\t\t\t$logger->log('Modpay params -- ' . print_r($postVars, true), Zend_Log::INFO);\n\t\t\t\t$logger->log('Modpay URL -- ' . $url, Zend_Log::INFO);\n\t\t\t\t$response = $client->request('POST');\n\t\t\t\t$body = $response->getBody();\n\t\t\t\t$logger->log('Modpay Response -- ' . $body, Zend_Log::INFO);\n\t\t\t\t$json = json_decode($body, true);\n\t\t\t} catch (Exception $e) {\n\t\t\t\t$logger->log(\n\t\t\t\t\t'Caught exception when processing payment - ' . $e->getMessage(), \n\t\t\t\t\tZend_Log::ERR\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t$transactionNumber = $paymentId;\n\t\t\twhile(strlen($transactionNumber) < 10) {\n\t\t\t\t$transactionNumber = '0' . $transactionNumber;\n\t\t\t}\n\n\t\t\tif (!empty($json) && $json['success'] == 1) {\n\t\t\t\t$commitMessage = 'Payment successfully applied to invoices. '\n\t\t\t\t\t\t\t . 'Your transaction number is ' . $transactionNumber;\n\t\t\t} else {\n\t\t\t\t$commitMessage = '<b>Warning: </b>We were unable to successfully '\n\t\t\t\t\t\t\t . 'apply this payment to your invoices. Our support '\n\t\t\t\t\t\t\t . 'staff have been notified of the issue and will '\n\t\t\t\t\t\t\t . 'contact you to resolve it.'\n\t\t\t\t\t\t\t . '<br /><br />'\n\t\t\t\t\t\t\t . 'Your transaction number is ' . $transactionNumber;\n\t\t\t}\n } \n\n\t\t$this->getResponse()\n\t\t\t ->setHttpResponseCode(200);\n\n $this->view->data = array(\n\t\t\t'success' => true,\n\t\t\t'message' => $commitMessage,\n\t\t\t'payment_id' => $paymentId\n\t\t);\n\t}",
"public function create()\n {\n\n $serviceOrder = new ServiceOrder();\n $serviceOrder->process = 'fetch-create-order';\n $serviceOrder->display_message = 'Create Process (GET) Successful.';\n $serviceOrder->process_status = 30;\n $serviceOrder->transaction_status = 30;\n $serviceOrder->response_message = 'Create Process (GET) Successful.';\n $serviceOrder->user_id = auth()->user()->id;\n $serviceOrder->user_email = auth()->user()->email;\n $serviceOrder->to_display = 0;\n\n $serviceOrder->save();\n\n return view('orders.create');\n }",
"public function actionCreateorder() { //--{{{\n //GET parameters support\n $price = (float)$this->get('price');\n $order_id = $this->get('order_id');\n $user_id = $this->get('user_id');\n\n //POST parameters support\n $price = $this->post('price', $price);\n $order_id = $this->post('order_id', $order_id);\n $user_id = $this->post('user_id', $user_id);\n\n //user_id should be input\n if (empty($user_id)) {\n return $this->redirect(\"/api/userid?price={$price}\");\n }\n\n //parameters check\n $this->checkFormInput($price, $user_id, $order_id);\n\n //create new order\n $code = 0;\n $msg = '';\n\n try {\n $configs = USC::$app['config'];\n $of = new OrderFactory($configs);\n $order = $of->newOrder($price, $user_id, $order_id);\n $code = 1;\n $msg = 'OK';\n }catch(Exception $e) {\n $msg = $e->getMessage();\n }\n\n $viewName = 'index';\n $viewData = compact('code', 'msg', 'order');\n $pageTitle = '扫码付款';\n return $this->render($viewName, $viewData, $pageTitle);\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.59332657",
"0.59294003",
"0.5917803",
"0.59150255",
"0.5901304",
"0.58698845",
"0.58404607",
"0.583534",
"0.58328235"
] | 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 $table->integer('ambito_id')->unsigned();\n $table->integer('procedimiento_id')->unsigned();\n $table->date('fecha_ini');\n $table->date('fecha_fin')->nullable();\n $table->boolean('activo')->default(true);\n $table->timestamps();\n $table->foreign('ambito_id')\n ->references('id')\n ->on('ambitos')\n ->onDelete('cascade');\n $table->foreign('procedimiento_id')\n ->references('id')\n ->on('procedimientos')\n ->onDelete('cascade');\n });\n }",
"public function up()\n {\n $this->createTable('metro', [\n 'id' => $this->primaryKey(),\n 'name' => 'VARCHAR(256) NOT NULL',\n 'city_id' => 'INT(19) DEFAULT 1' //FK\n ]);\n }",
"public function up()\n {\n Schema::create('intro_programacion', function (Blueprint $column) {\n $column->increments('id');\n $column->integer('capitulo');\n $column->string('tema',200);\n $column->string('url_video');\n $column->string('descripcion')->nullable();\n $column->string('codigo_fuente')->nullable();\n });\n }",
"public function up()\n\t{\n\t\t// \n\t\tSchema::create('commentaires', function($table){\n\t\t\t$table->increments('id');\n\t\t\t$table->integer('user_id');\n\t\t\t$table->integer('film_id');\n\t\t\t$table->text('content');\n\t\t\t$table->timestamps(); // ajoute dates de creation et modif\n\t\t});\n\t}",
"public function up()\n {\n Schema::create('tipobolli', function (Blueprint $table) {\n $table->increments('id'); \n $table->string('codice',25)->unique(); \n $table->string('descrizione',255);\n $table->decimal('importo',12,2)->nullable(); \n $table->timestamps();\n });\n }",
"public function up()\n\t{\n Schema::create('programa', function (Blueprint $table) {\n\n $table->increments('id');\n $table->integer('codigo_programa');\n $table->string('nombre_programa',200);\n $table->integer('id_eje_estrategico')->unsigned();\n\n $table->foreign('id_eje_estrategico')\n ->references('id')->on('eje_estrategico')\n ->onDelete('restrict')\n ->onUpdate('cascade');\n });\n\t}",
"public function up()\n {\n Schema::create('administradores', function (Blueprint $table) {\n $table->increments('id')->unique();\n $table->integer('cuit')->unique();\n $table->string('razon_social');\n $table->string('domicilio');\n $table->string('provincia');\n $table->string('localidad');\n $table->string('cp');\n $table->string('email');\n $table->string('telefono');\n $table->string('situacion_fiscal');\n $table->string('rpa');\n $table->boolean('estado');\n $table->timestamps();\n $table->softDeletes();\n });\n }",
"public function up()\n\t{\n\t\t//Table Caracteristicas\n\t\t$fields = array(\n\t\t\t\t\"`idCaracteristica` int(11) NOT NULL AUTO_INCREMENT\",\n \t\t\t\t\"`concepto` varchar(150) DEFAULT NULL\",\n \t\t\t\t\"`activo` tinyint(1) DEFAULT '0'\",\n\t\t\t\t);\n\n\t\t$this->dbforge->add_field($fields);\n\t\t$this->dbforge->add_key('idCaracteristica', TRUE);\n\t\t$this->dbforge->create_table('caracteristicas', TRUE);\n\t\t$this->db->simple_query('ALTER TABLE `caracteristicas` AUTO_INCREMENT=50 DEFAULT CHARSET=utf8');\n\t\t$this->db->simple_query(\"INSERT INTO `caracteristicas` VALUES ('10', 'Unidad de Luces', '0'), ('11', '1/4 de luces', '0'), ('12', 'Antena', '0'), ('13', 'Espejo Lateral', '0'), ('14', 'Cristales', '0'), ('15', 'Emblema', '0'), ('16', 'Llantas 4', '0'), ('17', 'Tapón de Ruedas 4', '0'), ('18', 'Molduras Completas', '0'), ('19', 'Tapón Gasolina', '0'), ('20', 'Carrocería Sin Golpes', '0'), ('21', 'Bocina de Claxon', '0'), ('22', 'Gato', '0'), ('23', 'Maneral de Gato', '0'), ('24', 'Llave de Ruedas', '0'), ('26', 'Estuche de Herramientas', '0'), ('28', 'Triangulo de Seguridad', '0'), ('29', 'Llanta de Refaccion', '0'), ('30', 'Extinguidor', '0'), ('31', 'Instrumentos de Tablero', '0'), ('32', 'Calefaccion', '0'), ('33', 'Limpiadores(Plumas)', '0'), ('34', 'Radio', '0'), ('35', 'Bocinas', '0'), ('36', 'Espejo Retrovisor', '0'), ('37', 'Ceniceros', '0'), ('38', 'Cinturones', '0'), ('39', 'Botones de Interiores', '0'), ('40', 'Manijas de Interiores', '0'), ('41', 'Tapetes', '0'), ('42', 'Vestiduras', '0'), ('43', 'Encendedor', '0'), ('44', 'Claxon', '0'), ('45', 'Tapon de Aceite', '0'), ('46', 'Tapon de Radiadiores', '0'), ('47', 'Varilla de Aceite', '0'), ('48', 'Filtro de Aire', '0'), ('49', 'Batería(MCA)', '0')\");\n\n\t\t//table categorias\n\t\t$fields = array(\n\t\t\t\t\"`idCategorias` int(11) NOT NULL AUTO_INCREMENT\",\n \t\t\t\t\"`nombre` varchar(45) DEFAULT NULL\",\n \t\t\t\t\"`visible` int(1) DEFAULT '1'\",\n\t\t\t\t);\n\n\t\t$this->dbforge->add_field($fields);\n\t\t$this->dbforge->add_key('idCategorias', TRUE);\n\t\t$this->dbforge->create_table('categorias', TRUE);\n\t\t$this->db->simple_query('ALTER TABLE `categorias` AUTO_INCREMENT=48 DEFAULT CHARSET=utf8');\n\t\t$this->db->simple_query(\"INSERT INTO `categorias` VALUES ('6', 'Hojalatería', '1'), ('7', 'Pintura', '1'), ('8', 'Estética', '1'), ('9', 'Mecánica', '1'), ('11', 'Otros', '1')\");\n\t\t\n\t\t//table empleados\n\t\t$fields = array(\n\t\t\t\t\"`idEmpleado` int(11) NOT NULL AUTO_INCREMENT\",\n\t\t\t\t\"`nombre` varchar(50) DEFAULT NULL\",\n\t\t\t\t \"`apellidoMat` varchar(50) DEFAULT NULL\",\n\t\t\t\t \"`apellidoPat` varchar(50) DEFAULT NULL\",\n\t\t\t\t \"`direccion` varchar(255) DEFAULT NULL\",\n\t\t\t\t \"`tel` int(20) DEFAULT NULL\",\n\t\t\t\t \"`cel` int(20) DEFAULT NULL\",\n\t\t\t\t \"`area` varchar(50) DEFAULT NULL\",\n\t\t\t\t \"`puesto` varchar(50) DEFAULT NULL\",\n\t\t\t\t);\n\n\t\t$this->dbforge->add_field($fields);\n\t\t$this->dbforge->add_key('idEmpleado', TRUE);\n\t\t$this->dbforge->create_table('empleados', TRUE);\n\t\t$this->db->simple_query('ALTER TABLE `empleados` AUTO_INCREMENT=2 DEFAULT CHARSET=utf8');\n\t\t$this->db->simple_query(\"INSERT INTO `empleados` VALUES ('1', 'Ermilo', 'Chan', 'Tamayo', 'calle 29', '97171', '0', 'Hojalatería', 'Hojalatero')\");\n\n\t\t\n\t//table gastos fijos\n\t\t$fields = array(\n\t\t\t\t\t\"`idGastos_Fijos` int(11) NOT NULL AUTO_INCREMENT\",\n\t\t\t\t\t\"`concepto` varchar(150) DEFAULT NULL\",\n\t\t\t\t\t\"`monto` float(10,2) DEFAULT NULL\",\n\t\t\t\t\t\"`fecha_hora` datetime DEFAULT NULL\",\n\t\t\t\t\t\"`idUsuario` int(11) DEFAULT NULL\",\n\t\t\t\t);\n\n\t\t$this->dbforge->add_field($fields);\n\t\t$this->dbforge->add_key('idGastos_Fijos', TRUE);\n\t\t$this->dbforge->create_table('gastos_fijos', TRUE);\n\t\t$this->db->simple_query('ALTER TABLE `gastos_fijos` AUTO_INCREMENT=197 DEFAULT CHARSET=utf8');\n\t\t$this->db->simple_query(\"INSERT INTO `gastos_fijos` VALUES ('37', 'TELEFONO 9202008', '2499.00', '2013-05-21 12:13:59', '10'), ('38', 'COMBUSTIBLE 20 MAYO 13', '3000.00', '2013-05-21 12:14:44', '10'), ('39', 'AUDATEX', '1705.20', '2013-05-21 13:11:33', '10'), ('40', 'CESVI', '3034.23', '2013-05-21 13:11:55', '10'), ('41', 'IMPUESTOS IVA ABRIL', '2729.00', '2013-05-21 13:12:40', '10'), ('42', 'IMSS E INFONAVIT', '10223.00', '2013-05-21 13:13:15', '10'), ('43', 'COMBUSTIBLE 14 MAY 13', '3000.00', '2013-05-21 13:13:50', '10'), ('44', 'MATERIAL ESTETICA CHEMICALS', '1167.00', '2013-05-21 13:14:25', '10'), ('45', 'IMPUESTO 2.5%', '248.50', '2013-05-21 13:14:57', '10'), ('46', 'PAPELERIA DE OFICINA 07/MAY-13', '144.70', '2013-05-21 13:15:55', '10'), ('47', 'MATERIAL CONSTRUCCION', '1212.00', '2013-05-21 13:16:37', '10'), ('48', 'MATERIAL CONSTRUCCION F-3169', '130.00', '2013-05-21 13:17:06', '10'), ('49', 'MATERIAL CONSTRUCCION F-3155', '1150.00', '2013-05-21 13:17:43', '10'), ('50', 'MANGUERA ESTETICA F-10195', '260.60', '2013-05-21 13:18:15', '10'), ('51', 'F-10214 CONEXMA ACCESORIOS', '197.00', '2013-05-21 13:18:52', '10'), ('52', 'BOXITO F-2426', '84.00', '2013-05-21 13:19:20', '10'), ('53', 'BOXITO F-2354', '151.30', '2013-05-21 13:19:44', '10'), ('54', 'BOXITO F-3672100', '689.00', '2013-05-21 13:21:21', '10'), ('55', 'DIST.MAY. TORNILLOS F-13103', '82.60', '2013-05-21 13:24:46', '10'), ('56', 'AUTOZONE F-14964', '60.00', '2013-05-21 13:25:57', '10'), ('57', 'FESTER F-40584', '566.00', '2013-05-21 13:26:42', '10'), ('58', 'FESTER F-40600', '566.00', '2013-05-21 13:27:15', '10'), ('59', 'ZEPELIN F-1821', '112.00', '2013-05-21 13:27:53', '10'), ('60', 'SICAFLEX F-14844 ', '308.00', '2013-05-21 13:28:25', '10'), ('61', 'SIKAFLEX F-14775', '166.00', '2013-05-21 13:29:07', '10'), ('62', 'CASTALDI F-1161', '43.85', '2013-05-21 13:30:07', '10'), ('63', 'DIARIO DE YUCATAN', '164.00', '2013-05-21 17:45:37', '11'), ('64', 'ART LIMPIEZA F-DUNOSUSA', '307.20', '2013-05-22 13:31:02', '10'), ('65', 'F-13244 EL DUENDE', '251.00', '2013-05-22 13:32:01', '10'), ('66', 'F-13243 EL DUENDE', '872.97', '2013-05-22 13:33:02', '10'), ('67', 'F-7246 MTTO TALADRO', '150.00', '2013-05-22 13:33:32', '10'), ('68', 'F-10348 CONEXMA', '1692.00', '2013-05-22 13:34:00', '10'), ('69', 'F-10578 CONEXMA', '331.00', '2013-05-22 13:35:29', '10'), ('70', 'F-10505 CONEXMA', '1591.00', '2013-05-22 13:35:55', '10'), ('71', 'F-10502 CONEXMA', '136.00', '2013-05-22 13:36:19', '10'), ('72', 'F-2460 BOXITO', '206.28', '2013-05-22 13:36:44', '10'), ('73', 'F-2456 BOXITO', '116.00', '2013-05-22 13:37:06', '10'), ('74', 'F-2650 TLAP ROSADO', '135.00', '2013-05-22 13:37:39', '10'), ('75', 'F-3183 MAT ARIES', '315.00', '2013-05-22 13:38:01', '10'), ('76', 'F-16786 INFRA', '742.75', '2013-05-22 13:38:36', '10'), ('77', 'F-16932 AMESA MAT. ELECT', '73.20', '2013-05-22 13:39:47', '10'), ('78', 'F-1507 MENSAJERIA', '225.00', '2013-05-22 13:40:13', '10'), ('79', 'F-1500 BOLSAS BASURA', '92.00', '2013-05-22 13:40:42', '10'), ('80', 'F-8251 COSTCO PAPELERIA', '574.00', '2013-05-22 13:42:51', '10'), ('81', 'F-9537 NEXTEL EQUIPO NUEVO', '348.00', '2013-05-22 13:43:28', '10'), ('82', 'F-210 FOCOS DE REPUESTO', '180.00', '2013-05-22 13:44:21', '10'), ('83', 'F-1892 BOSH BROCAS', '180.00', '2013-05-22 13:47:27', '10'), ('84', 'F-40693 IMPER FESTER', '141.30', '2013-05-22 13:48:12', '10'), ('85', 'F-1594 COSTCO OFICINA', '477.00', '2013-05-22 13:48:54', '10'), ('86', 'F-IUSA TEL MEMO', '390.00', '2013-05-22 13:51:44', '10'), ('87', 'F-14710 OXIGENO', '695.50', '2013-06-01 15:36:02', '10'), ('88', 'TELMEX 9251962 ', '877.00', '2013-06-01 15:36:34', '10'), ('89', 'F-17007 GAS FERROSO DE INFRA', '1283.60', '2013-06-01 15:37:49', '10'), ('90', 'AGUA PURIFICADA', '289.00', '2013-06-03 11:58:21', '11'), ('91', 'F-15049 SIKAFLEX', '269.00', '2013-06-04 09:47:42', '10'), ('92', 'PAGO BASURA', '69.00', '2013-06-25 11:51:25', '10'), ('93', 'PILA DE CALCULADORA', '35.00', '2013-06-25 11:51:49', '10'), ('94', 'NOTA 793 AEROSOL', '59.00', '2013-06-25 11:56:31', '10'), ('95', 'AGUA PURIFICADA', '340.00', '2013-06-25 11:57:04', '10'), ('96', 'PERIODICO MES DE JUNIO', '164.00', '2013-06-25 11:57:43', '10'), ('97', 'ARTICULO DE BAÑO (PAPEL HIGIÉNICO)', '200.00', '2013-06-25 11:58:54', '10'), ('98', 'NOTA 63307 RAFIA BCA.', '40.00', '2013-06-25 12:17:44', '10'), ('99', 'F-23848 AUTOZONE CREMA PARA PULIR', '76.00', '2013-06-25 12:25:34', '10'), ('100', 'AGUA PURIFICADA', '153.00', '2013-06-25 13:22:46', '10'), ('101', 'REP. DE GATOS 25-JUNIO-13', '600.00', '2013-06-25 16:32:03', '10'), ('102', 'REP. DE HERRAMIENTAS DE TRABAJO', '1160.00', '2013-06-26 16:44:34', '10'), ('103', 'C.F.E CALLE 39 # 323', '8637.00', '2013-06-26 16:45:31', '10'), ('104', 'CFE CALLE 22 # 366', '1883.00', '2013-06-26 16:46:26', '10'), ('105', 'C,F.E CALLE 20-A # 363 A', '87.00', '2013-06-26 16:47:09', '10'), ('106', 'F-16414 COMBUSTIBLE 28 JUN 13', '3000.00', '2013-07-01 12:52:04', '10'), ('107', 'NEXTEL 28 JUN-13', '2259.78', '2013-07-01 12:52:55', '10'), ('108', 'CFE TALLER', '8637.00', '2013-07-01 12:53:24', '10'), ('109', 'F-94580 MK PISTOLA', '11235.00', '2013-07-01 12:55:10', '10'), ('110', 'F-17840 ARTICULOS Y MOTORES CAMPANA INDUSTRIAL', '101.00', '2013-07-01 12:56:21', '10'), ('111', 'F-14867 OXIGENO 13 JUNIO 13', '695.50', '2013-07-01 13:22:32', '10'), ('112', 'F-22272 CERVERA (GRAPAS)', '313.20', '2013-07-01 13:23:13', '10'), ('113', 'JAPAY JUNIO 13', '172.00', '2013-07-01 13:25:40', '10'), ('114', 'F-15472 SIKAFLEX', '242.00', '2013-07-01 13:47:33', '10'), ('115', 'F-330153 ACEITE (CONSTITUCION)', '396.00', '2013-07-01 17:22:29', '11'), ('116', 'F-5030 JUAN ORTIZ PECH (TONER ADMON)', '450.00', '2013-07-01 17:23:17', '11'), ('117', 'F-1581 BOLSAS DE BASURA 17 JUNIO-13', '92.00', '2013-07-01 17:25:04', '11'), ('118', 'F-84147 TONER DE RECEP Y DEPTO VALUACION', '1991.00', '2013-07-01 17:26:08', '11'), ('119', 'F-1863 ANTENA SENTRA', '117.00', '2013-07-01 17:30:30', '11'), ('120', 'F-1863 ANTENA SENTRA', '117.00', '2013-07-01 17:30:31', '11'), ('121', 'F-1863 ANTENA SENTRA', '117.00', '2013-07-01 17:30:32', '11'), ('122', 'F-1863 ANTENA SENTRA', '117.00', '2013-07-01 17:30:32', '11'), ('123', 'F-42073 TORNILLOS', '64.00', '2013-07-01 17:31:12', '11'), ('124', 'F-13856 TORNILLOS', '94.00', '2013-07-01 17:31:43', '11'), ('125', 'F-32713 NO BREAK (LABORATORIO)', '1270.00', '2013-07-01 17:33:02', '11'), ('126', 'F-20979 CARDA DE ESMERIL', '382.00', '2013-07-01 17:33:47', '11'), ('127', 'F-78065 STEREN ELIMINADOR', '230.00', '2013-07-01 17:35:43', '11'), ('128', 'F-1196 KARCHER (FILTRO DE AGUA)', '238.00', '2013-07-01 18:38:32', '11'), ('129', 'F-164254 CONEXMA (HEMBRE METRICA)', '128.40', '2013-07-01 18:39:20', '11'), ('130', 'WD 10/40', '93.00', '2013-07-01 18:39:50', '11'), ('131', 'F 78209 ELIMADOR DE CORRIENTE', '460.00', '2013-07-01 18:44:44', '11'), ('132', '13 AGOSTO 13 F-5098 UNILASER', '450.00', '2013-08-13 17:51:52', '10'), ('133', '10/8/13 BASURA', '28.25', '2013-08-13 17:52:21', '10'), ('134', '12/8/13 EL DUENDE', '36.00', '2013-08-13 17:54:09', '10'), ('135', '13/8/13 F-28138 NIPLITO', '36.11', '2013-08-13 17:54:48', '10'), ('136', '7/8/13 F-81538 STEREM (ELIMINADOR Y CONECTOR)', '256.00', '2013-08-13 19:15:20', '10'), ('137', '2/8/13 F-7250 MENSAJERIA CAMPECHE', '70.00', '2013-08-13 19:16:16', '10'), ('138', '7/8/13 F-OFFICE DEPOT', '33.80', '2013-08-13 19:35:26', '10'), ('139', '7/8/13 F-27619 NIPLITO', '57.57', '2013-08-13 19:39:38', '10'), ('140', '20-AGOSTO-13 ANGULAR', '40.00', '2013-08-23 11:59:08', '10'), ('141', '20/8/13 F-10031 BOLSAS P/BASURA', '99.01', '2013-08-23 11:59:57', '10'), ('142', '20/8/13 F-1774 BOLSAS P/BASURA', '92.00', '2013-08-23 12:00:37', '10'), ('143', '24-AGOS-13 CONEXMA( MANGUERA Y CONECCION)', '176.32', '2013-08-29 16:40:33', '10'), ('144', '17-AGOST-13 MENSAJERIA', '180.00', '2013-08-29 16:41:19', '10'), ('145', '22-AGOS-13 OFFICE DEPOT (PAPELERIA)', '1013.95', '2013-08-29 16:42:12', '10'), ('146', '26-AGO-13 COMPU-DEVICE (TONER RECEPCION)', '464.79', '2013-08-29 16:42:59', '10'), ('147', '17-AGOS-13 OFIX (PAPELERIA)', '154.00', '2013-08-29 16:45:04', '10'), ('148', '26-8-13 F-25838 AUTOZONE', '609.40', '2013-08-29 17:00:56', '10'), ('149', '14-8-13 F-8971 TLAPALERIA CHENKU', '122.00', '2013-08-29 17:01:42', '10'), ('150', '27-8-13 F-16235 SIKAFLEX', '241.72', '2013-08-29 17:02:18', '10'), ('151', '29-8-13 F-61585 NEXTEL', '452.40', '2013-08-29 17:03:00', '10'), ('152', ' 13 -09-13 RECIBO BASURA', '56.90', '2013-09-21 09:30:51', '11'), ('153', '19 SEP-13 F-6779756 OFFICE DEPOT', '109.00', '2013-09-21 09:32:28', '11'), ('154', '19-SEP-13 SIKAFLEX', '161.15', '2013-09-21 09:33:08', '11'), ('155', '20/9/13 F-1856 BOLSAS BASURA', '92.00', '2013-09-21 09:33:44', '11'), ('156', '14-9-13 F-346946 PENSIONES (EMBUDO)', '39.90', '2013-09-21 09:34:36', '11'), ('157', '11-9-13 F-55772 BOXITO CERRADURA', '185.37', '2013-09-21 09:44:09', '11'), ('158', '11-9-13 F-18360 BOLSAS BASURA', '92.00', '2013-09-21 09:44:56', '11'), ('159', 'AGUA PURIFICADA', '238.00', '2013-10-07 10:17:23', '11')\");\n\n//table gastos vehiculo\n\t\t$fields = array(\n\t\t\t\t\"`idGastos_Vehiculo` int(11) NOT NULL AUTO_INCREMENT\",\n\t\t\t\t \"`idCategoria` int(11) DEFAULT NULL\",\n\t\t\t\t \"`idSubcategoria` int(11) DEFAULT NULL\",\n\t\t\t\t \"`idOrden` int(11) DEFAULT NULL\",\n\t\t\t\t \"`idUsuario` int(11) DEFAULT NULL\",\n\t\t\t\t \"`monto` float(10,4) DEFAULT NULL\",\n\t\t\t\t \"`descripcion` text\",\n\t\t\t\t);\n\n\t\t$this->dbforge->add_field($fields);\n\t\t$this->dbforge->add_key('idGastos_Vehiculo', TRUE);\n\t\t$this->dbforge->create_table('gastos_vehiculo', TRUE);\n\t\t$this->db->simple_query('ALTER TABLE `gastos_vehiculo` AUTO_INCREMENT=3837 DEFAULT CHARSET=utf8');\n\t\t$this->db->simple_query(\"INSERT INTO `gastos_vehiculo` VALUES ('23', '9', '13', '4319', '13', '250.0000', 'AFINACION'), ('24', '11', '15', '4319', '13', '756.0000', 'KIT DE AFINACION'), ('25', '11', '15', '4319', '13', '100.0000', 'VALE DE GASOLINA'), ('213', '6', '7', '4313', '13', '400.0000', 'SALDO MANUEL'), ('31', '7', '8', '4313', '13', '600.0000', 'PAGO JOVANNY 3\\nPZS'), ('32', '7', '10', '4313', '13', '575.9400', 'COLOR'), ('36', '6', '7', '4315', '13', '250.0000', '1º ANT GASPAR'), ('120', '9', '13', '4318', '10', '250.0000', '1er Anticipo Oscar'), ('38', '6', '7', '4318', '13', '150.0000', '1º ANT JOSE'), ('39', '8', '11', '4328', '13', '287.0000', 'EST EXTERIOR'), ('40', '8', '12', '4328', '13', '143.7500', 'COMPONENTES'), ('41', '6', '7', '4314', '13', '500.0000', '1º ANT MILO'), ('42', '8', '11', '4314', '13', '122.0000', 'LAVADO Y PULIDO 3 PZS Y MOTOR'), ('43', '8', '12', '4314', '13', '61.0000', 'MATERIAL'), ('44', '11', '15', '4336', '10', '58.0000', 'PLASTIACERO'), ('45', '11', '15', '4346', '10', '58.0000', 'PLASTIACERO'), ('46', '6', '7', '4337', '13', '200.0000', 'PAGO MANUEL'), ('47', '7', '7', '4337', '13', '200.0000', 'PAGO JUAN CARLOS 1PZ'), ('51', '7', '10', '4337', '13', '126.2900', 'COLOR Y RESINA'), ('52', '8', '11', '4337', '13', '53.0000', 'LAVADO Y PULIDA 1PZ'), ('53', '8', '12', '4337', '13', '26.5000', 'MATERIAL'), ('54', '7', '8', '4322', '13', '200.0000', 'PAGO CARLOS QUINTAL 1 PZ ASOCIADA A LA ORDEN C-4127'), ('55', '7', '10', '4322', '13', '109.1900', 'COLOR Y RESINA'), ('56', '6', '7', '4320', '13', '200.0000', 'PAGO GASPAR'), ('57', '6', '7', '4320', '13', '100.0000', 'PAGO SERGIO'), ('58', '9', '13', '4320', '13', '100.0000', 'PAGO OSCAR'), ('59', '11', '15', '4320', '13', '59.0000', 'ABRAZADERA Y MANGUERA'), ('60', '7', '8', '4324', '13', '100.0000', 'PAGO FRANCISCO 1/2PZ'), ('61', '7', '10', '4324', '13', '14.9600', 'PRIMARIO'), ('62', '7', '53', '4324', '13', '100.0000', 'DETALLADO'), ('63', '6', '7', '4321', '13', '100.0000', 'PAGO MANUEL'), ('64', '7', '8', '4321', '13', '100.0000', 'PAGO JEOVANNY 1/2 PZ'), ('65', '7', '10', '4321', '13', '65.9300', 'COLOR Y RESINA'), ('66', '8', '11', '4321', '13', '41.5000', 'LAVADO YPULIDO '), ('67', '8', '12', '4321', '13', '20.7500', 'MATERIAL\\n'), ('68', '8', '11', '4325', '13', '230.0000', 'EST EXT'), ('69', '8', '12', '4325', '13', '115.0000', 'MATERIAL'), ('70', '6', '7', '4316', '13', '200.0000', 'PAGO MILO'), ('71', '7', '8', '4316', '13', '100.0000', 'PAGO CARLOS QUINTAL 1/2PZ'), ('72', '8', '11', '4316', '13', '41.5000', 'LAVADO Y PULIDO'), ('73', '8', '12', '4316', '13', '20.7500', 'MATERIAL'), ('74', '6', '7', '4313', '13', '100.0000', '1º ANT MANUEL'), ('75', '6', '7', '4317', '13', '150.0000', 'PAGO JUAN CARLOS'), ('76', '7', '8', '4317', '13', '150.0000', 'PAGO JUAN CARLOS 3/4 PZS'), ('77', '7', '10', '4317', '13', '82.4400', 'COLOR Y RESINA'), ('78', '8', '11', '4317', '13', '53.0000', 'LAVADO Y PULIDO'), ('79', '8', '12', '4317', '13', '26.5000', 'MATERIAL'), ('80', '11', '15', '4326', '13', '1631.0000', 'ESPEJO IZQ Y UNIDA IZQ'), ('81', '7', '8', '4329', '13', '200.0000', 'APGO FRANCISCO 1PZ'), ('82', '7', '10', '4329', '13', '54.2100', 'MATERIAL'), ('83', '7', '53', '4329', '13', '100.0000', 'PAGO FRANCISCO'), ('84', '11', '15', '4330', '13', '551.0000', 'SALPICADERA DERECHA'), ('85', '7', '8', '4331', '13', '150.0000', 'PAGO CARLOS RINES'), ('86', '7', '10', '4331', '13', '10.9500', 'COLOR'), ('101', '6', '7', '4340', '13', '350.0000', 'PAGO MILO'), ('100', '11', '15', '4336', '13', '2300.0000', 'TENSOR'), ('99', '6', '7', '4339', '13', '350.0000', 'PAGO MILO'), ('98', '6', '7', '4338', '13', '200.0000', '1º ANT MANUEL'), ('97', '8', '12', '4334', '13', '143.7500', 'MATERIAL'), ('96', '8', '11', '4334', '13', '287.5000', 'EST EXTERIOR'), ('95', '7', '10', '4334', '13', '812.0000', 'color y resina'), ('94', '7', '7', '4334', '13', '1050.0000', 'PAGO FRANCISCO 5.25PZS'), ('102', '7', '8', '4340', '13', '350.0000', 'PAGO JUAN CARLOS'), ('103', '7', '10', '4340', '13', '270.8500', 'COLOR Y RESINA'), ('104', '8', '11', '4340', '13', '76.0000', 'LAVADO Y PULIDA'), ('105', '8', '12', '4340', '13', '38.0000', 'MATERIAL\\n'), ('106', '6', '7', '4341', '13', '200.0000', 'PAGO JOSE'), ('107', '7', '8', '4341', '13', '200.0000', 'PAGO FRANCISCO'), ('108', '7', '10', '4341', '13', '156.6600', 'COLOR Y RESINA'), ('109', '11', '15', '4348', '13', '1750.0000', 'ACUMULADOR'), ('110', '11', '15', '4349', '13', '1850.0000', 'ACUMULADOR'), ('111', '6', '7', '4350', '13', '150.0000', 'PAGO OSCAR'), ('112', '11', '15', '4366', '13', '58.0000', 'PLASTIACERO'), ('113', '11', '15', '4366', '13', '639.0000', 'CALAVERA'), ('114', '11', '15', '4351', '10', '1917.4000', 'F-5749 CONSTITUCION '), ('115', '11', '15', '4351', '10', '316.2100', 'F-5671 CONSTITUCION '), ('116', '11', '16', '4357', '10', '1917.4000', 'F-5749 CONSTITUCION'), ('117', '11', '15', '4357', '10', '316.2100', 'F-5671 CONSTITUCION'), ('118', '11', '16', '4361', '10', '316.2000', 'F-5671 CONSTITUCION\\n'), ('119', '11', '15', '4370', '10', '215.0600', 'F-5673 BALERO'), ('121', '6', '7', '4372', '13', '400.0000', '1º ANT FELIPE LOPEZ'), ('122', '6', '7', '4370', '13', '400.0000', '1º ANT GASPAR'), ('123', '11', '16', '4318', '13', '150.0000', 'ALINEACION MERCADO DE LLANTAS'), ('124', '9', '13', '4318', '13', '100.0000', 'SALDO OSCAR'), ('125', '6', '7', '4318', '13', '400.0000', 'SALDO JOSE LUIS'), ('126', '7', '8', '4318', '13', '550.0000', 'PAGO CARLOS Q 2 3/4 PZS'), ('127', '7', '10', '4318', '13', '340.4200', 'COLOR Y RESINA'), ('128', '8', '11', '4318', '13', '99.0000', 'LAVADO-PULIDO 2 PZS Y MOTOR'), ('129', '8', '12', '4318', '13', '49.5000', 'MATERIAL'), ('130', '6', '7', '4327', '13', '600.0000', '1º ANT JOSE LUIS'), ('133', '6', '7', '4333', '13', '350.0000', '1º ANT JOSE CACHO'), ('132', '6', '7', '4335', '13', '600.0000', 'PAGO JOSE CACHO'), ('134', '7', '8', '4335', '13', '500.0000', 'PAGO JEOVANNY 2.5PZS'), ('135', '7', '10', '4335', '13', '506.0700', 'COLOR Y RESINA'), ('136', '7', '53', '4335', '13', '50.0000', 'DETALLADO'), ('137', '6', '7', '4338', '13', '300.0000', 'PAGO MANUEL'), ('138', '7', '8', '4338', '13', '300.0000', 'PAGO JUAN CARLOS 1.5'), ('496', '7', '10', '4338', '13', '331.3500', 'COLOR Y RESINA'), ('140', '8', '11', '4338', '13', '76.0000', 'LAVADO Y PULIDO 2'), ('141', '8', '12', '4338', '13', '38.0000', 'MATERIAL'), ('144', '6', '7', '4344', '13', '250.0000', '1º ANT MILO'), ('143', '9', '13', '4344', '13', '200.0000', '1º ANT OSCAR'), ('147', '9', '13', '4345', '13', '300.0000', 'SALDO OSCAR'), ('146', '9', '13', '4345', '13', '200.0000', '1º ANT OSCAR'), ('148', '6', '7', '4353', '13', '400.0000', 'PAGO JOSE CACHO'), ('149', '7', '8', '4353', '13', '250.0000', 'PAOG FRANCISCO 1.25 PZS'), ('150', '7', '53', '4353', '13', '150.0000', 'DETALLADO'), ('151', '7', '10', '4353', '13', '209.9900', 'COLOR Y RESINA'), ('152', '6', '7', '4355', '13', '700.0000', 'PAGO MILO'), ('153', '7', '8', '4355', '13', '350.0000', '1 3/4 PZS'), ('154', '7', '8', '4355', '13', '350.0000', 'PAGO CARLOS Q 1 3/4 PZS'), ('155', '7', '10', '4355', '13', '238.4800', 'COLOR Y RESINA'), ('156', '7', '53', '4355', '13', '150.0000', 'DETALLADO'), ('157', '8', '11', '4355', '13', '53.0000', 'LAVADO Y PULIDO 1PZS'), ('158', '8', '12', '4355', '13', '26.5000', 'MATERIAL'), ('159', '6', '7', '4358', '13', '500.0000', '1º ANT MILO'), ('161', '7', '8', '4358', '13', '550.0000', 'PAGO FRANCISCO 2.75 PZS'), ('162', '7', '10', '4358', '13', '415.7400', 'COLOR Y RESINA'), ('163', '7', '53', '4358', '13', '50.0000', 'DETALLADO'), ('164', '6', '7', '4360', '13', '200.0000', 'PAGO MANUEL'), ('165', '7', '8', '4360', '13', '400.0000', 'PAGO JUAN CARLSO 2PZS'), ('166', '7', '10', '4360', '13', '362.2300', 'COLOR Y RESINA'), ('167', '9', '13', '4361', '13', '250.0000', '1º ANT OSCAR'), ('168', '6', '7', '4362', '13', '300.0000', 'PAGO MANUEL'), ('169', '6', '7', '4366', '13', '550.0000', '1º ANT FELIPE LOPEZ'), ('170', '6', '7', '4367', '13', '150.0000', '1º ANT MANUEL'), ('171', '6', '7', '4368', '13', '50.0000', 'PAGO MILO'), ('172', '6', '7', '4375', '13', '100.0000', 'PAGO MILO'), ('173', '7', '8', '4330', '13', '400.0000', 'PAGO FRANCISCO 2PZS'), ('174', '7', '10', '4330', '13', '448.1700', 'COLOR Y RESINA'), ('175', '8', '11', '4330', '13', '76.0000', 'LAVADO Y PULIDO 2PZS'), ('176', '8', '12', '4330', '13', '38.0000', 'LAVADO Y PULIDO 2PZS'), ('181', '11', '15', '4351', '10', '157.0000', 'fact. 38437 de repuesto de mordaza'), ('182', '11', '15', '4351', '11', '324.0000', 'F-5938 CONSTITUCION EMPAQUE DE CARTER\\n'), ('183', '7', '8', '4363', '13', '200.0000', 'PAGO JUAN CARLOS 1PZ'), ('184', '7', '10', '4363', '13', '184.2900', 'COLOR Y RESINA'), ('185', '8', '11', '4363', '13', '53.0000', 'LAVOADO Y PULIDO 1PZ'), ('186', '8', '12', '4363', '13', '26.5000', 'MATERIAL'), ('187', '7', '53', '4363', '13', '50.0000', 'DETALLADO'), ('188', '11', '16', '4363', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('191', '6', '7', '4360', '13', '150.0000', 'PAGO JUAN CARLOS '), ('192', '7', '8', '4365', '13', '400.0000', 'PAGO CARLOS QUINTAL 2PZS'), ('193', '7', '10', '4365', '13', '246.7600', 'COLOR Y RESINA'), ('195', '7', '8', '4357', '13', '300.0000', 'PAGO CARLOS QUINTAL 1 1/2 PZ'), ('196', '7', '10', '4357', '13', '179.3900', 'COLOR Y RESINA'), ('197', '8', '11', '4357', '13', '53.0000', 'LAVADO Y PULIDO 1PZ'), ('198', '8', '12', '4357', '13', '26.5000', 'MATERIAL'), ('199', '7', '8', '4341', '13', '200.0000', 'PAGO CARLOS QUINTAL 1PZ'), ('200', '7', '10', '4341', '13', '353.4400', 'COLOR Y RESINA'), ('201', '8', '11', '4341', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ'), ('202', '8', '12', '4341', '13', '26.5000', 'MATERIAL'), ('203', '6', '7', '4365', '13', '200.0000', 'PAGO CARLOS QUINTAL'), ('204', '6', '7', '4364', '13', '100.0000', 'PAGO JEOVANNY'), ('205', '8', '11', '4348', '13', '287.5000', 'EST EXTERIOR'), ('206', '8', '12', '4348', '13', '143.7500', 'MATERIAL'), ('207', '8', '11', '4371', '13', '287.5000', 'EST EXTERIOR\\n'), ('208', '8', '12', '4371', '13', '143.7500', 'MATERIAL'), ('209', '8', '11', '4335', '13', '76.0000', 'LAVADO YPULIDA 2 PZ'), ('210', '8', '12', '4335', '13', '38.0000', 'MATERIAL'), ('211', '8', '11', '4313', '13', '76.0000', 'LAVADO YPULIDA 2PZ'), ('212', '8', '12', '4313', '13', '38.0000', 'MATERIAL'), ('214', '8', '11', '4353', '13', '53.0000', 'LAVADO YPULIDO1 PZ'), ('215', '8', '12', '4353', '13', '38.0000', 'MATERIAL'), ('216', '11', '15', '4345', '11', '780.0000', 'F-1508 HORQUILLA'), ('217', '11', '16', '4345', '11', '1038.0000', 'F-5143 CONSTITUCION'), ('498', '11', '16', '4345', '10', '250.0000', 'MERCADO DE LLANTA ALINEACION'), ('220', '11', '15', '4345', '11', '564.0000', 'F-5243 CONSTITUCION BALATA DE CHEVY'), ('221', '11', '16', '4345', '11', '215.0000', 'F-5673 CONSTITUCION'), ('222', '11', '16', '4345', '11', '248.0000', 'F-5248 CONSTITUCION BASE AMORTIGUADOR'), ('223', '11', '15', '4361', '11', '39.0000', 'ANTICONGELANTE'), ('224', '11', '16', '4332', '13', '150.0000', 'ALINEACION DE RUEDAS DELANTERA'), ('225', '11', '16', '4394', '10', '37.0000', 'MORQUECHO CHECAR LLANTA DEL. DERECHA Y BALANCEO'), ('226', '11', '16', '4395', '10', '111.0000', 'MORQUECHO CHECAR LLANTA DEL. IZQ Y DERECHA, BALANCEO'), ('227', '11', '16', '4400', '10', '37.0000', 'MORQUECHO CHECAR LLANTA TRASERA, DERECHA Y BALANCEO'), ('228', '11', '16', '4332', '10', '88.0000', 'MORQUECHO MONTAR LLANTA NUEVA DEL IZQ, BALANCEO'), ('229', '11', '16', '4327', '10', '88.0000', 'MORQUECHO MONTAR LLANTA NUEVA DELANTERA DRECHA Y BALANCEO'), ('230', '11', '16', '4327', '10', '88.0000', 'MORQUECHO MONTAR LLANTA NUEVA DEL., DRECHA Y BALANCEO'), ('231', '11', '15', '4348', '10', '870.0000', 'F-18348 Suspensiones TG del Ste., S.A. (hoja de muelle, buje y tornillos)'), ('232', '11', '16', '4348', '10', '169.3000', 'Enderesar hoja de muelle, tornillo y tuerca'), ('233', '6', '7', '4327', '13', '400.0000', '2º ANT JOSE LUIS'), ('465', '9', '13', '4332', '13', '250.0000', 'PAGO OSCAR'), ('235', '6', '7', '4332', '13', '550.0000', '1º ANT JOSE CACHO'), ('236', '6', '7', '4332', '13', '450.0000', '2º ANT MILO'), ('237', '9', '13', '4332', '13', '250.0000', 'PAGO OSCAR'), ('238', '6', '7', '4343', '13', '50.0000', 'PAGO OSCAR'), ('239', '9', '13', '4351', '13', '650.0000', 'PAGO OSCAR'), ('240', '8', '11', '4351', '13', '53.0000', 'LAVADO Y MOTOR'), ('241', '8', '12', '4351', '13', '26.5000', 'MATERIAL'), ('242', '6', '7', '4358', '13', '100.0000', 'SALDO MILO'), ('337', '8', '11', '4358', '13', '129.0000', 'LAVADO -PULIDO Y DESBRICIADO'), ('339', '8', '11', '4365', '13', '201.5000', 'ESTETICA EXTERIOR'), ('248', '6', '7', '4359', '13', '500.0000', 'PAGO FELIPE LOPEZ'), ('249', '7', '8', '4359', '13', '300.0000', 'PAGO JEOVANNY 1.5PZS'), ('250', '8', '11', '4359', '13', '23.0000', 'PULIDA'), ('251', '8', '12', '4359', '13', '11.5000', 'MATERIAL'), ('252', '7', '10', '4359', '13', '467.7200', 'COLOR Y RESINA'), ('253', '9', '13', '4361', '13', '100.0000', 'SALDO OSCAR'), ('254', '8', '11', '4361', '13', '53.0000', 'LAVDO ,ASPIRADO Y MOTOR'), ('255', '8', '12', '4361', '13', '26.5000', 'MATERIAL'), ('256', '6', '7', '4366', '13', '50.0000', 'SALDO FELIPE LOPEZ'), ('257', '7', '8', '4366', '13', '550.0000', 'PAGO FRANCISCO 2.75PZS'), ('258', '7', '10', '4366', '13', '392.0900', 'COLOR Y RESINA'), ('259', '8', '11', '4366', '13', '122.0000', 'LAVADO,PULIDO YMOT'), ('260', '8', '12', '4366', '13', '61.5000', 'MATERIAL'), ('261', '6', '7', '4367', '13', '450.0000', '2º ANT MANUEL'), ('262', '6', '7', '4370', '13', '100.0000', '2º ANT GASPAR'), ('263', '7', '8', '4370', '13', '450.0000', 'PAGO CARLOS Q 2 1/4PZS'), ('264', '7', '10', '4370', '13', '261.9900', 'COLOR Y RESINA'), ('268', '6', '7', '4372', '13', '200.0000', '3º ANT FELIPE LOPEZ'), ('267', '6', '7', '4372', '13', '350.0000', '2º ANT MILO'), ('269', '6', '7', '4374', '13', '500.0000', 'PAGO GASPAR'), ('270', '7', '8', '4374', '13', '350.0000', 'PAGO JUAN CARLOS 1.75PZS'), ('287', '7', '8', '4377', '13', '1000.0000', 'PAGO CARLOS QUINTAL 5PZS'), ('286', '6', '7', '4377', '13', '500.0000', '1º ANT GASPAR'), ('285', '8', '12', '4376', '13', '15.0000', 'MATERIAL'), ('284', '7', '8', '4376', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('283', '6', '7', '4376', '13', '400.0000', 'PAGO JOSE LUIS'), ('282', '8', '12', '4374', '13', '38.0000', 'MATERIAL'), ('281', '8', '11', '4374', '13', '76.0000', 'LAVADO YPULIDO 2PZS'), ('280', '7', '10', '4374', '13', '356.1600', 'COLOR Y RESINA'), ('288', '7', '10', '4377', '13', '221.0100', 'COLOR Y RESINA'), ('289', '8', '11', '4377', '13', '287.5000', 'ESTETICA EXTERIOR'), ('290', '8', '12', '4377', '13', '143.7500', 'MATERIAL'), ('291', '6', '7', '4378', '13', '150.0000', 'PAGO FELIPE LOPEZ'), ('292', '7', '8', '4378', '13', '200.0000', 'PAGO JEOVANNY 1PZ'), ('293', '7', '10', '4378', '13', '32.6300', 'COLOR Y RESINA'), ('294', '8', '11', '4378', '13', '53.0000', 'LAVADO YPULIDO 1PZ'), ('296', '8', '12', '4378', '13', '26.5000', 'MATERIAL'), ('297', '6', '7', '4379', '13', '550.0000', '1º ANT FELIPE LOPEZ'), ('298', '9', '13', '4380', '13', '100.0000', '1º ANT OSCAR'), ('299', '6', '7', '4382', '13', '250.0000', 'PAGO CARLO Q '), ('300', '7', '8', '4382', '13', '100.0000', 'PAGO CARLOS Q 1/2PZ'), ('301', '7', '10', '4382', '13', '72.3300', 'COLOR Y RESINA'), ('302', '7', '53', '4382', '13', '50.0000', 'DETALLADO'), ('303', '8', '11', '4382', '13', '53.0000', 'LAVADOY PULIDO 1PZS'), ('304', '8', '12', '4382', '13', '26.5000', 'MATERIAL'), ('305', '6', '7', '4384', '13', '250.0000', '1º ANT GASPAR'), ('307', '6', '7', '4386', '13', '600.0000', 'PAGO JOSE LUIS'), ('308', '7', '8', '4386', '13', '300.0000', 'PAGO JEOVANNY 1.5PZS'), ('309', '7', '10', '4386', '13', '200.1800', 'COLOR Y RESINA'), ('310', '8', '11', '4386', '13', '53.0000', 'LAVADO YPULIDO 1PZS'), ('311', '8', '12', '4386', '13', '26.5000', 'MATERIAL'), ('312', '6', '7', '4391', '13', '700.0000', 'PAGO MILO'), ('313', '6', '7', '4392', '13', '300.0000', 'PAGO MILO'), ('314', '6', '7', '4396', '13', '150.0000', 'PAGO MANUEL'), ('315', '8', '11', '4396', '13', '30.0000', 'LAVADO Y PULIDO'), ('316', '6', '7', '4397', '13', '250.0000', 'PAGO OSCAR'), ('317', '6', '7', '4399', '13', '350.0000', 'PAGO JOSE CACHO'), ('318', '7', '8', '4333', '13', '550.0000', 'PAGO JUAN CARLOS 2.75'), ('319', '7', '10', '4333', '13', '536.6000', 'COLOR Y RESINA'), ('320', '7', '8', '4362', '13', '400.0000', 'PAGO JEOVANNY 2PZS'), ('334', '7', '10', '4362', '13', '395.2600', 'COLOR Y RESINA'), ('322', '6', '7', '4315', '13', '250.0000', '2º ANT GASPAR'), ('323', '6', '7', '4315', '13', '150.0000', 'SALDO GASPAR'), ('324', '7', '8', '4315', '13', '450.0000', 'PAGO JUAN CARLOS 2.25'), ('325', '7', '10', '4315', '13', '443.7600', 'COLOR Y RESINA'), ('326', '7', '53', '4315', '13', '100.0000', 'DETALLADO'), ('329', '8', '11', '4315', '13', '76.0000', 'LAVADO Y PULIDO 2PZS'), ('328', '8', '12', '4315', '13', '38.0000', 'MATERIAL'), ('330', '7', '8', '4364', '13', '200.0000', 'PAGO JEOVANNY 1PZ'), ('341', '8', '11', '4364', '13', '230.0000', 'EST EXTERIOR'), ('332', '7', '10', '4364', '13', '13.1400', 'COLOR Y RESINA'), ('333', '7', '53', '4366', '13', '100.0000', 'DETALLANDO'), ('335', '8', '11', '4360', '13', '176.0000', 'LAVADO Y PULIDO 2PZS -ENCERADO Y DESBRICIADA'), ('336', '8', '12', '4360', '13', '88.0000', 'MATERIAL'), ('338', '8', '12', '4358', '13', '64.5000', 'MATERIAL'), ('340', '8', '12', '4365', '13', '100.7500', 'MATERIAL'), ('342', '8', '12', '4364', '13', '115.0000', 'MATERIAL'), ('343', '11', '16', '4373', '13', '88.0000', 'MONTAR DOS LLANTAS TRASERA Y DERECHA BALANCEO Y PIBOTES'), ('344', '11', '15', '4336', '13', '1663.6400', 'CAJA DE TERMOS TATO-JUNTA TOR-TERMOSTATO'), ('345', '11', '16', '4333', '13', '150.0000', 'ALINEACION DELANTERA'), ('346', '11', '16', '4373', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('347', '11', '16', '4333', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('348', '11', '16', '4332', '10', '380.0000', 'A/A'), ('349', '11', '15', '4393', '10', '661.2000', 'F-47435 DEPCO MOLD. DEFENSA DELANTERA'), ('350', '11', '15', '4336', '10', '903.0000', 'F-10091 FORD UNIDAD EMBLEMA Y TUBO.'), ('351', '11', '15', '4388', '10', '58.0000', 'F-26421 PLASTIACERO\\n'), ('352', '11', '15', '4336', '10', '226.0000', 'F-6809 BANDA ALTERNADOR (CONSTITUCION)\\n'), ('353', '11', '15', '4336', '10', '82.0000', 'F-6853 CONST ( ANTICONGELANTE)'), ('354', '11', '16', '4351', '10', '295.0000', 'F-6853 CONSTITUCION BALATAS'), ('355', '11', '15', '4372', '10', '46.4000', 'GRAPAS'), ('356', '11', '16', '4388', '10', '300.0000', 'R-2889 MANTNIMIENTO AL A/A.'), ('357', '11', '16', '4327', '10', '380.0000', 'R-2890 CARGA DE GAS A/A'), ('358', '6', '7', '4408', '13', '100.0000', 'PAGO GASPAR'), ('359', '7', '8', '4408', '13', '200.0000', 'PAGO CARLOS QUINTAL 1 PZ'), ('360', '7', '10', '4408', '13', '224.7800', 'COLOR Y RESINA'), ('361', '7', '53', '4408', '13', '50.0000', 'DETALLADO'), ('362', '6', '7', '4402', '13', '250.0000', 'PAGO GARPAR'), ('363', '7', '8', '4402', '13', '100.0000', 'PAGO FRANCISCO .5PZ'), ('364', '7', '10', '4402', '13', '78.6200', 'RESINA Y COLOR'), ('365', '7', '53', '4402', '13', '50.0000', 'DETALLADO'), ('366', '8', '11', '4402', '13', '287.5000', 'EST EXTERIOR'), ('368', '8', '12', '4402', '13', '143.7500', 'MATERIAL'), ('374', '7', '8', '4401', '13', '100.0000', 'PAGO JEOVANNY .5PZ'), ('371', '7', '10', '4401', '13', '83.5200', 'COLOR Y RESINA'), ('372', '7', '53', '4401', '13', '50.0000', 'DETALLADO'), ('375', '8', '11', '4401', '13', '41.5000', 'LAVADO Y PULIDO .5 PZ'), ('376', '8', '12', '4401', '13', '20.7500', 'MATERIAL'), ('377', '6', '7', '4433', '13', '300.0000', '1° ANT JOSE CACHO'), ('378', '6', '7', '4432', '13', '350.0000', '1° ANT GASPAR'), ('658', '8', '11', '4432', '13', '258.7500', '50% EST INTERIOR Y EXTERIOR'), ('381', '8', '12', '4432', '13', '129.3800', 'MATERIAL'), ('382', '6', '7', '4431', '13', '550.0000', '1° ANT MILO'), ('383', '6', '7', '4428', '13', '300.0000', 'PAGO GASPAR'), ('384', '6', '7', '4426', '13', '350.0000', '1° ANT MILO'), ('385', '6', '7', '4421', '13', '300.0000', 'PAGO MILO'), ('386', '7', '8', '4421', '13', '300.0000', 'PAGO GEOVANNY 1.5'), ('387', '7', '10', '4421', '13', '307.0000', 'RESINA Y COLOR'), ('388', '6', '7', '4417', '13', '300.0000', 'PAGO GASPAR'), ('389', '7', '8', '4417', '13', '200.0000', 'PAGO FRANCISCO 1 PZ'), ('390', '7', '10', '4417', '13', '170.8200', 'RESINA Y COLOR'), ('391', '8', '11', '4417', '13', '122.0000', 'LAVADO-PULIDO 3PZS Y MOTOR'), ('392', '8', '12', '4417', '13', '61.0000', 'MATERIAL'), ('393', '6', '7', '4414', '13', '550.0000', '1º ANT JOSE CACHO'), ('395', '7', '8', '4414', '13', '600.0000', 'PAGO JUAN CARLOS 3PZS'), ('396', '7', '10', '4414', '13', '392.1200', 'RESINA Y COLOR'), ('397', '6', '7', '4411', '13', '50.0000', 'PAGO JUAN CARLOS'), ('398', '7', '8', '4411', '13', '200.0000', 'PAGO JUAN CARLOS 1PZ'), ('399', '7', '10', '4411', '13', '122.8000', 'COLOR Y RESINA'), ('400', '11', '15', '4391', '11', '459.4000', 'F-14419 DEPCO AMORTIGUADOR TRASERO'), ('401', '8', '11', '4411', '13', '76.0000', 'LAVADO YPULIDO 2PZS'), ('402', '8', '12', '4411', '13', '38.0000', 'MATERIAL'), ('403', '11', '15', '4395', '11', '1736.0000', 'F-47624 DEPCO AMORTIGUADORES'), ('404', '6', '7', '4410', '13', '100.0000', 'PAGO JUAN CARLOS'), ('405', '7', '8', '4410', '13', '100.0000', 'PAGO JUAN CARLOS .5PZ'), ('406', '7', '10', '4410', '13', '42.9700', 'COLOR Y RESINA'), ('407', '6', '7', '4404', '13', '450.0000', '1º ANT JOSE CACHO'), ('408', '9', '13', '4404', '13', '100.0000', '1º ANT OSCAR'), ('409', '6', '7', '4403', '13', '250.0000', 'PAGO JUAN CARLOS'), ('410', '7', '8', '4403', '13', '700.0000', 'PAGO JUAN CARLOS 3.5 PZS'), ('411', '7', '10', '4403', '13', '724.9600', 'COLOR Y RESINA'), ('412', '8', '11', '4403', '13', '122.0000', 'LAVADO PULIDO 3PZS Y MOTOR'), ('413', '8', '12', '4403', '13', '61.0000', 'MATERIAL'), ('414', '6', '7', '4398', '13', '550.0000', 'PAGO JOSE LUIS'), ('415', '7', '8', '4398', '13', '300.0000', 'PAGO JEOVANNY 1.5PZS'), ('416', '7', '10', '4398', '13', '237.0800', 'COLOR Y RESINA'), ('417', '7', '53', '4398', '13', '100.0000', 'DETALLADO'), ('418', '6', '7', '4395', '13', '400.0000', '1º ANT GASCPAR'), ('419', '6', '7', '4388', '13', '250.0000', 'PAGO MANUEL'), ('420', '7', '8', '4388', '13', '150.0000', 'PAGO FRANCISCO 3/4PZ'), ('421', '7', '10', '4388', '13', '129.6400', 'COLOR Y RESINA'), ('422', '7', '53', '4388', '13', '50.0000', 'DETALLADO'), ('423', '8', '11', '4388', '13', '76.0000', 'LAVADO Y PULIDA 1 PZMOT'), ('424', '8', '12', '4388', '13', '38.0000', 'MATERIAL'), ('425', '6', '7', '4387', '13', '100.0000', 'PAGO GASPAR'), ('426', '6', '7', '4387', '13', '450.0000', 'PAGO JOSE LUIS'), ('427', '7', '8', '4387', '13', '400.0000', 'PAGO JUAN CARLOS 2PZS'), ('428', '7', '10', '4387', '13', '350.7100', 'COLOR Y RESINA'), ('429', '6', '7', '4384', '13', '100.0000', 'SALDO GASPAR'), ('430', '7', '8', '4384', '13', '300.0000', 'PAGO JEOVANNY 5PZS'), ('431', '7', '10', '4384', '13', '237.0800', 'COLOR Y RESINA'), ('432', '7', '53', '4384', '13', '100.0000', 'DETALLADO'), ('433', '8', '11', '4384', '13', '76.0000', 'LAVADO Y PULIDO 2PZS'), ('434', '8', '12', '4384', '13', '38.0000', 'MATERIAL'), ('436', '9', '13', '4383', '13', '250.0000', 'PAGO OSCAR'), ('437', '8', '11', '4383', '13', '53.0000', 'LAVADO Y ASPIRADO'), ('438', '8', '12', '4383', '13', '26.5000', 'MATERIAL'), ('439', '6', '7', '4381', '13', '1100.0000', '1º ANT MILO'), ('608', '6', '7', '4380', '13', '250.0000', '1º ANT JOSE LUIS'), ('441', '6', '7', '4379', '13', '250.0000', 'SALDO FELIPE LOPEZ'), ('442', '7', '8', '4379', '13', '200.0000', 'PAGO CARLOS QUINTAL 1PZ'), ('443', '7', '10', '4379', '13', '122.2000', 'COLOR Y RESINA'), ('444', '8', '11', '4379', '13', '76.0000', 'LAVADO Y PULIDO 1 PZ MOT'), ('445', '8', '12', '4379', '13', '38.0000', 'MATERIAL'), ('446', '6', '7', '4377', '13', '150.0000', 'SALDO GASPAR'), ('447', '9', '13', '4374', '13', '150.0000', 'PAGO OSCAR'), ('449', '6', '7', '4372', '13', '300.0000', '4º ANT JOSE LUIS'), ('450', '7', '8', '4372', '13', '350.0000', 'PAGO CARLOS QUINTAL'), ('451', '7', '10', '4372', '13', '144.3200', 'RESINA Y COLOR'), ('452', '9', '13', '4372', '13', '150.0000', 'PAGO OSCAR'), ('453', '6', '7', '4370', '13', '50.0000', 'SALDO GASPAR'), ('454', '6', '7', '4367', '13', '200.0000', 'SALDO MANUEL'), ('455', '7', '8', '4367', '13', '1000.0000', 'PAGO JEOVANNY 5PZS'), ('456', '7', '10', '4367', '13', '955.3700', 'COLOR Y RESINA'), ('457', '7', '53', '4367', '13', '100.0000', 'DETALLADO'), ('458', '6', '7', '4347', '13', '400.0000', 'PAGO MANUEL'), ('459', '7', '8', '4347', '13', '300.0000', 'PAGO FRANCISCO1.5PZS'), ('460', '7', '10', '4347', '13', '327.8100', 'COLOR Y RESINA'), ('461', '8', '11', '4347', '13', '99.0000', 'LAVADO Y PULIDA 2PZS MOTOR'), ('462', '8', '12', '4347', '13', '49.5000', 'MATERIAL'), ('463', '6', '7', '4333', '13', '300.0000', 'SALDO JOSE CACHO'), ('464', '9', '13', '4333', '13', '300.0000', 'PAGO OSCAR'), ('466', '6', '7', '4332', '13', '300.0000', 'SALDO JOSE CACHO'), ('467', '7', '8', '4332', '13', '1000.0000', 'PAGO FRANCISCO 5PZS'), ('468', '7', '10', '4332', '13', '525.1500', 'COLOR Y RESINA'), ('469', '8', '11', '4332', '13', '145.0000', 'LAVADO-PULIDO Y MOT'), ('470', '8', '12', '4332', '13', '72.5000', 'MATERIAL'), ('615', '6', '7', '4327', '13', '300.0000', '3º ANT JOSE LUIS'), ('472', '9', '13', '4327', '13', '400.0000', 'PAGO OSCAR'), ('473', '7', '8', '4327', '13', '950.0000', 'PAGO JEOVANNY 4.75PZS'), ('474', '7', '10', '4327', '13', '1209.2500', 'COLOR Y RESINA'), ('475', '11', '15', '4436', '10', '124.0000', 'F-29736 VW PERFIL DE GUIA.'), ('476', '11', '16', '4439', '10', '400.0000', 'HECHURA DE LLAVE'), ('477', '11', '16', '4440', '10', '400.0000', 'HECHURA DE LLAVE'), ('478', '9', '13', '4439', '13', '400.0000', '1º ANT OSCAR'), ('479', '7', '8', '4399', '13', '200.0000', 'PAGO FRANCISCO 1PZ'), ('480', '7', '10', '4399', '13', '71.4800', 'COLOR Y RESINA'), ('481', '7', '8', '4392', '13', '100.0000', 'PAGO FRANCISCO 0.5PZS'), ('482', '7', '10', '4392', '13', '117.3500', 'COLOR Y RESINA'), ('483', '7', '53', '4392', '13', '50.0000', 'DETALLADO'), ('484', '7', '8', '4392', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('485', '8', '12', '4392', '13', '26.5000', 'MATERIAL'), ('486', '8', '11', '4391', '13', '53.0000', 'LAVADO Y ASPIRADO'), ('487', '8', '12', '4391', '13', '26.5000', 'MATERIAL'), ('488', '8', '12', '4391', '13', '26.5000', 'MATERIAL'), ('489', '7', '8', '4427', '13', '250.0000', 'PAGO CARLOS QUINTAL 1 1/4'), ('490', '7', '10', '4427', '13', '325.3900', 'COLOR Y RESINA'), ('491', '8', '11', '4427', '13', '53.0000', 'LAVADO YPULIDO 1PZ'), ('492', '8', '12', '4427', '13', '26.5000', 'MATERIAL'), ('493', '8', '11', '4428', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('494', '11', '16', '4407', '13', '220.0000', 'DEM Y MONTAR DE 2 RINES Y BALANCEO'), ('495', '11', '16', '4394', '13', '150.0000', 'ALINEACION DELANTERA MERCADO DE LLANTAS'), ('497', '11', '15', '4471', '10', '967.0000', 'F-881 DE OPTIMA (BRASO DEL. Y ESCOBILLA)\\n'), ('499', '11', '15', '4397', '10', '96.0000', 'F-6114 CONSTITUCION DESENGRASANTE Y LIMPIADOR'), ('500', '11', '16', '4393', '10', '1200.0000', 'JUEGO BALATAS, MORDAZA, PISTONES Y DISCOS'), ('501', '11', '15', '4393', '10', '6000.0000', 'COMPUTADORA'), ('502', '11', '15', '4393', '10', '600.0000', 'GASOLINA 200+400'), ('503', '6', '7', '4476', '13', '200.0000', 'PAGO MANUEL'), ('504', '6', '7', '4469', '13', '150.0000', 'PAGO JOSE BALMACEDA'), ('505', '7', '8', '4469', '13', '100.0000', 'PAGO FRANCISCO 1/2 PZ'), ('506', '7', '10', '4469', '13', '38.2200', 'COLOR Y RESINA'), ('507', '8', '11', '4469', '13', '145.0000', 'LAVADO Y PULIDO 4 PZS'), ('508', '8', '12', '4469', '13', '72.5000', 'MATERIAL'), ('509', '6', '7', '4468', '13', '300.0000', 'PAGO MILO'), ('512', '7', '8', '4465', '13', '300.0000', 'PAGO CARLOS QUINTAL 1 1/2 PZ'), ('511', '6', '7', '4465', '13', '300.0000', 'PAGO JOSE LUIS'), ('513', '7', '10', '4465', '13', '171.2700', 'COLRO Y RESINA'), ('518', '6', '7', '4458', '13', '150.0000', 'PAGO JOSE LUIS'), ('516', '9', '13', '4462', '13', '300.0000', 'PAGO OSCAR\\n'), ('519', '7', '8', '4458', '13', '200.0000', 'PAGO JUAN CARLOS 1 PZ'), ('520', '7', '10', '4458', '13', '90.1600', 'COLOR Y RESINA'), ('521', '8', '11', '4458', '13', '53.0000', 'LAVADO Y PULIDO 1PZ'), ('522', '8', '12', '4458', '13', '26.5000', 'MATERIAL'), ('523', '6', '7', '4455', '13', '300.0000', 'PAGO JOSE LUIS'), ('524', '7', '8', '4455', '13', '300.0000', 'PAGO JEOVANNY 1.5PZ'), ('525', '7', '10', '4455', '13', '233.8600', 'COLOR Y RESINA'), ('526', '8', '11', '4455', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ'), ('527', '8', '12', '4455', '13', '26.5000', 'MATERIAL'), ('528', '9', '13', '4453', '13', '100.0000', '1º ANT OSCAR'), ('529', '6', '7', '4452', '13', '50.0000', 'PAGO OSCAR'), ('530', '6', '7', '4449', '13', '300.0000', '1º ANT MILO'), ('531', '8', '11', '4449', '13', '230.0000', 'EST EXTERIOR'), ('534', '8', '12', '4449', '13', '115.0000', 'MATERIAL'), ('535', '6', '7', '4442', '13', '200.0000', 'PAGO JEOVANNY '), ('536', '6', '7', '4439', '13', '300.0000', 'PAGO MANUEL'), ('537', '9', '13', '4439', '13', '600.0000', '2º ANT OSCAR'), ('538', '6', '7', '4438', '13', '50.0000', 'PAGO JOSE BALMASEDA'), ('542', '6', '7', '4434', '13', '500.0000', 'PAGO JOSE BALBASEDA'), ('540', '7', '8', '4438', '13', '50.0000', 'PAGO FRANCISCO 1/4 PIEZA'), ('541', '7', '10', '4438', '13', '40.0800', 'COLOR Y RESINA'), ('543', '7', '8', '4434', '13', '600.0000', 'PAGO JEOVANNY 3 PZS'), ('544', '7', '10', '4434', '13', '550.9800', 'COLOR Y RESINA'), ('545', '8', '11', '4434', '13', '99.0000', 'LAVADO Y PULIDO 3 PZ'), ('546', '8', '12', '4434', '13', '49.5000', 'MATERIAL\\n'), ('547', '6', '7', '4433', '13', '150.0000', 'SALDO JOSE BALBASEDA'), ('548', '7', '10', '4433', '13', '100.0000', 'PAGO FRANCISCO 1/2 PZ'), ('549', '7', '10', '4433', '13', '100.0000', 'COLOR Y RESINA'), ('550', '8', '11', '4433', '13', '145.0000', 'LAVADO Y PULIDO LAV MOT'), ('551', '8', '12', '4433', '13', '72.5000', 'MATERIAL'), ('552', '6', '7', '4432', '13', '100.0000', 'SALDO GASPAR'), ('553', '7', '8', '4432', '13', '200.0000', 'PAGO CARLOS QUINTAL 1 PZ'), ('554', '7', '10', '4432', '13', '137.6600', 'COLOR Y RESINA'), ('555', '7', '53', '4432', '13', '100.0000', 'DETALLADO'), ('556', '6', '7', '4431', '13', '900.0000', '3º ANT GASPAR'), ('557', '6', '7', '4431', '13', '200.0000', '2º ANT GASPAR'), ('558', '11', '15', '4431', '13', '551.0000', 'CALAVER DEPCO'), ('559', '6', '7', '4426', '13', '150.0000', '2º ANT MILO'), ('560', '6', '7', '4418', '13', '400.0000', '1º ANT MANUEL'), ('561', '7', '8', '4418', '13', '200.0000', 'PAGO JUAN CARLOS 1 PZ'), ('562', '7', '10', '4418', '13', '258.4700', 'COLOR Y RESINA'), ('563', '6', '7', '4416', '13', '300.0000', '1º ANT MILO'), ('564', '6', '7', '4415', '13', '200.0000', 'PAGO JUAN CARLOS'), ('565', '7', '8', '4415', '13', '500.0000', 'PAGO JUAN CARLOS 2.5 PZS'), ('566', '7', '10', '4415', '13', '457.5600', 'COLOR Y RESINA'), ('567', '7', '53', '4415', '13', '100.0000', 'DETALLADO'), ('568', '8', '11', '4415', '13', '230.0000', 'EST EXTERIOR'), ('569', '8', '12', '4415', '13', '115.0000', 'MATERIAL'), ('571', '6', '7', '4414', '13', '200.0000', 'SALDO JOSE BALBASEDA'), ('574', '8', '11', '4414', '13', '99.0000', 'LAVADO-PULIDO 2PZ MOT'), ('573', '8', '12', '4414', '13', '49.5000', 'MATERIAL'), ('575', '6', '7', '4409', '13', '500.0000', 'PAGO MILO'), ('576', '8', '11', '4409', '13', '53.0000', 'LAVADO Y PIRADO MOTOR'), ('577', '8', '12', '4409', '13', '26.5000', 'MATERIAL'), ('578', '7', '8', '4438', '13', '50.0000', 'PAGO JUAN CARLOS'), ('579', '7', '10', '4438', '13', '8.2700', 'COLOR'), ('580', '6', '7', '4407', '13', '300.0000', 'PAGO MILO'), ('581', '9', '13', '4407', '13', '200.0000', 'PAGO OSCAR'), ('582', '8', '11', '4407', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('583', '8', '12', '4407', '13', '15.0000', 'MATERIAL'), ('584', '6', '7', '4395', '13', '200.0000', 'SALDO GASPAR'), ('585', '9', '13', '4395', '13', '200.0000', 'PAGO OSCAR'), ('590', '7', '8', '4395', '13', '550.0000', 'PAGO CARLOS QUINTAL 2 3/4'), ('588', '8', '12', '4395', '13', '76.0000', 'LAVADO Y PULIDO 2 LAVADO'), ('589', '8', '12', '4395', '13', '38.0000', 'MATERIAL'), ('591', '7', '10', '4395', '13', '328.0900', 'COLOR Y RESINA'), ('592', '6', '7', '4394', '13', '500.0000', 'PAGO JOSE LUIS'), ('593', '6', '7', '4394', '13', '200.0000', 'PAGO OSCAR'), ('594', '7', '8', '4394', '13', '500.0000', 'PAGO CARLOS QUINTAL 2 1/2'), ('595', '7', '10', '4394', '13', '409.8300', 'COLOR Y RESINA'), ('596', '6', '7', '4391', '13', '200.0000', 'PAGO OSCAR'), ('597', '6', '7', '4389', '13', '600.0000', '1º ANT JOSE BALBACEDA'), ('598', '6', '7', '4385', '13', '300.0000', 'PAGO JOSE LUIS'), ('599', '7', '8', '4385', '13', '500.0000', 'PAGO CARLOS QUINTAL 2 1/2'), ('600', '7', '10', '4385', '13', '430.9800', 'MATERIAL'), ('601', '8', '11', '4385', '13', '122.0000', 'LAVADO Y PULIDO 3 MOT '), ('602', '8', '12', '4385', '13', '61.0000', 'MATERIAL'), ('603', '6', '7', '4381', '13', '600.0000', '2º ANT MILO'), ('604', '7', '8', '4381', '13', '850.0000', 'PAGO FRANCISCO 4.25PZ'), ('605', '7', '8', '4381', '13', '722.1600', 'MATERIAL'), ('606', '11', '16', '4381', '13', '52.2000', 'TARIVA VALUACION AUDATEX'), ('607', '9', '13', '4380', '13', '150.0000', '2º ANT OSCAR'), ('609', '6', '7', '4372', '13', '150.0000', 'SALDO JOSE LUIS '), ('610', '6', '7', '4356', '13', '350.0000', 'PAGO JOSE BALMASEDA'), ('611', '6', '7', '4336', '13', '100.0000', 'PAGO OSCAR'), ('612', '8', '11', '4336', '13', '53.0000', 'LAVADO Y ASPIRADO MOTR'), ('613', '8', '11', '4336', '13', '26.5000', 'MATERIAL'), ('616', '6', '7', '4327', '13', '100.0000', 'SALDO JOSE LUIS'), ('617', '6', '7', '4323', '13', '150.0000', 'PAGO MANUEL'), ('618', '6', '7', '4460', '13', '100.0000', '1º ANT MANUEL'), ('686', '9', '13', '4393', '13', '200.0000', '1º ANT OSCAR'), ('620', '7', '8', '4433', '13', '850.0000', 'PAGO FRANCISCO4.25PZS'), ('622', '7', '10', '4433', '13', '770.1100', 'COLOR Y RESINA'), ('623', '7', '8', '4444', '13', '400.0000', 'PAGO FRANCISCO 2PZS'), ('624', '7', '10', '4444', '13', '364.0800', 'MATERIAL'), ('625', '8', '11', '4444', '13', '99.0000', 'LAVADO Y PULIDO 2 PZS'), ('626', '8', '12', '4444', '13', '26.5000', 'MATERIAL'), ('628', '7', '8', '4441', '13', '800.0000', 'PAGO JUAN CARLOS 4 PZS'), ('629', '7', '10', '4441', '13', '270.3000', 'COLOR Y RESINA'), ('630', '8', '11', '4441', '13', '145.0000', 'PULIDA 5 PZS Y LAVADA'), ('631', '8', '12', '4441', '13', '72.5000', 'MATERIAL'), ('632', '7', '8', '4463', '13', '300.0000', 'PAGO JUAN CARLOS 1.5PZS'), ('633', '7', '10', '4463', '13', '270.3000', 'MATERIAL'), ('634', '7', '8', '4404', '13', '450.0000', 'PAGO JUAN CARLOS 2.25PZS'), ('635', '7', '10', '4404', '13', '86.9200', 'MATERIAL'), ('636', '7', '8', '4456', '13', '100.0000', 'PAGO JUAN CARLOS 1/2 PZ'), ('637', '7', '10', '4456', '13', '97.6500', 'MATERIAL'), ('638', '8', '11', '4456', '13', '76.0000', 'LAVADO Y PULIDO 1 PZS MOT'), ('639', '8', '11', '4456', '13', '38.0000', 'MATERIAL'), ('640', '7', '8', '4442', '13', '200.0000', 'PAGO JEOVANNY 1 PZ'), ('641', '7', '8', '4437', '13', '200.0000', 'PAGO JEOVANNY 1PZ'), ('642', '7', '8', '4437', '13', '107.3000', 'MATERIAL'), ('643', '7', '53', '4434', '13', '50.0000', 'DETALLADO'), ('644', '8', '11', '4387', '13', '76.0000', 'LAVADO Y PULIDO 2PZ'), ('645', '8', '12', '4387', '13', '38.0000', 'MATERIAL'), ('648', '8', '11', '4421', '13', '26.5000', 'MATERIAL\\n'), ('647', '8', '11', '4421', '13', '53.0000', 'PULIDA YLAVADO 1PZ'), ('649', '8', '11', '4372', '13', '76.0000', 'LAVADO Y PULIDO 2 PSZ'), ('650', '8', '12', '4372', '13', '38.0000', 'MATERIAL'), ('651', '7', '10', '4442', '13', '155.8100', 'COLOR Y RESINA'), ('652', '8', '11', '4442', '13', '53.0000', 'LAVADO Y PULIDO 1PZ'), ('653', '8', '12', '4442', '13', '26.5000', 'MATERIAL'), ('654', '8', '11', '4327', '13', '168.0000', 'LAVADO Y PULIDO LAV MOT'), ('655', '8', '12', '4327', '13', '84.0000', 'MATERIAL'), ('656', '8', '11', '4398', '13', '76.0000', 'LAVADO Y PULIDO 2PZS'), ('657', '8', '12', '4398', '13', '38.0000', 'MATERIAL'), ('659', '8', '11', '4432', '13', '258.7500', 'SALDO EXT INT Y EXT'), ('660', '8', '12', '4432', '13', '129.3800', 'MATERIAL'), ('661', '11', '15', '4380', '10', '1004.0000', 'F-357 DE PREMIER MOTOR\\n'), ('662', '11', '15', '4380', '10', '630.0000', '1 CHICOTE DE FRENO DE MANO Y GRAPA'), ('663', '11', '15', '4380', '10', '454.0000', 'F-329351 PENSIONES (TORNILLOS)\\n'), ('664', '11', '16', '4380', '10', '2400.0000', 'PAGO PAULINO'), ('665', '11', '16', '4380', '10', '52.2000', 'AUDATEX'), ('666', '11', '15', '4380', '10', '356.2400', 'F-7780 CONST. (ACEITE)'), ('667', '11', '16', '4380', '10', '2300.0000', 'COM.'), ('668', '11', '16', '4380', '10', '50.0000', 'DESM. Y MONTAJE'), ('669', '11', '16', '4332', '10', '15.0000', 'DESMONTAR LLANTA DEL. IZQ. '), ('670', '11', '16', '4439', '13', '400.0000', 'HECHURA DE LLAVE'), ('671', '11', '16', '4439', '13', '8639.4502', 'VARIOS SEGUN NOTA DE COMPRAS'), ('672', '9', '13', '4439', '13', '600.0000', '3º ANT OSCAR'), ('673', '9', '13', '4380', '13', '100.0000', '3º ANT OSCAR'), ('674', '6', '7', '4380', '13', '300.0000', '2º ANT MILO'), ('675', '7', '8', '4380', '13', '450.0000', 'PAGO CARLOS QUINTAL 2 1/4 PZ'), ('676', '7', '10', '4380', '13', '182.0400', 'COLOR Y RESINA'), ('677', '6', '7', '4381', '13', '300.0000', 'SALDO MILO'), ('678', '9', '13', '4381', '13', '400.0000', 'PAGO OSCAR'), ('679', '8', '11', '4381', '13', '99.0000', 'LAVADO Y PULIDO 3 PZS'), ('680', '8', '12', '4381', '13', '49.5000', 'MATERIAL'), ('681', '6', '7', '4389', '13', '600.0000', '2º ANT JOSE CACHO'), ('683', '6', '7', '4389', '13', '300.0000', '3º ANT MILO'), ('719', '11', '15', '4416', '11', '419.0000', 'FACT. G8197 CONSTITUCION (HORQUILLA Y ROTULA)\\n'), ('685', '9', '13', '4393', '13', '150.0000', 'SALDO OSCAR'), ('687', '6', '7', '4405', '13', '150.0000', 'PAGO MANUEL'), ('688', '7', '8', '4405', '13', '200.0000', 'PAGO JEOVANNY 1PZ'), ('689', '8', '11', '4405', '13', '53.0000', 'LAVADO Y PULIDA 1PZ'), ('690', '8', '12', '4405', '13', '26.5000', 'MATERIAL'), ('691', '7', '10', '4405', '13', '244.3300', 'COLOR Y RESINA'), ('692', '6', '7', '4416', '13', '600.0000', '2º ANT MANUEL'), ('693', '6', '7', '4416', '13', '100.0000', '3º ANT MILO'), ('694', '7', '8', '4416', '13', '650.0000', 'PAGO CARLOS QUINTAL 3 1/4 PZA'), ('695', '7', '10', '4416', '13', '440.6800', 'MATERIAL'), ('696', '6', '7', '4423', '13', '200.0000', '1º ANT GASPAR'), ('697', '6', '7', '4426', '13', '200.0000', 'SALDO MILO'), ('698', '7', '8', '4426', '13', '450.0000', 'PAGO JUAN CARLOS 2.25'), ('699', '7', '10', '4426', '13', '474.9000', 'COLOR Y RESINA'), ('700', '7', '53', '4426', '13', '50.0000', 'DETALLADO'), ('701', '8', '11', '4426', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS'), ('702', '8', '12', '4426', '13', '38.0000', 'MATERIAL'), ('703', '6', '7', '4431', '13', '400.0000', '4º ANT GASPAR'), ('704', '7', '8', '4431', '13', '1100.0000', 'PAGO JUAN CARLOS 5.5 PZS'), ('705', '7', '10', '4431', '13', '747.3500', 'COLOR Y RESINA'), ('1158', '6', '7', '4446', '13', '100.0000', 'PAGO MANUEL'), ('707', '7', '8', '4446', '13', '300.0000', 'PAGO FRANCISCO 1.5 PZ'), ('709', '7', '10', '4446', '13', '157.6100', 'MATERIAL'), ('710', '7', '53', '4446', '13', '50.0000', 'DETALLADO'), ('711', '6', '7', '4449', '13', '100.0000', 'SALDO MILO'), ('712', '7', '8', '4449', '13', '300.0000', 'PAGO CARLOS QUINTAL 1 1/2 PZ'), ('713', '7', '10', '4449', '13', '300.0000', 'COLOR Y RESINA'), ('714', '6', '7', '4450', '13', '700.0000', '1º ANT JOSE LUIS'), ('718', '6', '7', '4459', '13', '400.0000', '1º ANT CARLOS QUINTAL'), ('717', '6', '7', '4459', '13', '500.0000', '2º ANT MILO'), ('720', '6', '7', '4460', '13', '550.0000', '2º ANT MANUEL'), ('1010', '7', '8', '4460', '13', '650.0000', 'PAGO EDUARDO MATOS 3 1/4 PZS'), ('722', '6', '7', '4461', '13', '450.0000', '1º ANT JOSE LUIS'), ('723', '6', '7', '4470', '13', '300.0000', '1º ANT JOSE LUIS'), ('724', '6', '7', '4472', '13', '100.0000', 'PAGO OSCAR'), ('725', '8', '11', '4472', '13', '190.0000', 'EST INTERIOR'), ('726', '8', '12', '4472', '13', '95.0000', 'MATERIAL'), ('727', '6', '7', '4473', '13', '100.0000', 'PAGO JOSE LUIS'), ('728', '6', '7', '4474', '13', '150.0000', 'PAGO FRANCISCO'), ('729', '6', '7', '4474', '13', '350.0000', 'PAGO MILO'), ('730', '7', '8', '4474', '13', '100.0000', 'PAGO FRANCISCO 1/2 PZ'), ('731', '7', '10', '4474', '13', '128.7800', 'COLOR Y RESINA'), ('732', '7', '53', '4474', '13', '50.0000', 'DETALLADO'), ('733', '9', '13', '4475', '13', '50.0000', 'PAGO OSCAR'), ('734', '9', '13', '4478', '13', '50.0000', 'PAGO OSCAR'), ('735', '6', '7', '4479', '13', '50.0000', 'PAGO OSCAR'), ('736', '6', '7', '4480', '13', '300.0000', 'PAGO JOSE CACHO'), ('737', '7', '8', '4480', '13', '400.0000', 'PAGO JEOVANNY 2 PZS'), ('738', '7', '10', '4480', '13', '317.3500', 'COLOR Y RESINA'), ('739', '7', '53', '4480', '13', '50.0000', 'DETALLADO'), ('740', '8', '11', '4480', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS'), ('741', '8', '12', '4480', '13', '38.0000', 'MATERIAL'), ('742', '6', '7', '4483', '13', '150.0000', 'PAGO JOSE CACHO'), ('743', '7', '8', '4483', '13', '300.0000', 'PAGO JEOVANNY 1.5'), ('744', '7', '10', '4483', '13', '146.6600', 'COLOR Y RESINA'), ('745', '8', '11', '4483', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('746', '8', '12', '4483', '13', '15.0000', 'MATERIAL'), ('747', '6', '7', '4484', '13', '350.0000', 'PAGO CARLOS QUINTAL'), ('748', '7', '8', '4484', '13', '600.0000', 'PAGO CARLOS QUINTAL 3PZS'), ('749', '7', '10', '4484', '13', '449.7000', 'COLOR Y RESINA'), ('750', '8', '11', '4484', '13', '230.0000', 'EST EXTERIOR'), ('751', '8', '12', '4484', '13', '115.0000', 'MATERIAL'), ('752', '6', '7', '4485', '13', '250.0000', 'PAGO GASPAR'), ('753', '6', '7', '4485', '13', '150.0000', 'PAGO MILO ( TALLER )'), ('754', '6', '7', '4487', '13', '250.0000', 'PAGO JOSE BALMASEDA'), ('755', '7', '8', '4487', '13', '200.0000', 'PAGO JEOVANNY 1PZ'), ('961', '7', '10', '4487', '13', '259.6700', 'COLOR Y RESINA'), ('757', '6', '7', '4488', '13', '400.0000', 'PAGO GASPAR'), ('758', '8', '11', '4488', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ'), ('759', '8', '12', '4488', '13', '26.5000', 'MATERIAL'), ('760', '6', '7', '4490', '13', '300.0000', 'PAGO JOSE LUIS'), ('761', '8', '11', '4490', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('762', '8', '12', '4490', '13', '15.0000', 'MATERIAL'), ('763', '6', '7', '4492', '13', '150.0000', 'PAGO FRANCISCO'), ('764', '7', '8', '4492', '13', '200.0000', 'PAGO FRANCISCO 1PZ'), ('765', '7', '10', '4492', '13', '212.7700', 'MATERIAL'), ('766', '8', '11', '4492', '13', '53.0000', 'LAVADO -PULIDO 1 '), ('767', '8', '12', '4492', '13', '26.5000', 'MATERIAL'), ('768', '6', '7', '4499', '13', '300.0000', 'PAGO GASPAR'), ('769', '9', '13', '4501', '13', '100.0000', '1º ANT OSCAR'), ('770', '8', '11', '4501', '13', '53.0000', 'LAVADO ASPIRADO Y MOTOR'), ('771', '8', '12', '4501', '13', '26.5000', 'MATERIAL'), ('772', '9', '13', '4501', '13', '300.0000', 'PAGO OSCAR'), ('773', '7', '8', '4497', '13', '200.0000', 'PAGO FRANCISCO 1 PZ'), ('774', '7', '10', '4497', '13', '134.5700', 'MATERIAL'), ('775', '8', '11', '4497', '13', '23.0000', 'PULIDO 1PZ'), ('776', '8', '12', '4497', '13', '11.5000', 'MATERIAL'), ('777', '7', '8', '4409', '13', '50.0000', 'PAGO CARLOS QUINTAL 1/2 PZS'), ('778', '7', '10', '4409', '13', '23.7500', 'MATERIAL'), ('779', '7', '8', '4489', '13', '100.0000', 'PAGO JEOVANNY 1/2 PZ'), ('780', '7', '10', '4489', '13', '85.0900', 'MATERIAL'), ('781', '8', '11', '4394', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS'), ('782', '8', '12', '4394', '13', '38.0000', 'MATERIAL'), ('783', '8', '11', '4404', '13', '99.0000', 'LAVADO Y PULIDO 3 PZS'), ('784', '8', '12', '4404', '13', '49.5000', 'MATERIAL'), ('785', '8', '11', '4465', '13', '76.0000', 'LAVADO YPULIDO 1 PZ'), ('786', '8', '12', '4465', '13', '38.0000', 'MATERIAL'), ('787', '8', '11', '4472', '13', '230.0000', 'EST EXTERIOR'), ('788', '8', '12', '4472', '13', '115.0000', 'MATERIAL'), ('789', '8', '11', '4504', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('790', '8', '12', '4504', '13', '15.0000', 'MATERIAL'), ('791', '8', '11', '4356', '13', '76.0000', 'LAVADO Y ASPIRADO'), ('792', '8', '12', '4356', '13', '38.0000', 'MATERIAL'), ('793', '8', '11', '4463', '13', '76.0000', 'lavado y aspirado'), ('794', '8', '12', '4463', '13', '38.0000', 'material'), ('795', '8', '11', '4494', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('796', '8', '11', '4494', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('797', '8', '12', '4494', '13', '15.0000', 'MATERIAL'), ('798', '8', '11', '4498', '13', '23.0000', 'PULIDO'), ('799', '8', '12', '4498', '13', '11.5000', 'MATERIAL'), ('802', '11', '15', '4453', '10', '2761.0000', 'F-10333 DE FORD ( MASA DE RUEDA)'), ('803', '6', '7', '4380', '13', '150.0000', '3º ant juan carlos'), ('804', '11', '16', '4491', '10', '380.0000', 'VACIO Y CARGA DE A/A'), ('805', '11', '16', '4418', '10', '380.0000', 'PAGO VACIO Y CARGA A/A'), ('806', '11', '15', '4478', '13', '362.0000', 'F-7131 CONST KIT DE AFINACION'), ('807', '11', '15', '4479', '13', '309.0000', 'CONST KIT DE AFINACION'), ('808', '6', '7', '4459', '13', '400.0000', '3º ANT MILO'), ('809', '6', '7', '4459', '13', '600.0000', 'SALDO CARLOS QUINTAL'), ('810', '7', '8', '4459', '13', '2300.0000', '11.5'), ('812', '7', '10', '4459', '13', '2580.5901', 'COLOR Y RESINA'), ('813', '7', '53', '4459', '13', '200.0000', 'DETALLADO'), ('814', '6', '7', '4451', '13', '600.0000', 'PAGO MILO'), ('815', '6', '7', '4454', '13', '800.0000', '1º ANT MILO'), ('816', '6', '7', '4454', '13', '200.0000', '2º ANT GASPAR'), ('817', '6', '7', '4491', '13', '150.0000', 'PAGO MILO DESCANTADO A MIGUEL'), ('818', '6', '7', '4491', '13', '600.0000', 'PAGO MIGUEL'), ('819', '8', '11', '4491', '13', '99.0000', 'LAVADO,PULIDO Y MOTOR'), ('820', '8', '12', '4491', '13', '49.5000', 'DESENGRASANTE,SHAMPOO,ABRILLANTADOR'), ('821', '6', '7', '4466', '13', '150.0000', 'PAGO MILO TALLER'), ('822', '6', '7', '4466', '13', '300.0000', '1º ANT JOSE LIS'), ('823', '6', '7', '4513', '13', '100.0000', 'PAGO MILO TALLER'), ('824', '6', '7', '4513', '13', '400.0000', 'PAGO GASPAR'), ('825', '7', '8', '4513', '13', '600.0000', 'PAGO JEOVANNY'), ('826', '7', '10', '4513', '13', '457.8100', 'MATERIAL'), ('827', '8', '11', '4513', '13', '230.0000', 'EST EXT'), ('828', '8', '12', '4513', '13', '115.0000', 'MATERIAL'), ('829', '6', '7', '4413', '13', '100.0000', 'PAGO MILO TALLER'), ('830', '6', '7', '4413', '13', '550.0000', 'PAGO JOSE LUIS'), ('831', '7', '8', '4413', '13', '750.0000', 'PAGO FRANCISCO 3.75'), ('832', '7', '9', '4413', '13', '584.3900', 'MATERIAL'), ('833', '7', '53', '4413', '13', '50.0000', 'DETALLADO'), ('834', '8', '11', '4413', '13', '145.0000', 'LAVADO Y PULIDO4 PZ MOTOR'), ('835', '8', '12', '4413', '13', '72.5000', 'MATERIAL'), ('836', '6', '7', '4418', '13', '200.0000', '2º ANT MANUEL'), ('837', '8', '11', '4418', '13', '76.0000', 'LAVADO Y PULIDO 1 PZ MOT\\n'), ('838', '8', '12', '4418', '13', '38.0000', 'MATERIAL'), ('839', '6', '7', '4416', '13', '300.0000', 'SALDO MANUEL'), ('840', '9', '13', '4416', '13', '350.0000', 'PAGO OSCAR'), ('841', '6', '7', '4446', '13', '50.0000', '2º ANT MANUEL'), ('842', '8', '11', '4446', '13', '76.0000', 'LAVADO-PULIDO 1 PZ MOT'), ('843', '8', '12', '4446', '13', '38.0000', 'MATERIAL'), ('844', '6', '7', '4430', '13', '250.0000', '1º ANT MANUEL'), ('845', '6', '7', '4464', '13', '250.0000', '1º ANT MANUEL '), ('846', '6', '7', '4526', '13', '100.0000', 'PAGO MANUEL'), ('847', '7', '8', '4526', '13', '50.0000', 'PAGO JEOVANNY 1/4 PZ'), ('848', '7', '10', '4526', '13', '26.9100', 'MATERIAL'), ('849', '6', '7', '4431', '13', '250.0000', 'SALDO GASPAR'), ('850', '7', '8', '4431', '13', '100.0000', 'PAGO JUAN CARLOS 1/2 PZ'), ('851', '7', '10', '4431', '13', '43.3900', 'MATERIAL'), ('852', '8', '11', '4431', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS'), ('853', '8', '12', '4431', '13', '38.0000', 'MATERIAL'), ('854', '6', '7', '4423', '13', '300.0000', 'PAGO GASPAR '), ('855', '7', '8', '4423', '13', '200.0000', 'PAGO FRANCISCO 1 PZ'), ('856', '7', '10', '4423', '13', '67.2400', 'MATERIAL'), ('857', '8', '11', '4423', '13', '76.0000', 'LAVADO Y PULIDO 1PZ MOTOR'), ('858', '8', '12', '4423', '13', '38.0000', 'MATERIAL'), ('859', '6', '7', '4518', '13', '400.0000', 'PAGO GASPAR'), ('860', '9', '13', '4439', '13', '300.0000', '4º ANT OSCAR'), ('1659', '9', '13', '4501', '13', '100.0000', '2º ANT OSCAR'), ('862', '9', '13', '4453', '13', '150.0000', 'SALDO OSCAR'), ('863', '7', '8', '4453', '13', '300.0000', 'PAGO JEOVANNY 1 1/2'), ('864', '7', '10', '4453', '13', '93.2400', 'MATERIAL'), ('865', '11', '15', '4509', '10', '3685.0000', 'F TOYOTA SENSOR DE VOLANTER'), ('866', '11', '16', '4467', '10', '50.0000', 'RECTIFICACION DE DISCO'), ('867', '11', '15', '4450', '10', '30.0000', 'TORNILLOS'), ('868', '11', '15', '4542', '10', '116.0000', 'R-63320 PLASTIACERO'), ('869', '11', '15', '4446', '10', '449.7000', 'F-23847 AUTOZONE PARRILLA'), ('870', '9', '13', '4404', '13', '200.0000', '2º ANT OSCAR'), ('1203', '6', '7', '4570', '13', '800.0000', 'PAGO MILO TAMAYO'), ('872', '9', '13', '4506', '13', '300.0000', '1º ANT OSCAR'), ('873', '9', '13', '4528', '13', '100.0000', '1º ANT OSCAR'), ('875', '9', '13', '4431', '13', '100.0000', 'PAGO OSCAR'), ('876', '6', '7', '4461', '13', '150.0000', '2º ANT JOSE LUIS'), ('877', '6', '7', '4486', '13', '250.0000', 'PAGO JOSE LUIS'), ('878', '7', '8', '4486', '13', '200.0000', 'PAGO JEOVANNY 1 PZ'), ('881', '7', '10', '4486', '13', '221.9100', 'COLOR Y RESINA'), ('882', '6', '7', '4505', '13', '350.0000', 'PAGO JOSE LUIS'), ('883', '7', '10', '4505', '13', '250.0000', 'PAGO JEOVANNY 1.25 PZS'), ('884', '7', '10', '4505', '13', '174.9600', 'COLOR Y RESINA'), ('885', '7', '53', '4505', '13', '50.0000', 'DETALLADO'), ('886', '8', '11', '4505', '13', '53.0000', 'LAVADO Y PULIDA 1 PZ'), ('887', '8', '12', '4505', '13', '26.5000', 'SHAMPOO-DESENGRASANTE-ABRILLANTADO'), ('888', '6', '7', '4429', '13', '50.0000', 'PAGO JOSE LUIS'), ('889', '11', '16', '4454', '10', '1750.0000', 'SUMINISTRO E INSTALACIÓN DE PANORÁMICO SR. DAVID (26-JUNIO-13)'), ('891', '7', '10', '4539', '13', '506.6900', 'F-31959 ESM ADHLER BLANCO'), ('892', '11', '16', '4439', '13', '1200.0000', 'PAGO CRISTOFER ( MECANICO )'), ('893', '11', '16', '4439', '13', '310.0000', 'PAGO ALEX,AGUA,FILOS DE SEGETA,WD'), ('894', '6', '7', '4389', '13', '100.0000', 'PAGO MIGUEL'), ('895', '6', '7', '4373', '13', '400.0000', 'PAGO MIGUEL'), ('896', '7', '10', '4373', '13', '300.0000', 'PAGO FRANCISCO 1.5 PZ'), ('897', '7', '10', '4373', '13', '327.2000', 'COLOR Y RESINA'), ('898', '6', '7', '4520', '13', '200.0000', '1º ANT MIGUEL'), ('899', '6', '7', '4495', '13', '250.0000', '1º ANT MIGUEL'), ('900', '6', '7', '4515', '13', '300.0000', 'PAGO MIGUEL'), ('901', '8', '11', '4515', '13', '64.5000', 'LAVADO Y PULIDO 1 1/2 PZ'), ('902', '8', '12', '4515', '13', '32.2500', 'SHAMPOO- DESENGRASANTE-ABRILLANTADO-PULIMENTO'), ('903', '7', '8', '4499', '13', '700.0000', 'PAGO FRANCISCO 3.5PZ'), ('904', '7', '10', '4499', '13', '525.7900', 'COLOR Y RESINA'), ('905', '8', '11', '4499', '13', '69.0000', 'PULIDA 3PZS'), ('906', '8', '12', '4499', '13', '34.5000', 'ABRILLANTADOR Y PULIMENTO'), ('907', '7', '8', '4523', '13', '150.0000', 'PAGO FRANCISCO 3/4 PZ\\n'), ('908', '7', '10', '4523', '13', '327.2000', 'COLOR Y RESINA'), ('909', '7', '8', '4500', '13', '250.0000', 'PAGO JUAN CARLOS1 1/4 PZ'), ('910', '7', '10', '4500', '13', '220.4200', 'COLOR Y RESINA'), ('911', '8', '11', '4500', '13', '53.0000', 'LAVADO Y PULIDO 1PZ'), ('912', '8', '12', '4500', '13', '26.5000', 'SHAMPOO-DESENGRASNATE- ABRILLANTADOR-PULIMENTOS'), ('913', '6', '7', '4416', '13', '300.0000', 'PAGO MILO'), ('914', '8', '11', '4416', '13', '99.0000', 'LAVADO-PULIDA 2PZS Y MOT'), ('915', '8', '12', '4416', '13', '38.0000', 'SHAMPOO-DESENGRASANTE-ABRILLANTADO-PULIMENTOS'), ('916', '6', '7', '4470', '13', '200.0000', '2º ANT JOSE LUIS'), ('917', '7', '8', '4470', '13', '750.0000', 'PAGO GEOVANNY 3.75 PZ'), ('918', '7', '10', '4470', '13', '328.3900', 'COLOR Y RESINA'), ('919', '6', '7', '4470', '13', '300.0000', 'SALDO JOSE LUIS'), ('920', '7', '8', '4389', '13', '750.0000', 'PAGO JUAN CARLOS 3.75 PZS'), ('921', '7', '10', '4389', '13', '731.7400', 'COLOR Y PINTURA'), ('922', '6', '7', '4389', '13', '100.0000', 'SALDO JOSE BALMACEDA'), ('923', '11', '15', '4506', '10', '239.7000', 'F-8390 COLISION (SOPORTE FRONTAL)'), ('924', '11', '15', '4506', '10', '573.0000', 'F-8380 REPUESTO Y SOPORTE 20-JUN-13'), ('925', '11', '15', '4404', '10', '54.0000', 'F-7897 CONSTITUCION MACHEA LADO RUEDA IZQ'), ('926', '11', '16', '4462', '10', '185.0000', 'F-7109 CONSTITUCION BALATA'), ('927', '11', '15', '4512', '10', '802.0000', 'F-7129 CONSTITUCION BUJIA Y REGULADOR'), ('928', '8', '11', '4389', '13', '76.0000', 'LAVADO Y PULIDO 2PZS'), ('929', '8', '12', '4389', '13', '38.0000', 'SHAMPOO-DESENGRASANTE-ABRILLANTADO Y PULIMENTOS'), ('930', '7', '8', '4461', '13', '500.0000', 'PAGO JUAN CARLOS 2.5 PZS'), ('931', '7', '10', '4461', '13', '387.0700', 'COLOR Y RESINA'), ('932', '8', '11', '4461', '13', '76.0000', 'LAVADO Y PULIDO 2PZS'), ('933', '8', '12', '4461', '13', '38.0000', 'SHAMPOO-DESENGRASANTE-ABRILLANTADOR-PULIMENTOS'), ('934', '6', '7', '4461', '13', '350.0000', 'SALDO JOSE LUIS'), ('935', '7', '8', '4451', '13', '650.0000', 'PAGO JUAN CARLOS 3.25 PZS'), ('936', '7', '10', '4451', '13', '466.3900', 'COLOR Y RESINA'), ('937', '8', '11', '4451', '13', '99.0000', 'LAVADO Y PULIDO 3 PZS'), ('938', '8', '12', '4451', '13', '49.5000', 'SHAMPOO-DESENGRASANTE-ABRILLANTADO Y PULIMENTOS'), ('939', '7', '8', '4491', '13', '550.0000', 'PAGO JUAN CARLOS 2.75 PZ'), ('940', '7', '10', '4491', '13', '529.7000', 'COLOR Y RESINA'), ('941', '7', '8', '4485', '13', '200.0000', 'PAGO JUAN CARLOS 1 PZ'), ('942', '7', '10', '4485', '13', '295.3200', 'COLOR Y RESINA'), ('945', '8', '12', '4485', '13', '26.5000', 'SHAMPOO-DESENGRASANTE-ABRILLANTADO Y PULIDO'), ('944', '8', '11', '4485', '13', '53.0000', 'LAVADO Y PULIDO'), ('946', '7', '8', '4524', '13', '50.0000', 'PAGO JUAN CARLOS 1/4 PZ'), ('947', '7', '10', '4524', '13', '7.4600', 'COLOR Y RESINA'), ('948', '7', '8', '4511', '13', '750.0000', 'PAGO JUAN CARLOS 3.75 PZS'), ('950', '7', '10', '4511', '13', '505.0700', 'COLOR Y RESINA'), ('951', '8', '11', '4511', '13', '230.0000', 'EST EXTERIOR'), ('952', '8', '12', '4511', '13', '115.0000', 'SHAMPOO-ABRILLANTADOR-DESENGRASANTE Y PULIMENTOS'), ('953', '7', '8', '4519', '13', '100.0000', 'PAGO JUAN CARLOS 1/2 PSZ'), ('954', '7', '10', '4519', '13', '24.6200', 'COLOR Y RESINA'), ('955', '8', '11', '4519', '13', '41.5000', 'LAVADO Y PULIDO 1/2 PZS'), ('958', '8', '12', '4519', '13', '20.7500', 'SHAMPOO-DESENGRASANTE-ABRILLANTADOR Y PULIMENTOS'), ('959', '7', '8', '4531', '13', '50.0000', 'PAGO JEOVANNY 1/4PZ'), ('960', '7', '10', '4531', '13', '13.1400', 'COLOR Y RESINA'), ('962', '7', '10', '4487', '13', '259.6700', 'COLOR Y RESINA'), ('965', '8', '12', '4487', '13', '26.5000', 'shampoo-abrillantador-desengrasante y pulimentos'), ('964', '8', '11', '4487', '13', '53.0000', 'LAVADO Y PULIDO 1 PZS'), ('966', '11', '15', '4528', '11', '345.0000', 'F-333137 (PENSIONES) KIT DE RETEN, JUEGO DE BALEROS'), ('967', '11', '15', '4528', '11', '240.0000', 'F-333272 PENSIONES (BALERO Y RETEN)'), ('968', '11', '15', '4454', '11', '1200.0000', 'S/F 1/2 USO RIN 16\\n'), ('969', '11', '15', '4454', '11', '550.0000', 'RIN 16 PZA 1/2 USO'), ('970', '11', '16', '4464', '10', '150.0000', 'F-14323 MERCADO DE LLANTAS (ALINEACION)\\n'), ('971', '11', '16', '4506', '10', '150.0000', 'F-14290 MERCADO DE LLANTAS (ALINEACION)'), ('972', '11', '16', '4389', '10', '150.0000', 'F-14288 MERCADO DE LLANTAS (ALINEACION)'), ('973', '11', '16', '4416', '10', '150.0000', 'F-14322 MERCADO DE LLANTAS (ALINEACION)'), ('974', '8', '11', '4380', '13', '99.0000', 'LAVADO Y PULIDO 3PZS'), ('975', '8', '12', '4380', '13', '49.5000', 'SHAMPOO-ABRILLANTADO-DESENGRASANTE Y PULIMENTOS'), ('977', '8', '11', '4486', '13', '76.0000', 'LAVADO-PULIDO 1 PZS Y MOT'), ('978', '8', '12', '4486', '13', '38.0000', 'SHAMPOO-DESENGRASANTE-ABRILLANTADOR-PULIMENTO'), ('979', '6', '7', '4459', '13', '150.0000', 'SALDO MILO'), ('980', '11', '15', '4528', '10', '137.0000', 'F-2127 BALERO'), ('1220', '6', '7', '4549', '13', '150.0000', 'PAGO CARLOS QUINTAL '), ('982', '6', '7', '4482', '13', '400.0000', '1º ANT MILO'), ('983', '6', '7', '4482', '13', '550.0000', '2º ANT MANUEL'), ('984', '6', '7', '4481', '13', '500.0000', '1º ANT MILO'), ('985', '6', '7', '4509', '13', '100.0000', 'PAGO MILO ( TALLER )'), ('986', '6', '7', '4435', '13', '300.0000', 'PAGO MILO'), ('989', '6', '7', '4435', '13', '450.0000', '2º ANT JAVIER LINARES'), ('990', '6', '7', '4495', '13', '100.0000', 'PAGO MILO (TALLER)'), ('991', '9', '13', '4495', '13', '200.0000', 'PAGO OSCAR'), ('992', '7', '8', '4495', '13', '600.0000', 'PAGO JEOVANNY 3PZ'), ('993', '7', '10', '4495', '13', '397.0000', 'COLOR Y RESINA'), ('995', '6', '7', '4506', '13', '150.0000', 'PAGO MILO'), ('996', '9', '13', '4506', '13', '200.0000', 'SALDO OSCAR'), ('997', '8', '11', '4506', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('998', '8', '12', '4506', '13', '15.0000', 'SHAMPOO'), ('999', '6', '7', '4506', '13', '400.0000', 'SALDO JOSE BALMACEDA'), ('1000', '6', '7', '4430', '13', '200.0000', 'SALDO MANUEL LINARES'), ('1001', '7', '8', '4430', '13', '300.0000', 'PAGO JEOVANNY 1.5 PZ'), ('1002', '7', '10', '4430', '13', '149.1200', 'COLOR Y RESINA'), ('1003', '6', '7', '4464', '13', '300.0000', 'SALDO MANUEL LINARES'), ('1004', '9', '13', '4464', '13', '150.0000', 'PAGO OSCAR'), ('1005', '7', '8', '4464', '13', '1150.0000', 'PAGO CARLOS QUINTAL 5 3/4 PZS'), ('1006', '7', '10', '4464', '13', '657.1100', 'COLOR Y RESINA'), ('1007', '8', '11', '4464', '13', '145.0000', 'LAVADO Y PULIDO 5 PZS'), ('1008', '8', '12', '4464', '13', '72.5000', 'SHAMPOO-ABRILLANTADOR-DESENGRASANTE-PULIMENTO'), ('1019', '6', '7', '4460', '13', '200.0000', 'SALDO MANUEL LINARES'), ('1011', '7', '10', '4460', '13', '592.1100', 'COLOR Y RESINA'), ('1012', '8', '11', '4460', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS'), ('1013', '8', '12', '4460', '13', '38.0000', 'SHAMPOO-ABRILLANTADOR-DESENGRASANTE-PULIMENTO'), ('1014', '7', '8', '4488', '13', '250.0000', '1 1/4 PZ'), ('1015', '7', '10', '4488', '13', '130.0400', 'COLOR Y RESINA'), ('1016', '7', '8', '4515', '13', '200.0000', 'PAGO EDUARDO MATOS'), ('1017', '7', '10', '4515', '13', '156.3700', 'COLOR Y RESINA'), ('1018', '7', '53', '4515', '13', '50.0000', 'PAGO EDUARDO MATOS'), ('1020', '6', '7', '4496', '13', '500.0000', '1º ANT MANUEL LINARES'), ('1021', '6', '7', '4439', '13', '200.0000', '2º ANT MANUEL LINARES'), ('1022', '6', '7', '4439', '13', '200.0000', '3º ANT JOSE BALMACEDA'), ('1023', '9', '13', '4439', '13', '150.0000', '5º ANT OSCAR'), ('1024', '6', '7', '4451', '13', '250.0000', '1º ANT JOSE BALMACEDA'), ('1026', '6', '7', '4543', '13', '550.0000', '1º ANT JOSE BALMACEDA'), ('1027', '6', '7', '4536', '13', '100.0000', 'PAGO JOSE BALMACEDA'), ('1028', '7', '8', '4536', '13', '100.0000', 'PAGO FRANCISCO 1/2 PZ'), ('1029', '7', '10', '4536', '13', '59.4600', 'COLOR Y RESINA'), ('1030', '8', '11', '4536', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ'), ('1031', '8', '12', '4536', '13', '26.5000', 'SHAMPOO-ABRILLANTADOR-DESENGRASANTE Y PULIMENTOS'), ('1032', '6', '7', '4466', '13', '300.0000', 'SALDO JOSE BALMACEDA'), ('1033', '7', '8', '4466', '13', '550.0000', 'PAGO JEOVANNY 2.75 PZ'), ('1034', '7', '10', '4466', '13', '254.8200', 'COLOR Y RESINA'), ('1035', '6', '7', '4404', '13', '100.0000', 'SALDO JOSE BALMACEDA'), ('1036', '9', '13', '4404', '13', '50.0000', '3º ANT OSCAR'), ('1037', '6', '7', '4454', '13', '700.0000', '3º ANT GASPAR MAGAÑA'), ('1038', '11', '15', '4496', '10', '5.8000', 'F-8989 CONST. (TAPON DE BPMBA Y ABRAZADERA)\\n'), ('1039', '11', '15', '4546', '10', '70.0000', '4 FOCOS'), ('1040', '6', '7', '4516', '13', '350.0000', '1º ANT GASPAR MAGAÑA'), ('1041', '6', '7', '4541', '13', '150.0000', '1º ANT GASPAR MAGAÑA'), ('1042', '6', '7', '4539', '13', '500.0000', '1º ANT GASPAR MAGAÑA'), ('1043', '7', '8', '4539', '13', '550.0000', 'PAGO CARLOS QUINTAL 2 3/4 PZS'), ('1044', '7', '10', '4539', '13', '230.5000', 'COLOR Y RESINA'), ('1045', '9', '13', '4528', '13', '200.0000', 'PAGO OSCAR'), ('1046', '9', '13', '4389', '13', '200.0000', 'PAGO OSCAR'), ('1368', '9', '13', '4530', '13', '200.0000', '1º ANT OSCA'), ('1049', '9', '13', '4545', '13', '100.0000', '1º ANT OSCAR'), ('1050', '6', '7', '4520', '13', '200.0000', 'PAGO SERGIO'), ('1051', '6', '7', '4520', '13', '250.0000', 'PAGO MIGUEL'), ('1052', '6', '7', '4542', '13', '400.0000', 'PAGO JAVIER LINARES'), ('1053', '7', '8', '4542', '13', '300.0000', 'PAGO JUAN CARLOS 1.5PZ'), ('1054', '7', '10', '4542', '13', '119.6300', 'COLOR Y RESINA'), ('1055', '8', '11', '4542', '13', '64.5000', 'LAVADOY PULIDO 1 1/2 PZ'), ('1056', '8', '12', '4542', '13', '32.2500', 'SHAMPOO-ABRILLANTADOR-DESENGRASANTE-PULIMENTOS'), ('1057', '7', '8', '4450', '13', '1350.0000', 'PAGO FRANCISCO 6.75PZS'), ('1058', '7', '10', '4450', '13', '1274.7200', 'COLOR Y RESINA'), ('1059', '7', '8', '4518', '13', '250.0000', 'PAGO FRANCISCO 1 .25 PZ'), ('1060', '7', '10', '4518', '13', '297.1200', 'COLOR Y RESINA'), ('1061', '7', '53', '4518', '13', '50.0000', 'DETALLADO'), ('1062', '7', '8', '4537', '13', '100.0000', 'PAOG JUAN CARLOS 1/2 PZ'), ('1063', '7', '10', '4537', '13', '77.7500', 'COLOR Y RESINA'), ('1064', '8', '11', '4537', '13', '53.0000', 'LAVADO Y PULIDO 1 PZS'), ('1065', '8', '12', '4537', '13', '26.5000', 'SHAMPOO-ABRILLNATADOR-DESENGRASANTE-PULIMENTO'), ('1066', '7', '8', '4538', '13', '100.0000', 'PAGO JUAN CARLOS 1/2 PZ'), ('1067', '7', '10', '4538', '13', '84.1900', 'COLOR Y RESINA'), ('1068', '8', '11', '4538', '13', '41.5000', 'LAVADO Y PULIDO 1/2 PZ'), ('1069', '8', '12', '4538', '13', '20.7500', 'SAMPOO-ABRILLANTADOR-DESENGRASANTEY PULIMENTOS'), ('1070', '7', '8', '4548', '13', '100.0000', 'PAGO JUAN CARLOS 1/2 PZ'), ('1071', '7', '10', '4548', '13', '125.8900', 'SHAMPOO-DESENGRASANTE-ABRILLANTASDO-PULIMENTOS'), ('1072', '8', '11', '4548', '13', '53.0000', 'LAVADO Y PULIDO 1PZ'), ('1073', '8', '12', '4548', '13', '26.5000', 'SHAMPOO-ABRILLANTADOR-DESENGRASANTE-PULIMENTOS'), ('1074', '7', '8', '4549', '13', '400.0000', 'PAGO CARLOS QUINTAL 2 PZS'), ('1075', '7', '10', '4549', '13', '165.0800', 'COLOR Y RESINA'), ('1076', '7', '8', '4520', '13', '20.0000', 'PAGO GEOVANNY 1PZ'), ('1077', '7', '10', '4520', '13', '107.2000', 'COLOR Y RESINA'), ('1078', '8', '11', '4520', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('1079', '8', '12', '4520', '13', '15.0000', 'SHAMPOO'), ('1080', '7', '8', '4527', '13', '350.0000', 'PAGO GEOVANNY 1.75PZ'), ('1081', '7', '10', '4527', '13', '258.2300', 'COLOR Y RESINA'), ('1082', '8', '11', '4527', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS'), ('1083', '8', '12', '4527', '13', '38.0000', 'SHAMPOO-DESENGRASANTE-ABRILLANTO Y PULIMENTO'), ('1084', '8', '11', '4453', '13', '230.0000', 'EST EXTERIOR'), ('1085', '8', '12', '4453', '13', '115.0000', 'SHAMPOO-ABRILLANTADOR-DESENGRASANTE Y PULIMENTOS'), ('1086', '8', '11', '4470', '13', '76.0000', 'LAVADO YPULIDO 2 PZS'), ('1087', '8', '12', '4470', '13', '38.0000', 'SHAMPOO-ABRILLANTADOR-DESENGRASANTE Y PULIMENTO'), ('1088', '8', '11', '4518', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ'), ('1089', '8', '12', '4518', '13', '26.5000', 'SHAMPOO Y PULIMENTOS'), ('1090', '8', '11', '4450', '13', '145.0000', 'LAVADO Y PULIDO 5PZ'), ('1091', '8', '12', '4450', '13', '72.5000', 'SHAMPOO-ABRILLANTADO-DESENGRASANTE Y PULIMENTO'), ('1092', '8', '11', '4393', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('1093', '8', '12', '4393', '13', '15.0000', 'SHAMPOO'), ('1094', '8', '12', '4393', '13', '15.0000', 'SHAMPOO'), ('1095', '11', '15', '4467', '13', '24.0000', 'remache ybroca'), ('1096', '11', '15', '4467', '13', '74.4500', 'manguera fuel line'), ('1097', '6', '7', '4545', '13', '200.0000', 'PAGO MILO '), ('1379', '6', '7', '4545', '13', '300.0000', '1° ANT JAVIER LINARES'), ('1099', '6', '7', '4545', '13', '150.0000', 'PAGO MILO TALLER'), ('1100', '6', '7', '4521', '13', '100.0000', 'PAGO MILO TALLER'), ('1101', '6', '7', '4521', '13', '250.0000', '2º ANT JOSE BALMASEDA'), ('1102', '6', '7', '4521', '13', '250.0000', '1º ANT JOSE BALMACEDA'), ('1103', '9', '13', '4545', '13', '200.0000', 'SALDO OSCAR'), ('1104', '6', '7', '4496', '13', '150.0000', 'SALDO MANUEL LINARES'), ('1105', '6', '7', '4547', '13', '500.0000', '1º ANT MANUEL LINARES'), ('1106', '8', '12', '4496', '13', '99.0000', 'LAVADO-PULIDO 2 PZS Y MOTR'), ('1107', '7', '8', '4496', '13', '400.0000', 'PAGO JUAN CARLOS 2 PZS'), ('1108', '7', '10', '4496', '13', '237.9200', 'COLOR Y RESINA'), ('1109', '8', '12', '4496', '13', '49.5000', 'SHAMPOO-DESENGRASANTE-ABRILANTADOR Y PULIMENTOS'), ('1110', '6', '7', '4533', '13', '400.0000', 'PAGO MANUEL LINARES'), ('1111', '7', '8', '4533', '13', '300.0000', 'PAGO JUAN CARLOS 1.5 PZ'), ('1112', '7', '10', '4533', '13', '359.6600', 'COLOR Y RESINA'), ('1113', '8', '11', '4533', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS'), ('1114', '8', '12', '4533', '13', '38.0000', 'SHAMPOO-ABRILLANTADOR Y PULIMENTOS'), ('1115', '6', '7', '4539', '13', '200.0000', 'PAGO MANUEL LINARES')\");\n\t\t$this->db->simple_query(\"INSERT INTO `gastos_vehiculo` VALUES ('1116', '8', '11', '4539', '13', '200.0000', 'EST EXTERIOR'), ('1117', '8', '12', '4539', '13', '100.0000', 'SHAMPOO-DESENGRASANTE-ABRILLANTADOR Y PULIMENTOS'), ('1118', '6', '7', '4529', '13', '400.0000', 'PAGO JOSE BALMACEDA'), ('1119', '7', '8', '4529', '13', '300.0000', 'PAGO JUAN CARLOS 1.5 PZS'), ('1120', '7', '10', '4529', '13', '233.1900', 'COLOR Y RESINA'), ('1121', '8', '11', '4529', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ'), ('1122', '8', '12', '4529', '13', '26.5000', 'SHAMPOO-ABRILLANTADOR Y PULIMENTOS'), ('1123', '11', '16', '4545', '13', '150.0000', 'ALINACION RUEDAS DELANTERA 8 MERCADO DE LLANTAS )'), ('1124', '11', '16', '4540', '13', '600.0000', 'VACIO CARGA A/A DE GAS DOBLE DIFUSION'), ('1125', '11', '16', '4467', '13', '150.0000', 'ALINEACION DE RUEDAS DELANTERA ( MERCADO DE LLANTAS )'), ('1126', '11', '16', '4482', '13', '380.0000', 'VACIA Y CARGA DE GAS A/A'), ('1127', '11', '16', '4416', '10', '380.0000', 'A/A'), ('1128', '11', '16', '4482', '10', '380.0000', 'A/A'), ('3184', '11', '16', '4606', '13', '524.0000', 'EMBLEMA'), ('1130', '11', '16', '4496', '10', '380.0000', 'A/A'), ('1131', '9', '13', '4528', '13', '100.0000', 'SALDO OSCAR'), ('1132', '11', '16', '4521', '10', '380.0000', 'A/A'), ('1133', '9', '13', '4467', '13', '250.0000', 'PAGO OSCAR'), ('1134', '6', '7', '4467', '13', '300.0000', '1º ANT JOSE LUIS'), ('1135', '9', '13', '4481', '13', '200.0000', 'PAGO OSCAR'), ('1136', '7', '8', '4481', '13', '800.0000', 'PAGO JUAN CARLOS 4 PZS'), ('1137', '7', '10', '4481', '13', '570.8200', 'COLOR Y RESINA'), ('1138', '8', '11', '4481', '13', '110.5000', 'PULIDO 3 1/2 PZS'), ('1139', '8', '12', '4481', '13', '55.2500', 'PULIMENTOS'), ('1140', '9', '13', '4551', '13', '250.0000', 'PAGO OSCAR'), ('1141', '8', '11', '4546', '13', '250.0000', 'PAGO OSCAR'), ('1142', '6', '7', '4546', '13', '100.0000', 'PAGO JOSE LUIS '), ('1143', '7', '8', '4546', '13', '400.0000', 'PAGO JEOVANNY'), ('1144', '7', '10', '4546', '13', '345.3900', 'COLOR Y RESINA'), ('1145', '8', '11', '4546', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS'), ('1146', '8', '12', '4546', '13', '38.0000', 'COLOR Y RESINA'), ('1147', '6', '7', '4507', '13', '500.0000', '1º ANT JAVIER LINARES'), ('1148', '6', '7', '4482', '13', '100.0000', 'SALDO JOSE LUIS'), ('1149', '7', '8', '4482', '13', '800.0000', 'PAGO JUAN CARLOS'), ('1150', '7', '10', '4482', '13', '382.7800', 'COLOR Y RESINA'), ('1151', '8', '11', '4482', '13', '122.0000', 'LAVADO Y PULIDA3 PZS Y MOT'), ('1152', '8', '12', '4482', '13', '61.0000', 'SHAMPOO-DESENGRASANTE Y PULIMENTOS'), ('1153', '11', '16', '4412', '13', '400.0000', 'HERRERO'), ('1154', '11', '15', '4412', '13', '200.0000', 'VALE DE GASOLINA'), ('1155', '6', '7', '4435', '13', '100.0000', 'SALDO JAVIER LINARES'), ('1206', '7', '8', '4435', '13', '500.0000', 'pago jeovanny 2.5pz'), ('1157', '6', '7', '4420', '13', '300.0000', 'PAGO CAROS QUINTAL'), ('1159', '11', '15', '4446', '13', '300.0000', 'FOCOS'), ('1160', '7', '10', '4446', '13', '100.0000', 'PAGO FRANCISCO 1/2 PZS'), ('1161', '7', '10', '4446', '13', '60.6700', 'COLOR Y RESINA'), ('1162', '7', '8', '4420', '13', '300.0000', 'PAGO CARLOS QUINTAL1 1/2 PZ'), ('1163', '7', '10', '4420', '13', '188.3300', 'COLOR Y RESINA'), ('1164', '8', '11', '4420', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS'), ('1165', '8', '12', '4420', '13', '38.0000', 'SHAMPOO Y PULIMENTOS'), ('1166', '7', '8', '4541', '13', '200.0000', 'PAGO JEOVANNY 1 PZ'), ('1167', '7', '10', '4541', '13', '49.2500', 'COLOR Y RESINA'), ('1168', '7', '8', '4539', '13', '800.0000', 'PAGO EDUARDO 4 PZS CAJA DE TRABAJO'), ('1169', '7', '10', '4539', '13', '1367.8199', 'PINTURA Y COLOR'), ('1170', '8', '11', '4415', '13', '189.5000', 'ESTETICA INTERIOR'), ('1171', '8', '12', '4415', '13', '94.7500', 'MATERIAL'), ('1190', '9', '13', '4552', '13', '200.0000', 'PAGO OSCAR'), ('1173', '6', '7', '4450', '13', '650.0000', 'SALDO JOSE LUIS'), ('1174', '8', '11', '4430', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('1175', '8', '12', '4430', '13', '15.0000', 'SHAMPOO'), ('1176', '11', '16', '4446', '11', '150.0000', 'ALINEACION'), ('1177', '8', '11', '4453', '13', '53.0000', 'LAVADO YPULIDO 1 PZ'), ('1178', '8', '12', '4453', '13', '26.5000', 'SHAMPOO Y PULIMENTOS'), ('1179', '8', '11', '4553', '13', '64.5000', 'LAVADO Y PULIDO 2 1/2 PZ'), ('1180', '8', '12', '4553', '13', '32.2500', 'SHAMPOO Y PULIMENTOS'), ('1181', '6', '7', '4553', '13', '300.0000', 'PAGO JAVIER LINARES'), ('1182', '7', '8', '4553', '13', '300.0000', 'PAGO FRANCISCO 1.5 PZS'), ('1183', '7', '10', '4553', '13', '108.5100', 'COLOR Y RESINA'), ('1184', '7', '8', '4550', '13', '300.0000', 'PAGO JEOVANNY 1.5PZ'), ('1185', '7', '10', '4550', '13', '150.9300', 'COLOR Y RESINA'), ('1186', '8', '11', '4550', '13', '230.0000', 'EST EXTERIOR'), ('1187', '8', '12', '4550', '13', '115.0000', 'SHAMPOO-DESNGRASANTE-ABRILLANTADO-PULIMENTOS'), ('1188', '8', '11', '4459', '13', '287.5000', 'EST EXTERIOR'), ('1189', '8', '12', '4459', '13', '143.7500', 'SHAMPOO-DESENGRASANTE-ABRILLANTADOR Y PULIMENTOS'), ('1191', '8', '11', '4552', '13', '30.0000', 'LAVADO Y ASPIRADO '), ('1192', '8', '12', '4552', '13', '15.0000', 'SHAMPOO'), ('1193', '11', '16', '4528', '13', '181.0000', 'balero rueda trasera'), ('1194', '11', '16', '4528', '13', '23.0000', 'reten rueda trasera'), ('1195', '8', '12', '4528', '13', '100.0000', 'ENCERADO Y MOTOR'), ('1196', '8', '12', '4528', '13', '50.0000', 'PULIMENTOS'), ('1197', '6', '7', '4561', '13', '700.0000', 'PAGO MILO TAMAYO'), ('1198', '7', '8', '4561', '13', '450.0000', 'PAGO FRANCISCO 2.25 PZ'), ('1199', '7', '10', '4561', '13', '276.1400', 'COLOR Y RESINA'), ('1200', '8', '11', '4561', '13', '99.0000', 'LAVADO Y PULIDO 3 PZ'), ('1201', '8', '12', '4561', '13', '49.5000', 'SHAMPOO Y PULIMENTOS'), ('1202', '9', '13', '4512', '13', '350.0000', '1º ant oscar'), ('1204', '8', '11', '4435', '13', '99.0000', 'lavado y pulido ,mot'), ('1205', '8', '12', '4435', '13', '49.5000', 'shampoo y pulimentos'), ('1207', '7', '10', '4435', '13', '533.9100', 'COLOR Y RESINA'), ('1208', '6', '7', '4555', '13', '400.0000', 'PAGO JAVIER LINARES'), ('1209', '6', '7', '4555', '13', '400.0000', 'PAGO SERGIO'), ('1210', '7', '8', '4555', '13', '400.0000', 'PAGO JEOVANNY 2 PZS'), ('1211', '7', '10', '4555', '13', '271.0000', 'COLOR Y RESINA'), ('1212', '6', '7', '4572', '13', '200.0000', 'PAGO MANUEL'), ('1213', '9', '13', '4572', '13', '300.0000', 'PAGO OSCAR'), ('1214', '8', '11', '4572', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('1215', '8', '12', '4572', '13', '15.0000', 'SHAMPOO\\n'), ('1216', '9', '13', '4557', '13', '250.0000', 'PAGO OSCAR'), ('1218', '8', '11', '4557', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('1219', '8', '12', '4557', '13', '15.0000', 'shampoo'), ('1221', '6', '7', '4581', '13', '400.0000', 'PAGO ERMILO TAMAYO'), ('1222', '7', '10', '4581', '13', '200.0000', 'PAGO FRANCISCO 1 PZ'), ('1223', '7', '10', '4581', '13', '203.0900', 'COLOR Y RESINA'), ('1224', '8', '11', '4581', '13', '53.0000', 'LAVADO Y PULIDA 1 PZ'), ('1225', '6', '7', '4454', '13', '500.0000', '4º ANT GASPAR MAGAÑA'), ('1226', '6', '7', '4454', '13', '300.0000', 'PAGO ANGEL'), ('1227', '7', '8', '4454', '13', '1800.0000', 'PAGO CARLOS QUINTAL 9 PZS'), ('1228', '7', '10', '4454', '13', '1076.2900', 'COLOR Y RESINA'), ('1229', '7', '53', '4454', '13', '150.0000', 'DETALLADO'), ('1230', '11', '15', '4454', '13', '3879.0000', 'dos llantas ( llanticlub )'), ('1231', '6', '7', '4576', '13', '500.0000', 'PAGO JOSE LUIS'), ('1232', '7', '8', '4576', '13', '500.0000', 'PAGO JEOVANNY 2.5 PZS'), ('1233', '7', '10', '4576', '13', '445.0200', 'COLOR Y RESINA'), ('1234', '8', '11', '4576', '13', '201.0000', 'EST EXTERIOR'), ('1235', '8', '12', '4576', '13', '100.5000', 'SHAMPOO-DESENGRASANTE-ABRILLANTADOR Y PULIMENTOS'), ('1236', '9', '13', '4576', '13', '150.0000', '1º ANT OSCAR'), ('1237', '11', '15', '4576', '13', '388.5000', 'SENSOR DE VELOCIDADES'), ('1569', '11', '15', '4576', '13', '1630.7100', 'RETEN SIGUEÑAL /BANDA DE TIEMPO Y POLEA /FILTRO DE AIRE ACEITE GASOLINA /BUJIAS /ACEITE/CARBUCLIN/SILICON/BANDA DE CLIMA Y ALTERNADOR'), ('1239', '6', '7', '4562', '13', '450.0000', 'PAGO JOSE BALMACEDA'), ('1240', '7', '8', '4562', '13', '1850.0000', 'PAGO FRANCISCO 9.25PZS'), ('1241', '7', '10', '4562', '13', '1424.1100', 'COLOR Y RESINA'), ('1242', '6', '7', '4568', '13', '550.0000', '1º ANT JOSE BALMACEDA'), ('1243', '6', '7', '4568', '13', '100.0000', '2º ANT MANUEL LINARES'), ('1244', '6', '7', '4568', '13', '100.0000', 'SALDO JOSE BALMACEDA'), ('1245', '7', '8', '4568', '13', '700.0000', 'PAGO JUAN CARLOS 3.5'), ('1246', '7', '10', '4568', '13', '510.7000', 'COLOR Y RESINA'), ('1247', '8', '11', '4568', '13', '122.0000', 'LAVADO Y PULIDO 3PZS'), ('1248', '8', '12', '4568', '13', '61.0000', 'SHAMPOO-PULIMENTOS'), ('1249', '11', '16', '4568', '13', '52.2000', 'Tarifa valuación Audatex'), ('1250', '9', '13', '4587', '13', '100.0000', 'PAGO OSCAR ( MAPFRE )'), ('1251', '9', '13', '4578', '13', '400.0000', 'PAGO OSCAR'), ('1252', '8', '11', '4578', '13', '201.0000', 'ESTETICA EXTERIOR'), ('1253', '8', '12', '4578', '13', '100.5000', 'SHAMPOO-ABRILLANTADOR Y PULIMENTOS'), ('1254', '9', '13', '4571', '13', '100.0000', 'PAGO OSCAR'), ('1255', '8', '11', '4571', '13', '53.0000', 'LAVADO Y ASPIRADO MOTOR'), ('1256', '11', '15', '4571', '13', '202.0000', 'KIT DE AFINACION MENOR ( NAPA )\\n'), ('1257', '6', '7', '4592', '13', '350.0000', 'PAGO JOSE LUIS'), ('1258', '7', '8', '4592', '13', '200.0000', 'PAGO JEOVANNY 1 PZ'), ('1259', '7', '10', '4592', '13', '289.4100', 'COLOR Y RESINA'), ('1260', '8', '11', '4592', '13', '76.0000', 'LAVADO Y PULIDO 1 LAV DE MOTOR'), ('1261', '8', '12', '4592', '13', '38.0000', 'SHAMPOO- ABRILLANTADO-PULIMENTO'), ('1262', '6', '7', '4574', '13', '150.0000', 'PAGO JOSE LUIS'), ('1263', '7', '8', '4574', '13', '400.0000', 'PAGO FRANCISCO 2 PZS'), ('1264', '7', '10', '4574', '13', '392.4700', 'COLOR Y RESINA'), ('1265', '8', '11', '4574', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS'), ('1266', '8', '12', '4574', '13', '38.0000', 'SHAMPOO-ABILLANTADOR-Y PULIMENTO'), ('1267', '11', '16', '4576', '13', '450.0000', 'ESCANEO ( RECUPERACION DE CODIGOS )'), ('1268', '6', '7', '4556', '13', '300.0000', 'PAGO JAVIER LINARES'), ('1269', '7', '8', '4556', '13', '450.0000', 'PAGO CARLOS QUINTAL 2 1/4'), ('1270', '7', '10', '4556', '13', '569.6300', 'COLOR Y RESINA'), ('1271', '8', '11', '4556', '13', '99.0000', 'LAVADO Y PULIDO 2 PZS MOTOR'), ('1272', '8', '12', '4556', '13', '49.5000', 'SHAMPO-ABRILLANTADOR-PULIMENTO'), ('1273', '6', '7', '4578', '13', '500.0000', 'PAGO JAVIER LINARES'), ('1274', '7', '8', '4578', '13', '1100.0000', 'PAGO JEOVANNY 5.5 PZ'), ('1275', '7', '10', '4578', '13', '320.3200', 'COLOR Y RESINA'), ('1276', '11', '15', '4578', '13', '60.0000', 'RETEN DE SIGUEÑAL'), ('1277', '11', '15', '4578', '13', '665.0200', 'BANDA DE TIEMPO Y POLEA ( ONSTITUCION'), ('1278', '11', '15', '4578', '13', '789.4000', 'KIT DE AFINACION MAYOR'), ('1279', '11', '16', '4578', '13', '450.0000', 'ESCANEO ( REPROGRAMACION DE CUERPO DE ACELERERACION )'), ('1280', '6', '7', '4564', '13', '250.0000', '1º ANT JAVIER LINARES'), ('1281', '6', '7', '4564', '13', '400.0000', '2º ANT JAVIER LINARES'), ('1282', '11', '16', '4564', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('1283', '6', '7', '4575', '13', '400.0000', '1º ANT JAVIER LINARES'), ('1284', '6', '7', '4575', '13', '350.0000', 'PAGO JOSE BALMACEDE'), ('1285', '6', '7', '4583', '13', '250.0000', 'PAGO JAVIER LINARES'), ('1286', '7', '8', '4583', '13', '100.0000', 'PAGO FRANCISCO 1/2 PZ'), ('1287', '7', '10', '4583', '13', '236.5200', 'COLOR Y RESINA'), ('1288', '8', '11', '4583', '13', '53.0000', 'LAVADOY PULIDA 1 PZ'), ('1289', '8', '12', '4583', '13', '26.5000', 'SHAMPOO ABRILLANTADOR-PULIMENTOS'), ('1294', '7', '8', '4590', '13', '100.0000', 'PAGO FRANCISCO 1/2 PZ'), ('1293', '7', '53', '4590', '13', '50.0000', 'DETALLADO'), ('1296', '7', '8', '4560', '13', '300.0000', 'PAGO JUAN CARLOS 1.5 PZ'), ('2837', '7', '10', '4590', '13', '26.3700', 'COLOR Y RESINA 14/7/13'), ('1297', '7', '10', '4560', '13', '122.6800', 'COLOR Y RESINA'), ('1298', '8', '11', '4560', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS'), ('1299', '8', '12', '4560', '13', '38.0000', 'SHAMPOO ABRILLANTADOR PULIMENTOS'), ('1300', '11', '16', '4560', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('1305', '7', '8', '4566', '13', '300.0000', 'PAGO JUAN CARLOS 3 PZS'), ('1302', '7', '10', '4566', '13', '158.8700', 'COLOR Y RESINA'), ('1303', '8', '11', '4566', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('1304', '8', '12', '4566', '13', '15.0000', 'SHAMPOO'), ('1306', '7', '8', '4577', '13', '900.0000', 'PAGO JUAN CARLOS 4.5 PZS'), ('1307', '7', '10', '4577', '13', '682.0600', 'COLOR Y RESINA'), ('1308', '8', '11', '4577', '13', '201.0000', 'ESTETICA EXTERIOR'), ('1309', '8', '12', '4577', '13', '100.5000', 'SHAMPOO DESENGRASANTE Y PULIMENTOS'), ('1311', '6', '7', '4577', '13', '550.0000', 'PAGO JOSE LUIS'), ('1312', '11', '15', '4577', '13', '388.5000', 'SENSOR DE VELOCIDADES'), ('1315', '7', '8', '4516', '13', '1000.0000', 'PAGO JEPVANNY 5PZS'), ('1314', '11', '16', '4577', '13', '450.0000', 'ESCANEO RECUPERACION DE CODIGOS'), ('1316', '7', '10', '4516', '13', '909.6500', 'COLOR Y RESINA'), ('1317', '11', '16', '4516', '13', '150.0000', 'ALINEACION ( MERCADO DE LLANTAS )'), ('1318', '11', '16', '4516', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('1319', '6', '7', '4516', '13', '350.0000', 'SALDO GASPAR MAGAÑA'), ('1320', '6', '7', '4516', '13', '250.0000', 'PAGO MANUEL LINARES'), ('1321', '8', '11', '4516', '13', '145.0000', 'LAVADO Y PULIDO 5 PZS'), ('1322', '8', '12', '4516', '13', '75.5000', 'SHAMPOO Y PULIMENTOS'), ('1323', '6', '7', '4586', '13', '100.0000', 'PAGO CARLOS QUINTAL'), ('1324', '7', '8', '4586', '13', '200.0000', 'PAGO CARLOS QUINTAL 1PZ'), ('1325', '7', '10', '4586', '13', '165.1000', 'COLOR Y RESINA'), ('1326', '8', '11', '4586', '13', '53.0000', 'LAVADO Y PULIDA 1PZ'), ('1327', '8', '12', '4586', '13', '26.5000', 'SHAMPOO'), ('1328', '6', '7', '4586', '13', '300.0000', 'PAGO JOSE BALMACEDA'), ('1329', '6', '7', '4610', '13', '200.0000', 'PAGO MILO'), ('1330', '6', '7', '4588', '13', '800.0000', '1º ANT MILO'), ('1331', '6', '7', '4599', '13', '650.0000', 'PAGO MILO'), ('1332', '7', '8', '4599', '13', '200.0000', 'PAGO JEOVANNY 1 PZ'), ('1333', '7', '10', '4599', '13', '273.1200', 'COLOR Y RESINA'), ('1334', '8', '11', '4599', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ'), ('1335', '6', '7', '4605', '13', '500.0000', 'PAGO MILO'), ('1336', '7', '8', '4605', '13', '300.0000', 'PAGO CARLOS QUINTAL 1 1/2 PZ'), ('1337', '7', '10', '4605', '13', '254.8400', 'COLOR Y RESINA'), ('1338', '8', '11', '4605', '13', '76.0000', 'LAVADO PULIDO 1 PZ MOTOR'), ('1339', '6', '7', '4547', '13', '300.0000', 'SALDO MANUEL LINARES'), ('1340', '9', '13', '4547', '13', '200.0000', '1° ANT OSCAR'), ('1341', '7', '8', '4547', '13', '350.0000', 'PAGO CARLOS QUINTAL 1 1/4 PZA'), ('1342', '8', '11', '4547', '13', '99.0000', 'LAVADO Y PULIDO 3'), ('1343', '8', '12', '4547', '13', '49.5000', 'LAVADO Y PULIDO 3 PZS'), ('1347', '6', '7', '4611', '13', '350.0000', '1° ANT MANUEL LINARES'), ('1345', '6', '7', '4604', '13', '250.0000', '1° ANT MANUEL LINARES\\n'), ('1346', '6', '7', '4604', '13', '200.0000', '2° ANT LUIS VASQUEZ'), ('1348', '6', '7', '4541', '13', '100.0000', 'PAGO MANUEL LINARES'), ('1349', '6', '7', '4541', '13', '100.0000', 'SALDO GASPAR MAGAÑA'), ('1350', '8', '11', '4541', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ'), ('1351', '8', '12', '4541', '13', '26.5000', 'SHAMPOO PULIMENTOS'), ('1352', '6', '7', '4573', '13', '100.0000', 'PAGO MANUEL'), ('1353', '9', '13', '4573', '13', '200.0000', 'PAGO OSCAR'), ('1354', '8', '11', '4573', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('1355', '8', '12', '4573', '13', '15.0000', 'SHAMPOO'), ('1356', '6', '7', '4521', '13', '150.0000', 'SALDO JOSE BALMASEDA'), ('1357', '7', '8', '4521', '13', '500.0000', 'PAGO FRANCISCO 2.5 PZS'), ('1358', '7', '10', '4521', '13', '549.7900', 'COLOR Y RESINA'), ('1359', '7', '8', '4622', '13', '200.0000', 'PAGO ANGEL 1 PZ'), ('1360', '7', '10', '4622', '13', '235.5700', 'COLOR Y RESINA\\n'), ('1367', '6', '7', '4530', '13', '200.0000', 'PAGO JOSE BALMACEDA'), ('1369', '6', '7', '4530', '13', '300.0000', 'PAGO GASPAR MAGAÑA'), ('1363', '11', '16', '4530', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('1364', '11', '15', '4530', '13', '115.0000', 'MACHETA ( CONSTITUCION )'), ('1365', '11', '16', '4530', '13', '1500.0000', 'HECHURA DE LLAVE'), ('1366', '11', '16', '4530', '13', '150.0000', 'ALINEACION (MERCADO DE LLANTAS )'), ('1370', '11', '16', '4570', '10', '375.0000', 'F-95227 DE MK (ENDURECEDOR Y REDUCTOR)'), ('1371', '6', '7', '4543', '13', '400.0000', '2° ANT JOSE BALMACEDA\\n'), ('1372', '9', '13', '4543', '13', '400.0000', 'PAGO OSCAR\\n'), ('1374', '6', '7', '4617', '13', '350.0000', 'PAGO JOSE BALMACEDA'), ('1375', '6', '7', '4621', '13', '400.0000', '1° ANT JOSE BALMACEDA'), ('1380', '6', '7', '4545', '13', '200.0000', 'SALDO JAVIER LINARES'), ('1382', '7', '8', '4545', '13', '400.0000', 'PAGO CARLOS QUINTAL 2 PZS\\n'), ('1383', '7', '10', '4545', '13', '199.4000', 'COLOR Y RESINA'), ('1384', '6', '7', '4543', '13', '200.0000', 'PAGO MILO ( TALLER )'), ('1385', '6', '7', '4598', '13', '600.0000', 'PAGO JAVIER LINARES'), ('1386', '7', '8', '4598', '13', '400.0000', 'PAGO JUAN CARLOS 2 PZS'), ('1387', '7', '10', '4598', '13', '320.0000', 'COLOR Y RESINA'), ('1388', '6', '7', '4596', '13', '250.0000', 'PAGO JAVIER LINARES'), ('1389', '7', '8', '4596', '13', '200.0000', 'PAGO UNA PZ ANGEL ESCOBEDO'), ('1390', '7', '10', '4596', '13', '138.0000', 'COLOR Y RESINA'), ('1391', '8', '11', '4596', '13', '53.0000', 'LAVADO Y PULIDA 1 PZA'), ('1392', '8', '12', '4596', '13', '26.5000', 'SHAMPOO-PULIMENTO'), ('1393', '8', '11', '4598', '13', '99.0000', 'LAVADO Y PULIDA 3ZS'), ('1394', '8', '12', '4598', '13', '49.5000', 'SHAMPOO Y PULIMENTO'), ('1395', '6', '7', '4613', '13', '650.0000', 'PAGO JAVIER LINARES'), ('1396', '6', '7', '4507', '13', '250.0000', 'SALDO JAVIER LINARES'), ('1397', '7', '8', '4507', '13', '700.0000', 'PAGO CARLOS QUINTAL'), ('1398', '7', '10', '4507', '13', '972.5000', 'COLOR Y RESINA'), ('1399', '8', '11', '4545', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS'), ('1400', '8', '12', '4545', '13', '38.0000', 'SHAMPOO PULIMENTOS'), ('1401', '8', '11', '4495', '13', '122.0000', 'LAVADO PULIDO 3PZS Y LAV MOT'), ('1402', '8', '12', '4495', '13', '61.0000', 'SHAMPOO DESENGRASANTE Y PULIMENTO'), ('1403', '6', '7', '4593', '13', '200.0000', 'PAGO JOSE BALMACEDA'), ('1404', '7', '8', '4593', '13', '300.0000', 'PAGO FRANCISCO 1 1/2 PZ'), ('1407', '8', '11', '4593', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('1406', '7', '10', '4593', '13', '173.4000', 'COLOR Y RESINA'), ('2838', '7', '10', '4603', '13', '281.9700', 'COLOR Y RESINA'), ('1409', '8', '12', '4593', '13', '15.0000', 'SHAMPOO'), ('1415', '8', '12', '4466', '13', '49.5000', 'SHAMPOO Y PULIMENTOS'), ('1414', '8', '11', '4466', '13', '99.0000', 'lavado y pulido 3 pzs'), ('1412', '11', '16', '4466', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('1413', '11', '16', '4466', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('1416', '6', '7', '4606', '13', '200.0000', 'PAO JEOVANNY '), ('1417', '7', '8', '4606', '13', '250.0000', 'PAGO JEOVANNY 1.25 PZS'), ('1418', '7', '10', '4606', '13', '311.8000', 'COLOR Y RESIAN'), ('1419', '8', '11', '4606', '13', '230.0000', 'EST EXTERIOR'), ('1420', '8', '12', '4606', '13', '115.0000', 'SHAMPOO, DESENGRASANTE Y PULIMENTOS'), ('1421', '6', '7', '4539', '13', '100.0000', 'SALDO GASPAR MAGAÑA'), ('1422', '6', '7', '4591', '13', '150.0000', '1º ANT GASPAR MAGAÑA'), ('1423', '6', '7', '4591', '13', '150.0000', '2º ANT GASPAR MAGAÑA'), ('1424', '6', '7', '4614', '13', '450.0000', '1° ant gaspar magaña'), ('1425', '6', '7', '4614', '13', '300.0000', 'saldo gaspar magaña\\n'), ('1426', '7', '8', '4614', '13', '250.0000', 'pago juan carlos 1.25 pzs'), ('1427', '7', '10', '4614', '13', '300.6000', 'color y resina'), ('1428', '7', '53', '4614', '13', '100.0000', 'detallado'), ('1429', '8', '11', '4614', '13', '53.0000', 'lavado y pulido'), ('1430', '8', '12', '4614', '13', '26.5000', 'shampoo y pulimentos'), ('1431', '9', '13', '4579', '13', '150.0000', 'pago oscar'), ('1434', '9', '13', '4619', '13', '200.0000', '1° ant oscar'), ('1435', '9', '13', '4619', '13', '150.0000', 'saldo oscar'), ('1436', '9', '13', '4620', '13', '400.0000', 'pago oscar'), ('1437', '9', '13', '4569', '13', '150.0000', '1° ant oscar'), ('1438', '6', '7', '4467', '13', '200.0000', 'saldo jose luis'), ('1439', '7', '8', '4467', '13', '650.0000', 'PAGO CARLOS QUINTAL 3 1/4 PZ'), ('1440', '7', '10', '4467', '13', '517.7000', 'COLOR Y RESINA'), ('1441', '8', '11', '4467', '13', '99.0000', 'LAVADOY PULIDA 3PZS'), ('1442', '8', '12', '4467', '13', '49.5000', 'SHAMPOO Y PULIMENTOS'), ('1443', '11', '16', '4467', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('1444', '11', '15', '4467', '13', '78.0000', 'ANTICONGELANTE'), ('1445', '11', '15', '4467', '13', '46.0000', 'TORNILLOS'), ('1446', '6', '7', '4569', '13', '800.0000', '1º ANT JOSE LUIS'), ('1447', '7', '8', '4569', '13', '350.0000', 'PAGO ANGEL 1 3/4 PZ'), ('1448', '7', '10', '4569', '13', '397.2000', 'COLOR Y RESINA'), ('1449', '7', '53', '4569', '13', '50.0000', 'DETALLADO'), ('1450', '6', '7', '4603', '13', '400.0000', 'PAGO JOSE LUIS'), ('1451', '8', '11', '4603', '13', '76.0000', 'LAVADO Y PULIDO 2PZ'), ('1452', '8', '12', '4603', '13', '38.0000', 'SHAMPOO Y PULIMENTOS'), ('1453', '7', '8', '4603', '13', '350.0000', 'PAGO FRANCISCO 1.75PZS'), ('1455', '7', '8', '4530', '13', '450.0000', 'PAGO JUAN CARLOS 2.25 PZ'), ('1456', '7', '10', '4530', '13', '426.4000', 'COLOR Y RESINA'), ('1457', '6', '7', '4623', '13', '150.0000', '1º ANT JOSE LUIS'), ('1458', '7', '8', '4623', '13', '200.0000', 'PAGO FRANCISCO 1 PZ'), ('1459', '7', '10', '4623', '13', '391.5000', 'COLRO Y RESINA'), ('1460', '7', '53', '4623', '13', '50.0000', 'DETALLADO'), ('1461', '8', '11', '4623', '13', '76.0000', 'LAVADO Y PULIDO 1 PZ'), ('1462', '8', '12', '4623', '13', '38.0000', 'SHAMPOO Y PULIMENTO'), ('1463', '7', '10', '4454', '13', '76.1500', 'PRIMARIO Y CONVERTIDOR PARA PARRILLA CROMADA ( TPS )'), ('1464', '6', '7', '4608', '13', '200.0000', 'PAGO LUIS VAZQUEZ'), ('1465', '7', '8', '4608', '13', '200.0000', 'PAGO JEOVANNY 1 PZ'), ('1466', '7', '10', '4608', '13', '289.1000', 'RESINA Y COLOR'), ('1467', '8', '11', '4608', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ'), ('1468', '8', '12', '4608', '13', '26.5000', 'SHAMPOO Y PULIMENTOS'), ('1469', '8', '11', '4521', '13', '99.0000', 'lavado y pulido 3 pzs'), ('1470', '8', '12', '4521', '13', '49.5000', 'SHAMPOO Y PULIMENTO'), ('1471', '11', '16', '4608', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('1472', '8', '11', '4446', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ'), ('1473', '8', '12', '4446', '13', '26.5000', 'SHAMPOO Y PULIMENTOS'), ('1474', '8', '11', '4605', '13', '38.0000', 'SHAMPOO Y PULIMENTOS'), ('1475', '8', '11', '4570', '13', '287.5000', 'EST EXTERIOR'), ('1476', '8', '12', '4570', '13', '143.7500', 'SHAMPO DESENGRASNATE Y PULIMENTOS'), ('1477', '11', '15', '4570', '13', '226.0000', '2 CINTAS FILE'), ('1478', '8', '11', '4563', '13', '122.0000', 'LAVADO PULIDA 3PZS Y MOTOR'), ('1479', '8', '12', '4563', '13', '61.0000', 'SHAMPOO Y PULIMENTOS'), ('1480', '6', '7', '4563', '13', '400.0000', 'PAGO JOSE BALMACEDA'), ('1481', '7', '8', '4563', '13', '300.0000', 'PAGO CARLSO QUINTA 1 1/2 PZ'), ('1482', '7', '10', '4563', '13', '351.7000', 'COLRO Y RESINA'), ('1483', '11', '16', '4563', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('1484', '6', '7', '4543', '13', '250.0000', 'PAGO MILO'), ('1485', '7', '8', '4543', '13', '1050.0000', 'PAGO JUAN CARLOS 5.25PZ'), ('1486', '7', '10', '4543', '13', '1331.0000', 'COLRO Y RESINA'), ('1487', '11', '16', '4543', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('1491', '6', '7', '4564', '13', '550.0000', 'PAGO JAVIER LINARES ( PUERTA )SELE COBRO AL PROVEEDOR'), ('1489', '7', '8', '4564', '13', '650.0000', 'PAGO ANGEL ESCOBEDO 3 1/4'), ('1490', '7', '10', '4564', '13', '514.9000', 'COLOR Y RESINA'), ('1492', '6', '7', '4589', '13', '550.0000', 'PAGO MILO'), ('1493', '6', '7', '4589', '13', '200.0000', 'PAGO JOSE BALMACEDA '), ('1494', '8', '11', '4589', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('1495', '8', '12', '4589', '13', '15.0000', 'SHAMPOO '), ('1496', '6', '7', '4530', '13', '350.0000', 'PAGO MILO'), ('1497', '6', '7', '4564', '13', '250.0000', 'SALDO JAVIER LINARES'), ('1498', '6', '7', '4588', '13', '600.0000', '2º ANT MILO'), ('1499', '6', '7', '4604', '13', '150.0000', 'SALDO MANUEL LINARES'), ('1500', '8', '11', '4604', '13', '76.0000', 'LAVADO PULIDO 1 PZ Y MOTOR'), ('1501', '8', '12', '4604', '13', '38.0000', 'SHAMPOO Y PULIMENTOS'), ('1502', '7', '8', '4604', '13', '200.0000', 'PAGO CARLOS QUINTAL 1 PZ'), ('1503', '7', '10', '4604', '13', '461.2000', 'COLOR Y RESINA'), ('1504', '6', '7', '4632', '13', '350.0000', 'PAGO MANUEL LINARES'), ('1505', '7', '8', '4632', '13', '250.0000', 'PAGO JUAN CARLOS 1.25 PZ'), ('1506', '7', '10', '4632', '13', '534.7000', 'COLOR Y RESINA'), ('1507', '8', '11', '4632', '13', '99.0000', 'LAVADO Y PULIDO 2 PZS MOTOR'), ('1508', '8', '12', '4632', '13', '49.5000', 'SHAMPOO Y PULIMENTOS'), ('1509', '6', '7', '4502', '13', '450.0000', '1º ANT MANUEL LINARES'), ('1510', '7', '8', '4502', '13', '300.0000', 'PAGO JUAN CARLOS 1.5 PZ'), ('1511', '7', '10', '4502', '13', '342.0000', 'COLOR Y RESINA'), ('1512', '7', '53', '4502', '13', '50.0000', 'DETALLADO'), ('1513', '6', '7', '4621', '13', '150.0000', 'SALDO JOSE BALMACEDA'), ('1514', '7', '8', '4621', '13', '500.0000', 'PAGO JUAN CARLOS 2.5'), ('1515', '7', '9', '4621', '13', '458.0000', 'RESINA Y COLOR'), ('1516', '7', '53', '4621', '13', '100.0000', 'DETALLADO'), ('1517', '8', '11', '4621', '13', '122.0000', 'LAVADO Y PULIDO 4 PZS'), ('1518', '8', '12', '4621', '13', '61.0000', 'SHAMPU Y PULIMENTOS'), ('1519', '11', '16', '4621', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('1520', '6', '7', '4616', '13', '400.0000', '1º ANT JOSE BALAMACEDA'), ('1521', '11', '15', '4616', '13', '11202.2998', 'DOS PUERTAS ( AG TOYOTA )'), ('1522', '6', '7', '4400', '13', '350.0000', '1º ANT JOSE BALMACEDA'), ('1523', '6', '7', '4631', '13', '300.0000', '1º ANT JOSE BALMACEDA'), ('1524', '11', '16', '4631', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('1525', '6', '7', '4648', '13', '200.0000', 'PAGO JOSE BALMACEDA'), ('1526', '6', '7', '4575', '13', '100.0000', 'SALDO JOSE BALMACEDA'), ('1527', '6', '7', '4575', '13', '800.0000', 'SALDO JAVIER LINARES'), ('1528', '7', '8', '4575', '13', '1150.0000', 'PAGO JEOVANNY 5.75 PZ'), ('1529', '7', '10', '4575', '13', '1613.0000', 'COLOR Y RESINA'), ('1530', '7', '53', '4575', '13', '200.0000', 'DETALLADO'), ('1531', '11', '16', '4575', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('1532', '6', '7', '4454', '13', '600.0000', 'EXTRA MILO'), ('1533', '6', '7', '4562', '13', '150.0000', 'PAGO MILO ( TALLER )'), ('2761', '9', '13', '4562', '13', '300.0000', 'PAGO OSCAR'), ('1535', '6', '7', '4645', '13', '100.0000', 'PAGO GASPAR MAÑAGA'), ('1536', '7', '8', '4645', '13', '100.0000', 'PAGO FRANCISCO 1/2 PZ'), ('1537', '7', '10', '4645', '13', '44.5700', 'COLOR Y RESINA 1/2'), ('1538', '8', '11', '4645', '13', '41.5000', 'LAVADO Y PULIDO 1/2 PZ'), ('1539', '8', '12', '4645', '13', '20.7500', 'SHAMPOO Y PULIMENTOS'), ('1540', '6', '7', '4508', '13', '350.0000', 'PAGO GASPAR MAGAÑA'), ('1542', '6', '7', '4633', '13', '400.0000', 'PAGO GASPAR MAGAÑA'), ('1543', '7', '8', '4633', '13', '300.0000', 'PAGO ANGEL ESCOBEDO 1 1/2 PZS'), ('1544', '7', '10', '4633', '13', '390.3000', 'COLOR Y RESINA'), ('1545', '8', '11', '4633', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS'), ('1546', '8', '12', '4633', '13', '38.0000', 'SHAMPU Y PULIMENTOS'), ('1547', '6', '7', '4612', '13', '200.0000', 'PAGO GASPAR MAGAÑADA'), ('1548', '7', '8', '4612', '13', '200.0000', 'PAGO FRANCISCO 1PZ'), ('1549', '7', '10', '4612', '13', '391.5000', 'COLOR Y RESINA'), ('1550', '8', '11', '4612', '13', '99.0000', 'LAVADO PULIDO 2 PZ Y MOTOR'), ('1551', '8', '12', '4612', '13', '49.5000', 'SHAMPOO Y PULIMENTOS'), ('3208', '11', '15', '4612', '13', '1470.0000', '15-jul-13\tF-50418 depco (defensa de lupo)\t\t\t\t\\n'), ('1553', '6', '7', '4634', '13', '200.0000', 'PAGO GASPAR MAGAÑA'), ('1554', '11', '16', '4634', '13', '52.2000', 'TARIVA VALUACION AUDATEX'), ('1555', '7', '8', '4634', '13', '200.0000', 'PAGO JEOVANNY 1 PZ'), ('1556', '7', '10', '4634', '13', '320.0800', 'COLOR Y RESINA'), ('3255', '8', '12', '4635', '13', '115.0000', 'SHAMPOO Y DESENGRASANTE'), ('3254', '8', '11', '4635', '13', '230.0000', 'EST EXT'), ('1560', '9', '13', '4615', '13', '200.0000', '1º ANT OSCAR'), ('1561', '9', '13', '4615', '13', '150.0000', 'SALDO OSCAR'), ('1562', '11', '15', '4615', '13', '1062.0000', 'KIT DE AFINACION MAYOR ( CONSTITUCION )'), ('1565', '11', '16', '4615', '13', '140.0000', 'RECTIFICACION DE BALATAS'), ('1564', '11', '16', '4615', '13', '120.0000', 'RECTIFICAION DE BALATAS'), ('1568', '9', '13', '4576', '13', '150.0000', 'SALDO OSCAR'), ('1570', '6', '7', '4454', '13', '300.0000', '5ºANT MILO'), ('1571', '7', '10', '4454', '13', '41.0000', 'NEGRO MATE'), ('1572', '7', '10', '4454', '13', '44.0000', 'NOVO PRIMARIO Y CONVERTIDOR ( DIAMANTE )'), ('1573', '11', '16', '4454', '13', '186.0000', 'MONTAJE EN RIN Y BALANCEO ( MERCADO DE LLANTAS )'), ('1580', '9', '13', '4626', '13', '400.0000', 'PAGO OSCAR'), ('1575', '11', '15', '4626', '13', '2009.4000', 'RET SEP ( CONSTITUCION )'), ('1576', '9', '13', '4642', '13', '200.0000', 'PAGO OSCAR'), ('1577', '8', '11', '4642', '13', '53.0000', 'LAVADO ASPIRADO Y MOTOR'), ('1578', '8', '12', '4642', '13', '26.5000', 'SHAMPOO DESENGRASANTE'), ('1579', '11', '15', '4642', '13', '539.0000', 'KIT DE A FINACION ACEITE /BUJILLAS/ FILTRO ACEITE AIRE GASOLINA/ CARBUCLIN'), ('1581', '8', '11', '4626', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('1582', '8', '12', '4626', '13', '15.0000', 'SHAMPOO'), ('2817', '8', '11', '4578', '13', '53.0000', 'lavado y aspirado'), ('1584', '8', '12', '4578', '13', '26.5000', 'SHAMPOO'), ('1585', '9', '13', '4652', '13', '150.0000', 'PAGO OSCAR'), ('1586', '9', '13', '4589', '13', '200.0000', 'PAGO OSCAR'), ('1587', '11', '15', '4589', '13', '740.0000', 'HORQUILLA ( CONSTITUCION )'), ('1588', '11', '15', '4589', '13', '90.0000', 'FOCO XENON'), ('1589', '11', '16', '4589', '13', '600.0000', 'REPARACION DE RIN'), ('1590', '9', '13', '4589', '13', '100.0000', 'PAGO OSCAR\\n'), ('1591', '6', '7', '4569', '13', '200.0000', 'SALDO JOSE LUIS'), ('1592', '6', '7', '4628', '13', '200.0000', 'PAGO JOSE LUIS'), ('1593', '7', '8', '4628', '13', '700.0000', 'PAGO CARLOS QUINTAL'), ('1594', '7', '10', '4628', '13', '556.9000', 'COLOR Y RESINA'), ('1595', '8', '11', '4628', '13', '230.0000', 'EST EXTERIOR'), ('1596', '8', '12', '4628', '13', '115.0000', 'SHAMPOO DESENGRASANTE Y PULIMENTOS'), ('1597', '6', '7', '4584', '13', '100.0000', 'PAGO JOSE LUIS'), ('1601', '6', '7', '4647', '13', '250.0000', 'PAGO JOSE LUIS'), ('1599', '7', '8', '4647', '13', '100.0000', 'PAGO CARLOS QUINTAL'), ('1600', '7', '10', '4647', '13', '24.0500', 'COLR Y RESINA'), ('1602', '6', '7', '4637', '13', '400.0000', '1º ANT JOSE LUIS'), ('1603', '6', '7', '4637', '13', '100.0000', 'PAGO JAVIER LINARES'), ('1604', '11', '15', '4637', '13', '5403.0000', 'DOS PUERTAS ( AG VW )'), ('1605', '11', '16', '4637', '13', '250.0000', 'REPARACION DE DE CRISTAL DELANTERO IZQUIERDO ( CRISTALERO MIGUEL )'), ('1606', '6', '7', '4522', '13', '200.0000', '1º ANT JOSE LUIS'), ('1607', '7', '8', '4522', '13', '300.0000', 'PAGO CARLOS QUINTAL 1 1/2 PZ'), ('1608', '7', '10', '4522', '13', '301.4000', 'COLOR Y RESINA'), ('1609', '6', '7', '4640', '13', '100.0000', 'PAGO ANGEL'), ('1610', '7', '8', '4640', '13', '200.0000', 'PAGO ANGEL 1 PZ'), ('1611', '7', '10', '4640', '13', '175.2000', 'COLOR Y RESINA'), ('1612', '8', '11', '4640', '13', '53.0000', 'LAVDO Y PULIDO 1 PZ'), ('1613', '8', '11', '4640', '13', '26.5000', 'SHAMPOO PULIMENTOS'), ('1614', '11', '16', '4640', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('1615', '6', '7', '4644', '13', '500.0000', 'PAGO JAVIER LINARES'), ('1616', '7', '8', '4446', '13', '100.0000', 'PAGO FRANCISCO 1/2 PZ'), ('1617', '7', '10', '4446', '13', '286.8800', 'COLOR Y RESINA'), ('1618', '7', '8', '4618', '13', '250.0000', 'PAGO CARLOS QUINTAL 1 1/4 PZ'), ('1619', '7', '10', '4618', '13', '146.2300', 'COLOR Y RESINA'), ('1620', '7', '53', '4618', '13', '50.0000', 'DETALLADA'), ('1621', '6', '7', '4618', '13', '50.0000', 'PAGO CARLOS QUINTAL'), ('1622', '8', '11', '4618', '13', '30.0000', 'LAVADO'), ('1623', '8', '12', '4618', '13', '15.0000', 'SHAMPOO'), ('1624', '7', '8', '4627', '13', '100.0000', 'PAGO CARLOS QUINTAL 1/2 PZ'), ('1625', '7', '10', '4627', '13', '95.4100', 'COLOR Y RESINA'), ('1626', '8', '11', '4627', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ'), ('1627', '8', '12', '4627', '13', '26.5000', 'SHAMPOO Y PULIMENTOS'), ('1628', '7', '8', '4613', '13', '400.0000', 'PAGO JEOVANNY 2PZS'), ('1629', '7', '10', '4613', '13', '408.4400', 'COLOR Y RESINA'), ('1630', '7', '10', '4613', '13', '50.0000', 'DETALLADO'), ('1631', '7', '8', '4624', '13', '200.0000', 'PAGO ANGEL ESCOBEDO 1 PZ'), ('1632', '7', '10', '4624', '13', '202.9400', 'COLOR Y RESINA'), ('1633', '7', '53', '4624', '13', '50.0000', 'DETALLADO'), ('1634', '7', '8', '4454', '13', '950.0000', 'PAGO ANGEL ESCOBEDO 4 3/4PZ'), ('1635', '7', '53', '4454', '13', '100.0000', 'DETALLADO'), ('1636', '7', '53', '4564', '13', '100.0000', 'DETALLADO'), ('1637', '7', '8', '4617', '13', '200.0000', 'PAGO ANGEL ESCOBEDO 1 PZ'), ('1638', '7', '10', '4617', '13', '174.6500', 'COLOR Y RESINA'), ('1639', '7', '53', '4617', '13', '50.0000', 'DETALLADO'), ('1640', '8', '11', '4617', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ'), ('1641', '8', '12', '4617', '13', '26.5000', 'SHAMPOO Y PULIMENTOS'), ('1642', '7', '8', '4611', '13', '450.0000', 'PAGO ANGEL ESCOBEDO 2 1/4 PZ'), ('1643', '7', '10', '4611', '13', '433.9900', 'COLOR Y RESINA'), ('1644', '8', '11', '4622', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ'), ('1645', '8', '12', '4622', '13', '26.5000', 'SHAMPOO'), ('1646', '6', '7', '4622', '13', '150.0000', 'PAGO JOSE BALMACEDA '), ('1647', '8', '11', '4643', '13', '230.0000', 'EST EXTERIOR'), ('1648', '8', '12', '4643', '13', '115.0000', 'SHAMPOO DESENGRASANTE Y PULIMENTOS'), ('1649', '8', '11', '4562', '13', '230.0000', 'EST EXTERIOR'), ('1650', '8', '12', '4562', '13', '115.0000', 'SHAMPOO DESENGRASANTE Y PULIMENTOS'), ('1651', '8', '11', '4562', '13', '189.5000', 'EST INTERIOR'), ('1652', '8', '12', '4562', '13', '94.8800', 'SHAMPOO DESENGRASANTE ABRILLANTADOR'), ('1653', '8', '11', '4507', '13', '122.0000', 'LAVADO PULIDO 3 PZS Y MOTOR'), ('1654', '8', '12', '4507', '13', '61.0000', 'SHAMPOO DESENGRASANTE Y PULIMENTOS'), ('1655', '11', '15', '4507', '13', '339.0000', 'CHISQUETEROS'), ('1656', '11', '16', '4507', '13', '52.2000', 'TARIFA VALE AUDATEX'), ('1657', '11', '15', '4653', '13', '213.0000', 'KIT DE AFINACION ( NAPA )'), ('1658', '11', '15', '4653', '13', '848.0500', 'KIT ( NAPA )'), ('1660', '11', '15', '4593', '13', '300.0000', 'JUEGO DE GOMAS'), ('1661', '11', '15', '4620', '13', '684.0000', 'BUJIAS FILTROS LIM INYECTORES ( CONST )'), ('1662', '11', '15', '4620', '13', '147.0000', 'BANDA DE ALTERNADOR ( CONST )'), ('1663', '11', '16', '4620', '13', '674.0000', 'RECTIFICACION DE DISCOS Y TAMBORES,JUEGO DE BALASTAS DEL Y TRAS'), ('1664', '11', '16', '4620', '13', '150.0000', 'ALINEACION'), ('1666', '6', '7', '4569', '13', '150.0000', 'PAGO MILO ( CHECAR CON BATUN )'), ('1667', '6', '7', '4594', '13', '700.0000', 'PAGO MILO'), ('1668', '6', '7', '4637', '13', '100.0000', 'PAGO MILO ( TALLER )'), ('1669', '6', '7', '4637', '13', '100.0000', 'PAGO MANUEL'), ('1671', '6', '7', '4637', '13', '850.0000', 'SALDO JOSE LUIS'), ('1672', '8', '11', '4637', '13', '99.0000', 'LAVADO Y PULIDO 3 PZS'), ('1673', '8', '12', '4637', '13', '49.5000', 'SHAMPO Y PULIMENTOS\\n'), ('3256', '7', '8', '4637', '13', '900.0000', 'PAGO JEOVANNY 4.5 PZS'), ('1675', '7', '10', '4637', '13', '743.2000', 'COLOR Y RESINA'), ('1676', '7', '53', '4637', '13', '100.0000', 'DETALLADO\\n'), ('1677', '6', '7', '4588', '13', '300.0000', '3º ANT ERMILO TAMAYO'), ('1678', '6', '7', '4502', '13', '100.0000', 'SALDO MANUEL LINARES'), ('1679', '6', '7', '4659', '13', '300.0000', 'PAGO MANUEL LINARES'), ('1680', '7', '8', '4659', '13', '300.0000', 'PAGO ANGEL ESCOBEDO 1 1/2 PZ'), ('1681', '7', '10', '4659', '13', '529.3000', 'COLOR Y RESINA'), ('1682', '7', '53', '4659', '13', '100.0000', 'DETALLADO'), ('1683', '8', '11', '4670', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('1684', '8', '12', '4670', '13', '15.0000', 'SHAMPOO'), ('1685', '8', '11', '4659', '13', '99.0000', 'LAVADOY PULIDO 2 PZS MOTR'), ('1686', '8', '12', '4659', '13', '49.5000', 'SHAMPOO DESENGRASANTE Y PULIMENTOS'), ('1687', '6', '7', '4380', '13', '150.0000', 'PAGO MANUEL LINARES'), ('1688', '9', '13', '4380', '13', '400.0000', 'PAGO OSCAR'), ('1689', '8', '11', '4502', '13', '76.0000', 'LAVADO YPULIDO2PZS'), ('1690', '8', '11', '4502', '13', '38.0000', 'SAMPOO Y PULIMENTOS'), ('1691', '6', '7', '4543', '13', '250.0000', 'SALDO JOSE BALACEDA'), ('1693', '8', '11', '4543', '13', '287.5000', 'EST EXTERIOR CORTESIA( AUTORIZO ALVARES )'), ('1694', '8', '12', '4543', '13', '143.5000', 'SHAMPOO DESENGRASANTE Y PULIMENTO'), ('1695', '6', '7', '4616', '13', '600.0000', 'SALDO JOSE BALMACEDA'), ('1696', '6', '7', '4400', '13', '150.0000', 'SALDO JOSE BALMACEDA'), ('1697', '7', '8', '4400', '13', '750.0000', 'PAGO JUNACARLOS 3.75PZ'), ('1700', '7', '10', '4400', '13', '989.5000', 'COLOR Y RESINA'), ('1701', '7', '53', '4400', '13', '200.0000', 'DETALLADO'), ('1702', '7', '8', '4644', '13', '200.0000', 'PAGO JUAN CARLOS 1 PZ'), ('1704', '7', '10', '4644', '13', '253.8000', 'COLOR Y RESINA'), ('1705', '7', '9', '4644', '13', '50.0000', 'DETALLADO'), ('1706', '8', '11', '4644', '13', '53.0000', 'LAVADO Y PULIDO 1PZ'), ('1707', '8', '12', '4644', '13', '26.5000', 'SHAMPOO Y PULIMENTO'), ('1708', '6', '7', '4631', '13', '300.0000', 'SALDO JOSE BALMACEDA'), ('1709', '7', '8', '4631', '13', '500.0000', 'PAGO ANGEL ESCOBEDO 2.5'), ('1710', '7', '10', '4631', '13', '565.1000', 'COLOR Y RESINA'), ('1711', '8', '11', '4631', '13', '99.0000', 'LAVADO Y PULIDO 3 PZS'), ('1712', '8', '12', '4631', '13', '49.5000', 'SHAMPOO Y PULIMENTO'), ('1713', '6', '7', '4591', '13', '100.0000', 'SALDO GASPAR MAGAÑA'), ('1714', '7', '10', '4591', '13', '500.0000', 'PAGO CARLOS QUINTAL 2.5 PZ'), ('1715', '7', '10', '4591', '13', '572.5000', 'COLOR Y RESINA'), ('1716', '7', '53', '4591', '13', '50.0000', 'DETALLADO'), ('1717', '8', '11', '4400', '13', '99.0000', 'LAVADO Y PULIDO 3 PZS'), ('1718', '8', '12', '4400', '13', '49.5000', 'PULIMENTO'), ('1719', '6', '7', '4636', '13', '400.0000', 'PAGO GASPAR MAGAÑA'), ('1720', '7', '8', '4636', '13', '200.0000', 'PAGO ANGEL ESCOBEDO 1 PZ'), ('3308', '7', '10', '4636', '13', '345.4100', 'COLOR Y RESINA'), ('1723', '7', '53', '4636', '13', '50.0000', 'DETALLADO'), ('1724', '8', '11', '4636', '13', '76.0000', 'LAVADO Y PULIDO 2 PZ'), ('1725', '8', '12', '4636', '13', '38.0000', 'SHAMPOO Y PULIMENTO'), ('1726', '6', '7', '4667', '13', '350.0000', 'PAGO GASPAR MAGAÑA'), ('1727', '7', '8', '4667', '13', '200.0000', 'PAGO JEOVANNY 1 PZ'), ('3299', '7', '10', '4667', '13', '426.6000', 'COLOR Y RESINA '), ('1730', '8', '11', '4667', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ'), ('1731', '8', '12', '4667', '13', '26.5000', 'SHAMPOO Y PULIMENTOS'), ('1732', '6', '7', '4625', '13', '150.0000', 'PAGO GASPAR MAGAÑA'), ('1733', '6', '7', '4654', '13', '150.0000', 'PAGO GASPAR MAGAÑA'), ('1734', '9', '13', '4654', '13', '300.0000', 'PAGO OSCAR'), ('1735', '7', '8', '4654', '13', '250.0000', 'PAGO FRANCISCO 1.25'), ('1736', '7', '10', '4654', '13', '302.2000', 'COLOR Y RESINA'), ('1738', '9', '13', '4665', '13', '100.0000', 'PAGO OSCAR'), ('1837', '9', '13', '4653', '13', '300.0000', 'pago oscar'), ('1741', '9', '13', '4400', '13', '50.0000', 'PAGO OSCAR'), ('1742', '9', '13', '4668', '13', '100.0000', '1º ANT OSCAR'), ('1812', '9', '13', '4454', '13', '150.0000', 'PAGO OSCAR'), ('1744', '9', '13', '4530', '13', '100.0000', 'SALDO OSCAR'), ('1745', '9', '13', '4569', '13', '100.0000', 'PAGO OSCAR'), ('1746', '6', '7', '4522', '13', '250.0000', 'SALDO JOSE LUIS'), ('1747', '8', '11', '4522', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS'), ('1748', '8', '12', '4522', '13', '38.0000', 'SHAMPOO Y PULIMENTOS'), ('1749', '6', '7', '4595', '13', '350.0000', 'PAGO JOSE LUIS'), ('1750', '7', '8', '4595', '13', '200.0000', 'PAGO ANGEL ESCOBEDO 1 PZ'), ('1751', '7', '10', '4595', '13', '187.7000', 'COLOR Y RESINA'), ('1752', '8', '11', '4595', '13', '76.0000', 'LAVADO ,PULIDO 1 Y MOTOR'), ('1753', '8', '12', '4595', '13', '38.0000', 'SHAMPOO Y PULIMENTOS'), ('1754', '6', '7', '4627', '13', '50.0000', 'PAGO CARLOS QUINTAL'), ('1755', '6', '7', '4650', '13', '50.0000', 'PAGO CARLOS QUINTAL'), ('1756', '6', '7', '4655', '13', '150.0000', 'PAGO FRANCISCO'), ('1757', '6', '7', '4638', '13', '400.0000', 'PAGO JAVIER LINARES'), ('1758', '8', '11', '4638', '13', '99.0000', 'LAVADO Y PULIDO 3 PZS'), ('1759', '8', '12', '4638', '13', '49.5000', 'SHAMPO Y PULIMENTOS'), ('1760', '7', '8', '4638', '13', '400.0000', 'PAGO CARLOS QUINTAL 2PZS'), ('1761', '7', '10', '4638', '13', '444.6000', 'COLOR Y RESINA'), ('1762', '6', '7', '4657', '13', '750.0000', 'PAGO JOSE LINARES'), ('1763', '7', '8', '4657', '13', '550.0000', 'PAGO CARLOS QUINTAL 3 3/4'), ('1765', '7', '10', '4657', '13', '504.8000', 'COLOR Y RESINA'), ('1766', '7', '53', '4657', '13', '100.0000', 'DETALLADO'), ('1769', '8', '11', '4657', '13', '99.0000', 'LAVADO YPULIDO 2 MOTR'), ('1768', '8', '12', '4657', '13', '49.5000', 'SHAMPOO Y PULIMENTOS'), ('1770', '6', '7', '4669', '13', '300.0000', 'PAGO JAVIER LINARES'), ('1771', '7', '8', '4669', '13', '200.0000', 'PAGO JUAN CARLOS 1 PZ'), ('1772', '7', '10', '4669', '13', '225.8000', 'COLOR Y RESINA'), ('1773', '8', '11', '4669', '13', '53.0000', 'LAVADO Y PULIDO 1 '), ('1774', '8', '12', '4669', '13', '26.5000', 'SHAMPOO Y PULIMENTO'), ('1775', '6', '7', '4660', '13', '450.0000', '1º ANT JAVIER LINARES'), ('1776', '6', '7', '4671', '13', '50.0000', 'PAGO JUAN CARLOS'), ('1777', '7', '8', '4671', '13', '100.0000', 'PAGO JUAN CARLOS .5 PZ'), ('1778', '7', '10', '4671', '13', '156.7000', 'COLOR Y RESINA'), ('1779', '8', '11', '4671', '13', '41.5000', 'LAVADO Y PULIDO 1/2PZ'), ('1780', '8', '12', '4671', '13', '20.8000', 'SHAMPOO Y PULIMENTO'), ('1781', '7', '8', '4655', '13', '550.0000', 'PAGO FRANCISCO 2.75 PZS'), ('1783', '7', '10', '4655', '13', '757.6000', 'COLOR Y RESINA'), ('1784', '8', '11', '4655', '13', '287.5000', 'EST EXTERIOR'), ('1785', '8', '12', '4655', '13', '143.8000', 'SHAMPOO DESENGRASNATE Y PULIMENTOS'), ('1789', '7', '8', '4616', '13', '800.0000', 'PAGO FRANCISCO 4 PZS'), ('1790', '7', '10', '4616', '13', '918.5000', 'COLOR Y RESIAN'), ('1791', '7', '53', '4616', '13', '100.0000', 'DETALLADO'), ('1794', '7', '8', '4584', '13', '300.0000', 'PAGO CARLOS QUINTAL 1 1/2 PZ'), ('1795', '7', '10', '4584', '13', '421.7500', 'COLOR Y RESINA'), ('1796', '7', '8', '4650', '13', '100.0000', 'PAGO CARLOS QUINTAL 1/2 PZ'), ('1797', '8', '11', '4650', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ'), ('1798', '8', '12', '4650', '13', '26.5000', 'SHAMPOO Y PULIMENOS'), ('1799', '7', '8', '4508', '13', '450.0000', 'PAGO JEOVANNY 2.25PZS'), ('1800', '7', '10', '4508', '13', '431.0700', 'COLOR Y RESINA'), ('1801', '7', '8', '4670', '13', '50.0000', 'PAGO JEOVANNY 1/4 PZ'), ('1802', '7', '10', '4670', '13', '51.8600', 'COLOR Y RESINA'), ('1803', '7', '8', '4648', '13', '200.0000', 'PAGO ANGEL ESCOBEDO 1 PZ'), ('1804', '7', '10', '4648', '13', '161.3300', 'COLOR Y RESINA'), ('1805', '8', '11', '4648', '13', '230.0000', 'EST EXTERIOR'), ('1806', '8', '12', '4648', '13', '115.0000', 'SHAMPOO DESENGRASANTE Y PULIMENTOS'), ('1807', '8', '11', '4508', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS'), ('1808', '8', '12', '4508', '13', '38.0000', 'SHAMPOO Y PULIMENTOS'), ('1809', '7', '8', '4663', '13', '50.0000', 'PAGO ANGEL ESCOBEDO'), ('1810', '7', '10', '4663', '13', '31.8100', 'COLRO Y RESINA'), ('1811', '7', '10', '4454', '13', '620.3900', 'COLOR Y RESINA'), ('1813', '8', '11', '4530', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS'), ('1814', '8', '12', '4530', '13', '38.0000', 'SHAMPOO Y PULIMENTOS'), ('1815', '8', '11', '4575', '13', '122.0000', 'LAVADO Y PULIDO 4 PZS'), ('1816', '8', '12', '4575', '13', '61.0000', 'SHAMPOO Y PULIMENTOS'), ('1817', '8', '11', '4569', '13', '53.0000', 'LAVADOY PULIDO 1 PZ'), ('1820', '8', '11', '4594', '13', '30.0000', 'LAVADO Y ASPIRADO '), ('1821', '8', '12', '4594', '13', '15.0000', 'MATERIAL'), ('1822', '8', '11', '4516', '13', '85.0000', 'Pago Alfonso'), ('1823', '8', '12', '4516', '13', '42.5000', 'Material'), ('1824', '8', '11', '4647', '13', '23.0000', 'pago alfonso'), ('1825', '8', '12', '4647', '13', '11.5000', 'material'), ('1826', '8', '11', '4564', '13', '76.0000', 'pago alfonso'), ('1827', '8', '12', '4564', '13', '38.0000', 'material'), ('1828', '8', '11', '4613', '13', '50.0000', 'Pago a joevanny'), ('1829', '8', '12', '4613', '13', '25.0000', 'Material'), ('1830', '11', '15', '4454', '10', '555.5000', 'F-51586 depco (espejo)\\n'), ('1831', '11', '15', '4660', '10', '271.4400', 'F-51554 depco (parrilla)'), ('1832', '11', '16', '4666', '10', '229.0000', 'F-11835 CONSTITUCION (ACEITE 3 LTS)\\n'), ('1833', '11', '15', '4660', '10', '400.0000', 'NOTA VENTA 1684 PORTA FILTRO'), ('1834', '11', '16', '4601', '10', '1300.0000', 'NOTA CAMBIO DE TUBO A BARRA HOMOSINETICA'), ('1835', '11', '15', '4584', '11', '2100.0000', 'NOTA SAYALLIN (CUERPO DE ACELERACION Y MANGUERA)'), ('1836', '11', '15', '4584', '11', '1800.0000', 'CABLERIA DE MOTOR'), ('1838', '8', '11', '4672', '13', '100.0000', 'lavado y encerado'), ('1839', '8', '12', '4672', '13', '50.0000', 'shampoo y pulimentos'), ('1840', '9', '13', '4672', '13', '500.0000', 'pago oscar'), ('1841', '8', '11', '4673', '13', '53.0000', 'lavado y pulido 1 pz'), ('1842', '8', '12', '4673', '13', '26.5000', 'shampoo y pulimentos'), ('2399', '6', '7', '4674', '13', '200.0000', '2º ant jose balmaceda'), ('2398', '6', '7', '4674', '13', '200.0000', '1º ant manuel'), ('1845', '6', '7', '4674', '13', '200.0000', '3º ant gaspar magaña'), ('1846', '6', '7', '4674', '13', '200.0000', '4º ant jose luis'), ('1847', '6', '7', '4674', '13', '200.0000', '5º ant javier linares'), ('1848', '6', '7', '4674', '13', '150.0000', '6º ant manuel linares'), ('1849', '6', '7', '4674', '13', '300.0000', '7º ant jose balmaceda'), ('1850', '6', '7', '4674', '13', '300.0000', '8º ant gaspar magaña'), ('1851', '6', '7', '4674', '13', '250.0000', '9º ant jose luis'), ('1852', '6', '7', '4674', '13', '400.0000', '10º ant javier linares'), ('1853', '7', '8', '4673', '13', '200.0000', 'pago jeovanny 1 pz'), ('1854', '7', '10', '4673', '13', '307.0300', 'recina y color'), ('1855', '11', '15', '4660', '10', '1170.0000', '05-AGOSTO-13 F-12132 CONSTI (MOTOVENTILADOR)\\n'), ('1856', '11', '15', '4601', '10', '491.0000', '03/AGO/13 F-51906 DEPCO (HORQUILLA) '), ('1857', '11', '15', '4601', '10', '3274.0000', '01/AGO/13 F-51810 DEPCO (FARO, SALIPICADER IZQ, Y DERECHA)\\n'), ('1858', '6', '7', '4685', '13', '150.0000', ' 1-ago-13 extra milo'), ('1859', '6', '7', '4674', '13', '100.0000', '1-ago-13 extra milo'), ('1860', '6', '7', '4666', '13', '150.0000', '1-ago-13 extra milo'), ('1861', '6', '7', '4660', '13', '250.0000', '1-ago-13 Piezas'), ('1862', '6', '7', '4625', '13', '150.0000', '1-ago-13 extra milo'), ('1863', '6', '7', '4588', '13', '100.0000', '1-ago-13 4º anticipo'), ('1864', '6', '7', '4454', '13', '250.0000', '1-ago-13 extra milo'), ('1865', '6', '7', '4674', '13', '100.0000', '1-ago-13 3º anticipo'), ('1866', '6', '7', '4666', '13', '350.0000', '1-ago-13 Pago'), ('1867', '6', '7', '4597', '13', '600.0000', '1-ago-13 Pago'), ('1868', '6', '7', '4522', '13', '50.0000', '1-ago-13 Pago\\n'), ('1869', '6', '7', '4601', '13', '400.0000', '1-ago-13 1º anticipo'), ('1870', '6', '7', '4674', '13', '200.0000', '1-ago-13 3º Anticipo '), ('1871', '6', '7', '4681', '13', '250.0000', '1-ago-13 Saldo '), ('1874', '6', '7', '4685', '13', '400.0000', '1-ago-13 1º Anticipo'), ('1873', '6', '7', '4686', '13', '300.0000', '1-ago-13 1º Anticipo'), ('1875', '6', '7', '4443', '13', '100.0000', '1-ago-13 Pago'), ('1876', '6', '7', '4609', '13', '350.0000', '1-ago-13 Pago\\n'), ('1877', '6', '7', '4625', '13', '800.0000', '2º Anticipo'), ('1878', '6', '7', '4674', '13', '200.0000', '1-ago-13 3º Anticipo'), ('1879', '6', '7', '4601', '13', '150.0000', '1-ago-13 1º Anticipo'), ('1880', '6', '7', '4609', '13', '150.0000', '1-ago-13 1º Anticipo'), ('1881', '6', '7', '4660', '13', '200.0000', '1-ago-13 1º Anticipo'), ('1882', '6', '7', '4666', '13', '900.0000', '1-ago-13 1º Anticipo'), ('1883', '6', '7', '4668', '13', '300.0000', '1-ago-13 Saldo'), ('1884', '6', '7', '4683', '13', '200.0000', '1-ago-13 Pago'), ('1885', '6', '7', '4660', '13', '750.0000', '1-ago-13 2º anticipo'), ('1886', '6', '7', '4457', '13', '600.0000', '1-ago-13 1º Anticipo'), ('1887', '6', '7', '4674', '13', '300.0000', '1-ago-13 3º Anticipo'), ('1888', '6', '7', '4686', '13', '450.0000', '1-ago-13 Pago'), ('1889', '7', '10', '4660', '13', '666.1500', '1-ago-13 '), ('1890', '7', '8', '4660', '13', '950.0000', '1-ago-13 Francisco 4.75'), ('1891', '7', '9', '4686', '13', '2132.0901', '1-ago-13'), ('1892', '7', '8', '4686', '13', '2600.0000', '1-ago-13 Francisco Pieza 13 '), ('1893', '7', '9', '4691', '13', '295.5000', '1-ago-13 '), ('1894', '7', '8', '4691', '13', '200.0000', '1-ago-13 Francisco Pieza 1'), ('1895', '7', '10', '4594', '13', '474.2300', '1-ago-13'), ('1896', '7', '8', '4594', '13', '600.0000', '1-ago-13 Juan Carlos pieza 3'), ('1897', '7', '8', '4681', '13', '200.0000', '1-ago-13 Juan Carlos Pieza 1'), ('1898', '7', '10', '4681', '13', '191.9900', '1-ago-13'), ('1899', '7', '10', '4588', '13', '1144.0601', '1-ago-13'), ('1900', '7', '8', '4588', '13', '950.0000', '1-ago-13 Jeovanny pieza 4.75'), ('1901', '7', '10', '4443', '13', '169.1000', '1-ago-13'), ('1902', '7', '8', '4443', '13', '100.0000', '1-ago-13 Angel pieza 1/2'), ('1903', '7', '8', '4597', '13', '450.0000', '1-ago-13 Angel pieza 2 1/4'), ('1904', '7', '9', '4597', '13', '417.0400', '1-ago-13'), ('1905', '7', '8', '4609', '13', '200.0000', '1-ago-13 Angel pieza 1'), ('1906', '7', '10', '4609', '13', '188.2000', '1-ago-13'), ('1907', '7', '8', '4682', '13', '200.0000', '1-ago-13 Angel Pieza 1'), ('1908', '7', '10', '4682', '13', '164.3500', '1-ago-13'), ('1909', '7', '8', '4687', '13', '200.0000', '1-ago-13 Angel pieza 1'), ('1910', '7', '10', '4687', '13', '156.3100', '1-ago-13'), ('1911', '7', '8', '4690', '13', '200.0000', '1-ago-13 Angel pieza 1'), ('1912', '7', '10', '4690', '13', '179.1500', '1-ago-13'), ('1913', '7', '8', '4692', '13', '200.0000', '1-ago-13 Angel pieza 1'), ('1914', '7', '10', '4692', '13', '128.2800', '1-ago-13'), ('1915', '7', '8', '4699', '13', '200.0000', '1-ago-13 Angel pieza 1'), ('1916', '7', '10', '4699', '13', '333.5200', '1-ago-13'), ('1917', '7', '8', '4703', '13', '150.0000', '1-ago-13 Angel pieza 3/4'), ('1918', '7', '10', '4703', '13', '99.3500', '1-ago-13 '), ('1919', '7', '8', '4706', '13', '200.0000', '1-ago-13 Angel pieza 1'), ('1920', '7', '10', '4706', '13', '225.6700', '1-ago-13'), ('1921', '8', '11', '4454', '13', '287.5000', '1-ago-13 Estetica exterior Eduardo '), ('1922', '8', '12', '4454', '13', '143.7500', '1-ago-13'), ('1923', '8', '12', '4454', '13', '94.8800', '1-ago-13'), ('1924', '8', '11', '4454', '13', '189.7500', '1-ago-13 Estetica interior Eduardo '), ('1927', '8', '11', '4616', '13', '122.0000', '1-ago-13 Lavado y pulido, Lav Mot Eduardo '), ('1928', '8', '12', '4616', '13', '61.0000', '1-ago-13'), ('1929', '8', '11', '4681', '13', '53.0000', '1-ago-13 Lavado y Pulido Eduardo '), ('1930', '8', '12', '4681', '13', '26.5000', '1-ago-13'), ('1931', '8', '11', '4678', '13', '30.0000', '1-ago-13 Lavado y Aspirado Eduardo '), ('1932', '8', '12', '4678', '13', '15.0000', '1-ago-13'), ('1933', '8', '11', '4691', '13', '99.0000', '1-ago-13 Lavado y pulido Eduardo '), ('1934', '8', '12', '4691', '13', '49.5000', '1-ago-13'), ('1935', '8', '11', '4699', '13', '53.0000', '1-ago-13 Lavado y pulido Eduardo'), ('1936', '8', '12', '4699', '13', '26.5000', '1-ago-13'), ('1937', '8', '11', '4443', '13', '53.0000', '1-ago-13 Lavado y Pulido Xool '), ('1938', '8', '12', '4443', '13', '26.5000', '1-ago-13'), ('1939', '8', '11', '4654', '13', '76.0000', '1-ago-13 Lavado y pulido, lav mot. Xool '), ('1940', '8', '12', '4654', '13', '38.0000', '1-ago-13'), ('1941', '8', '11', '4682', '13', '53.0000', '1-ago-13 Lavado y pulido Xool '), ('1942', '8', '12', '4682', '13', '26.5000', '1-ago-13'), ('1943', '8', '11', '4690', '13', '53.0000', '1-ago-13 Lavado y pulido Xool '), ('1944', '8', '12', '4690', '13', '26.5000', '1-ago-13 '), ('2114', '8', '11', '4693', '13', '189.7500', '1/8/13 ESTETICA INTERIOR XOOL'), ('1946', '8', '12', '4693', '13', '94.8800', '1-ago-13 '), ('1947', '8', '11', '4697', '13', '287.5000', '1-ago-13 Estetica exterior Xool '), ('1948', '8', '12', '4697', '13', '143.7500', '1-ago-13'), ('1949', '8', '11', '4703', '13', '53.0000', '1-ago-13 Lavado y pulido Xool '), ('1950', '8', '12', '4703', '13', '26.5000', '1-ago-13 '), ('1951', '8', '11', '4707', '13', '287.5000', '1-ago-13 estetica exterior Xool '), ('1952', '8', '12', '4707', '13', '143.7500', '1-ago-13'), ('1953', '8', '11', '4668', '13', '764.7500', '1-ago-13 Estetica interior y exterior, Proteccion de chasis, Jeovany '), ('1954', '8', '12', '4668', '13', '382.3800', '1-ago-13'), ('1955', '6', '7', '4717', '13', '150.0000', '1-ago-13 Pago '), ('1956', '6', '7', '4709', '13', '400.0000', '1-ago-13 1º Anticipo '), ('1957', '6', '7', '4705', '13', '150.0000', '1-ago-13 Pago'), ('1958', '6', '7', '4696', '13', '300.0000', '1-ago-13 1º anticipo '), ('1959', '6', '7', '4695', '13', '450.0000', '1-ago-13 1º Anticipo'), ('1960', '6', '7', '4690', '13', '250.0000', '1-ago-13 Pago'), ('1961', '6', '7', '4712', '13', '250.0000', '1-ago-13 1º Anticipo'), ('1962', '6', '7', '4698', '13', '350.0000', '1-ago-13 Pago'), ('1963', '6', '7', '4703', '13', '50.0000', '1-ago-13 Pago'), ('1964', '6', '7', '4696', '13', '600.0000', '1-ago-13 Pago '), ('1965', '6', '7', '4692', '13', '300.0000', '1-ago-13 Pago'), ('1966', '6', '7', '4699', '13', '250.0000', '1-ago-13 Pago '), ('1967', '6', '7', '4706', '13', '200.0000', '1-ago-13 Pago'), ('1968', '7', '8', '4675', '13', '200.0000', '1-ago-13 Juan carlos pieza 1'), ('1969', '7', '10', '4675', '13', '209.4000', '1-ago-13'), ('1970', '6', '7', '4682', '13', '100.0000', 'Sem 30 Angel '), ('1971', '6', '7', '4680', '13', '50.0000', 'Sem 30 Carlos Quintal'), ('1972', '6', '7', '4675', '13', '300.0000', 'Sem 30 Pago Javier'), ('1973', '7', '10', '4679', '13', '27.6700', 'Sem 30 '), ('1974', '7', '8', '4679', '13', '100.0000', 'Sem 30 Carlos Quintal pieza 1/2'), ('1975', '7', '10', '4680', '13', '146.2200', 'Sem 30'), ('1976', '7', '8', '4680', '13', '200.0000', 'Sem 30 Carlos Quintal pieza 1'), ('1978', '8', '11', '4679', '13', '230.0000', 'Sem 30 Estetica exterior Alfonzo'), ('1979', '8', '12', '4679', '13', '115.0000', 'Sem 30'), ('1980', '6', '7', '4670', '13', '50.0000', 'sem 30 Pago'), ('1981', '6', '7', '4672', '13', '100.0000', 'sem 30 Pago'), ('1982', '8', '11', '4404', '13', '53.0000', 'Sem 29 Lavado y pulido Xool'), ('1983', '8', '12', '4404', '13', '26.5000', 'Sem 29'), ('1984', '8', '11', '4613', '13', '99.0000', 'Sem 29 Lavado y pulido Joevanny'), ('1985', '8', '12', '4613', '13', '49.5000', 'Sem 29'), ('1986', '11', '15', '4584', '10', '1500.0000', ' 05 AGOSTO 13 NOTA MULTIPLE Y BULBO'), ('1987', '11', '16', '4718', '10', '170.0000', '05 AGOS-13 1/4 RESINA'), ('1988', '11', '15', '4601', '10', '210.0000', '6-AGO-13 F-12210 CONS (ROTULA INFERIOR DER)\\n'), ('1989', '11', '15', '4685', '10', '522.0000', '06 AGOS 13F-55058(DEPCO) CALAVERA RANGER (PAGO PARTICULAR EXTRA)\\n'), ('1990', '11', '15', '4716', '10', '970.0000', '06 agosto 13 F-10709 FORD (amortiguador)\t\t\t\t\\n'), ('2142', '9', '13', '4677', '13', '100.0000', 'PAGO OSCAR 8/8/13'), ('1992', '11', '16', '4706', '10', '150.0000', '07/8/13 ALINEACION RUED. DELANTERAS (MERCADO9\\n'), ('1993', '11', '15', '4704', '10', '344.4000', ' 06 AGOS 13 F-7465 HONDA (PRESION DE ACEITE)'), ('1994', '11', '16', '4684', '10', '1400.0000', '07 AGOSTO 13 MTTO. DE CABEZOTE'), ('1995', '11', '16', '4509', '10', '650.0000', '10-JULIO-13 PAGO MARIO MORA (CAMBIO SENSOR DE VOLANTE Y ELIMINAR RUIDO EN TELESCOPIO'), ('1996', '11', '16', '4588', '10', '600.0000', '7/AGOSTO/13 PAGO MARIO (CAMBIO DE BUJES Y ELIMINAR'), ('1997', '6', '7', '4720', '13', '250.0000', '1º ANT MILO 8/8/13 SEM 32'), ('1998', '6', '7', '4694', '13', '1000.0000', '1º ANT MILO 8/8/13 SEM 32'), ('1999', '6', '7', '4708', '13', '400.0000', '1º ANT MILO 8/8/13 SEM 32'), ('2000', '6', '7', '4710', '13', '300.0000', '1º ANT MILO 8/8/13 SEM 32'), ('2001', '6', '7', '4709', '13', '200.0000', '2º ANT MILO 8/8/13 SEM 32'), ('2002', '6', '7', '4666', '13', '100.0000', 'PAGO MILO ( TALLER ) 8/8/13 SEM 32'), ('2003', '9', '13', '4666', '13', '250.0000', 'SALDO OSCAR 8/8/13 SEM 32'), ('2004', '8', '11', '4666', '13', '30.0000', 'LAVADO Y ASPIRADO XOOL 8/8/13 SEM 32'), ('2005', '8', '12', '4666', '13', '15.0000', 'SHAMPOO'), ('2006', '11', '15', '4711', '10', '247.0000', '5-jul-13\tF-11884 CONST.(BOMBA DE AGUA)\t\t\t\t\\n'), ('3272', '11', '16', '4638', '13', '52.2000', 'AUDATEX'), ('2008', '11', '15', '4684', '10', '743.0000', '1-ago-13\tF-11822 CONSTITUCION (KIT DIST. BOMBA DE AGUA Y ANTICONGELANTE\\n'), ('2009', '11', '15', '4693', '10', '791.0000', '31-jul-13\tF-11710 CONSTITUCION (KIT AFINACION)\\n'), ('2010', '11', '15', '4666', '10', '45.0000', '26-jul-13\tF-11348 CONST (ANTICONGELANTE 3.28 LTS)\\n'), ('2011', '11', '15', '4660', '10', '1376.0000', '26-jul-13\tF-11334 CONSTITUCION (soporte de motor y macheta)\\n'), ('2012', '11', '15', '4683', '10', '376.5000', '25-jul-13\tF-11318 CONSTITUCION (FILTRO Y ACEITE)\t\\n'), ('2013', '11', '15', '4666', '13', '54.0000', 'ANTICONGELANTE (CONST )'), ('2014', '6', '7', '4695', '13', '100.0000', 'SALDO MANUEL 8/8/13 SEM 32'), ('2015', '7', '8', '4695', '13', '400.0000', 'PAGO JEOVANNY 2 PZS 8/8/13 SEM 32'), ('2016', '7', '10', '4695', '13', '414.2000', 'COLOR Y RESINA'), ('2017', '8', '8', '4695', '13', '99.0000', 'LAVADO Y PULIDO 3 PZS'), ('2018', '8', '12', '4695', '13', '49.5000', 'SHAMPOO Y PULIMENTOS'), ('2019', '11', '16', '4695', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('2020', '6', '7', '4725', '13', '100.0000', 'PAGO MANUEL 8/8/13 SEM 32'), ('2021', '8', '11', '4725', '13', '53.0000', 'LAVDO -PULIDO Y MOTOR 8/8/13 SEM 23'), ('2022', '8', '12', '4725', '13', '26.5000', 'SHAMPOO Y DESENGRASANTE'), ('2023', '6', '7', '4660', '13', '250.0000', '4º ANT MANUEL 8/8/13 SEM 23'), ('2024', '6', '7', '4728', '13', '100.0000', 'PAGO MANUEL 8/8/13 SEM 23'), ('2025', '8', '11', '4728', '13', '30.0000', 'LAVADO Y ASPIRADO 8/8/13 XOOL SEM 32'), ('2026', '8', '12', '4728', '13', '15.0000', 'MATERIAL'), ('2027', '11', '15', '4704', '10', '12515.9502', '3-ago-13\tF-12031 CONSTITUCION(VARIOS)\t\t\t\t\\n'), ('2028', '6', '7', '4588', '13', '100.0000', '5º ANT MANUEL 8/8/13 SEM 32'), ('2029', '11', '15', '4719', '10', '441.3000', '5-ago-13\tF-12139 C0NSTI (KIT DE AFINACION Y LIM DE INYECTORES)\t\t\t\\n'), ('2030', '11', '15', '4719', '10', '44.6500', '5-ago-13\tF-12146 CONS. (LIMPUIADOR P/CUERPO)\\n'), ('2031', '8', '11', '4588', '13', '99.0000', 'LAVADO Y PULIDO EDUARDO 8/8/13 SEM 32'), ('2032', '8', '12', '4588', '13', '49.5000', 'SHAMPOO Y PULIMENTOS'), ('2033', '11', '15', '4704', '10', '523.1600', '7-ago-13\tF-12391 COSN(TORNILLO ESTABILIZADOR TRASERO IZQ.)\\n'), ('2034', '11', '16', '4588', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('2035', '11', '15', '4735', '10', '891.2800', '7/AGOSTO/13 F-12397 CONST (ACEITE, FILTROS, LIMPIADDOR DE CUERPOS)\\n'), ('2036', '6', '7', '4704', '13', '200.0000', 'PAGO MANUEL 8/8/13 SEM 32'), ('2194', '11', '15', '4767', '10', '1360.0000', '14-ago-13\tF-17018 COLISION (REFUERZO TRASERO)\t\t\t\t\\n'), ('2121', '6', '7', '4584', '13', '100.0000', 'PAGO MANUEL 8/8/13'), ('2039', '11', '15', '4733', '10', '570.4200', 'F-12498 CONS (SOPORTE DE TRASMISION)\\n'), ('2040', '9', '13', '4704', '13', '600.0000', 'PAGO OSCAR 8/8/13 SEM 32'), ('2041', '11', '15', '4733', '10', '1228.9900', '8-ago-13\tF-12484 CONS (DOS SOPORTES TRASEROS)\\n'), ('2042', '8', '11', '4704', '13', '53.0000', 'LAVADO -ASPIRADO Y MOTOR'), ('2043', '8', '12', '4704', '13', '26.5000', 'SHAMPOO Y DESENGRASANTE'), ('2044', '11', '15', '4719', '10', '466.8400', '9-ago-13\tF-12556 CONS. (MOTOVENTILADOR)\t\t\t\t\\n'), ('2045', '6', '7', '4674', '13', '350.0000', 'SALDO JOSE BALMACEDA 8/8/13 SEM 32'), ('2046', '11', '15', '4625', '10', '318.1800', '9-ago-13\tF-12585 CONS (SENSOR POS ACEL)\t\\n'), ('2049', '6', '7', '4674', '13', '100.0000', '17º ANT GASPAR 4ºANT 8/8/13 SEM 32'), ('2050', '6', '7', '4674', '13', '300.0000', '18º ANT SALDO JAVIER 8/8/13 SEM 32'), ('2051', '11', '15', '4729', '10', '315.2900', '12-ago-13\tF-12680 CONS. (ACEITE Y FILTRO)\\n'), ('2052', '11', '15', '4672', '10', '899.7900', '19-jul-13\tF-10759 CONSTITUCION (ACEITE, CONDENSADOR, BUIJAS (KIT DE AFINACION)\\n'), ('2053', '11', '15', '4672', '10', '188.9200', '19-jul-13\tF-10793 CONSTITUCION (MACHETA)\\n'), ('2054', '11', '16', '4672', '10', '340.0000', '22-jul-13\tREC. DE TAMBORES y 2 JGOS DE BALATAS\\n'), ('2055', '11', '15', '4672', '10', '11.0000', '24-jul-13\tTORNILLOS\t\t\t\t\\n'), ('2056', '11', '15', '4654', '10', '3283.5701', '22-jul-13\tF-10967 CONSTITUCION( VARILLA, HORQUILLA)\\n'), ('2057', '11', '16', '4654', '10', '150.0000', '24-jul-13\tF-14705 (MERCADO DE LLANTA) ALINEACION\t\t\t\t\t\\n'), ('2058', '11', '15', '4668', '10', '2019.3000', '24-jul-13\tF-11162 CONSTITUCION (KIT DE AFINACION\\n'), ('2059', '11', '16', '4668', '10', '1160.0000', '25-jul-13\tPAGO BALATAS Y RECTIFICACION\\n'), ('2060', '11', '16', '4660', '10', '380.0000', '7-ago-13\tVACIO Y GARGA DE GAS\t\t\t\t\\n'), ('2061', '6', '7', '4685', '13', '250.0000', 'SALDO JOSE BALMACEDA 8/8/13 SEM 32'), ('2062', '7', '8', '4685', '13', '350.0000', 'PAGO JEOVANNY 1.75 PZ 8/8/13 SEM 32'), ('2151', '6', '7', '4686', '13', '200.0000', 'SALDO JOSE BALMACEDA 8/8/13'), ('2064', '11', '16', '4696', '10', '300.0000', '13-ago-13\tPAGO CRISTALERO MIGUEL\t\t\t\t\\n'), ('2065', '7', '10', '4685', '13', '316.6000', 'COLOR Y RESINA'), ('2067', '8', '11', '4685', '13', '76.0000', 'LAVADO-PULIDO Y LAV MOTOR 8/8/13 SEM 32'), ('2068', '8', '12', '4685', '13', '38.0000', 'SHAMPOO-DESENGRASANTE Y PULIDMENTOS'), ('2069', '11', '15', '4728', '10', '67.0000', '7-ago-13\tF-340108 BULBO Y JUEGOS\t\t\t\t\\n'), ('2070', '11', '15', '4728', '10', '18.0000', '7-ago-13\tF-340188 JUEGO DESLIZADOR\\n'), ('2071', '11', '16', '4685', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('2073', '6', '7', '4712', '13', '200.0000', 'SALDO JOSE BALMACEDA 8/8/13'), ('2074', '7', '8', '4712', '13', '400.0000', 'PAGO JEOVANNY 2PZS 8/8/13'), ('2075', '7', '10', '4712', '13', '358.0000', 'COLOR Y RESINA 8/8/13'), ('2076', '8', '11', '4712', '13', '69.0000', 'PULIDO 3 PZS EDUARDO 8/8/13'), ('2077', '8', '12', '4712', '13', '34.5000', 'PULIMENTO'), ('2078', '6', '7', '4721', '13', '450.0000', 'PAGO GASPAR 8/8/13'), ('2079', '11', '16', '4752', '10', '600.0000', '13-ago-13\tREP. DE CONTROL DE TELEMANDO\t\t\t\t\\n'), ('2080', '7', '8', '4721', '13', '500.0000', 'PAGO ANGEL 2 1/2 PZ 8/8/13'), ('2081', '7', '10', '4721', '13', '507.3000', 'COLOR Y RESINA 8/8/13'), ('2082', '8', '11', '4721', '13', '99.0000', 'LAVADO Y PULIDO 3 PZS 8/8/13'), ('2083', '8', '12', '4721', '13', '49.5000', 'SHAMPOO-PULIMENTO'), ('2084', '11', '16', '4729', '10', '300.0000', '10-ago-13\tREPROGRAMACION Y BORRADO DE CODIGOS DE FALLA\\n'), ('2085', '11', '16', '4584', '10', '450.0000', '10-ago-13\tREPROGRAMACION DE CUERPO DE ACELERACION\\n'), ('2086', '6', '7', '4601', '13', '500.0000', '2º ANT JOSE BALMACEDA 8/8/13'), ('2087', '11', '16', '4601', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('2088', '11', '15', '4736', '10', '183.2800', '8-ago-13\tF- AUTOMAYA (REJILLA FASCIA)\t\t\t\t\\n'), ('2089', '11', '15', '4736', '10', '75.4000', '8-ago-13\tF- 23253 AUTOMAYA (GUIA DE FASCIA)\\n'), ('2090', '6', '7', '4736', '13', '350.0000', 'PAGO JOSE BALMACEDA 8/8/13'), ('2093', '6', '7', '4535', '13', '200.0000', 'PAGO GASPAR ( INSTALACION DE ALOGENOS CORTESIA ) 8/8/13'), ('2094', '6', '7', '4625', '13', '300.0000', 'SALDO GASPAR 8/8/13'), ('2095', '7', '8', '4625', '13', '650.0000', 'PAGO ANGEL 3 1/4 PZ 8/8/13'), ('2096', '7', '10', '4625', '13', '679.8000', 'COLOR Y RESINA 8/8/13'), ('2097', '8', '11', '4625', '13', '99.0000', 'LAVADO Y PULIDO 3 PZS'), ('2098', '8', '12', '4625', '13', '49.5000', 'SHAMPOO Y PULIMENTOS'), ('2099', '6', '7', '4716', '13', '200.0000', 'PAGO GASPAR 8/8/13'), ('2101', '9', '13', '4609', '13', '50.0000', 'SALDO OSCAR 8/8/13'), ('2102', '11', '15', '4758', '10', '835.2000', '12-ago-13\tF-52471 DEPCO (DEFENSA)\t\t\t\t\\n'), ('2103', '11', '15', '4737', '10', '709.9200', '12-ago-13\tF-52460 DEPCO (CALAVERA)\\n'), ('2104', '11', '15', '4684', '10', '39.0200', '9-ago-13\tF-3514 REPUESTOS DEL CARIBE (ANTICONGELANTE)\\n')\");\n\t\t$this->db->simple_query(\"INSERT INTO `gastos_vehiculo` VALUES ('2105', '11', '15', '4733', '10', '66.0000', '12-ago-13\tTORNILLOS\t\t\t\t\\n'), ('2152', '8', '11', '4686', '13', '230.0000', 'EST EXTERIOR 8/8/13 XOOL'), ('2107', '11', '15', '4677', '10', '589.0100', '7-ago-13\tF-2736 TOYOTA (FUSIBLE)\t\t\t\t\\n'), ('2108', '11', '16', '4481', '10', '300.0000', '13-ago-13\tESCANEO\t\t\t\t\\n'), ('2109', '11', '15', '4601', '10', '662.0100', '7-ago-13\tF-29736 SEAT (PERFIL Y CONSOLA)\t\t\t\t\\n'), ('2110', '11', '15', '4625', '10', '50.0000', '7-ago-13\tGUIA DE FASCIA TRASERA\t\t\t\t\\n'), ('2111', '8', '11', '4609', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ EDUARDO 8/8/13'), ('2112', '8', '12', '4609', '13', '26.5000', 'SHAMPOO Y PULIMENTO'), ('2113', '9', '13', '4693', '13', '250.0000', 'PAGO OSCAR 8/8/13'), ('2115', '9', '13', '4719', '13', '250.0000', 'PAGO OSCAR 8/8/13'), ('2116', '8', '11', '4719', '13', '53.0000', 'LAVADO -ASPIRASO Y LAV MOTOR 8/8/13'), ('2117', '8', '12', '4719', '13', '26.5000', 'SHAMPOO DESENGRASANTE'), ('2118', '11', '16', '4719', '13', '648.0000', 'RECTIFICACION DE 2 TAMBORES Y 2 DISCOS/ 1 JG DE BALATAS TRAS/ 1 JG DE BALATAS DEL ( CLUCH FRENOS CHUBURNA ) 6/8/13'), ('2119', '9', '13', '4584', '13', '300.0000', 'PAGO OSCAR 8/8/13'), ('2120', '11', '16', '4584', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('2122', '9', '13', '4711', '13', '150.0000', 'PAGO OSCAR 8/8/13'), ('2123', '8', '11', '4711', '13', '30.0000', 'LAVADO Y ASPIRADO 8/8/13'), ('2124', '8', '12', '4711', '13', '15.0000', 'SHAMPOO'), ('2125', '9', '13', '4684', '13', '150.0000', '1º ANT OSCAR 8/8/13'), ('2127', '11', '16', '4715', '10', '300.0000', '14-ago-13\tSEGURO TRASERO IZQUIERDO\\n'), ('2128', '11', '16', '4757', '10', '200.0000', '14-ago-13\tREP, ELEVADOR IZQ. (MIGUEL CRISTALERO)\\n'), ('2129', '9', '13', '4660', '13', '50.0000', 'SALDO OSCAR 8/8/13'), ('2130', '9', '13', '4735', '13', '200.0000', 'PAGO OSCAR 8/8/13'), ('2131', '11', '16', '4660', '13', '52.2000', 'tarifa valuacion audatex'), ('2132', '11', '15', '4660', '13', '700.0000', 'RADIADOR'), ('2133', '11', '15', '4660', '13', '543.0000', 'FARO DE FIESTA ( F-54371 DEPCO )'), ('2134', '11', '15', '4660', '13', '1105.0000', 'DEFENSA DELANTERA ( F-51320 DEPCO )'), ('2135', '11', '16', '4660', '13', '250.0000', 'REPARACION DE CONDENSADOR '), ('2136', '6', '7', '4722', '13', '250.0000', 'PAGO OSCAR 8/8/13'), ('2137', '9', '13', '4724', '13', '150.0000', 'PAGO OSCAR 8/8/13'), ('2138', '9', '13', '4706', '13', '100.0000', 'PAGO OSCAR 8/8/13'), ('2139', '8', '11', '4706', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ 8/8/13 EDUARDO'), ('2140', '8', '12', '4706', '13', '26.5000', 'SHAMPOO Y PULIMENTO'), ('2141', '11', '16', '4706', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('2143', '6', '7', '4713', '13', '150.0000', 'PAGO ANGEL 8/8/13'), ('2144', '7', '8', '4713', '13', '300.0000', 'PAGO ANGEL 1 1/2 PZ 8/8/13'), ('2145', '7', '10', '4713', '13', '299.3000', 'COLOR Y RESINA 8/8/13'), ('2147', '8', '11', '4713', '13', '46.0000', 'PULIDA 2 PZS 8/8/13 ( EDUARDO'), ('2148', '8', '12', '4713', '13', '23.0000', 'PULIMENTO'), ('2150', '6', '7', '4717', '13', '200.0000', 'PAGO FRANCISCO 8/8/13\\n'), ('2153', '8', '12', '4686', '13', '115.0000', 'SHAMPOO Y PULIMENTOS'), ('2156', '11', '16', '4686', '13', '900.0000', 'PAGO CRISTALERO MIGUEL 13/8/13'), ('2155', '11', '15', '4686', '13', '1774.0000', 'F-6093 PEUGEOT (STOP Y BISAGRA) 13/8/13'), ('2159', '8', '11', '4686', '13', '190.0000', 'EST INTERIOR 15/8/13'), ('2158', '8', '12', '4686', '13', '97.8800', 'SHAMPOO'), ('2160', '11', '16', '4754', '10', '2800.0000', '15-ago-13\tF- Reparacion de puertas corredizas\t\t\t\t\\n'), ('2161', '11', '15', '4686', '13', '100.0000', 'CLAXON DE USO'), ('2162', '7', '8', '4686', '13', '400.0000', 'PAGO FRANCISCO RINES'), ('2163', '7', '10', '4686', '13', '242.0000', 'COLOR Y RESINA RINES'), ('2164', '6', '7', '4730', '13', '200.0000', 'PAGO JAVIER '), ('2165', '7', '8', '4730', '13', '200.0000', 'PAGO JEOVANNY 1PZ 8/8/13'), ('2166', '7', '10', '4730', '13', '150.6000', 'COLOR Y RESINA 8/8/13'), ('2167', '8', '11', '4730', '13', '53.0000', 'LAVADO -ASPIRADO Y PULIDO 1 PZ'), ('2168', '8', '12', '4730', '13', '26.5000', 'SHAMPOO Y PULIMENTO'), ('2169', '6', '7', '4457', '13', '700.0000', 'SALDO JAVIER 8/8/13'), ('2170', '7', '8', '4457', '13', '750.0000', 'PAGO JEOVANNY 3.75 PZS 8/8/13'), ('2171', '7', '10', '4457', '13', '369.9000', 'COLOR Y RESINA '), ('2172', '8', '11', '4457', '13', '99.0000', 'LAVADO Y PULIDO LVA MOTOR 8/8/13 XOOL'), ('2173', '8', '12', '4457', '13', '49.5000', 'SHAMPOO- PULIMENTO Y DESENGRASANTE 8/8/13'), ('2174', '11', '16', '4457', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('2175', '11', '15', '4535', '10', '480.8200', '14-ago-13\tF-12969 COSNT. (ACEITE, FILTRO, ORMA Y ANTICONGELANTE)\\n'), ('2176', '11', '15', '4535', '10', '1059.0000', '10-jul-13\tF-4387 ( AUDI) RETENES\t\t\t\t\\n'), ('2177', '11', '15', '4535', '10', '5.0000', '14-ago-13\tF-341328 PENSIONES (ABRAZADERAS)\t\t\t\t\\n'), ('2178', '11', '15', '4535', '10', '1188.0000', '14-ago-13\tF-341325 PENSIONES (EMPAQUE, MANGUERA DE ACEITE, LIGA Y ABRAZADERAS)\\n'), ('2179', '11', '15', '4760', '10', '152.5300', '15-ago-13\tF-12977 CONST (BUJIAS 4 PZAS)\t\t\t\t\\n'), ('2180', '11', '15', '4760', '10', '1357.3900', '14-ago-13\tF-12970 (CONST) FILTRO, LIM. INYECT, BUJIAS, FILTRO Y ACEITE.\\n'), ('2181', '11', '15', '4720', '10', '501.1200', '14-ago-13\tF-52636 DEPCO (SALPICADERA DERECHA\\n'), ('2182', '11', '15', '4715', '10', '267.4500', '12-ago-13\tF-62426 GM (MANIJA, INT)\\n'), ('2183', '11', '15', '4736', '10', '183.2800', '14-ago-13\tF-23349 AUTOMAYA (MOLDURA DE FASCIA\t\t\t\t\\n'), ('2184', '6', '7', '4739', '13', '600.0000', '1º ANT JAVIER 8/8/13'), ('2185', '7', '8', '4705', '13', '850.0000', 'PAGO JUAN CARLOS 4.25 PZS 8/8/13'), ('2186', '7', '10', '4705', '13', '610.6000', 'COLOR Y RESINA 8/8/13\\n'), ('2187', '7', '53', '4705', '13', '50.0000', 'DETALLADO 8/8/13'), ('2188', '8', '11', '4705', '13', '230.0000', 'ESTETICA EXTERIOR 8/8/13 XOOL'), ('2189', '8', '12', '4705', '13', '115.0000', 'SHAMPOO / DESENGRASANTE Y PULIMENTOS'), ('2190', '7', '8', '4729', '13', '650.0000', 'PAGO ANGEL 3 1/4 PZ 8/8/13'), ('2191', '7', '10', '4729', '13', '628.7700', 'COLOR RESINA\\n'), ('2192', '8', '11', '4729', '13', '46.0000', 'PULIDO 2 PZS XOOL 8/8/13'), ('2193', '8', '12', '4729', '13', '23.0000', 'PULIMENTO'), ('2195', '11', '16', '4755', '10', '300.0000', '13-ago-13\tESCANEO\\n'), ('2196', '11', '15', '4753', '10', '965.2600', '15-ago-13\tF- FORD (STOP DE TOLDO)\t\t\t\t\\n'), ('2197', '7', '10', '4674', '13', '142.2400', 'F-10221 TPS PRIMARIO AUTOACON Y CONVERTIDOR 15/8/13'), ('2354', '11', '16', '4694', '13', '52.2000', 'TARIFA VALUACION AUDATEX'), ('2355', '11', '15', '4684', '13', '685.5000', 'EMPAQ PUNT RET ACEIT FILT F-12454 CONST 8/8/13'), ('2199', '11', '15', '4755', '10', '2000.0000', '16-ago-13\tPTA, TRASERA DERECHA\t\t\t\t\\n'), ('2200', '11', '16', '4720', '10', '250.0000', '16-ago-13\tREP. DE CONDENSADOR\t\t\t\t\\n'), ('2201', '11', '15', '4759', '10', '2500.0000', '16-ago-13\tPTA TRASERA IZQUIERDA\\n'), ('2202', '11', '15', '4709', '10', '1000.0000', '16-ago-13\tANTICIPO TAPA CAJUELA TOTAL $ 2,000.00\\n'), ('2203', '11', '16', '4760', '11', '150.0000', '16-ago-13\tALINEACION RUEDA DEL (mercado )\t\t\t\t\\n'), ('2204', '11', '16', '4694', '11', '225.0000', '14-ago-13\tALINEACION RUEDA DEL Y MONTAJE DE LLANTA EN RIN (mercado )\t\t\t\t\\n'), ('2205', '11', '15', '4601', '11', '300.0000', '16-ago-13\tPIEZA DE ESPIGA\t\t\t\t\\n'), ('2206', '11', '16', '4694', '11', '500.0000', '16-ago-13\tCOMISION\t\t\t\t\\n'), ('2207', '11', '16', '4755', '11', '300.0000', '16-AGO-13 COMISION'), ('2208', '11', '16', '4759', '11', '400.0000', '16 AGO-13 COMISION'), ('2209', '11', '16', '4678', '11', '500.0000', '16 AGOSTO 13 COMISION'), ('2210', '11', '16', '4666', '10', '2800.0000', '17-ago-16\tPAGO MECANICO M/O Y TAPONES CRISTHOPER\\n'), ('2211', '11', '15', '4768', '10', '990.3700', '16-ago-13\tF-13164 CONS (ACEITE, FILTRO,BUJIAS, LIMPIADOR CUERPO E INYECTOR\\n'), ('2212', '11', '16', '4768', '10', '987.6800', '16-ago-13\tF-13078 CONS (BALERO, MACHEA Y LADO DE CAJA\\n'), ('2213', '11', '15', '4400', '13', '52.2000', 'tarifa valuacion audatex'), ('2214', '11', '15', '4512', '10', '7582.6802', '17-ago-13\tf-13211 cons(metales, anillos, anticongelante , ect.\t\t\t\t\t\\n'), ('2215', '11', '16', '4512', '10', '400.0000', '29-may-13\tDUPLICADO DE LLAVES\t\t\t\t\\n'), ('2216', '11', '15', '4709', '10', '800.0000', '19-ago-13\tSALDO TAPA CAJUELA \\n'), ('2217', '7', '10', '4696', '10', '1302.7600', '13-ago-13\tF-10181 DUPONT RESINA EUROTECH\\n'), ('2218', '11', '16', '4768', '10', '150.0000', '19-ago-13\tALINEACION DE RUEDAS DEL.(MERCADO)\\n'), ('2219', '11', '15', '4754', '10', '50.0000', '19-ago-13\t2 FOCOS\\n'), ('2222', '8', '11', '4597', '13', '99.0000', 'LAVADO,PULIDO 2 Y LAV MOTOR 8/8/13'), ('2221', '8', '12', '4597', '13', '49.5000', 'shampoo-desengrasante y pulimentos'), ('2223', '8', '11', '4714', '13', '30.0000', 'LAVADO Y ASPIRADO 8/8/13'), ('2224', '8', '12', '4714', '13', '15.0000', 'SHAMPOO '), ('2225', '8', '11', '4722', '13', '53.0000', 'LAVADO, PULIDO Y LAV MOTOR 8/813'), ('2226', '8', '12', '4722', '13', '26.5000', 'SHAMPOO Y DESENGRASANTE'), ('2227', '8', '11', '4664', '13', '30.0000', 'LAVADO Y ASPIRADO 8/8/13'), ('2228', '8', '12', '4664', '13', '15.0000', 'SHAMPOO'), ('2229', '8', '11', '4731', '13', '30.0000', 'LAVADO Y ASPIRADO 8/8/13'), ('2230', '8', '12', '4731', '13', '15.0000', 'SHAMPOO'), ('2231', '8', '11', '4698', '13', '30.0000', 'LAVADO Y ASPIRADO 8/8/13'), ('2232', '8', '12', '4698', '13', '15.0000', 'SHAMPOO'), ('2233', '8', '11', '4738', '13', '189.7500', 'EST INTERIOR 8/8/13 EDUARDO'), ('2234', '8', '12', '4738', '13', '94.8800', 'SHAMPOO,DESENGRASAN,PULIMENTOS 8/8/13'), ('2235', '6', '7', '4766', '13', '100.0000', 'PAGO MILO 15/8/13'), ('2236', '6', '7', '4720', '13', '700.0000', '2º ANT MILO 15/8/13'), ('2237', '6', '7', '4709', '13', '100.0000', '3º ANT MILO 15/8/13'), ('2238', '6', '7', '4709', '13', '100.0000', 'PAGO MANUEL 15/8/13'), ('2239', '6', '7', '4708', '13', '500.0000', '2º ANT MILO 15/8/13'), ('2240', '6', '7', '4710', '13', '300.0000', '2º ANT MILO 15/8/13'), ('2241', '6', '7', '4710', '13', '300.0000', '3º ANT MANUEL 15/8/13'), ('2242', '6', '7', '4717', '13', '250.0000', 'PAGO MILO 15/8/13'), ('2243', '7', '8', '4717', '13', '2400.0000', 'PAGO JUAN CARLOS 12 PZS 15/8/13'), ('2244', '7', '10', '4717', '13', '2425.0701', 'COLOR Y RESINA'), ('2245', '8', '11', '4717', '13', '230.0000', 'EST EXTERIRO 15/8/13'), ('2246', '8', '12', '4717', '13', '115.0000', 'SHAMPOO,DESENGRASATE Y PULIMENTOS'), ('2247', '6', '7', '4694', '13', '100.0000', 'PAGO MILO ( TALLER ) 15/8/13'), ('2248', '7', '8', '4694', '13', '600.0000', 'PAGO JUAN CARLOS 3 PZS 15/8/13'), ('2249', '7', '10', '4694', '13', '723.4000', 'COLOR Y RESINA'), ('2250', '7', '53', '4694', '13', '50.0000', 'DESTALLADO 15/8/13'), ('2251', '8', '11', '4694', '13', '122.0000', 'LAVADO, PULIDO 3 PZS Y LAV MOTOR 15/8/13 XOOL'), ('2252', '8', '12', '4694', '13', '61.0000', 'SHAMPOO,DESENGRASANTE Y PULIMENTO'), ('2253', '6', '7', '4759', '13', '100.0000', 'PAGO MILO ( TALLER ) 15/8/13'), ('2254', '6', '7', '4601', '13', '150.0000', 'PAGO MILO ( TALLER ) 15/8/13'), ('2255', '6', '7', '4601', '13', '300.0000', '3º ANT JOSE BALMACEDA 15/8/13'), ('2256', '9', '13', '4601', '13', '50.0000', '2º ANT OSCAR 15/8/13'), ('2257', '6', '7', '4715', '13', '100.0000', 'PAGO MANUEL 15/8/13'), ('2258', '6', '7', '4758', '13', '600.0000', 'PAGO MANUEL 15/8/13'), ('2261', '7', '8', '4758', '13', '450.0000', 'PAGO ANGEL 2 1/4 PZS 15/8/13'), ('2260', '7', '10', '4758', '13', '497.5000', 'COLOR Y RESINA '), ('2262', '6', '7', '4765', '13', '150.0000', '1º ANT MANUEL 15/8/13'), ('2263', '6', '7', '4584', '13', '100.0000', 'PAGO MANUEL (TALLER ) 15/8/13'), ('2264', '8', '11', '4584', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ 15/8/13'), ('2265', '8', '12', '4584', '13', '26.5000', 'SHAMPOO Y PULIMENTO 15/8/13'), ('2266', '6', '7', '4746', '13', '450.0000', 'PAGO JOSE BALMACEDA 15/8/13'), ('2267', '6', '7', '4744', '13', '150.0000', 'PAGO JOSE BALMACEDA 15/8/13'), ('2268', '7', '8', '4744', '13', '550.0000', 'PAGO ANGEL 2 3/4 PZ 15/8/13'), ('2269', '7', '10', '4744', '13', '386.8000', 'COLOR Y RESINA 15/8/13'), ('2270', '8', '8', '4744', '13', '76.0000', 'LAVADO,ASPIRADO Y PULIDA 2 PZS 15/8/13'), ('2272', '8', '12', '4744', '13', '38.0000', 'SHAMPOO Y PULIMENTOS 15/8/13'), ('2273', '6', '7', '4747', '13', '250.0000', 'PAGO JOSE BALMACEDA 15/8/13'), ('2274', '7', '8', '4747', '13', '600.0000', 'PAGO JEOVANNY 3 PZS 15/8/13'), ('2275', '7', '10', '4747', '13', '519.6000', 'COLOR Y RESINA 15/8/13'), ('2276', '8', '11', '4747', '13', '230.0000', 'EST EXTERIOR 15/8/13'), ('2277', '8', '12', '4747', '13', '115.0000', 'SHAMPOO,DESENGRASANTE Y PULIMENTOS'), ('2278', '6', '7', '4762', '13', '400.0000', 'PAGO JOSE BALMACEDA 15/8/13'), ('2279', '6', '7', '4737', '13', '500.0000', 'PAGO JOSE BALMACEDA 15/8/13'), ('2280', '6', '7', '4743', '13', '250.0000', '1º ANT JOSE BALMACEDA 15/8/13'), ('2281', '6', '7', '4756', '13', '100.0000', 'PAGO JUAN CARLOS 15/8/13'), ('2282', '7', '8', '4756', '13', '100.0000', 'PAGO JUAN CARLOS 1/2 PZ 15/8/13'), ('2283', '7', '10', '4756', '13', '113.7000', 'COLOR Y RESINA'), ('2284', '8', '11', '4756', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ 15/8/13'), ('2285', '8', '12', '4756', '13', '26.5000', 'SHAMPOO Y PULIMENTOS '), ('2286', '9', '13', '4684', '13', '500.0000', 'SALDO OSCAR 15/8/13'), ('2287', '8', '11', '4684', '13', '53.0000', 'LAVADO Y LAVADO DE MOTOR '), ('2288', '8', '12', '4684', '13', '26.5000', 'SHAMPO Y DESENGRASANTE'), ('2289', '9', '13', '4719', '13', '350.0000', 'PAGO OSCAR 15/8/13'), ('2290', '9', '13', '4729', '13', '100.0000', 'PAGO OSCAR 15/8/13'), ('2291', '9', '13', '4733', '13', '400.0000', 'PAGO OSCAR 15/8/13'), ('2292', '8', '11', '4733', '13', '53.0000', 'LAVADO,ASPIRADO Y LAV MOTOR 15/8/13'), ('2293', '8', '12', '4733', '13', '26.5000', 'SHAMPOO Y DESENGRASANTE'), ('2294', '9', '13', '4760', '13', '300.0000', 'PAGO OSCAR 15/8/13'), ('2295', '9', '13', '4760', '13', '300.0000', 'PAGO OSCAR 15/8/13'), ('2296', '9', '13', '4535', '13', '500.0000', '1º ANT OSCAR 15/8/13'), ('2297', '6', '7', '4723', '13', '200.0000', 'PAGO CARLOS QUINTAL 15/8/13'), ('2298', '7', '8', '4723', '13', '150.0000', 'PAGO CARLOS QUINTAL 3/4 PZS 15/8/13'), ('2299', '7', '10', '4723', '13', '163.6000', 'COLOR Y RESINA 15/8/13'), ('2300', '7', '53', '4723', '13', '50.0000', 'DETALLADO 15/8/13'), ('2301', '6', '7', '4764', '13', '150.0000', 'PAGO CARLOS QUINTAL 15/8/13'), ('2302', '8', '11', '4764', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS 15/8/13'), ('2303', '8', '12', '4764', '13', '38.0000', 'SHAMPOO Y PULIMENTO '), ('2304', '6', '7', '4763', '13', '100.0000', 'pago carlos quintal ( taller ) 15/8/13'), ('2305', '6', '7', '4763', '13', '350.0000', 'PAGO JAVIER 15/8/13'), ('2306', '7', '8', '4763', '13', '200.0000', 'PAGO JUAN CARLOS 1 PZ 15/8/13'), ('2307', '7', '10', '4763', '13', '292.3000', 'COLOR Y RESINA 15/8/13'), ('2308', '7', '53', '4763', '13', '50.0000', 'DETALLADO'), ('2309', '8', '11', '4763', '13', '53.0000', 'LAVADO,ASPIRADO Y PULIDO 1 PZ 15/8/13'), ('2310', '8', '12', '4763', '13', '26.5000', 'SHAMPOO Y PULIMENTO'), ('2311', '6', '7', '4741', '13', '100.0000', 'PAGO CARLOS QUINTAL ( TALLER ) 15/8/13'), ('2312', '6', '7', '4741', '13', '300.0000', 'PAGO JAVIER 15/8/13 '), ('2313', '7', '8', '4741', '13', '200.0000', 'PAGO JUAN CARLOS 1 PZ 15/8/13'), ('2314', '7', '10', '4741', '13', '222.6000', 'COLOR Y RESINA 15/8/13'), ('2315', '8', '11', '4741', '13', '76.0000', 'LAVADO,ASPIRADO,PULIDO 1 PZ ,LAV MOTOR 15/8/13'), ('2316', '8', '12', '4741', '13', '38.0000', 'SHAMPOO Y PULIMENTOS '), ('2317', '6', '7', '4739', '13', '100.0000', 'SALDO JAVIER 15/8/13'), ('2318', '7', '8', '4739', '13', '600.0000', 'PAGO JEOVANNY 3 PZ 15/8/13'), ('2319', '7', '10', '4739', '13', '706.4000', 'COLRO Y RESINA 15/8/13'), ('2320', '8', '11', '4739', '13', '76.0000', 'LAVADO ASPIRADO Y PULIDO 2 PZS 15/8/13'), ('2321', '8', '12', '4739', '13', '38.0000', 'SHAMPOO Y PULIMENTOS 15/8/13'), ('2322', '6', '7', '4745', '13', '450.0000', '1º ANT JAVIER 15/8/13'), ('2323', '6', '7', '4754', '13', '800.0000', '1º ant javier 15/8/13'), ('2475', '6', '7', '4742', '13', '450.0000', '1º ANT JAVIER 15/8/13'), ('2325', '7', '8', '4742', '13', '250.0000', 'PAGO ANGEL 1 1/4 15/8/13'), ('2326', '7', '10', '4742', '13', '320.1300', 'COLOR Y RESINA 15/8/13'), ('2327', '6', '7', '4755', '13', '200.0000', '1º ANT JAVIER 15/8/13'), ('2328', '7', '8', '4594', '13', '100.0000', 'PAGO JUA CARLOS 1/2 PZS 15/8/13'), ('2329', '7', '10', '4594', '13', '75.3800', 'COLOR '), ('2330', '7', '8', '4752', '13', '100.0000', 'PAGO JUAN CARLOS 1/2 PZ 15/8/13'), ('2331', '7', '10', '4752', '13', '75.0800', 'COLOR'), ('3269', '11', '16', '4658', '13', '350.0000', 'DIAGNOSTICO'), ('2333', '7', '8', '4696', '13', '2900.0000', 'PAGO CARLOS QUINTAL 14 1/2 PZ 15/8/13'), ('2334', '7', '8', '4696', '13', '1500.2400', 'COLOR Y RESINA'), ('2335', '7', '53', '4696', '13', '600.0000', 'DETALLADO 15/8/13'), ('2336', '7', '8', '4764', '13', '200.0000', 'PAGO CARLOS QUINTAL 1 PZS 15/8/13'), ('2337', '7', '10', '4764', '13', '176.5100', 'COLOR Y RESINA 15/8/13'), ('2338', '7', '8', '4746', '13', '600.0000', 'PAGO JEOVANNY 3 PZS 15/8/13'), ('2339', '7', '10', '4746', '13', '563.3000', 'COLOR Y RESINA 15/8/13'), ('2340', '7', '8', '4736', '13', '200.0000', 'PAGO ANGEL 1 PZ 15/8/13'), ('2341', '7', '10', '4736', '13', '167.6400', 'COLOR Y RESINA 15/8/13'), ('2342', '8', '11', '4736', '13', '76.0000', 'LAVADO ,ASPIRADO PULIDO 2 PZS LAV MOTOR 15/8/13'), ('2343', '8', '12', '4736', '13', '38.0000', 'SHAMPOO Y PULIMENTOS'), ('2344', '8', '11', '4660', '13', '122.0000', 'LAVADO,ASPIRADO Y PULIDO 4 PZAS 15/8/13'), ('2345', '8', '12', '4660', '13', '61.0000', 'SHAMPOO Y PULIMENTOS 15/8/13'), ('2346', '8', '11', '4738', '13', '287.5000', 'EST EXTERIOR 15/8/13 EDUARDO'), ('2347', '8', '12', '4738', '13', '143.7500', 'SHAMPOO DESENGRASANTE Y PULIMENTOS 15/8/13'), ('2352', '8', '11', '4758', '13', '230.0000', 'EST EXTERIOR EDUARDO 15/8/13'), ('2349', '8', '12', '4758', '13', '115.0000', 'SHAMPOO Y DESENGRASANTE PULIMENTOS 15/8/13'), ('2350', '7', '9', '4674', '13', '219.7600', 'PRIMARIO Y CONVERTIDOR 21/8/13 1/2 LTRO '), ('2351', '7', '9', '4708', '13', '219.7600', 'PRIMARIO Y CONVERTIDOR 21/8/13 1/2 LTRO '), ('2353', '11', '16', '4756', '13', '52.2000', 'TARIFA VALUACION AUDATES'), ('2356', '11', '16', '4755', '10', '150.0000', '20-ago-13\tALINEACION DE RUEDAS DEL. (MERCADO DE LLANTAS)\\n'), ('2357', '11', '16', '4535', '10', '150.0000', '19-ago-13\tALINEACION DE RUEDAS DEL. (MERCADO DE LLANTAS)\\n'), ('2358', '11', '15', '4744', '10', '90.0000', '19-ago-13\tREPARACION DE LLANTA TRASERA (MERCADO DE LLANTA)\\n'), ('2359', '11', '16', '4601', '10', '800.0000', '23-ago-13\tCLOCH A/A\t\t\t\t\\n'), ('2360', '11', '16', '4720', '10', '915.0700', '21-ago-13\tF-13379 CONST (ACEITE, BANDA Y SOPORTE)\t\t\t\t\\n'), ('2361', '11', '15', '4720', '10', '427.9400', '22-ago-13\tF-13520 CONST (SOPORTE MOTOR)\t\t\t\t\\n'), ('2362', '11', '15', '4697', '10', '1095.5500', '21-ago-13\tF-13378 CONST (BALATAS Y SOPORTE)\\n'), ('2363', '11', '15', '4535', '10', '369.0000', '22-ago-13\tF-342742 PENSIONES (SENSOR DE ACEITE)\t\t\t\t\\n'), ('3334', '6', '7', '4745', '13', '100.0000', '29/8/13 SALDO JAVIER'), ('2365', '11', '16', '4745', '11', '380.0000', '23-ago-13\tVACIO Y CARGA DE A/A\\n'), ('2367', '11', '15', '4457', '10', '1085.7600', '1-ago-13\tF-51719 DEPCO(DEFENSA DELANTERA)\\n'), ('2368', '11', '15', '4692', '10', '1085.7600', '1-ago-13\tF-51718 DEPCO (FARO)\t\t\t\t\\n'), ('2369', '6', '7', '4709', '13', '150.0000', 'PAGO MILO 22/8/13'), ('2377', '6', '7', '4709', '13', '150.0000', 'PAGO MANUEL 22/8/13'), ('2371', '6', '7', '4709', '13', '200.0000', 'PAGO CARLOS QUINTAL 22/8/13'), ('2374', '7', '8', '4709', '13', '500.0000', 'PAGO ANGEL 2 1/2 22/8/13'), ('2373', '7', '10', '4709', '13', '565.3700', 'COLRO Y RESINA 22/8/13'), ('2375', '8', '11', '4709', '13', '76.0000', 'LAVADO-PULIDO 2 PZS Y MOTOR 22/8/13'), ('2378', '8', '12', '4709', '13', '38.0000', 'SHAMPOO PULIMENTO '), ('2379', '6', '7', '4779', '13', '650.0000', '1º ANT MILO 22/8/13'), ('2380', '6', '7', '4779', '13', '50.0000', '2º ANT FERNANDO 22/8/13'), ('2381', '6', '7', '4759', '13', '900.0000', '2º ANT MILO 22/8/13'), ('2382', '6', '7', '4694', '13', '300.0000', 'PAGO MILO 22/8/13'), ('2383', '11', '16', '4753', '10', '200.0000', '26-ago-13\tDESMONTAR Y MONTAR MEDALLON(MIGUEL)\\n'), ('2384', '6', '7', '4694', '13', '50.0000', 'PAGO MANUEL 22/8/13'), ('2385', '6', '7', '4708', '13', '200.0000', '3º ANT MILO'), ('2386', '6', '7', '4710', '13', '100.0000', '4º ANT MILO 22/8/13'), ('2387', '6', '7', '4710', '13', '100.0000', 'SALDO MANUEL 22/8/13'), ('2388', '6', '7', '4776', '13', '100.0000', 'PAGO MILO ( TALLER ) 22/8/13'), ('2389', '6', '7', '4776', '13', '50.0000', 'PAGO JOSE BALMACEDA 22/8/13 '), ('2390', '6', '7', '4776', '13', '50.0000', 'PAGO FERNANDO 22/8/13'), ('2391', '6', '7', '4776', '13', '100.0000', 'PAGO JEOVANNY 22/8/13'), ('2393', '7', '8', '4776', '13', '200.0000', 'PAGO JEOVANNY 1 PZ 22/8/13'), ('2394', '7', '10', '4776', '13', '354.5000', 'COLOR Y RESINA'), ('2519', '8', '11', '4776', '13', '23.0000', 'PULIDA 1 22/8/13'), ('2397', '8', '12', '4776', '13', '11.5000', 'PULIMENTO'), ('2400', '6', '7', '4674', '13', '100.0000', '2º ANT MILO 22/8/13 (CUENTA NUEVA )'), ('2401', '6', '7', '4674', '13', '100.0000', '3º ANT MANUEL ( CUENTA NUEVA )'), ('2402', '6', '7', '4535', '13', '100.0000', 'PAGO MILO 22/8/13 ( TALLER )'), ('2403', '9', '13', '4535', '13', '800.0000', 'SALDO OSCAR 22/8/13'), ('2404', '8', '11', '4535', '13', '100.0000', 'ENCERADA'), ('2405', '8', '12', '4535', '13', '50.0000', 'SHAMPOO Y CERA'), ('2406', '6', '7', '4798', '13', '300.0000', '1º ANT MILO 22/8/13'), ('2407', '6', '7', '4798', '13', '50.0000', '2º ANT. FERNANDO 22/8/13'), ('2408', '6', '7', '4786', '13', '150.0000', 'PAGO MANUEL 22/8/13'), ('2409', '7', '8', '4786', '13', '200.0000', 'PAGO JUAN CARLOS 1PZ 22/8/13'), ('2410', '7', '10', '4786', '13', '262.2000', 'COLOR Y RESINA 22/8/13'), ('2411', '8', '11', '4786', '13', '53.0000', 'LAVADO ASPIRADO Y PULIDO 1 PZ 22/8/13'), ('2412', '8', '12', '4786', '13', '26.5000', 'SHAMPOO Y PULIMENTOS'), ('2413', '11', '16', '4786', '13', '52.2000', 'TARIV VALUACION AUDATEX'), ('2414', '6', '7', '4800', '13', '400.0000', 'PAGO MANUEL 22/8/13'), ('2415', '7', '8', '4800', '13', '300.0000', 'PAGO JUAN CARLOS 1.5 PZ 22/8/13'), ('2416', '7', '10', '4800', '13', '279.9000', 'COLRO Y RESINA 22/8/13'), ('2417', '7', '53', '4800', '13', '50.0000', 'DETALLADO 22/8/13'), ('2418', '6', '7', '4771', '13', '350.0000', 'PAGO MANUEL 22/8/13'), ('2419', '7', '8', '4771', '13', '500.0000', 'PAGO CARLOS QUINTAL 2 1/2 22/8/13'), ('2420', '7', '10', '4771', '13', '433.8000', 'COLOR Y RESINA 22/8/13'), ('2421', '6', '7', '4720', '13', '250.0000', 'PAGO MANUEL 22/8/13'), ('2422', '9', '13', '4720', '13', '100.0000', '1º ANT OSCAR 22/8/13'), ('2423', '6', '7', '4761', '13', '400.0000', 'PAGO JOSE BALMACEDA 22/8/13'), ('2424', '7', '8', '4761', '13', '300.0000', 'PAGO JUAN CARLOS 1.5 PZ 22/8/13'), ('2425', '7', '10', '4761', '13', '367.5000', 'COLOR Y RESINA 22/8/13'), ('2426', '6', '7', '4686', '13', '100.0000', 'PAGO JOSE BALMACEDA ( EXTRA ) 22/8/13'), ('2427', '11', '15', '4757', '10', '87.7000', '26-ago-13\tF- DEPCO (CUARTO REFLEJANTE)\t\\n'), ('2430', '6', '7', '4753', '13', '400.0000', '1º ANT JOSE BALMACEDA 22/8/13'), ('2431', '6', '7', '4777', '13', '250.0000', 'PAGO JOSE BALMACEDA 22/8/13'), ('2432', '7', '8', '4777', '13', '200.0000', 'PAGO JUAN CARLOS 1 PZ 22/8/13'), ('2433', '7', '10', '4777', '13', '193.7000', 'COLOR Y RESINA 22/8/13'), ('2434', '8', '11', '4777', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ 22/8/13'), ('2435', '8', '12', '4777', '13', '26.5000', 'SHAMPOO Y PULIMENTO '), ('2436', '11', '16', '4777', '13', '52.2000', 'TARIFA VALUACION AUDATEX '), ('2437', '6', '7', '4803', '13', '100.0000', 'PAGO JOSE BALMACEDA 22/8/13'), ('2438', '7', '8', '4803', '13', '100.0000', 'PAGO JEOVANNY 1/2 PZ 22/8/13'), ('2439', '7', '10', '4803', '13', '79.8000', 'COLOR Y RESINA'), ('2440', '8', '11', '4803', '13', '53.0000', 'LAVADO Y PULIDO 1 22/8/13'), ('2441', '8', '12', '4803', '13', '26.5000', 'SHAMPOO Y PULIMENTO'), ('2442', '6', '7', '4791', '13', '200.0000', 'PAGO JOSE BALMACEDA 22/8/13'), ('2443', '6', '7', '4765', '13', '500.0000', 'PAGO JOSE BALAMCEDA 22/8/13'), ('2444', '7', '8', '4765', '13', '750.0000', 'PAGO JUAN CARLOS 3.75 PZ 22/8/13'), ('2445', '7', '10', '4765', '13', '897.0000', 'COLOR Y RESINA 22/8/13'), ('2446', '6', '7', '4781', '13', '150.0000', '1º ANT JOSE BALMACEDA 22/8/13'), ('2447', '6', '7', '4743', '13', '250.0000', '2º ANT JOSE BALMACEDA 22/8/13'), ('2448', '6', '7', '4689', '13', '50.0000', 'PAGO FERNANDO 22/8/13'), ('2449', '6', '7', '4799', '13', '50.0000', '1º ANT FERNANDO 22/8/13'), ('2450', '6', '7', '4783', '13', '50.0000', '1º ANT FERNANDO 22/8/13'), ('2451', '6', '7', '4802', '13', '50.0000', '1º ANT FERNANDO 22/8/13\\n'), ('2452', '6', '7', '4807', '13', '100.0000', '1º ANT FERNANDO 22/8/13'), ('2453', '6', '7', '4805', '13', '50.0000', '1º ANT FERNANDO 22/8/13'), ('2454', '9', '13', '4774', '13', '100.0000', 'PAGO OSCAR 22/8/13'), ('2455', '9', '13', '4697', '13', '300.0000', 'PAGO OSCAR 22/8/13'), ('2456', '9', '13', '4793', '13', '50.0000', 'PAGO OSCAR 22/8/13'), ('2458', '9', '13', '4768', '13', '400.0000', 'PAGO OSCAR 22/8/13'), ('2459', '9', '13', '4706', '13', '150.0000', '1º ANT OSCAR 22/8/13'), ('3319', '11', '15', '4722', '13', '1139.8300', 'kit de afinacion'), ('2461', '9', '13', '4601', '13', '100.0000', '3º ANT OSCAR 22/8/13'), ('2462', '6', '7', '4785', '13', '400.0000', 'PAGO CARLOS QUINTAL 22/8/13'), ('2463', '7', '8', '4785', '13', '700.0000', 'PAGO CARLOS QUINTAL 3 1/2 PZ 22/8/13'), ('2464', '7', '10', '4785', '13', '383.8000', 'COLRO Y RESINA 22/8/13'), ('2465', '6', '7', '4787', '13', '400.0000', 'PAGO CARLOS QUINTAL 22/8/13'), ('2466', '6', '7', '4754', '13', '100.0000', 'SALDO JAVIER 22/8/13'), ('2467', '7', '8', '4754', '13', '1050.0000', 'PAGO JUAN CARLOS 5.25 PZ 22/8/13'), ('2468', '7', '10', '4754', '13', '823.3000', 'COLOR Y RESINA 22/8/13'), ('2469', '8', '11', '4754', '13', '289.8000', 'EST EXTERIOR 22/8/13'), ('2470', '8', '12', '4754', '13', '144.9000', 'SHMAPOO,DESENGRASANTE Y PULIMENTOS'), ('2471', '8', '11', '4754', '13', '230.0000', 'ESTETICA INTERIOR 22/8/13'), ('2472', '8', '12', '4754', '13', '115.0000', 'SHAMPOO '), ('2473', '7', '8', '4787', '13', '300.0000', 'PAGO CARLOS QUINTAL 1 1/2 PZ 22/8/13'), ('2474', '7', '10', '4787', '13', '279.6800', 'COLOR Y RESINA 22/8/13'), ('2476', '6', '7', '4742', '13', '100.0000', 'SALDO JAVIER 22/8/13'), ('2477', '6', '7', '4755', '13', '1300.0000', '2º ANT JAVIER 22/8/13'), ('2478', '6', '7', '4734', '13', '400.0000', '1º ANT JAVIER 22/8/13'), ('2479', '6', '7', '4766', '13', '100.0000', 'PAGO ANGEL 22/8/13'), ('2480', '7', '8', '4766', '13', '50.0000', 'PAGO ANGEL 1 PZ 22/8/13'), ('2481', '7', '10', '4766', '13', '29.2400', 'COLOR Y RESINA'), ('2482', '8', '11', '4766', '13', '30.0000', 'LAVADO Y ASPIRADO 22/8/13'), ('2483', '7', '10', '4766', '13', '15.0000', 'SHAMPOO 22/8/13'), ('2484', '6', '7', '4801', '13', '250.0000', 'PAGO ANGEL 22/8/13'), ('2485', '7', '8', '4801', '13', '200.0000', 'PAGO ANGEL 1 22/8/13'), ('2486', '7', '10', '4801', '13', '200.0000', 'COLOR Y RESINA'), ('2487', '8', '11', '4801', '13', '53.0000', 'LAVADO Y PULIDO 1PZ 22/8/13'), ('2488', '8', '11', '4801', '13', '26.5000', 'SHAMPOO Y PULIMENTO 22/8/13'), ('2489', '6', '7', '4737', '13', '100.0000', 'PAGO ANGEL 22/8/13'), ('2490', '7', '8', '4737', '13', '300.0000', 'PAGO ANGEL 1 1/2 PZ 22/8/13 '), ('2491', '7', '10', '4737', '13', '347.5000', 'COLOR Y RESINA 22/8/13'), ('2492', '8', '11', '4737', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS 22/8/13'), ('2493', '8', '12', '4737', '13', '38.0000', 'SHAMPOO Y PULIMENTO 22/8/13'), ('2494', '7', '8', '4745', '13', '500.0000', 'PAGO JUAN CARLOS 2.5 PZS 22/8/13'), ('2495', '7', '10', '4745', '13', '737.3100', 'COLOR Y RESINA 22/8/13'), ('2496', '7', '8', '4762', '13', '550.0000', 'PAGO JEOVANNY 2.75 22/8/13'), ('2497', '8', '11', '4762', '13', '99.0000', 'LAVADO Y PULIDO LAV MOT'), ('3353', '8', '12', '4762', '13', '45.5000', 'SHAMPOO'), ('2499', '7', '10', '4762', '13', '527.4300', 'COLOR Y RESINA 22/8/13'), ('2500', '7', '53', '4762', '13', '100.0000', 'DETALLADO'), ('2501', '7', '8', '4710', '13', '700.0000', 'PAGO JEOVANNY 3.5 PZ 22/8/13'), ('2502', '7', '10', '4710', '13', '909.0700', 'COLOR Y RESINA 22/8/13'), ('2503', '7', '8', '4720', '13', '1150.0000', 'PAGO ANGEL 5.75 22/8/13'), ('2504', '7', '10', '4720', '13', '786.6400', 'COLOR Y RESINA 22/8/13'), ('2505', '8', '11', '4787', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS 22/8/13'), ('2506', '8', '12', '4787', '13', '38.0000', 'SHAMPOO Y PULIMENTOS 22/8/13'), ('2507', '8', '11', '4771', '13', '99.0000', 'LAVADO PULIDO LAV MOTOR 22/8/13'), ('2508', '8', '12', '4771', '13', '49.5000', 'SHAMPOO Y PULIMENTO'), ('2509', '11', '16', '4771', '13', '52.2000', 'TARIFA VALUACION AUDATEX '), ('2510', '11', '16', '4584', '13', '500.0000', 'COMISION'), ('2511', '8', '11', '4760', '13', '53.0000', 'LAVADO ASPIRADO Y LAV MOTOR 22/8/13'), ('2512', '8', '12', '4760', '13', '26.5000', 'SHAMPOO'), ('2513', '8', '11', '4809', '13', '189.7500', 'EST INTERIOR 22/8/13'), ('2514', '8', '12', '4809', '13', '94.8800', 'SHAMPOO 22/8/13'), ('2515', '8', '11', '4792', '13', '230.0000', 'EST INTERIOR 22/8/13'), ('2516', '8', '12', '4792', '13', '115.0000', 'SHAMPOO 22/8/13'), ('2517', '8', '11', '4782', '13', '230.0000', 'EST EXTERIOR 22/8/13'), ('2518', '8', '12', '4782', '13', '115.0000', 'SHAMPOO DESENGRASANTE PULIMENTOS 22/8/13'), ('2520', '8', '11', '4696', '13', '201.0000', 'EST EXTERIOR 22/8/13'), ('2521', '8', '12', '4696', '13', '100.5000', 'SHAMPOO DESENGRASANTE'), ('2522', '11', '15', '4755', '10', '400.0000', '23-ago-13\tBEBETO (MOLDURA DE PTA. TRASERA DERECHA)\\n'), ('2523', '11', '16', '4720', '10', '400.0000', '28-ago-13\tPAGO FILTRO DE A/A\t\t\t\t\\n'), ('2524', '11', '16', '4597', '10', '39.0000', '23-ago-13\tF-3694 ANTICONGELANTE\t\t\t\t\\n'), ('2525', '11', '15', '4772', '10', '197.7900', '27-ago-13\tF-13020 CONEXMA (TUBO Y UNION)\t\t\t\t\\n'), ('2526', '11', '15', '4783', '10', '300.0000', '29-ago-13\tPAGO SR. LUIS (FILTRO)\\n'), ('2527', '11', '16', '4783', '10', '52.2000', 'Tarifa valuación Audatex\t\t\t\t\\n'), ('2528', '11', '15', '4788', '10', '1169.2800', '28-ago-13\tF- DEPCO DEFENSA\t\t\t\t\\n'), ('2529', '11', '15', '4788', '10', '1856.0000', '29-ago-13\tF- MERCADO DE LLANTA (UNA LLANTA)\\n'), ('2530', '11', '15', '4512', '10', '350.0000', '29-ago-13\tMETAL DE BANCADA\t\t\t\t\\n'), ('2531', '11', '16', '4512', '10', '3500.0000', '29-ago-13\tPAGO MECANICO\t\t\t\t\\n'), ('2532', '11', '15', '4772', '10', '309.7300', '29-ago-13\tF-14050 CONSTITUCION (ACEITE Y FILTRO)\\n'), ('2533', '11', '15', '4802', '10', '600.0000', '28-ago-13\tCOMPRA UNIDAD IZQUIERDA\t\t\t\t\\n'), ('2534', '11', '15', '4720', '10', '1396.8101', '29-ago-13\tF-7634 Honda (tanques,tubo,bastidor y espaciador y mo\\n'), ('2535', '9', '13', '4772', '13', '50.0000', '1º ANT OSCAR 22/8/13'), ('2536', '11', '15', '4807', '10', '3300.0000', '30-ago-13\tPIEZA 1/2 USO, EJE TRAS., PTA. TRAS. IZQUIERDA, TUBO DE GAS., ESPIGA Y BALEROS TRASEROS\\n'), ('2537', '11', '16', '4734', '10', '380.0000', '30-ago-13\tCARGA A/A\\n'), ('2538', '11', '16', '4743', '10', '380.0000', '27-ago-13\tCARGA A/A\t\t\t\t\\n'), ('2539', '11', '15', '4723', '10', '380.0000', '28-ago-13\tCARGA A/A\t\t\t\t\\n'), ('2540', '11', '15', '4823', '10', '420.0300', '31-ago-13\tF-14230 CONS (BALERO DOBLE)\t\t\t\t\\n'), ('2541', '11', '15', '4839', '10', '627.8000', '31-ago-13\tF-14229 ACEITE, SILICON Y JUEGO FILTRO\\n'), ('2542', '11', '15', '4833', '10', '321.3300', '30-ago-13\tF-14152 CONST (FILTRO Y ACEITE)\t\t\t\t\\n'), ('2543', '11', '15', '4799', '10', '111.2000', '27-ago-13\tF-13843 CONS (BIELETE VENTURE AZTEC)\\n'), ('2544', '11', '15', '4793', '10', '105.6400', '20-ago-13\tF- 13407 constitucion (manguera)\t\t\t\t\\n'), ('2545', '11', '15', '4720', '10', '300.0000', '31-ago-13\tPAGO LUIS TOLVA MOTOVENTILADOR\\n\t\\n'), ('2546', '11', '15', '4625', '13', '5000.0000', 'DESHUESADERO SAYALLIN 24-7-10'), ('2547', '6', '7', '4810', '13', '200.0000', 'PAGO MILO 29/8/13'), ('2548', '6', '7', '4798', '13', '350.0000', '3º ANT MILO 29/8/13'), ('2549', '6', '7', '4815', '13', '600.0000', '1º ANT MILO 29/8/13'), ('2550', '6', '7', '4759', '13', '700.0000', '3º ANT MILO 29/8/13'), ('2551', '6', '7', '4755', '13', '100.0000', 'PAGO MILO ( TALLER ) 29/8/13'), ('2552', '6', '7', '4755', '13', '200.0000', 'SAL JAVIER 29/8/13'), ('2553', '7', '8', '4755', '13', '1450.0000', 'PAGO JUAN CARLOS 7.25 '), ('2554', '7', '10', '4755', '13', '1039.0000', 'COLOR Y RESINA 29/8/13'), ('2555', '7', '53', '4755', '13', '100.0000', '29/8/13'), ('2556', '6', '7', '4778', '13', '100.0000', 'PAGO MILO ( TALLER ) 29/8/13'), ('2557', '8', '11', '4778', '13', '250.0000', 'PAGO OSCAR 29/8/13'), ('2558', '7', '8', '4778', '13', '650.0000', 'PAGO JUAN CARLOS 3.5 PZS 29/8/13'), ('2559', '7', '8', '4778', '13', '676.8000', 'COLOR Y RESINA 29/8/13'), ('2560', '8', '11', '4778', '13', '76.0000', 'LAVADO-PULIDO 2 PZS'), ('2561', '8', '12', '4778', '13', '38.0000', 'SHAMPOO PULIMENTOS 29/8/13'), ('2562', '6', '7', '4788', '13', '100.0000', 'PAGO MILO ( TALLER ) 29/8/13'), ('2563', '6', '7', '4788', '13', '450.0000', '2º ANT JAVIER 29/8/13'), ('2564', '6', '7', '4821', '13', '100.0000', 'PAGO MILO ( TALLER ) 29/8/13 '), ('2565', '6', '7', '4708', '13', '200.0000', '4º ANT MILO 29/8/13'), ('2566', '6', '7', '4802', '13', '350.0000', 'SALDO MANUEL 29/8/13\\n'), ('2567', '8', '11', '4802', '13', '122.0000', 'LAVADO Y PULIDO 3 PZ LAV MOT '), ('2568', '8', '12', '4802', '13', '61.0000', 'SHAMPOO DESENGRASANTE Y PULIMENTOS 29/8/13'), ('2569', '6', '7', '4757', '13', '50.0000', 'PAGO MANUEL 29/8/13'), ('2572', '6', '7', '4820', '13', '300.0000', 'PAGO MILO 29/8/13'), ('2573', '8', '11', '4820', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ 29/8/13'), ('2574', '8', '12', '4820', '13', '26.5000', 'SHAMPOO Y PULIMENTOS 29/8/13'), ('2575', '6', '7', '4676', '13', '50.0000', 'PAGO MANUEL 29/8/13'), ('2576', '6', '7', '4780', '13', '600.0000', '1º ANT MANUEL 29/8/13'), ('2577', '6', '7', '4833', '13', '300.0000', '1º ANT MANUEL 29/8/13'), ('2578', '7', '8', '4820', '13', '200.0000', 'PAGO JUAN CARLOS 29/8/13'), ('2579', '7', '10', '4820', '13', '299.7100', 'COLOR Y RESINA 29/8/13'), ('2580', '6', '7', '4765', '13', '100.0000', 'SALDO JOSE BALMACEDA 29/8/13'), ('2581', '6', '7', '4753', '13', '200.0000', 'SALDO JOSE BALMACEDA 29/8/13'), ('2582', '6', '7', '4743', '13', '150.0000', 'SALDO JOSE BALMACEDA 29/8/13'), ('2583', '7', '8', '4753', '13', '350.0000', 'PAGO ANGEL 1 3/4 PZ 29/8/13'), ('2584', '7', '10', '4753', '13', '230.3900', 'COLOR Y RESINA 29/8/13'), ('2585', '7', '53', '4753', '13', '50.0000', '29/8/13'), ('2586', '8', '11', '4753', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS 29/8/13'), ('2587', '8', '12', '4753', '13', '38.0000', 'SHAMPOO Y PULIMENTOS 29/8/13'), ('2588', '6', '7', '4778', '13', '400.0000', 'PAGO JOSE BALMACEDA 29/8/13'), ('2589', '6', '7', '4819', '13', '400.0000', 'PAGO JOSE BALMACEDA 29/8/13'), ('2590', '7', '8', '4819', '13', '300.0000', 'PAGO JEOVANNY 1.5 PZS 29/8/13'), ('2591', '7', '10', '4819', '13', '378.5500', 'COLOR Y RESINA 29/08/13'), ('2592', '8', '11', '4819', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS 29/8/13'), ('2593', '8', '12', '4819', '13', '38.0000', 'SHAMPOO Y PULIMENTO 29/8/13'), ('2594', '11', '16', '4660', '10', '500.0000', '16-ago-13\tCOM.\t\t\t\t\\n'), ('2595', '11', '16', '4709', '10', '400.0000', '16-ago-13\tCOM.\t\t\t\t\\n'), ('3339', '7', '8', '4759', '13', '1150.0000', 'PAGO JUAN CARLOS'), ('2597', '11', '15', '4734', '10', '300.0000', '16-ago-13\tCOM.\t\t\t\t\\n'), ('2598', '11', '16', '4765', '10', '200.0000', '16-ago-13\tCOM.\t\t\t\t\\n'), ('2599', '11', '16', '4608', '10', '300.0000', '16-ago-13\tCOM.\t\t\t\t\\n'), ('2600', '11', '16', '4695', '10', '200.0000', '16-ago-13\tCOM.\t\t\t\t\\n'), ('2601', '11', '16', '4802', '10', '600.0000', '28-ago-13\tCOM.\t\t\t\t\\n'), ('2602', '11', '16', '4778', '10', '600.0000', '28-ago-13\tCOM.\t\t\t\t\\n'), ('2603', '11', '16', '4678', '10', '300.0000', '28-ago-13\tCOM.\t\t\t\t\\n'), ('2604', '11', '16', '4720', '11', '500.0000', '16-ago-13\tCOM.\t\t\t\t\\n'), ('2605', '11', '16', '4819', '10', '200.0000', '28 AGOS-13 COM.'), ('2614', '6', '7', '4748', '13', '50.0000', 'PAGO JOSE BALAMACEDA 29/8/13'), ('2607', '6', '7', '4784', '13', '450.0000', 'PAGO JOSE BALMACEDA 29/8/13'), ('2608', '7', '8', '4784', '13', '700.0000', 'PAGO JUAN CARLOS 3.5 PZS 29/8/13\\n\\n\\n\\n\\n\\n'), ('2609', '7', '10', '4784', '13', '747.2000', 'COLOR Y RESINA 29/8/13\\n'), ('2610', '6', '7', '4781', '13', '400.0000', '2º ANT JOSE BALMACEDA 29/8/13'), ('2611', '6', '7', '4799', '13', '200.0000', '2º ANT JOSE BALMACEDA 29/8/13'), ('2612', '6', '7', '4799', '13', '50.0000', '3º ANT FERNANDO 29/8/13'), ('2802', '9', '13', '4799', '13', '250.0000', 'PAGO OSCAR 29-8-13'), ('2615', '6', '7', '4829', '13', '200.0000', '1º JOSE BALMACEDA 29/8/13\\n'), ('2616', '6', '7', '4805', '13', '50.0000', '2º ANT FERNADO'), ('2617', '6', '7', '4806', '13', '50.0000', '1º ANT FERNANDO 29/8/13'), ('2618', '6', '7', '4814', '13', '100.0000', '1º ANT FERNANDO 29/8/13'), ('2619', '6', '7', '4825', '13', '100.0000', '1º ANT FERNANDO 29/8/13'), ('2921', '6', '7', '4813', '13', '350.0000', '1º ANT JAVIER 5/9/13'), ('2621', '6', '7', '4829', '13', '50.0000', '2º ANT FERNANDO 29/8/13'), ('2622', '8', '11', '4742', '13', '53.0000', 'lavado y pulido 1 pz 29/8/13'), ('2623', '8', '12', '4742', '13', '26.5000', 'shampoo y pulimento 29/8/13'), ('2625', '8', '11', '4761', '13', '53.0000', 'lavado y pulido 29/8/13'), ('2626', '8', '12', '4761', '13', '26.5000', 'SHAMPOO Y PULIMENTO 29/8/13'), ('2627', '8', '11', '4800', '13', '230.0000', 'EST EXT 29/8/13'), ('2628', '8', '11', '4800', '13', '115.0000', 'SHAMPOO DESENGRASANTE Y PULIMENTOS'), ('2629', '8', '11', '4710', '13', '53.0000', 'LAVADO Y PULIDO 29/8/13'), ('2630', '8', '12', '4710', '13', '26.5000', 'SHAMPOO Y PULIMENTO 29/8/13'), ('2631', '8', '11', '4732', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ'), ('2632', '8', '12', '4732', '13', '26.5000', 'SHAMPOO Y PULIMENTOS 29/8/13'), ('2633', '7', '8', '4732', '13', '200.0000', '29-ago-13\tPAGO JUAN CARLOS 1 PZ\t\t\t\t\\n'), ('2634', '7', '10', '4732', '13', '187.5000', '29-ago-13\tCOLOR Y RESINA\t\t\t\\n'), ('2635', '6', '7', '4732', '13', '100.0000', '29-ago-13\tPAGO JUAN CARLOS \t\t\t\t\\n'), ('2636', '8', '11', '4785', '13', '92.0000', 'PULIDO 4 ZS'), ('2637', '8', '11', '4785', '13', '46.0000', 'PULIMENTO 29/8/13'), ('2638', '8', '11', '4785', '13', '100.0000', 'ENCERADO 29/8/13'), ('2639', '8', '12', '4785', '13', '50.0000', 'MATERIAL 29/8/13'), ('2640', '8', '11', '4745', '13', '99.0000', 'LAVADO Y PULIDO 4 PZS MOTR 29/8/13'), ('2641', '8', '12', '4745', '13', '49.5000', 'SHAMPOO DESENGRASANTE Y PULIMENTO 29/8/13'), ('2642', '7', '8', '4795', '13', '200.0000', '29-ago-13\tPAGO CARLOS QUINTAL 1 PZ\t\t\t\\n'), ('2643', '7', '10', '4795', '13', '200.1700', 'COLOR Y RESINA 29/8/13'), ('2644', '6', '7', '4795', '13', '100.0000', '29-ago-13\tPAGO CARLOS QUINTAL\t\t\t\t\\n'), ('2645', '8', '11', '4795', '13', '53.0000', 'LAVADO Y PULIDO 1PZ 29/8/13'), ('2646', '8', '12', '4795', '13', '26.5000', 'SHAMPOO Y PULIMENTO 29/8/13'), ('2647', '11', '15', '4783', '10', '1600.0000', '3-sep-13\tPIEZA COFRE 1/2 USO (PAGO FELIX)\t\t\t\t\\n'), ('2648', '11', '16', '4799', '10', '150.0000', '3-sep-13\tMERCADO LLANTAS (ALINEACION DEL.)\\n'), ('2649', '11', '15', '4807', '10', '55.5000', '3-sep-13\tF-14479 (CONST) LIQUIDO DE FRENOS.\t\t\\n'), ('2650', '11', '16', '4814', '10', '420.0000', '3-sep-13\tMERCADO (MONTAR 4 LLANTAS NUEVAS, BALANCEO A 3 RINES NUEVOS Y UNO USADO\\n'), ('2651', '11', '15', '4839', '10', '22.7300', '2-sep-13\tF-14332 CONS. (ORMA JUNTEX SELLADOR FLEXIBLE)\t\\n'), ('2652', '11', '15', '4839', '10', '125.5200', '2-sep-13\tF-14229 CONS (SILICON GRIS)\t\\n'), ('2653', '11', '15', '4778', '10', '174.3900', '26-AGOS-13 F-13750 CONS (BALERO DE ATTOS)'), ('2654', '11', '16', '4823', '10', '300.0000', '3-sep-13\tPAGO SR, MIGUEL CETINA SOLDAR CAJA\\n'), ('2655', '11', '16', '4720', '13', '380.0000', 'vacio y carga de gas 4/9/13 '), ('2665', '11', '16', '4720', '11', '52.2000', 'AUDATEX'), ('2657', '11', '15', '4720', '10', '300.0000', '4-sep-13\tPAGO A LUIS REFUERZO DE FASCIA\\n'), ('2658', '11', '16', '4354', '11', '740.0000', 'Mofles'), ('3356', '8', '12', '4788', '13', '49.5000', 'SHAMPOO'), ('3358', '11', '15', '4779', '13', '70.0000', '22-ago-13\tPLASTIACERO \t\t\t\t\\n'), ('2660', '11', '16', '4780', '13', '150.0000', 'ALINEACION DELANTERA 5/9/13 (MERCADO DE LLANTAS )'), ('2661', '11', '16', '4823', '11', '150.0000', '4-sep-13\tALINEACION DE RUEDAS DEL.\\n'), ('2662', '11', '16', '4844', '11', '150.0000', '4-sep-13\tALINEACION DE RUEDAS DEL.\\n'), ('2663', '11', '15', '4807', '11', '1000.0000', '5-sep-13\tPAGO COSTADO IZQUIERDO\t\t\t\t\\n'), ('2664', '11', '15', '4720', '11', '1044.0000', '29-ago-13\tF-1292 NAPA (ACUMULADOR)\\n'), ('2666', '11', '16', '4601', '11', '150.0000', '6-sep-13\tALINEACION DELANTERA\\n'), ('3510', '9', '13', '4601', '13', '200.0000', '18/10/13 PAGO OSCAR'), ('2668', '6', '7', '4892', '13', '300.0000', '1º ANT MILO 5/9/13'), ('2669', '6', '7', '4892', '13', '50.0000', 'PAGO FERNANDO 5/9/13'), ('2672', '9', '13', '4823', '13', '350.0000', 'SALDO OSCAR 5/9/13'), ('2671', '9', '13', '4823', '13', '250.0000', '1º ANT OSCAR 29/8/13'), ('2673', '8', '11', '4823', '13', '30.0000', 'LAVADO Y ASPIRADO 5/9/13'), ('2674', '8', '12', '4823', '13', '15.0000', 'SHAMPOO'), ('2675', '11', '15', '4823', '13', '4800.0000', 'CAJA DE VELOCIDADES 3/9/13'), ('2676', '6', '7', '4798', '13', '200.0000', 'SALDO MILO 5/9/13'), ('2677', '11', '15', '4862', '11', '371.2000', '9-sep-13\tF-17488 COLISION (BRAZO Y DEFENSA)\\n'), ('2678', '7', '8', '4798', '13', '450.0000', 'PAGO CARLOS QUINTAL 2 1/4 PZ 5/9/13'), ('2679', '7', '10', '4798', '13', '416.4700', 'COLOR Y RESINA 5/9/13'), ('2680', '8', '11', '4798', '13', '76.0000', 'LAVADO Y PULIDA 2 PZS 5/9/13'), ('2681', '8', '12', '4798', '13', '38.0000', 'SHAMPOO Y PULIMENTOS 5/9/13'), ('2682', '11', '15', '4799', '11', '133.9400', '28-ago-13\tF-13938 (CONS) TERMINAL\t\t\t\t\\n'), ('2683', '11', '15', '4863', '11', '423.2200', '7-jul-13\tF-14877 CONS (Varilla lateral)\t\t\t\t\\n'), ('2684', '11', '15', '4863', '11', '664.4600', '7-jul-13\tf-14844 cons (amortiguador,)\\n'), ('3305', '11', '16', '4678', '13', '52.2000', 'AUDATEX'), ('3435', '11', '16', '4881', '13', '52.2000', 'AUDATEX'), ('2687', '11', '15', '4854', '11', '1000.0000', '9-SEP-13 PUERTA DE USO'), ('2688', '6', '7', '4815', '13', '200.0000', 'SALDO MILO 5/9/13'), ('2689', '7', '8', '4815', '13', '700.0000', 'PAGO JUAN CARLOS 5/9/13'), ('2690', '7', '10', '4815', '13', '551.5800', 'COLOR Y RESINA 5/9/13'), ('2699', '8', '11', '4815', '13', '122.0000', 'LAVADO Y PULIDO 4 PZS'), ('2698', '7', '53', '4815', '13', '50.0000', 'DETALLADO 5/9/13'), ('2693', '11', '15', '4904', '11', '408.7600', '6-sep-13\tF-14774 CONS(ACEITE Y FILTRO)\t\t\t\t\\n'), ('2694', '11', '16', '4904', '11', '546.0000', '6-sep-13\tRECTIFICACION DE DISCO, BALATAS\\n'), ('2695', '11', '15', '4904', '11', '270.0000', '6-sep-13\tEMBLEMAS\t\t\t\t\\n'), ('2696', '11', '15', '4858', '11', '2600.0000', '9-sep-13\t2 PUERTAS DE USO\t\t\t\t\\n'), ('2697', '11', '15', '4783', '11', '945.4000', '9-sep-13\tF DEPCO (SALPICADERA)\t\t\t\t\\n'), ('2701', '8', '12', '4815', '13', '61.0000', 'SHAMPOO Y PULIMENTOS 5/9/13'), ('2702', '11', '15', '4843', '11', '668.1600', '7-sep-13\tF- DEPCO (SALPICADERA ) \\n'), ('2705', '11', '15', '4815', '13', '800.0000', 'FASCIA TRASERA ( TALLER )'), ('2704', '11', '15', '4815', '13', '400.0000', 'CERRADURA TAPA CAJUELA ( TALLER )'), ('2706', '11', '15', '4843', '11', '1785.6100', '10-sep-13\tF-15298 MERCADO DE LLANTAS) 1 LLANTA\\n'), ('2707', '11', '15', '4854', '11', '863.0400', '9-sep-13\tF-15270 MERCADO DE LLANTA (LLANTA)\\n'), ('2708', '11', '15', '4720', '11', '4118.0000', '12-ago-13\tF-52419 DEPCO (DEFENSA, TOLVA, COFRE, FARO, MARCOS\\n'), ('2709', '11', '15', '4720', '11', '52.2000', '9-sep-13\tF- DEPCO (ANTICONGELANTE)\\n'), ('2710', '6', '7', '4759', '13', '200.0000', '4º ANT MILO 5/9/13'), ('2711', '6', '7', '4759', '13', '150.0000', '5º ANT MANUEL 5/9/13'), ('2712', '6', '7', '4759', '13', '200.0000', 'PAGO JUAN CARLOS 5/9/13'), ('2713', '6', '7', '4807', '13', '500.0000', '2º ANT MILO 5/9/13'), ('2714', '9', '13', '4807', '13', '350.0000', 'PAGO OSCAR 5/9/13'), ('2715', '6', '7', '4783', '13', '500.0000', '2º ANT MILO 5/8/13'), ('2716', '6', '7', '4783', '13', '50.0000', 'PAGO FERNANDO 5/9/13'), ('2717', '6', '7', '4855', '13', '300.0000', '1º ANT MILO 5/9/13'), ('2718', '6', '7', '4855', '13', '50.0000', '1º ANT MANUEL 5/9/13'), ('2719', '6', '7', '4779', '13', '450.0000', '3º ANT MILO 5/9/13\\n'), ('2720', '6', '7', '4780', '13', '300.0000', 'SALDO MANUEL 5/9/13'), ('2721', '9', '13', '4780', '13', '250.0000', 'PAGO OSCAR 5/9/13'), ('2722', '6', '7', '4833', '13', '100.0000', 'SALDO MANUEL 5/9/13'), ('2723', '9', '13', '4833', '13', '100.0000', 'PAGO OSCAR 5/9/13'), ('2724', '7', '8', '4833', '13', '100.0000', 'PAGO JAUN CARLOS 1/2 PZ 5/6/13'), ('2725', '7', '10', '4833', '13', '86.6200', 'COLOR Y RESINA 5/9/13'), ('2726', '8', '11', '4833', '13', '76.0000', 'LAVADO-PULIDO 1 PZ Y MOTOR 5/6/13'), ('2727', '8', '12', '4833', '13', '38.0000', 'SHAMPOO Y PULIMENTO 5/9/13'), ('2728', '11', '16', '4798', '11', '380.0000', '4-sep-13\tVACIO Y CARGA A/A\t\t\t\t\\n'), ('2729', '6', '7', '4720', '13', '300.0000', 'PAGO MANUEL 5/9/13'), ('2730', '9', '13', '4720', '13', '250.0000', 'SALDO OSCAR 5/9/13'), ('2731', '8', '11', '4720', '13', '122.0000', 'LAVADO Y PULIDO LAV DE MOTOR 5/9/13\\n'), ('2732', '8', '12', '4720', '13', '61.0000', 'SHAMPOO Y PULIMENTO 5/9/13'), ('2733', '11', '15', '4905', '11', '695.9800', '7-sep-13\tF-14819 cons (baleros, reten rueda del.)\\n'), ('2737', '6', '7', '4836', '13', '200.0000', 'PAGO MANUEL 5/9/13\\n'), ('2735', '7', '8', '4836', '13', '250.0000', 'PAGO JUAN CARLOS 1.25 PZS 5/9/13'), ('2736', '7', '10', '4836', '13', '224.0500', 'COLOR Y RESINA'), ('2738', '11', '15', '4324', '13', '3000.0000', 'PUERTA TRASERA IZQUIERDA'), ('2739', '11', '15', '4842', '11', '3766.6799', '11-sep-13\tF-15129 CONST. (AMORTIGUADOR, TERMINAL, HORQUILLA, BASE DE AMORTIGUADOR)\\n'), ('2740', '11', '15', '4454', '13', '1500.0000', 'REFUERZO DE FASCIA DELANTERA'), ('2741', '11', '15', '4454', '13', '1250.0000', 'FASCIA DELANTERA'), ('2742', '11', '16', '4454', '13', '30.0000', 'VALVULA MORQUECHO ( 2 )'), ('2745', '11', '15', '4545', '13', '1232.0000', 'HORQUILLA INFERIOR CONST.'), ('2744', '11', '16', '4543', '13', '150.0000', 'ALINEACION'), ('2746', '11', '15', '4545', '13', '936.1200', 'TERMINAL TORNILLO'), ('2747', '11', '15', '4545', '13', '598.0000', 'LODERA DE SALPICADERA'), ('2748', '11', '16', '4549', '13', '52.2000', 'AUDATEX'), ('2749', '6', '7', '4550', '13', '550.0000', 'PAGO JAVIER 27/6/13'), ('2750', '9', '14', '4551', '13', '703.0000', 'BUJILLAS Y FILTRO (AUTOMAYA'), ('2751', '9', '14', '4551', '13', '911.0000', 'KIT AFINACION'), ('2752', '9', '14', '4552', '13', '40.3000', 'LIP CARBUCLIN'), ('2755', '11', '15', '4556', '13', '42.0000', 'PORTA PLACA'), ('2754', '11', '15', '4556', '13', '1609.0000', 'COFRE Y DEFENSA( DEPCO'), ('2762', '9', '14', '4562', '13', '271.6000', 'ACEITE DISEL'), ('2757', '9', '14', '4557', '13', '365.0000', 'BALATAS CONS'), ('2758', '9', '14', '4557', '13', '981.0000', 'BALATAS FORD'), ('2759', '11', '16', '4557', '13', '380.0000', 'A/A'), ('2760', '11', '15', '4557', '13', '50.0000', 'RELEVADOR'), ('2763', '9', '14', '4562', '13', '1558.0000', '10455 FILTRO AIRE ACEITE Y COMBUSTION'), ('2764', '9', '14', '4562', '13', '543.0000', '10398 CONS ACEITE DISEL'), ('2765', '9', '13', '4565', '13', '500.0000', 'PAGO OSCAR'), ('2766', '8', '12', '4571', '13', '26.5000', 'MATERIAL'), ('2770', '7', '8', '4570', '13', '1300.0000', 'CARLOS Q 6 1/2PZ'), ('2768', '11', '15', '4570', '13', '113.0000', 'CINTAS DIAMANTE'), ('2769', '11', '15', '4570', '13', '113.0000', 'CINTAS DIAMANTE'), ('2771', '7', '10', '4570', '13', '701.5900', 'COLOR Y RESINA'), ('2772', '11', '15', '4572', '13', '337.0000', 'DEPOSITO F-9349'), ('2773', '11', '15', '4572', '13', '555.2900', 'BASES DE AMORTIGUADOR'), ('2774', '11', '15', '4783', '11', '423.7600', '12-sep-13\tF-15282 CONST (SOPORTE Y LIQUIDO DE TRANSMISION\\n'), ('2775', '11', '15', '4854', '11', '601.4100', '13-sep-13\tFact-15386 cons(balero y maza)\t\t\t\t\\n'), ('2776', '11', '15', '4783', '11', '214.5600', '13-sep-13\tFact-15387 cons( deposito)\t\t\t\t\\n'), ('2777', '11', '15', '4893', '11', '320.5100', '13-sep-13\tF-15388 cons(bomba de agua)\t\t\t\t\\n'), ('2778', '11', '15', '4783', '11', '1146.0800', '13-sep-13\tF-1753 COLISION (DEPOSITO, TOLVAS Y PARRILLA)\\n'), ('2779', '11', '16', '4863', '11', '150.0000', '10-sep-13\tALINEACION RUEDAS DEL (MERCADO)\t\t\t\t\\n'), ('2780', '9', '14', '4573', '13', '470.0000', 'verillas'), ('2781', '11', '16', '4573', '13', '150.0000', 'alineacion'), ('2782', '11', '15', '4576', '13', '121.2700', 'banda aa'), ('3183', '11', '15', '4842', '11', '1661.1200', '13-sep-13\tF-15343 Mercado de llanta (llanta)\t\t\t\t\\n'), ('2785', '6', '7', '4866', '13', '150.0000', 'PAGO MANUEL 5-9-13'), ('2786', '6', '7', '4866', '13', '50.0000', 'PAGO FERNANDO 5-9-13'), ('2877', '8', '11', '4866', '13', '30.0000', 'LAVADO Y ASPIRADO 5/9/13'), ('2788', '8', '12', '4866', '13', '15.0000', 'SHAMPOO 5-9-13'), ('2789', '6', '7', '4841', '13', '400.0000', '1° ANT MANUEL 5-9-13'), ('2790', '9', '13', '4841', '13', '100.0000', 'PAGO ANGER 12-9-13'), ('2791', '7', '8', '4841', '13', '700.0000', 'PAGO JEOVANNY 3.5 PZS 12-8-13'), ('2793', '7', '10', '4841', '13', '938.8300', 'COLOR Y RESINA'), ('2794', '6', '7', '4806', '13', '150.0000', '2° ANT MANUEL 5-9-13'), ('2795', '6', '7', '4806', '13', '250.0000', '3° ANT MANUEL 12-9-13'), ('2796', '6', '7', '4781', '13', '450.0000', 'SALDO JOSE BALMACEDA 12-9-13'), ('2797', '7', '8', '4781', '13', '600.0000', 'PAGO ANGEL 3PZS 5-9-13'), ('2798', '7', '10', '4781', '13', '591.7200', 'COLOR Y RESINA'), ('2799', '8', '11', '4781', '13', '50.0000', 'DETALLADO 5-9-13'), ('2800', '8', '11', '4781', '13', '76.0000', 'LAVAD Y PUIDO 2 PZS SANTIAGO 5-9-13'), ('2801', '8', '12', '4781', '13', '38.0000', 'SHAMPOO Y DESENGRASANTE 5-9-13'), ('2803', '6', '7', '4799', '13', '250.0000', 'SALDO JOSE 5-9-13'), ('2804', '7', '8', '4799', '13', '400.0000', 'PAGO JEOVANNY 5-9-13'), ('2805', '7', '10', '4799', '13', '573.4800', 'COLOR Y RESINA 5-9-13'), ('2806', '8', '11', '4799', '13', '99.0000', 'LAVADO Y PULIDO 2 PZS MOTOR 5-9-13'), ('2807', '8', '12', '4799', '13', '49.5000', 'SHAMPU Y DESENGRASANTE'), ('2808', '6', '7', '4829', '13', '100.0000', 'SALDO JOSE 5-9-13'), ('2809', '8', '11', '4829', '13', '53.0000', 'LAVADA Y PULIDA 1 PZ SANTIAGO 5-9-13'), ('2810', '8', '12', '4829', '13', '26.0000', 'SHAMPOO Y DESENGRASANTE 5-9-13'), ('2811', '6', '7', '4814', '13', '850.0000', '2° ant jose 5-9-13'), ('2812', '6', '7', '4814', '13', '150.0000', 'saldo jose 12-9-13'), ('2813', '9', '13', '4814', '13', '100.0000', 'pago angel'), ('3247', '8', '11', '4814', '13', '416.6700', 'TALLER 29/9/13'), ('2815', '7', '8', '4814', '13', '1000.0000', 'pago jaun carlos 5 pzs 12-9-13'), ('2816', '7', '10', '4814', '13', '757.8000', 'color y resina 12-9-13'), ('2818', '11', '15', '4579', '13', '1700.0000', 'RADIADOR'), ('2819', '8', '11', '4581', '13', '26.5000', 'SHAMPOO'), ('2820', '7', '53', '4581', '13', '50.0000', 'DETALLADO'), ('2821', '6', '7', '4582', '13', '100.0000', '1º ANT MANUEL 4/7/13'), ('2822', '7', '8', '4582', '13', '250.0000', 'PAGO JUAN CARLOS 1.25 PZ 4/7/13'), ('2823', '7', '10', '4582', '13', '266.0700', 'COLOR Y RESINA 4/7/13'), ('2824', '7', '8', '4582', '13', '50.0000', 'DETALLADO 4-7-13'), ('2825', '6', '7', '4582', '13', '150.0000', 'PAGO MILO ( TALLER )'), ('2826', '6', '7', '4582', '13', '500.0000', 'PAGO JAVIER 11/7/13'), ('2827', '8', '11', '4582', '13', '53.0000', 'LAVADO Y PULIDO 11/7/13'), ('2828', '8', '12', '4582', '13', '26.5000', 'SHAMPOO'), ('2829', '11', '15', '4582', '13', '618.0000', '11-jul-13\tF-2598 Toyota (rejilla inferior de Fascia)\t\t\t\t\\n'), ('2830', '11', '15', '4585', '13', '325.0000', ' TIRANTE DE PUERTA\t\t\t\t\\n'), ('2831', '6', '7', '4585', '13', '100.0000', '4-jul-13\tPAGO MANUEL LINARES\t\t\t\t\t\\n'), ('2832', '8', '11', '4585', '13', '30.0000', '4-jul-13\tLAVADO Y ASPIRADO\t\t\t\t\\n'), ('2833', '8', '12', '4585', '13', '15.0000', 'SHAMPOO'), ('2834', '11', '16', '4586', '13', '550.0000', 'REPARACION DE RIN 5/7/13'), ('2836', '11', '16', '4589', '13', '150.0000', '16-jul-13\tF-14578 MERCADO LLANTA (ALINEACION)\t\t\t\t\\n'), ('2839', '11', '15', '4604', '13', '975.0000', 'UNIDAD IZQ Y DER FASCIA DEL EMBLEMA'), ('2840', '8', '12', '4569', '13', '26.5000', 'SHAMPOO'), ('2841', '11', '16', '4569', '13', '52.2000', 'AUDATEX VALUACION'), ('2842', '11', '16', '4569', '13', '88.0000', '16-jul-13\tmontar llanta y alineación (morquecho)\t\t\t\t\\n'), ('2843', '11', '16', '4587', '13', '52.2000', 'AUDATEX'), ('2844', '11', '15', '4588', '13', '600.0000', 'PUERTA DEL DER'), ('2845', '11', '16', '4596', '13', '52.2000', 'AUDATEX'), ('2846', '11', '16', '4598', '13', '52.2000', 'AUDATEX'), ('2847', '11', '15', '4881', '11', '58.0000', '17-sep-13\tPLASTIACERO\t\t\t\t\\n'), ('2848', '11', '15', '4842', '11', '400.0000', '12-sep-13\tRIN \t\t\t\t\\n'), ('2849', '11', '15', '4842', '11', '1300.0000', '16-sep-13\tMANGO DE OPTRA\t\t\t\t\\n'), ('2850', '11', '15', '4813', '11', '600.0000', '17-sep-13\tRIN\t\t\t\t\\n'), ('2851', '11', '15', '4842', '11', '49.0000', '12 SEP-13 SPRAY NEGRO'), ('2852', '11', '15', '4799', '11', '1856.0000', '29-ago-13\tF-2567 MERCADO DE LLANTAS (UNA LLANTA)\\n'), ('2853', '11', '15', '4799', '11', '3173.7600', '27-ago-13\tF-53881 DEPCO (SALP Y FARO\\n'), ('2854', '6', '7', '4601', '13', '450.0000', 'SALDO JOSE 5/9/13'), ('2855', '7', '8', '4601', '13', '1300.0000', '29-ago-13\tPAGO GEOVANNY 6.5 PZS\t\\n'), ('2856', '7', '10', '4601', '13', '1200.2500', '29-ago-13\tCOLOR Y RESINA\\n\\n'), ('2857', '9', '13', '4601', '13', '150.0000', '29-ago-13\tSALDO OSCAR\\n'), ('2858', '11', '15', '4864', '11', '1183.2000', '18-sep-13\tF- AUTOMAYA (REFACCION)\t\t\t\t\\n'), ('2859', '11', '15', '4888', '11', '106.1600', '18-sep-13\tSIKAFLEX\t\t\t\t\\n'), ('2860', '6', '7', '4842', '13', '50.0000', 'PAGO FERNANDO 5/9/13'), ('2861', '9', '13', '4842', '13', '200.0000', '1º ANT OSCAR 12/9/13'), ('2862', '6', '7', '4834', '13', '100.0000', 'PAGO FERNANDO 5/9/13'), ('2863', '6', '7', '4834', '13', '300.0000', '2º ANT JOSE BALMACEDA 12/9/13'), ('2864', '6', '7', '4844', '13', '50.0000', 'PAGO FERNANDO 5/9/13'), ('2865', '6', '7', '4844', '13', '150.0000', '2ºANT MANUEL 12/9/13'), ('2866', '6', '7', '4825', '13', '100.0000', 'PAGO FERNANDO 5/9/13'), ('2867', '6', '7', '4825', '13', '350.0000', '1º ANT JAVIER 5/9/13'), ('2868', '6', '7', '4825', '13', '150.0000', 'SALDO JAVIER 12/9/13'), ('2869', '7', '8', '4825', '13', '450.0000', 'PAGO ANGEL 2 1/4 12/9/13'), ('2870', '7', '10', '4825', '13', '419.8200', 'COLOR Y RESINA 12/9/13'), ('2871', '6', '7', '4881', '13', '50.0000', 'PAGO FERNANDO 5/9/13'), ('2872', '11', '15', '4907', '13', '69.0300', 'SOPORTE DEFENZA ( AUTOSUR F-RZ02608 18/9/13'), ('2873', '6', '7', '4893', '13', '50.0000', 'PAGO FERNANDO 5/9/13'), ('2874', '9', '13', '4893', '13', '100.0000', '1º ANT OSCAE 5/9/13'), ('2875', '7', '8', '4893', '13', '400.0000', 'PAGO JUAN CARLOS 2 PZS 12/9/13'), ('2876', '7', '10', '4893', '13', '414.6000', 'COLOR Y RESINA 12/9/13'), ('2878', '9', '13', '4866', '13', '150.0000', 'PAGO OSCAR 5/9/13'), ('2879', '9', '13', '4835', '13', '100.0000', 'PAGO OSCAR 5/9/13'), ('2880', '8', '11', '4835', '13', '53.0000', 'LAVADO Y MOTOR 5/9/13'), ('2881', '8', '12', '4835', '13', '26.5000', 'SHAMPOO Y DESENGRASANTE 5/9/13'), ('2883', '9', '13', '4839', '13', '200.0000', 'PAGO OSCAR 5/9/13'), ('2884', '9', '13', '4863', '13', '100.0000', 'PAGO OSCAR 5/9/13'), ('2885', '9', '13', '4863', '13', '200.0000', 'PAGO OSCAR 12/9/13'), ('2886', '6', '7', '4863', '13', '400.0000', 'PAGO WILIAM 12/9/13'), ('2887', '6', '7', '4845', '13', '200.0000', '1º ANT CARLOS QUINTAL 5/9/13'), ('2888', '7', '8', '4845', '13', '3400.0000', 'PAGO CARLOS QUINTAL 17 PZS 12/9/13'), ('2889', '7', '10', '4845', '13', '2735.9800', 'COLOR Y RESINA 12/9/13'), ('2890', '6', '7', '4847', '13', '200.0000', 'PAGO CARLOS QUITAL 5/9/13'), ('2891', '7', '8', '4847', '13', '100.0000', 'PAGO CARLOS QUINTAL 1/2 PZ 5/9/13'), ('2892', '7', '10', '4847', '13', '76.7200', 'COLOR Y RESINA 5/9/13'), ('2893', '6', '7', '4788', '13', '250.0000', 'SALDO JAVIER 5/9/13'), ('2894', '7', '8', '4788', '13', '600.0000', 'PAGO ANGEL 3 PZS 5/9/13'), ('2895', '7', '10', '4788', '13', '655.1000', 'COLOR Y RESINA 5/9/13'), ('2896', '6', '7', '4796', '13', '150.0000', 'SALDO JAVIER 5/9/13'), ('2897', '6', '7', '4796', '13', '350.0000', '1º ANT JAVIER 59/9/13'), ('2898', '7', '8', '4796', '13', '550.0000', '29-ago-13\tPAGO ANGEL 2 3/4\\n'), ('2899', '7', '10', '4796', '13', '299.6500', '29-ago-13\tCOLOR Y RESINA\t\t\t\t\\n'), ('2900', '6', '7', '4857', '13', '250.0000', 'PAGO JAVIER 5/9/13'), ('2901', '7', '8', '4857', '13', '200.0000', 'PAGO JUAN CARLOS 1 PZ 5/9/13'), ('2902', '7', '10', '4857', '13', '272.5900', 'COLOR Y RESINA 5/9/13'), ('2903', '6', '7', '4849', '13', '350.0000', 'PAGO JAVIER 5/9/13'), ('2904', '7', '8', '4849', '13', '350.0000', 'PAGO JUAN CARLOS 1.75 PZ 5/9/13'), ('2905', '7', '10', '4849', '13', '288.6900', 'COLOR Y RESINA 5/9/13'), ('2906', '8', '11', '4849', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS 5/9/13'), ('2907', '6', '7', '4865', '13', '200.0000', 'PAGO JAVIER 5/9/13'), ('3451', '7', '8', '4865', '13', '200.0000', 'PAGO JUAN CARLOS 5/9/13'), ('2909', '8', '11', '4865', '13', '76.0000', 'LAVO PULIDO Y MOTOR 5/9/13'), ('2910', '8', '12', '4865', '13', '38.0000', 'SHAMPOO DESENGRASANTE'), ('2911', '6', '7', '4900', '13', '150.0000', 'PAGO JAVIER 5/9/13'), ('2912', '6', '7', '4734', '13', '100.0000', 'SALDO JAVIER 5/9/13'), ('2917', '8', '12', '4734', '13', '76.0000', 'LAVADO PULIDO Y MOTOR 5/9/13'), ('2914', '8', '12', '4734', '13', '38.0000', 'SHAMPOO,DESENGRASANTE 5/9/13'), ('2915', '11', '16', '4734', '13', '52.2000', 'AUDATEX VALUACION'), ('2916', '11', '15', '4539', '11', '52.2000', '12-ago-13\tF-52435 DEPCO ANTICONGELANTE\t\t\t\t\\n'), ('2918', '7', '8', '4734', '13', '200.0000', '29-ago-13\tPAGO ANGEL 1PZS\t\t\t\t\\n'), ('2919', '7', '10', '4734', '13', '262.2500', '29-ago-13\tMATERIAL\t\t\t\t\\n'), ('2920', '9', '13', '4734', '13', '200.0000', '29-ago-13\tPAGO OSCAR\t\t\t\t\\n'), ('2922', '9', '13', '4813', '13', '300.0000', 'PAGO OSCAR 5/9/13'), ('2923', '11', '15', '4757', '11', '438.4800', '19-ago-13\tF-52902 DEPCO (ESPEJO LAT \t\t\t\t\\n'), ('2924', '6', '7', '4674', '13', '350.0000', 'SALDO JUAN CARLOS 5/9/13'), ('2925', '6', '7', '4848', '13', '100.0000', 'PAGO JEOVANNY 5/9/13'), ('2926', '7', '7', '4848', '13', '100.0000', 'PAGO JEOVANNY 1/2 PZ 5/9/13'), ('2927', '7', '10', '4848', '13', '95.1700', 'COLOR Y RESINA 5/9/13'), ('2931', '6', '7', '4864', '13', '150.0000', '1º ANT JEOVANNY 5/9/13'), ('2929', '8', '11', '4848', '13', '41.5000', 'LAVADO Y PULIDO 5/9/13'), ('2930', '8', '12', '4848', '13', '20.7500', 'SHAMPOO Y DESENGRASANTE 5/9/13'), ('2932', '6', '7', '4864', '13', '100.0000', 'SALDO JEOVANNY 12/9/13'), ('2933', '7', '8', '4864', '13', '750.0000', 'PAGO JEOVANNY 12/9/13'), ('2934', '7', '10', '4864', '13', '555.3200', 'COLRO Y RESINA 12/9/13'), ('2935', '8', '11', '4864', '13', '287.5000', 'EST EXT 12/9/13'), ('2936', '8', '12', '4864', '13', '143.7500', 'SHAMPOO DESENGRASANTE 12/9/13'), ('2937', '6', '7', '4850', '13', '100.0000', 'PAGO ANGEL 12/9/13'), ('2938', '7', '8', '4850', '13', '200.0000', 'PAGO ANGEL 12/9/13'), ('2939', '7', '10', '4850', '13', '222.4800', 'COLOR Y RESINA 12/9/13'), ('2940', '8', '11', '4850', '13', '53.0000', 'LAVADO Y PULIDO 1 PZ 12/9/13'), ('2941', '8', '12', '4850', '13', '26.5000', 'SHAMPOO 12/9/13'), ('2942', '7', '8', '4846', '13', '150.0000', 'PAGO JUAN CARLOS 3/4 PZ 12/9/13'), ('2943', '7', '10', '4846', '13', '102.4500', 'COLOR Y RESINA 12/9/13'), ('2944', '8', '11', '4846', '13', '87.5000', 'LAVADO Y PULIDO LAV MOT 12/9/13'), ('2945', '8', '12', '4846', '13', '43.7500', 'SHAMPOO Y DESENGRASANTE 12/9/13'), ('2946', '7', '8', '4829', '13', '250.0000', 'PAGO CARLOS QUINTAL 1 1/4 PZ 5/9/12'), ('2947', '7', '10', '4829', '13', '410.0800', 'COLOR Y RESINA 5/9/13\\n'), ('2948', '7', '8', '4840', '13', '100.0000', 'PAGO JEOVANNY 1/2 PZ 5/9/13'), ('2949', '7', '10', '4840', '13', '100.2900', 'COLOR Y RESINA 5/9/13'), ('2950', '7', '8', '4882', '13', '100.0000', 'PAGO ANGEL ESCOBEDO 5/9/13'), ('2951', '7', '10', '4882', '13', '89.6100', 'COLR Y RESINA 5/9/13'), ('2952', '8', '11', '4857', '13', '53.0000', 'LAVADO Y PULIDO 5/9/13'), ('2953', '8', '12', '4857', '13', '26.5000', 'SHAMPOO'), ('2954', '8', '11', '4784', '13', '99.0000', 'LAVADO Y PULIDO 5/9/13'), ('2955', '8', '12', '4784', '13', '49.5000', 'SHAMPOO'), ('2956', '8', '11', '4859', '13', '189.7500', 'EST INT 5/9/13'), ('2957', '8', '12', '4859', '13', '94.8800', 'SHAMPOO 5/9/13'), ('2958', '8', '11', '4838', '13', '230.0000', 'EST EXTERIOR 5/9/13'), ('2959', '8', '12', '4838', '13', '115.0000', 'SHAMPOO Y DESENGRASANTE 5/9/13'), ('2960', '8', '11', '4853', '13', '230.0000', 'EST EXTERIOR 5/9/13'), ('2961', '8', '12', '4853', '13', '115.0000', 'SHAMPOO DESENGRASANTE 5/9/13'), ('3445', '8', '11', '4847', '13', '41.5000', 'lavado y pulido 5/9/13'), ('2963', '8', '11', '4837', '13', '230.0000', 'EST INTERIOR 5/9/13'), ('2964', '8', '12', '4837', '13', '115.0000', 'SHAMPOO'), ('2965', '8', '11', '4837', '13', '287.5000', 'EST EXTERIOR 5/9/13'), ('2966', '8', '12', '4837', '13', '143.7500', 'SHAMPOO Y DESENGRASANTE 5/9/13'), ('2967', '8', '11', '4772', '13', '53.0000', 'LAVADO ASPIRADO Y LAV MOTOR 5/9/13'), ('2968', '8', '12', '4772', '13', '26.5000', 'SHAMPOO Y DESENGRASANTE'), ('2969', '8', '11', '4788', '13', '99.0000', 'LAVADO-PULIDO LAV MOT 5/9/13'), ('2970', '8', '11', '4755', '13', '122.0000', 'LAVADO Y PULIDO 5/9/13'), ('2971', '8', '12', '4755', '13', '61.0000', 'SHAMPOO'), ('2972', '8', '11', '4839', '13', '53.0000', 'LAVADO -PULIDO Y DESENGRASANTE'), ('2973', '8', '12', '4839', '13', '26.5000', 'SHAMPO Y DESENGRASANTE'), ('2974', '6', '7', '4807', '13', '800.0000', 'SALDO MILO 12/9/13'), ('2975', '6', '7', '4807', '13', '100.0000', 'PAGO FERNANDO 12/9/13'), ('2976', '6', '7', '4807', '13', '300.0000', 'PAGO JAVIER 12/9/13'), ('2977', '6', '7', '4783', '13', '200.0000', '3º ANT MILO 12/9/13'), ('3032', '6', '7', '4919', '13', '200.0000', 'PAGO JOSE BALAMCEDA 12/9/13'), ('2979', '9', '13', '4783', '13', '100.0000', 'PAGO ANGEL 12/9/13'), ('2980', '7', '8', '4783', '13', '700.0000', 'PAGO CARLOS QUINTAL 12/9/13'), ('3546', '7', '10', '4783', '13', '675.5300', 'COLOR Y RESINA 12/9/13'), ('2982', '6', '7', '4892', '13', '350.0000', 'SALDO MILO 12/9/13'), ('2983', '7', '8', '4892', '13', '250.0000', 'PAGO ANGEL 1 1/4 PZ 12/9/13'), ('2984', '7', '10', '4892', '13', '295.7700', 'COLOR Y RESINA 12/9/13'), ('2985', '7', '53', '4892', '13', '50.0000', 'DETALLADO 12/9/13'), ('2987', '6', '7', '4909', '13', '700.0000', '1º ANT MILO'), ('2988', '8', '11', '4892', '13', '53.0000', 'LAVADO Y PULIDO 12/9/13'), ('2989', '8', '12', '4892', '13', '26.5000', 'SHAMPOO 12/9/13'), ('2990', '6', '7', '4888', '13', '400.0000', '1º ANT MILO 12/09/13'), ('2991', '6', '7', '4908', '13', '100.0000', 'PAGO MANUEL 12/9/13'), ('2992', '6', '7', '4886', '13', '200.0000', 'PAGO MANUEL 12/9/13'), ('2994', '11', '15', '4843', '11', '343.6900', '7-sep-13\tF-14872 CONST (TERMINA INTERIOR Y EXTERIOR)\\n'), ('2995', '11', '15', '4905', '11', '1687.7500', '9-sep-13\tF-14922 CONST (AMORTIGUADOR DEL Y TRASERO)\\n'), ('2996', '11', '15', '4916', '11', '815.1800', '18-sep-13\tF-2887 de toyota (buje de barra y cremayera de dirección\\n'), ('2997', '6', '7', '4893', '13', '100.0000', '2º ANT MANUEL 12/9/13'), ('2998', '11', '15', '4825', '11', '629.0000', '14-sep-13\tF-74358 PENSIONES (MOTOVENTILADOR)\\n'), ('2999', '6', '7', '4855', '13', '150.0000', 'SALDO MANUEL 12/9/13'), ('3000', '7', '8', '4855', '13', '400.0000', 'PAGO ANGEL 2 OPZS 12/9/13'), ('3001', '7', '10', '4855', '13', '538.3400', 'COLOR Y RESINA 12/9/13'), ('3002', '8', '11', '4855', '13', '76.0000', 'LAVADO Y PULIDO 12/9/13'), ('3003', '8', '12', '4855', '13', '38.0000', 'SHAMPOO 12/9/13'), ('3422', '6', '7', '4759', '13', '600.0000', 'MANUEL 12/09/13'), ('3502', '11', '15', '4930', '11', '4571.2300', '18-oct-13\tF-18466 CONSTITUCION (ROTULA, HORQUILLA. AMORTIGUADOR, BALERO, POLEA, LIQ TRANS Y FRENOS\\n'), ('3425', '11', '15', '4941', '11', '889.4200', '15-oct-13\tF-18126 CONS. (BOMBA ELECTRICO)\\n'), ('3009', '11', '15', '4799', '11', '54.6500', '13-sep-13\tF-RZ-02502(AUTOSUR) TUERCA\t\t\t\t\\n'), ('3010', '11', '15', '4799', '11', '461.2200', '13-sep-13\tF-RZ02500 AUTOSUR (ANTENA)\t\t\t\t\\n'), ('3012', '6', '7', '4862', '13', '400.0000', 'PAGO JOSE BALMACEDA 12/9/13'), ('3013', '7', '8', '4862', '13', '550.0000', 'PAGO JUAN CARLOS 12/9/13 '), ('3014', '7', '10', '4862', '13', '140.9100', 'COLR Y RESINA 12/9/13'), ('3015', '7', '53', '4862', '13', '100.0000', 'DETALLADO 12/9/13'), ('3016', '8', '11', '4862', '13', '30.0000', 'LAVADO Y ASPIRADO 12/9/13'), ('3017', '8', '12', '4862', '13', '15.0000', 'SHAMPOO'), ('3018', '6', '7', '4861', '13', '100.0000', 'PAGO JOSE BALMACEDA 12/9/13')\");\n\t\t$this->db->simple_query(\"INSERT INTO `gastos_vehiculo` VALUES ('3019', '7', '8', '4861', '13', '150.0000', 'PAGO CARLOS QUINTAL 3/4 PZ 12/9/13'), ('3020', '7', '10', '4861', '13', '149.6600', 'COLOR Y RESINA 12/9/13'), ('3021', '8', '11', '4861', '13', '41.5000', 'LAVADO Y PULIDO 1/2 PZ 12/9/13'), ('3022', '8', '12', '4861', '13', '20.7500', 'SHAMPOO 12/9/13'), ('3023', '6', '7', '4812', '13', '300.0000', 'PAGO JOSE BALMACEDA 12/9/13'), ('3024', '7', '8', '4812', '13', '450.0000', 'PAGO ANGEL 2 1/4 12/9/13'), ('3025', '7', '10', '4812', '13', '304.2300', 'COLOR Y RESINA 12/9/13'), ('3026', '8', '11', '4812', '13', '76.0000', 'LAVADO Y PULIDO 2 PZS 12/9/13'), ('3027', '8', '12', '4812', '13', '38.0000', 'SHAMPOO 12/9/13 '), ('3028', '6', '7', '4843', '13', '200.0000', '2º ANT JOSE BALMACEDA 12/9/13'), ('3029', '6', '7', '4843', '13', '50.0000', 'PAGO FERNANDO 05/9/13'), ('3030', '9', '13', '4843', '13', '250.0000', 'PAGO OSCAR 12/9/13'), ('3031', '11', '15', '4783', '11', '250.0000', '19-sep-13\tS/F DEPOSITO GUIA HIDRAULICA DE USO\\n'), ('3033', '6', '7', '4904', '13', '400.0000', 'PAGO JOSE BALMACEDA 13/9/13'), ('3034', '9', '13', '4904', '13', '200.0000', 'PAGO OSCAR 12/9/13'), ('3035', '7', '8', '4904', '13', '500.0000', 'PAGO JUAN CARLOS QUINTAL 2.5 12/9/13'), ('3036', '7', '10', '4904', '13', '315.2900', 'COLOR Y RESINA 12/9/13'), ('3037', '6', '7', '4922', '13', '200.0000', 'PAGO JOSE BALMACEDA 12/9/13'), ('3038', '6', '7', '4897', '13', '50.0000', 'PAGO FERNANDO 12/9/13'), ('3039', '6', '7', '4884', '13', '50.0000', 'PAGO FERNANDO 12/9/13'), ('3268', '7', '10', '4889', '13', '65.0400', 'COLOR PAGA TALLER'), ('3041', '6', '7', '4907', '13', '50.0000', 'PAGO FERNANDO 12/9/13'), ('3042', '6', '7', '4917', '13', '50.0000', 'PAGO FERNANDO 12/9/13'), ('3043', '6', '7', '4856', '13', '50.0000', 'PAGO FERNANDO 12/9/13'), ('3044', '7', '8', '4856', '13', '600.0000', 'PAGO JEOVANNY 12/9/13'), ('3424', '7', '10', '4856', '13', '577.9800', 'COLOR Y RESINA'), ('3046', '8', '11', '4856', '13', '122.0000', 'LAVADO-PULIDO Y MOTOR 12/9/13'), ('3047', '8', '12', '4856', '13', '61.0000', 'SHAMPOO 12/9/13'), ('3048', '6', '7', '4912', '13', '100.0000', 'PAGO FERNANDO 12/9/13'), ('3049', '6', '7', '4912', '13', '250.0000', 'PAGO WILIAM 12/9/13'), ('3050', '6', '7', '4921', '13', '50.0000', 'PAGO FERNANDO 12/9/13'), ('3051', '6', '7', '4812', '13', '100.0000', 'PAGO FERNANDO 12/9/13'), ('3052', '9', '13', '4905', '13', '300.0000', 'PAGO OSCAR 12/9/13'), ('3053', '9', '13', '4905', '13', '100.0000', 'PAGO ANGEL 12/9/13'), ('3429', '6', '7', '4817', '13', '300.0000', '12-sep-13\t1º ANT MILO\t\t\t\t\\n'), ('3056', '9', '13', '4512', '13', '350.0000', '2º ant OSCAR 12/9/13'), ('3057', '9', '13', '4512', '13', '100.0000', 'PAGO ANGEL 12/9/13'), ('3058', '6', '7', '4750', '13', '200.0000', 'PAGO OSCAR 12/9/13\\n'), ('3059', '6', '7', '4911', '13', '150.0000', 'PAGO WILIAM 12/9/13'), ('3060', '6', '7', '4854', '13', '550.0000', 'APGO WILIAM 12/9/13'), ('3062', '6', '7', '4813', '13', '600.0000', '2º ANT JAVIER 12/9/13'), ('3063', '7', '8', '4813', '13', '1150.0000', 'PAGO JUAN CARLOS 5 PAZ 19/9/13'), ('3064', '8', '11', '4813', '13', '500.0000', 'PAGO JEOVANNY 19/9/13 EST INTERIOR Y EXTERIOR'), ('3065', '8', '12', '4813', '13', '250.0000', 'SHAMPOO Y DESENGRASANTE 19/9/13'), ('3066', '6', '7', '4920', '13', '250.0000', 'PAGO JAVIER 12/9/13'), ('3167', '7', '8', '4920', '13', '200.0000', 'PAGO JUAN CARLOS 19/9/13'), ('3068', '6', '7', '4856', '13', '500.0000', 'PAGO JAVIER 12/9/13'), ('3069', '9', '13', '4806', '13', '50.0000', 'PAGO ANGEL 12/9/13'), ('3070', '9', '13', '4806', '13', '250.0000', 'PAGO OSCAR 19/9/13'), ('3071', '9', '13', '4750', '13', '50.0000', 'PAGO ANGEL 12/9/13'), ('3072', '9', '13', '4750', '13', '400.0000', '2º ANT OSCAR 19/9/13'), ('3073', '6', '7', '4750', '13', '150.0000', 'PAGO JOSE BALAMCAEDA ( INST ANTENA ) 19/09/13'), ('3074', '7', '8', '4750', '13', '200.0000', 'PAGO CARLOS QUINTAL 19/9/13'), ('3075', '6', '7', '4881', '13', '300.0000', 'PAGO RICARDO 12/09/13'), ('3076', '6', '7', '4881', '13', '350.0000', 'PAGO MILO 19/9/13'), ('3428', '7', '8', '4881', '13', '200.0000', 'PAGO CARLOS QUINTAL 19/9/13'), ('3108', '6', '7', '4906', '12', '250.0000', 'PAGO CARLOS QUINTAL 12/9/13'), ('3079', '8', '11', '4906', '13', '122.0000', 'LAVADO Y PULIDO LAV MOTOR 12/9/13'), ('3080', '8', '11', '4906', '13', '61.0000', 'SHAMPOO 12/9/13'), ('3081', '6', '7', '4779', '13', '100.0000', 'PAGO JUAN CARLOS 12/9/13'), ('3082', '7', '8', '4779', '13', '650.0000', 'PAGO JUAN CARLOS 12/9/13'), ('3083', '7', '10', '4779', '13', '588.1000', 'COLOR Y RESINA 12/9/13'), ('3084', '7', '8', '4779', '13', '50.0000', 'DETALLADO 12/9/13'), ('3092', '8', '11', '4901', '12', '76.0000', 'LAVADO Y PULIDO 2 PZS 12/9/13'), ('3091', '7', '10', '4901', '12', '192.1100', 'COLOR Y RESINA 12/9/13'), ('3090', '7', '8', '4901', '13', '250.0000', 'PAGO JUAN CARLOS 12/9/13'), ('3093', '8', '12', '4901', '12', '38.0000', 'SHAMPOO 12/9/13'), ('3094', '6', '7', '4901', '12', '150.0000', 'PAGO JUAN CARLOS 12/9/13'), ('3095', '6', '7', '4914', '12', '100.0000', 'PAGO JEOVANNY 12/9/13'), ('3096', '7', '8', '4914', '12', '100.0000', 'PAGO JEOVANNY 1/2 PZS 12/9/13'), ('3097', '7', '10', '4914', '12', '42.2200', 'COLOR Y RESINA 12/9/13'), ('3098', '8', '11', '4914', '12', '53.0000', 'LAVADO Y PULIDO 1 PZ 12/9/13'), ('3099', '8', '12', '4914', '12', '26.5000', 'SHAMPOO 12/9/13'), ('3100', '7', '8', '4902', '12', '200.0000', 'PAGO JUAN CARLOS 1PZ 12/9/13'), ('3101', '7', '10', '4902', '12', '192.4900', 'COLOR Y RESINA 12/9/13'), ('3102', '8', '11', '4902', '12', '287.5000', 'EST EXTERIOR 12/9/13'), ('3103', '8', '12', '4902', '12', '143.7500', 'SHAMPOO 12/9/13'), ('3104', '11', '15', '4774', '11', '310.8400', '10-ago-13\tF-12660 (CONS) ACEITE Y FILTRO\t\t\t\t\\n'), ('3105', '7', '8', '4911', '12', '200.0000', 'PAGO JUAN CARLOS 1 PZ 12/9/13'), ('3106', '11', '15', '4774', '11', '76.4000', '17-ago-13\tF-13224 (CONS) SUPER LAVADO\t\t\t\t\\n'), ('3107', '7', '10', '4911', '12', '345.4200', 'COLOR Y RESINA 12/9/13'), ('3109', '7', '8', '4906', '12', '500.0000', 'PAGO CARLOS QUINTAL 2 1/2 12/9/13'), ('3110', '7', '10', '4906', '12', '624.6500', 'COLOR Y RESINA 12/9/13'), ('3111', '7', '8', '4780', '12', '850.0000', 'PAGO JEOVANNY 4.25 12/9/13 '), ('3112', '7', '10', '4780', '12', '783.6800', 'COLOR Y RESINA 12/9/13'), ('3113', '8', '11', '4780', '12', '122.0000', 'LAVADO Y PULIDO 4 PZS 12/9/13'), ('3114', '8', '12', '4780', '12', '61.0000', 'SHAMPOO 12/9/13'), ('3115', '7', '8', '4903', '12', '50.0000', 'PAGO JEOVANNY 1/4 PZ 12/9/13'), ('3116', '7', '10', '4903', '12', '86.1900', 'COLOR Y RESINA 12/9/13'), ('3117', '8', '11', '4903', '12', '41.5000', 'LAVADO Y PULIDO 12/9/13'), ('3118', '8', '12', '4903', '12', '20.7500', 'SHAMPOO 12/09/13'), ('3124', '8', '12', '4779', '12', '49.5000', 'SHAMPOO 12/9/13'), ('3125', '8', '11', '4905', '13', '30.0000', 'LAVADO Y ASPIRADO 12/9/13'), ('3123', '8', '11', '4779', '12', '99.0000', 'LAVADO Y PULIDO 12/9/13'), ('3126', '8', '12', '4905', '13', '15.0000', 'SHAMPOO 12/9/13'), ('3127', '8', '11', '4891', '13', '287.5000', 'EST EXTE 12/9/13'), ('3128', '8', '12', '4891', '13', '143.7500', 'SHAMPOO Y DESENGRASANTES 12/9/13'), ('3129', '8', '11', '4891', '13', '230.0000', 'EST INTERIOR 12/9/13'), ('3130', '8', '12', '4891', '13', '115.0000', 'SHAMPOO 12/9/13'), ('3131', '8', '11', '4864', '13', '230.0000', 'EST INTERIOR 12/9/13'), ('3134', '8', '12', '4864', '13', '115.0000', 'SHAMPOO ABRILLANTADOR 12/9/13'), ('3133', '6', '7', '4888', '13', '450.0000', 'SALDO MILO 19/9/13'), ('3135', '8', '11', '4913', '13', '230.0000', 'EST EXTERIOR 12/9/13'), ('3136', '8', '12', '4913', '13', '115.0000', 'SHAMPOO DESENGRASANTE 12/9/13'), ('3137', '8', '11', '4913', '13', '189.7500', 'EST INTERIOR 12/9/13'), ('3138', '8', '12', '4913', '13', '94.8800', 'SHAMPOO 12/9/13'), ('3139', '6', '7', '4858', '13', '350.0000', '1º ANT MILO 19/9/13'), ('3140', '6', '7', '4886', '13', '100.0000', 'PAGO MILO 19/9/13'), ('3191', '7', '8', '4912', '12', '300.0000', 'PAGO JUAN CARLOS 19/9/13'), ('3192', '7', '10', '4912', '12', '294.0000', 'COLOR Y RESINA'), ('3143', '6', '7', '4813', '13', '450.0000', 'PAGO MILO 19/9/13'), ('3144', '7', '10', '4813', '13', '579.8000', 'COLOR Y RESINA 19/09/13'), ('3145', '7', '53', '4813', '13', '150.0000', 'DETALLADO 19/9/13'), ('3146', '6', '7', '4854', '13', '300.0000', 'PAGO MILO 19/9/13'), ('3147', '7', '8', '4854', '13', '450.0000', 'PAGO ANGEL 2 1/4 PZ 19/9/13'), ('3148', '7', '10', '4854', '13', '809.9000', 'COLOR Y RESINA 19/9/13'), ('3149', '7', '53', '4854', '13', '200.0000', 'DETALLADO 19/9/13'), ('3150', '6', '7', '4917', '13', '350.0000', 'PAGO MILO 19/9/13'), ('3151', '6', '7', '4841', '13', '300.0000', 'PAGO MANUEL 19/9/13'), ('3152', '6', '7', '4841', '13', '200.0000', 'PAGO JOSE BALMACEDA 19/9/13'), ('3153', '9', '13', '4841', '13', '200.0000', 'SALDO OSCAR 19/9/13'), ('3154', '6', '7', '4799', '13', '500.0000', 'PAGO MANUEL 19/9/13'), ('3155', '6', '7', '4799', '13', '150.0000', 'PAGO JOSE BALMACEDA 19/9/13'), ('3156', '6', '7', '4893', '13', '200.0000', 'PAGO MANUEL 19/9/13'), ('3157', '6', '7', '4893', '13', '250.0000', 'PAGO JOSE BALMACEDA 19/9/13'), ('3158', '6', '7', '4834', '13', '200.0000', '3º ANT JOSE BALMACEDA 19/9/13'), ('3159', '6', '7', '4907', '13', '300.0000', 'PAGO JOSE BALMACEDA 19/9/13'), ('3160', '7', '8', '4907', '13', '250.0000', 'PAGO JUAN CARLOS 1.25 PZ 19/9/13'), ('3161', '7', '10', '4907', '13', '328.8400', 'COLOR Y RESINA 19/9/13'), ('3162', '6', '7', '4842', '13', '550.0000', '1º ANT JOSE BALMACEDA 19/9/13'), ('3163', '9', '13', '4842', '13', '200.0000', 'PAGO OSCAR 19/9/13'), ('3164', '9', '13', '4893', '13', '200.0000', 'SALDO OSCAR 19/9/13'), ('3165', '9', '13', '4512', '13', '500.0000', 'SALDO OSCAR 19/9/13'), ('3166', '9', '13', '4783', '13', '450.0000', 'PAGO OSCAR TALLER 19/9/13'), ('3168', '7', '10', '4920', '13', '349.0400', 'COLOR Y RESINA 19/9/13'), ('3169', '7', '8', '4924', '13', '500.0000', 'PAGO JUAN CARLOS SUAREZ 19/9/13'), ('3170', '7', '10', '4924', '13', '353.9200', 'COLOR Y RESINA 19/9/13'), ('3172', '7', '10', '4881', '13', '158.1000', 'COLOR Y RESINA 19/9/13'), ('3173', '7', '10', '4750', '13', '364.6700', 'COLOR Y RESINA 19/9/13'), ('3174', '7', '8', '4863', '13', '700.0000', 'PAGO CARLOS QUINTAL 19/9/13'), ('3175', '7', '8', '4908', '13', '200.0000', 'PAGO ANGEL ESCOBEDO 19/9/13'), ('3176', '7', '10', '4908', '13', '174.3900', 'COLOR Y RESINA 19/9/13'), ('3177', '7', '8', '4922', '13', '300.0000', 'PAGO ANGEL ESCOBEDO 19/9/13'), ('3178', '7', '10', '4922', '13', '544.2800', 'COLRO Y RESINA 19/9/13'), ('3179', '7', '10', '4863', '13', '949.8200', 'COLOR Y RESINA 19/9/13'), ('3180', '9', '13', '4863', '13', '100.0000', 'PAGO ANGEL 12/9/13\\n'), ('3181', '9', '13', '4702', '13', '150.0000', 'PAGO ANGEL 12/9/13'), ('3182', '9', '13', '4881', '13', '50.0000', 'PAGO ANGEL 19/9/13'), ('3185', '8', '12', '4599', '12', '26.5000', 'SHAMPOO'), ('3186', '11', '16', '4559', '12', '350.0000', 'ESCANEO'), ('3187', '11', '15', '4841', '11', '800.0000', '26-sep-13\tMODULO DE VENTILADOR (PENDIENTE VALE)\\n'), ('3188', '11', '15', '4917', '11', '550.0000', '26-sep-13\tUNIDAD IZQUIERDA\t\t\t\t\\n'), ('3189', '11', '15', '4897', '11', '1500.0000', '25-sep-13\tCOSTADO DERECHO PIEZA\t\t\t\t\\n'), ('3190', '11', '16', '4611', '12', '52.2000', 'AUDATEX'), ('3193', '9', '13', '4512', '11', '650.0000', '27-sep-13\tPAGO MECANICO ROBERTO\t\t\t\t\\n'), ('3194', '11', '15', '4614', '13', '75.0000', 'LAMINA'), ('3196', '11', '16', '4927', '13', '450.0000', 'SILENCIADOR E INSTALACION'), ('3197', '11', '16', '4750', '13', '320.0000', 'AJUSTE DE SUSPENSION/CAMBIO DE AMORTIGUADOR/DES Y MONT LLANTA ( MERCADO DE LLANTA 26/9/13 (422'), ('3198', '11', '16', '4806', '13', '380.0000', 'VACIO Y CARGA DE GAS 26/9/13 ( 426'), ('3199', '11', '16', '4843', '13', '150.0000', 'ALINEACION DE RUEDAS DELANTERAS 26/9/13 ( MERCADO DE LLANTAS'), ('3449', '11', '15', '4944', '11', '45.3000', '16-oct-13\tF-18282 CONS (LIQ LIMPIADOR)\\n'), ('3201', '11', '16', '4806', '13', '150.0000', 'ALINEACION DE RUEDAS DELANTERAS 26/9/13 ( MERCADO DE LLANTAS'), ('3202', '7', '10', '4862', '11', '130.0000', '11-sep-13\tMATERIAL DE PINTURA\\n'), ('3203', '11', '15', '4863', '11', '300.0000', '5-sep-13\tESPIGA IZQUIERDA (PIEZA)\\n'), ('3204', '11', '16', '4904', '11', '600.0000', '27-sep-13\tTAPICERIA\t\t\t\t\\n'), ('3205', '11', '15', '4899', '11', '89.6100', '1-oct-13\tF-16877 CONST (ANTICONGELANTE)\t\t\t\t\\n'), ('3206', '11', '15', '4619', '13', '142.0000', 'BANDA DE ALTERNADOR ( CONST 13/7/13 F-69978'), ('3207', '11', '16', '4619', '13', '684.0000', 'FILTRO/ BUJIAS ( CONST 12/7/13 F-69883'), ('3209', '6', '7', '4899', '13', '783.5000', 'TALLER 28/9/13'), ('3210', '6', '7', '4708', '13', '783.5000', 'TALLER'), ('3211', '6', '7', '4806', '13', '783.5000', 'TALLER'), ('3216', '7', '10', '4806', '13', '580.5500', 'COLOR- RESINA-PROCESIVOS 29/9/13'), ('3215', '7', '8', '4806', '13', '486.3600', 'TALLER 29/9/13'), ('3246', '8', '11', '4806', '13', '417.0000', 'TALLER 29/9/13'), ('3217', '6', '7', '4904', '13', '783.5000', 'TALLER 29/9/13'), ('3218', '6', '7', '4807', '13', '783.5000', 'TALLER 29/9/13'), ('3219', '7', '8', '4807', '13', '486.3600', 'TALLER 29/9/13'), ('3220', '7', '10', '4807', '13', '580.5500', 'COLOR Y RESINA -PROCESIVOS 29/9/13'), ('3221', '6', '7', '4897', '13', '783.5000', 'TALLER 29/9/13'), ('3222', '6', '7', '4893', '13', '783.5000', 'TALLER 29/9/13'), ('3223', '9', '13', '4512', '13', '783.5000', 'TALLER 29/9/13'), ('3224', '6', '7', '4783', '13', '783.5000', 'TALLER 29/9/13'), ('3225', '7', '8', '4917', '13', '486.3600', 'TALLER 29/9/13'), ('3226', '7', '10', '4917', '13', '580.5300', 'COLOR RESINA Y PROCESIVOS 29/9/13'), ('3227', '7', '8', '4858', '13', '486.3600', 'TALLER 29/09/13'), ('3228', '7', '10', '4858', '13', '580.5500', 'COLOR RESINA Y PROCESIVOS 29/9/13'), ('3229', '7', '8', '4888', '13', '486.3600', 'TALLER 29/9/13'), ('3230', '7', '10', '4888', '13', '580.5500', 'COLRO RESINA Y PROCESIVOS 29/9/13'), ('3232', '7', '8', '4843', '13', '486.3600', 'TALLER 29/9/13'), ('3233', '7', '10', '4843', '13', '580.5500', 'COLOR RESINA Y PROCESIOS 29/9/13'), ('3234', '7', '8', '4834', '13', '486.3600', 'TALLER 29/9/13'), ('3235', '7', '10', '4834', '13', '580.5500', 'COLOR RESINA Y PROCESIVOS 29/09/13\\n\\n'), ('3236', '7', '8', '4842', '13', '486.3600', 'TALLER 29/9/13'), ('3237', '7', '10', '4842', '13', '580.5500', 'COLOR RESINA Y PROCESIBOS 29/9/13'), ('3238', '7', '8', '4886', '13', '486.3600', 'TALLER 29/9/13'), ('3239', '7', '10', '4886', '13', '580.5500', 'COLOR RESINA Y PROCESIVOS 29/9/13'), ('3241', '7', '8', '4909', '13', '486.3600', 'TALLER 29/9/13'), ('3242', '7', '10', '4909', '13', '580.5500', 'COLOR RESINA Y PROCESIVOS 29/9/13'), ('3243', '7', '8', '4844', '13', '486.3600', 'TALLER 29/9/13'), ('3244', '7', '10', '4844', '13', '580.5500', 'COLOR Y PROCESIVOS 29/9/13'), ('3248', '8', '11', '4907', '13', '416.6700', 'TALLER 29/9/13'), ('3249', '8', '11', '4863', '13', '416.6700', 'TALLER 29/9/13'), ('3357', '8', '11', '4789', '13', '416.6700', 'TALLER'), ('3251', '8', '11', '4917', '13', '417.0000', 'TALLER 29/9/13'), ('3252', '11', '15', '4632', '13', '710.0000', '15-jul-13\tF-50422 depco (defensa delantera)\t\t\t\t\\n'), ('3253', '11', '15', '4632', '13', '153.5000', '17-jul-13\tF-rz 483 (nissan)\t\t\t\t\\n'), ('3257', '11', '15', '4637', '13', '413.7400', 'EMBLEMA (VW'), ('3258', '11', '15', '4639', '13', '315.0000', '16-jul-13\tF-10397 CONSTITUCION (FILTRO DE ACEITE Y ACEITE)\t\t\t\t\\n'), ('3259', '11', '15', '4642', '13', '40.3000', 'CARBUCLIN'), ('3260', '9', '13', '4649', '13', '100.0000', 'PAGO OSCAR'), ('3261', '11', '16', '4651', '13', '1000.0000', 'REPROGRAMACION'), ('3262', '11', '16', '4651', '13', '300.0000', 'GASOLINA'), ('3263', '11', '16', '4454', '13', '2490.0000', 'NOTA DE PAULINO'), ('3354', '9', '13', '4772', '13', '50.0000', 'FERNANDO'), ('3355', '9', '13', '4772', '13', '300.0000', 'OSCAS'), ('3270', '11', '16', '4665', '13', '450.0000', 'PAGO GRUA'), ('3271', '11', '15', '4665', '13', '117.0000', 'ANTICONGELANTE'), ('3273', '11', '16', '4657', '13', '52.5000', 'AUDATEX'), ('3274', '11', '16', '4657', '13', '37.0000', 'CHEQUEO DE LLANTA'), ('3275', '6', '7', '4921', '13', '200.0000', '2º ANT CISCO 5/9/13'), ('3276', '6', '7', '4909', '13', '300.0000', 'SALDO MILO 5/10/13'), ('3277', '7', '10', '4921', '11', '200.0000', '4-oct-13\tMATERIAL DE PINTURA(CATALIZADOR, SOLVENTE)\t\t\t\t\\n'), ('3278', '8', '11', '4909', '13', '250.0000', 'EST EXTERIOR 5/10/13'), ('3279', '6', '7', '4708', '13', '800.0000', '6º ANT MILO 5/10/13'), ('3280', '6', '7', '4842', '13', '600.0000', 'PAGO MANUEL 5/10/13'), ('3281', '7', '8', '4842', '13', '100.0000', 'PAGO CISCO LIJAR PARA PULIR 5/10/13'), ('3282', '7', '8', '4842', '13', '150.0000', 'PAGO AJEOVANNY PINT MOLDURA 5/10/13'), ('3283', '8', '11', '4842', '13', '100.0000', 'PAGO JEOVANNY PULIDA 3PZS LAVADO 5/10/13'), ('3284', '6', '7', '4858', '13', '250.0000', 'PAGO JOSE BALMACEDA 5/10/13'), ('3285', '6', '7', '4842', '13', '400.0000', 'PAGO JOSE BALMACEDA 5/10/13'), ('3286', '6', '7', '4834', '13', '200.0000', 'PAGO JOSE BALMACEDA 5/10/13'), ('3287', '6', '7', '4897', '13', '350.0000', 'PAGO JOSE BALMACEDA 5/10/13'), ('3291', '7', '8', '4897', '13', '600.0000', 'PAGO JEOVANNY C/CISCO 5/10/13'), ('3289', '6', '7', '4352', '13', '200.0000', 'PAGO JOSE BALAMACEDA 5/10/13'), ('3290', '6', '7', '4928', '13', '200.0000', 'PAGO JOSE BALMACEDA 5/10/13'), ('3292', '7', '8', '4834', '13', '200.0000', 'PAGO JEOVANNY C/CISCO PULIR Y LAVADO 5/10/13'), ('3294', '7', '8', '4858', '13', '100.0000', 'PAGO CISCO LIJAR PARA PULIR 5/10/13'), ('3295', '8', '11', '4858', '13', '150.0000', 'PAGO JEOVANNY PULIR 4 PZS LAVADO Y ASPIRADO'), ('3296', '8', '11', '4807', '13', '150.0000', 'PAGO JEOVANNY PULIDA 3PZS LAVADO Y ASPIRADO 5/10/13'), ('3297', '7', '8', '4807', '13', '250.0000', 'PAGO JEOVANNY 5/10/13'), ('3298', '11', '16', '4667', '13', '52.2000', 'AUDATEX'), ('3300', '7', '8', '4676', '13', '50.0000', '29-ago-13\tPAGO ANGEL 1/4 PZ\\n'), ('3301', '7', '10', '4676', '13', '29.2400', '29-ago-13\tMATERIAL\t\t\t\t\\n'), ('3302', '11', '16', '4676', '13', '52.2000', 'AUDATEX'), ('3303', '11', '16', '4568', '11', '450.0000', '4-oct-13\tPAGO MANUEL MATA (ROTULACION)\\n'), ('3306', '11', '16', '4681', '13', '52.2000', 'AUDATEX'), ('3307', '7', '10', '4650', '13', '154.4300', 'COLOR Y RESINA '), ('3310', '11', '15', '4670', '13', '96.0000', 'espejo'), ('3312', '9', '14', '4698', '13', '780.0000', 'rectificacion de discos'), ('3313', '11', '16', '4714', '13', '1080.0000', 'NOTA PAULINO'), ('3314', '7', '8', '4717', '13', '200.0000', 'PAGO JUAN CARLOS '), ('3315', '7', '10', '4717', '13', '127.9500', 'COLOR '), ('3316', '7', '8', '4718', '13', '550.0000', 'PAGO CARLOS Q 2 3/4 PZ'), ('3317', '7', '10', '4718', '13', '204.2900', 'COLOR Y RESINA'), ('3318', '7', '53', '4718', '13', '100.0000', 'DETALLADO'), ('3320', '11', '16', '4722', '13', '52.2000', 'audatex'), ('3321', '11', '16', '4929', '13', '848.0000', 'RECTIFICACION DE DISCOS,TAMBORES Y JUEGOS BALATAS DEL Y TRS '), ('3322', '11', '15', '4352', '13', '270.0000', 'RIN Y DESMONTAR LLANTA 9/10/13'), ('3323', '9', '13', '4723', '13', '200.0000', 'PAGO OSCAR'), ('3324', '6', '7', '4723', '13', '150.0000', 'PAGO CARLOS Q'), ('3325', '8', '11', '4723', '13', '76.0000', 'LAVADO ASP PULIDO Y MOTOR'), ('3326', '8', '12', '4723', '13', '38.0000', 'SHAMPOO Y DESENGRASANTE'), ('3327', '11', '16', '4723', '13', '52.2000', 'AUDA TEX'), ('3328', '7', '8', '4743', '13', '750.0000', 'PAGO JEOVANNY'), ('3329', '7', '10', '4743', '13', '845.2000', 'COLOR Y RESINA'), ('3330', '11', '15', '4738', '13', '228.3100', 'PROTECTOR DE TELAS'), ('3331', '11', '15', '4842', '11', '184.4900', '18-sep-13\tF-15744 CONS (BALERO DOBLE)\t\t\t\t\\n'), ('3332', '11', '15', '4854', '11', '350.7400', '26-sep-13\tF-16446 CONST (MAZA TRAS)\\n'), ('3333', '11', '15', '4928', '11', '2293.2500', '3-oct-13\tF-17056 CONST. (AMORTIGUADOR DEL\t\t\t\t\\n'), ('3336', '11', '16', '4745', '13', '52.2000', 'AUDATEX'), ('3337', '11', '16', '4748', '13', '52.2000', 'AUDATEX'), ('3338', '11', '16', '4750', '13', '52.2000', 'AUDATEX'), ('3340', '7', '10', '4759', '13', '1593.1400', 'MATERIAL'), ('3341', '7', '53', '4759', '13', '150.0000', 'DETALLADO'), ('3342', '11', '16', '4759', '13', '400.0000', 'SALDO COM'), ('3343', '11', '16', '4759', '13', '52.2000', 'AUDATEX'), ('3344', '11', '16', '4765', '13', '52.2000', 'AUDATEX'), ('3345', '9', '13', '4771', '13', '100.0000', 'PAGO OSCAR'), ('3346', '11', '16', '4778', '13', '52.2000', 'AUDATEX'), ('3347', '11', '16', '4779', '13', '52.2000', 'AUDATEX'), ('3348', '11', '15', '4610', '11', '4800.0000', 'COFRE Y MARCO RADIADOR'), ('3349', '11', '15', '4842', '11', '110.7200', '10-oct-13\tF-66100 Automotriz Montecristo (interruptos de luz y posn)\\n'), ('3359', '11', '15', '4779', '13', '18.0000', '4-sep-13\tCOLA LOKA\\n'), ('3351', '11', '16', '4813', '13', '150.0000', 'ALINEACION DE LLANTAS DELANTERAS 20/9/13'), ('3352', '11', '16', '4813', '13', '350.0000', '21-sep-13\tEscaneada de codigos\t\t\t\t\\n'), ('3360', '8', '11', '4790', '13', '416.6700', 'TALLER '), ('3361', '7', '8', '4708', '13', '600.0000', 'ANT. CARLOS QUINTAL 12/10/13'), ('3362', '11', '15', '4799', '11', '2839.6799', '11-sep-13\tF-54278 Depco (defensa del y faro)\t\t\t\t\\n'), ('3363', '11', '15', '4843', '11', '1127.5200', '17-sep-13\tFact. 54666 Depco (faro de fiesta)\\n'), ('3364', '11', '15', '4843', '11', '2657.6599', '30-ago-13\tFact. 53696 Depco (faro derecho, faro niebla, marco radiador superio y marco rad. Inf))\\n'), ('3367', '11', '15', '4921', '13', '321.5500', '03/10/13 F-5581 DEFENSA DELANTERO'), ('3366', '11', '15', '4842', '13', '187.9200', '20/10/13 f-5549 MOLDURA COFRE'), ('3368', '11', '15', '4904', '13', '41.7600', '11/10/13 F-5607 REJILLA FASCIA ( DEPCO'), ('3369', '6', '7', '4845', '13', '200.0000', 'PAGO MILO 12/10/13'), ('3370', '7', '8', '4845', '13', '500.0000', 'PAGO JEOVANNY 12/10/13'), ('3371', '7', '8', '4845', '13', '500.0000', 'PAGO FRANCISCO 12/10/13'), ('3372', '6', '7', '4930', '13', '100.0000', 'PAGO JOSE BALMACEDA 12/10/13(DESARMADO'), ('3373', '9', '13', '4930', '13', '75.0000', 'PAGO OSCAR 12/10/13(DESARMADO'), ('3374', '9', '13', '4929', '13', '300.0000', 'PAGO OSCAR 12/10/13'), ('3375', '9', '13', '4834', '13', '75.0000', 'PAGO OSCAR 12/10/13'), ('3376', '11', '15', '4904', '13', '2800.0000', 'EVAPORADOR CON MANO DE OBRA 12/10/13 (LAAS'), ('3377', '11', '15', '4929', '11', '647.5600', '8-oct-13\tF-17511 CONST (KIT DE AFINACION)\\n'), ('3378', '7', '8', '4791', '13', '200.0000', '29-ago-13\tPAGO ANGEL 2 3/4\t\t\t\t\\n'), ('3379', '7', '10', '4791', '13', '192.8800', 'COLOR Y RESINA 29-ago-13\\n'), ('3380', '8', '11', '4791', '13', '94.8800', '29-ago-13\tEST INTERIOR 50%\t\t\t\t\\n'), ('3381', '8', '11', '4791', '13', '230.0000', '29/8/13 EST EXTERIOR'), ('3382', '8', '12', '4791', '13', '162.4400', 'MATERIAL'), ('3383', '11', '15', '4809', '13', '1360.0000', '14-ago-13\tF-17018 COLISION (REFUERZO TRASERO)\t\t\t\t\\n'), ('3384', '7', '8', '4810', '13', '200.0000', '29-ago-13\tPAGO ANGEL 1 PZ\t\t\t\t\t\\n'), ('3385', '7', '10', '4810', '13', '168.7800', '29-ago-13\tCOLOR\t\t\t\t\\n'), ('3386', '8', '11', '4810', '13', '230.0000', '29-ago-13\tEST EXT\t\t\t\t\\n'), ('3387', '8', '11', '4810', '13', '115.0000', '29-ago-13\tMATERIAL\t\t\t\t\\n'), ('3390', '8', '11', '4810', '13', '287.5000', '29-ago-13\tEST INTERIOR\\n'), ('3389', '8', '12', '4810', '13', '143.7500', '29-ago-13\tMATERIAL\t\t\t\t\\n'), ('3391', '6', '7', '4818', '13', '100.0000', '29-ago-13\tPAGO JAVIER\t\t\t\t\\n'), ('3392', '11', '15', '4818', '13', '100.0000', 'GRAPAS'), ('3393', '11', '15', '4818', '13', '50.0000', 'CLAXON'), ('3394', '11', '15', '4932', '11', '1480.8600', '14-oct-03\tF-18051 COSNT (KIT DE AFINACION)\\n'), ('3395', '11', '16', '4820', '13', '500.0000', '28/8/13 COM CHOFER'), ('3396', '11', '15', '4820', '13', '12.0000', 'KOLA LOKA'), ('3397', '8', '11', '4827', '13', '187.5000', 'EST INTERIOR 29/8/13'), ('3398', '8', '12', '4827', '13', '93.7500', 'SHAMPOO'), ('3399', '11', '16', '4830', '13', '900.0000', 'tapiceria'), ('3400', '7', '8', '4804', '13', '300.0000', '29-ago-13\tPAGO JEOVANNY 1.5 PZ\t\t\t\t\\n'), ('3401', '7', '10', '4804', '13', '188.3100', '29-ago-13\tMATERIAL\\n'), ('3402', '8', '11', '4804', '13', '46.0000', '29-ago-13\tPULIDO 2PZ\t\t\t\t\\n'), ('3403', '8', '12', '4804', '13', '23.0000', 'SHAMPOO'), ('3404', '11', '16', '4801', '13', '52.2000', 'AUDATEX'), ('3405', '7', '8', '4802', '13', '600.0000', '29-ago-13\tPAGO JUAN CARLOS 3 PZS\t\t\t\t\\n'), ('3406', '7', '10', '4802', '13', '461.3400', '29-ago-13\tCOLOR Y RESINA\t\t\t\t\\n'), ('3407', '11', '15', '4932', '11', '330.8900', '14-oct-03\tF-18063 CONST. (ACEITE MULTIGRADO)\\n'), ('3408', '11', '16', '4929', '11', '250.0000', '15-oct-13\tRESETEO DE CODIGOS (CERRAJERO)\\n'), ('3409', '11', '16', '4932', '11', '250.0000', '15-oct-13\tRESETEO DE CODIGOS (CERRAJERO)\\n'), ('3410', '6', '7', '4816', '13', '100.0000', '29-ago-13\tPAGO CARLOS QUINTAL \t\t\t\t\\n'), ('3411', '7', '8', '4816', '13', '150.0000', '29-ago-13\tPAGO CARLOS QUINTAL 3/4 PZ \\n'), ('3412', '7', '10', '4816', '13', '106.1200', '29-ago-13\tCOLOR Y RESINA\t\t\t\t\\n'), ('3413', '8', '11', '4816', '13', '53.0000', '29-ago-13\tLAVADO Y PULIDO 1 PZ\t\t\t\t\\n'), ('3414', '8', '12', '4816', '13', '26.5000', '29-ago-13\tMATERIAL\\n'), ('3415', '6', '7', '4828', '13', '200.0000', '29-ago-13\t1º ANT JAVIER \t\t\t\t\\n'), ('3416', '6', '7', '4828', '13', '300.0000', '5-sep-13\tSALDO JAVIER\\n'), ('3417', '7', '8', '4828', '13', '800.0000', '5-sep-13\tPAGO JEOVANNY 4 PZS\t\t\t\t\\n'), ('3418', '7', '10', '4828', '13', '573.7500', '5-sep-13\tCOLOR Y RESINA\t\t\t\t\\n'), ('3419', '8', '11', '4828', '13', '145.0000', '5-sep-13\tLAVADO Y PULIDO 5 PZ\\n'), ('3420', '8', '12', '4828', '13', '72.5000', '5-sep-13\tMATERIAL\t\t\t\t\\n'), ('3421', '11', '16', '4828', '13', '52.2000', 'AUDATEX'), ('3426', '11', '15', '4932', '11', '279.1000', '15-oct-13\tF-18145 CONST. (DEPOSITO RECUPERADOR)\t\t\t\t\\n'), ('3427', '11', '15', '4929', '11', '500.0000', '15-oct-13\t1 ACUMULADOR\t\t\t\t\\n'), ('3430', '6', '7', '4817', '13', '550.0000', '12-sep-13\tPAGO RICARDO\\n'), ('3431', '6', '7', '4817', '13', '150.0000', '19-sep-13\tPAGO MILO\t\t\t\t\\n'), ('3432', '7', '8', '4817', '13', '650.0000', 'PAGO CARLOS QUINTAL 19/9/13\t\\n'), ('3433', '7', '10', '4817', '13', '568.4800', '19-sep-13\tMATERIAL\t\t\t\t\\n\\n'), ('3434', '11', '16', '4817', '13', '300.0000', 'BAJAR E INSTALER MEDALLON 12/9/13 CRISTALERO MIGUEL\t\\n'), ('3436', '11', '16', '4882', '13', '850.0000', '3-sep-13\tREP. DE UN RIN}\t\t\t\t\\n'), ('3437', '11', '15', '4933', '11', '200.0000', '15-oct-13\tARNES COMPUTADORA\t\t\t\t\\n'), ('3438', '11', '15', '4814', '11', '150.0000', '25-sep-13\tORDEN C-419 ALINEACION DE LLANTAS (MERCADO)\t\t\t\t\\n'), ('3439', '11', '15', '4806', '11', '75.0000', '14-oct-13\tORDEN # 430 MONTAJE Y BALANCEO\\n'), ('3581', '11', '16', '4950', '11', '1200.0000', '26-oct-13\tPAGO ESCANEO\t\t\t\t\\n'), ('3441', '11', '15', '4352', '11', '1218.0000', '16-oct-13\tORDEN 432 FACT. 15705 MERCADO ( 1 LLANTA DE EUZKADI)\\n'), ('3442', '8', '11', '4831', '13', '230.0000', 'COSTO EST EXT'), ('3443', '11', '15', '4842', '13', '1364.1600', 'DEF DEL Y SALPICADERA'), ('3444', '11', '16', '4842', '13', '180.0000', 'TAPON'), ('3446', '8', '12', '4847', '13', '20.7500', 'SHAMPOO 5/9/13'), ('3447', '8', '12', '4849', '13', '38.0000', 'SHAMPOO'), ('3448', '11', '16', '4854', '13', '80.0000', '26-sep-13\tCAMBIO D BALERO TRAS DEL(MERCADO D LLANTA\\n'), ('3450', '11', '15', '4944', '11', '390.8200', '16-oct-13\tF-18283 CONS (FILTRO Y ACEITE)\t\t\t\t\\n'), ('3452', '7', '10', '4865', '13', '272.5900', 'COLOR Y RESINA 5/9/13'), ('3453', '11', '15', '4865', '13', '15.0000', 'KOLA LOKA'), ('3568', '11', '16', '4662', '11', '240.0000', '16 jul -13 rectificar tambores y balatas'), ('3455', '11', '16', '4910', '13', '350.0000', 'SERVICIO DE GRUA'), ('3456', '11', '16', '4932', '11', '150.0000', '16-oct-13\tORDEN 433 ALINEACION (MERCADO)\\n'), ('3457', '6', '7', '4894', '13', '150.0000', '12-sep-13\tPAGO MANUEL \t\t\t\t\\n'), ('3458', '7', '8', '4894', '13', '200.0000', '12-sep-13\tPAGO ANGEL 1PZ\\n'), ('3459', '7', '10', '4894', '13', '293.6900', '12-sep-13\tCOLOR Y RESINA\t\t\t\t\\n'), ('3460', '8', '11', '4894', '13', '53.0000', '12-sep-13\tLAVADO Y PULIDO\t\t\t\t\\n'), ('3461', '8', '12', '4894', '13', '26.5000', '12-sep-13\tSHAMPOO\\n'), ('3463', '11', '15', '4919', '13', '250.0000', 'KIT DE PIJAS'), ('3464', '11', '15', '4943', '11', '522.0000', '18-oct-13\t DEPCO (CALAVERA IZQ.)\\n'), ('3465', '11', '15', '4783', '11', '380.0000', '19-sep-13\tVACIO CARGA DE A/A\t\t\t\t\\n'), ('3466', '11', '16', '4825', '11', '380.0000', '09 10-13\tVACIO CARGA DE A/A\t\t\t\t\\n'), ('3467', '11', '16', '4814', '11', '380.0000', '3-oct-13\tORDEN 420 VACIO Y CARGA DE A/A \t\t\t\t\\n'), ('3468', '11', '16', '4601', '11', '380.0000', '6-sep-13\torden 408 vacio y carga de gas\t\t\t\t\\n'), ('3469', '11', '15', '4930', '11', '1085.7600', '19-oct-13\tDEPCO (SALPICADERA Y ESPEJO DERECHO)\\n'), ('3470', '6', '7', '4942', '13', '270.0000', 'PAGO MILO 18/10/13'), ('3471', '7', '8', '4942', '13', '320.0000', 'PAGO SOCIOS 18/10/13 1PZ'), ('3472', '8', '11', '4942', '13', '53.0000', 'PULIDA , LAVADA Y ASPIRADO 1PZS 18/10/13'), ('3473', '8', '12', '4942', '13', '26.5000', 'SHAMPOO 18/10/13'), ('3474', '6', '7', '4946', '13', '200.0000', '18-oct-13\tPAGO MILO\t\t\t\t\\n'), ('3475', '8', '11', '4946', '13', '53.0000', 'LAVADO,ASPIRADO Y PULIDA 1 PZ 18/10/13'), ('3476', '8', '12', '4946', '13', '26.5000', '18-oct-13\tSHAMPOO\t\t\t\t\\n'), ('3477', '6', '7', '4936', '13', '400.0000', 'PAGO MILO 18/10/13'), ('3478', '8', '11', '4936', '13', '53.0000', '18-oct-13\tLAVADO ,ASPIRADO Y PULIDO 1PZ\\n'), ('3479', '8', '12', '4936', '13', '26.5000', '18-oct-13\tSHAMPOO\t\t\t\t\\n'), ('3480', '6', '7', '4708', '13', '1000.0000', '18/10/13 7º ANT MILO'), ('3481', '6', '7', '4940', '13', '100.0000', '18/10/13 PAGO MILO'), ('3483', '6', '7', '4940', '13', '300.0000', '18/10/13 PAGO JOSE BALMACEDA'), ('3484', '7', '8', '4940', '13', '320.0000', '18/10/13 PAGO SOCIOS 1PZ'), ('3485', '8', '11', '4940', '13', '53.0000', '18/10/13 LAVADO,ASPIRADO Y PULIDO 1 PZ'), ('3486', '8', '12', '4940', '13', '26.5000', '18-oct-13\tSHAMPOO\\n'), ('3487', '6', '7', '4939', '13', '250.0000', '18/10/13 PAGO JOSE BALMACEDA'), ('3488', '7', '8', '4939', '13', '160.0000', '18-oct-13\tPAGO SOCIOS 1/2 PZ\tC/MATERIAL\t\t\\n'), ('3489', '8', '12', '4939', '13', '26.5000', '18-oct-13\tSHAMPOO\t\t\t\t\\n'), ('3490', '8', '11', '4939', '13', '53.0000', '18-oct-13\tLAVADO,ASPIRADOY PULIDO\t\t\t\t\\n'), ('3491', '6', '7', '4943', '13', '400.0000', '18/10/13 PAGO JOSE BALMACEDA'), ('3492', '6', '7', '4947', '13', '400.0000', '18-oct-13\tPAGO JOSE BALMACEDA\t\t\t\t\\n'), ('3493', '8', '11', '4947', '13', '76.0000', '18-oct-13\tLAVADO,ASPIRADO Y PILIDO 2 PZS\\n'), ('3494', '8', '12', '4947', '13', '38.0000', '18-oct-13\tSHAMPOO\t\t\t\t\\n'), ('3495', '11', '16', '4834', '11', '150.0000', '21-oct-13\tORDEN C-436 ALINEACION DE RIN\t\t\t\t\\n'), ('3496', '6', '7', '4948', '13', '100.0000', '18/10/13 PAGO JOSE BALMACEDA '), ('3497', '6', '7', '4352', '13', '400.0000', '18/10/13 PAGO JOSE BALMACEDA'), ('3498', '6', '7', '4932', '13', '800.0000', '18/10/13 PAGO OSCAR '), ('3500', '8', '11', '4932', '13', '53.0000', '18/10/13 LAVADO,ASPIRADO Y LAV MOTOR '), ('3501', '8', '12', '4932', '13', '26.5000', '18/1013\tSHAMPOO Y DESNGRASANTE\t\t\t\t\\n'), ('3503', '11', '15', '4949', '11', '374.2700', '18-oct-13\tF-18422 ACEITE Y FILTRO) CONSTITUCION\\n'), ('3504', '9', '13', '4933', '13', '50.0000', '18/10/13 PAGO OSCAR'), ('3505', '11', '16', '4933', '13', '2300.0000', '19/10/13 PAGO COMPUTADORA C/HERMANACION DE LA MISMA'), ('3506', '9', '13', '4937', '13', '50.0000', '18/10/13 PAGO OSCAR '), ('3507', '9', '13', '4941', '13', '200.0000', '18/10/13 PAGO OSCAR'), ('3508', '9', '13', '4944', '13', '50.0000', '18/10/13 PAGO OSCAR'), ('3509', '9', '13', '4949', '13', '50.0000', '18/10/3 PAGO OSCAR'), ('3512', '7', '8', '4935', '13', '320.0000', '18/10/13 PAGO SOCIOS 1 PZ C/MATERIAL'), ('3513', '8', '11', '4935', '13', '76.0000', '18/10/13 LAVADO,ASPIRADO Y PULIDO 1 PZ'), ('3514', '8', '12', '4935', '13', '38.0000', 'SHAMPOO'), ('3515', '8', '11', '4601', '13', '230.0000', 'EST EXTERIOR 18/10/13'), ('3516', '8', '12', '4601', '13', '115.0000', 'SHAMPOO Y DESENGRASANTE'), ('3517', '8', '11', '4938', '13', '53.0000', 'LAVADO,ASPIRADO Y PULIDA 1PZ'), ('3518', '8', '12', '4938', '13', '26.5000', 'SHAMPOO'), ('3519', '8', '11', '4945', '13', '76.0000', '18/10/13 LAVADO,ASPIRADO Y PULIDA 2 PZS'), ('3520', '8', '12', '4945', '13', '38.5000', 'SHAMPOO'), ('3521', '6', '7', '4821', '13', '450.0000', '29-ago-13\tPAGO JAVIER\t\t\t\t\\n'), ('3522', '7', '8', '4821', '13', '100.0000', '29-ago-13\tPAGO JEOVANNY 1/2 PZ\\n'), ('3523', '7', '10', '4821', '13', '18.4100', '29-ago-13\tCOLR Y RESINA\t\t\t\t\\n'), ('3524', '11', '16', '4834', '11', '75.0000', '21-oct-13\tORDEN 435 MONTAR LLANTA DEL. IZQ.\\n'), ('3525', '7', '8', '4811', '13', '400.0000', 'PAGO CARLOS QUINTAL 29/8/13'), ('3526', '7', '10', '4811', '13', '484.2400', 'COLOR Y RESINA'), ('3527', '8', '11', '4811', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('3528', '8', '12', '4811', '13', '15.0000', 'SHAMPOO'), ('3529', '6', '7', '4918', '13', '50.0000', '29-ago-13\t1º ant fernando\t\t\t\t\\n'), ('3530', '6', '7', '4918', '13', '350.0000', '5-sep-13\t2º ANT JAVIER\\n'), ('3531', '7', '8', '4918', '13', '650.0000', '5-sep-13\tPAGO ANGEL 3 1/4 PZ\t\t\t\t\\n'), ('3532', '7', '10', '4918', '13', '720.9900', '5-sep-13\tCOLOR Y RESINA\t\t\t\t\\n'), ('3533', '6', '7', '4918', '13', '150.0000', '12-sep-13\tSALDO JAVIER \\n'), ('3534', '7', '8', '4896', '13', '100.0000', '5-sep-13\tPAGO JUAN CARLOS .5\t\t\t\t\\n'), ('3535', '7', '10', '4896', '13', '89.9700', '5-sep-13\tCOLOR\\n'), ('3540', '6', '7', '4797', '13', '400.0000', '29-ago-13\t1º ANT JAVIER\t\t\t\t\\n'), ('3539', '11', '16', '4896', '13', '850.0000', 'REPARACION DE UN RIN'), ('3541', '6', '7', '4797', '13', '150.0000', '5-sep-13\tSALDO JAVIER\\n'), ('3542', '7', '8', '4797', '13', '550.0000', '5-sep-13\tPAGO ANGEL2 3/4\t\t\t\t\\n'), ('3543', '7', '10', '4797', '13', '478.6500', '5-sep-13\tCOLOR Y RESINA\t\t\t\t\\n'), ('3544', '8', '11', '4797', '13', '230.0000', '5-sep-13\tEST EXTE\t\t\t\t\\n'), ('3545', '8', '11', '4797', '13', '115.0000', '5-sep-13\tMATERIAL\t\t\t\t\\n'), ('3547', '11', '15', '4834', '11', '466.7000', '22-oct-13\tF-18711 CONST (SOPORTE DE MOTOR)\\n'), ('3548', '11', '15', '4950', '11', '1860.0601', '22-oct-13\tF-18702 CONSTI (VARILLA, BASE Y HORQUILLA)\\n'), ('3549', '11', '15', '4950', '11', '1986.8199', '21-oct-13\tF-18627 CONSTI (AMORTIGUADOR DEL DER Y DEL IZQUIERDO (2))\\n'), ('3550', '11', '15', '4950', '11', '802.2300', '22-oct-13\tF-18701 CONSTI (ACEITE, FILTRO, LIMPIADOR Y BUJIAS)\\n'), ('3551', '11', '15', '4950', '11', '1848.7600', '22-oct-13\tF-18700 CONSTI (AMORTIGUADOR TRAS Y SOPORTE FRONTAL (2))\\n'), ('3552', '11', '16', '4950', '13', '300.0000', '19-oct-13\tSCANEO DE CODIGOS \\n'), ('3553', '11', '15', '4352', '11', '8520.0000', '20-oct-13\tFACT. 15550 DE GL AUTOPARTES\t\t\t\t\\n'), ('3570', '11', '15', '4950', '11', '755.4400', '23-oct-13\tF-18872 CONST (SOPORTE MOTOR DER., SOPORTE TRASM.\\n'), ('3555', '11', '15', '4930', '11', '486.3000', '23-oct-13\tF-18871 CONS (SOPORTE TORSION FRONTAL)\\n'), ('3556', '11', '15', '4930', '11', '900.0000', '21-oct-13\tPIEZA DE ESPIGA SIN NOTA\t\t\t\t\\n'), ('3557', '11', '16', '4601', '11', '1700.0000', '22-oct-13\tREPROGRAMACION DE DIRECCION HIDRAULICA\\n'), ('3558', '11', '15', '4915', '11', '61.3200', '22-oct-13\tF-18766 FILTRO DE ACEITE (CONST)\\n'), ('3559', '11', '15', '4915', '11', '245.2400', '22-oct-13\tF-18734 CONS (FILTRO DE ACEITE)\\n'), ('3560', '11', '16', '4807', '13', '52.2000', 'AUDATEX'), ('3561', '11', '15', '4930', '11', '1500.0000', '24-oct-13\tPAGO LUIS BOLSAS DE AIRE\t\t\t\t\\n'), ('3562', '11', '15', '4930', '11', '1218.0000', '22-oct-13\tF-2726 NAPA (FLECHA HOMOCINETICA)\\n'), ('3563', '11', '15', '4352', '11', '133.0100', '22-oct-13\tF-17758 CENTRAL DE BALERO (RETEN IMPORTADO)\\n'), ('3564', '11', '15', '4352', '11', '153.1200', '22-oct-13\tF-30347 DISTRIBUIDORA DE BALERO (BALERO)\\n'), ('3566', '11', '15', '4925', '11', '44.8200', '22-oct-13\tFACT. DE HONDA (GUIA DE FASCIA DEL)\\n'), ('3567', '11', '16', '4890', '13', '550.0000', '6-sep-13\tPAGO MARIO MORA(CAMBIO DE BOMBA DE DIRECCION)\\n'), ('3569', '11', '15', '4950', '11', '850.6800', '24-oct-13\tF-18974 CONS (HORQUILLA INFERIORT DER.)\t\t\t\t\\n'), ('3571', '11', '15', '4950', '11', '505.7500', '24-oct-13\tF-18931 CONST (SOPORTE MOTOR FRONTAL)\\n'), ('3572', '11', '15', '4962', '11', '2787.0000', '24-oct-13\tCOMPRA DE REFACCIONES (AUTOMOTRIZ PALMA)\\n'), ('3573', '11', '16', '4352', '11', '300.0000', '23 OCT-13 CAMBIO DE BALERO A FLECHA'), ('3574', '11', '15', '4928', '11', '270.0000', '12-oct-13\tORDEN 427 CAMBIO DE AMORTIGUADOR Y ALINEACION DE RUEDA.\\n'), ('3575', '11', '16', '4814', '11', '75.0000', '11-nov-13\tORDEN 418 CAMBIO BALERO Y RESORTE AMORTIGUADOR (MERCADO)\\n'), ('3576', '11', '16', '4834', '11', '75.0000', '11-nov-13\tORDEN 418 RESORTE AMORTIGUADOR (MERCADO)\\n'), ('3577', '11', '15', '4930', '11', '1569.0000', '24-nov-13\tF-15836 MERCADO DE LLANTAS (1 LLANTA)\\n'), ('3578', '11', '15', '4352', '11', '228.5900', '25-oct-13\tF-19089 CONSTITUCION (ACEITE CASTROL)\\n'), ('3579', '11', '15', '4966', '11', '471.0200', '26-oct-13\tF-19138 CONST (KIT DE AFINACION)\t\t\t\t\\n'), ('3580', '11', '15', '4968', '11', '28.0000', '26-oct-13\tNOTA 64695 SILICON NEGRO\t\t\t\t\\n'), ('3586', '6', '7', '4925', '13', '436.0000', '25/10/13 1º ANT MILO DEL 60%'), ('3585', '6', '7', '4951', '13', '200.0000', 'PAGO MILO 25/10/13\\n'), ('3587', '6', '7', '4925', '13', '291.0000', '25/10/13 1º ANT JOSE BALMACEDA DEL 40%'), ('3588', '11', '15', '4765', '11', '600.0000', '28-oct-13\tPAGO FASCIA A JOSE ALCOCER\t\t\t\t\\n'), ('3589', '6', '7', '4953', '13', '120.0000', '25/10/13 PAGO MILO'), ('3590', '11', '15', '4892', '11', '417.6000', '19-sep-13\tDEPCO (CALAVERA DE FIESTA)\t\t\t\t\\n'), ('3591', '7', '8', '4953', '13', '480.0000', '25/10/13 PAGO SOCIOS\\n'), ('3592', '8', '11', '4953', '13', '53.0000', '25/10/13 LAVADO Y PULIDO'), ('3593', '8', '12', '4953', '13', '26.5000', 'SHAMPOO 25/10/13'), ('3594', '6', '7', '4930', '13', '540.0000', '1º ANT MILO 25/10/13'), ('3595', '6', '7', '4930', '13', '360.0000', '2º ANT JOSE BALMACEDA 25/10/13'), ('3596', '6', '7', '4708', '13', '400.0000', '25/10/13 8º ANT MILO'), ('3597', '6', '7', '4708', '13', '400.0000', '25/10/13 8º ANT MILO'), ('3598', '6', '7', '4601', '13', '150.0000', 'EXTRA 25/10/13'), ('3599', '6', '7', '4926', '13', '100.0000', '25/10/13 PAGO MILO'), ('3600', '6', '7', '4926', '13', '400.0000', '1º ANT JOSE BALMACEDA 25/10/13'), ('3601', '6', '7', '4957', '13', '145.0000', '25/10/13 PAGO JOSE BALMACEDA'), ('3602', '7', '8', '4957', '13', '800.0000', '25/10/13 PAGO SOCIOS'), ('3603', '8', '11', '4957', '13', '87.5000', '25/10/13 LAVADO Y PULIDO'), ('3604', '8', '12', '4957', '13', '43.7500', '25/10/13 SHAMPOO'), ('3605', '6', '7', '4955', '13', '530.0000', '25/10/13 PAGO JOSE BALMACEDA'), ('3606', '7', '8', '4955', '13', '240.0000', '25/10/13 PAGO SOCIOS 3/4 PZS'), ('3607', '8', '11', '4955', '13', '287.5000', 'EST EXTE 25/10/13'), ('3608', '8', '12', '4955', '13', '143.7500', 'SHAMPOO-DESNGRASANTE'), ('3609', '8', '11', '4955', '13', '100.0000', 'LIMPIEZA DE INTERIORES 25/10/13'), ('3610', '8', '12', '4955', '13', '50.0000', 'MATERIAL'), ('3611', '11', '16', '4962', '11', '1900.0000', '28-oct-13\tM/O MECANICA\t\\n'), ('3612', '9', '13', '4962', '13', '400.0000', '25/10/13 ANT OSCAR'), ('3613', '9', '13', '4930', '13', '200.0000', '25/10/13 1º ANT OSCAR'), ('3614', '9', '13', '4950', '13', '791.0000', '25/10/13 1º ANT OSCAR'), ('3615', '9', '13', '4352', '13', '150.0000', '25/10/13 1º ANT OSCAR'), ('3616', '9', '13', '4950', '13', '300.0000', 'PAGO OSCAR ( TALLER )'), ('3617', '6', '7', '4954', '13', '160.0000', '25/10/13 PAGO SOCIOS PINTORES'), ('3618', '7', '8', '4954', '13', '320.0000', '25/10/13 PAGO SOCIOS 1 PZ'), ('3619', '7', '8', '4936', '13', '480.0000', '25/10/13 PAGO SOCIOS 1 1/2'), ('3620', '7', '8', '4943', '13', '640.0000', '25/10/13 PAGO SOCIOS 2PZS'), ('3621', '8', '11', '4943', '13', '76.0000', '28/10/13 LAVADO Y PULIDO'), ('3622', '8', '12', '4943', '13', '38.0000', '25/10/13 SHAMPOO'), ('3623', '11', '16', '4943', '13', '52.2000', 'AUDATEX'), ('3624', '7', '8', '4946', '13', '160.0000', '25/10/13 1/2 PZA PAGO SOCIOS'), ('3625', '7', '8', '4947', '13', '480.0000', '25/10/13 PAGO SOCIOS 1 1/2 PZ'), ('3626', '7', '8', '4958', '13', '320.0000', '25/10/13 PAGO SOCIOS 1 PZ'), ('3627', '8', '11', '4960', '13', '230.0000', '25/10/13 EST EXTERIOR'), ('3628', '8', '11', '4960', '13', '115.0000', 'SHAMPOO DESENGRASANTE'), ('3629', '8', '11', '4960', '13', '189.7500', '25/10/13 EST INTERIOR '), ('3630', '8', '11', '4960', '13', '94.8800', 'SHAMPOO'), ('3631', '8', '11', '4958', '13', '30.0000', 'LAVADO Y ASPIRADO 25/10/13'), ('3632', '8', '12', '4958', '13', '15.0000', 'SHAMPOO'), ('3633', '8', '11', '4954', '13', '41.5000', 'LAVADO Y PULIDO 25/10/13'), ('3634', '6', '7', '4952', '13', '100.0000', 'ENCERADO 25/10/13\\n'), ('3635', '11', '15', '4352', '11', '92.3000', '25-oct-13\tF-16529 DE TORNILLOS (BIRLO Y TUERCAS)\\n'), ('3636', '11', '15', '4964', '11', '76.7000', '26-oct-13\tF-3822 AUTO SUR ( SOPRTE DEFENSA)\t\t\t\t\\n'), ('3637', '11', '15', '4926', '11', '400.0000', '28-oct-13\tF-02029 NISSAN ( ESPEJO) (Total $ 928.60 se cobra y la dif. Se pasa \\n'), ('3638', '11', '15', '4988', '11', '528.5900', '28-oct-13\tF-02029 NISSAN ( ESPEJO) (Saldo C-4969 $ 528.60\\n'), ('3678', '6', '7', '4988', '13', '160.0000', '31/10/13 PAGO JAVIER'), ('3679', '7', '8', '4988', '13', '320.0000', '31/10/13 PAGO SOCIOS 1 PZ'), ('3640', '11', '15', '4976', '11', '1100.0000', '29-oct-13\tACUMULADOR H24R HITEC LTH (JOAN)\t\t\t\t\\n'), ('3641', '11', '16', '4661', '11', '600.0000', '1-nov-13\tPAGO CRISTALERO\t\t\t\t\\n'), ('3642', '11', '16', '4971', '11', '750.0000', '1-nov-13\tPAGO CRISTALERO\t\t\t\t\\n'), ('3643', '11', '15', '4990', '11', '54.5100', '30-oct-13\tF-19352 CONS. (MANGUERA, ABRAZADERA )\\n'), ('3644', '11', '15', '4995', '11', '1530.3900', '31-oct-13\tF-19539 CONS (SOPORTE, BALERO Y BANDA)\\n'), ('3645', '11', '15', '4995', '11', '637.1200', '31-oct-13\tF-19509 CONS (FILTRO, BUJIAS, ACEITE, LIMPIEADOR)\\n'), ('3646', '11', '15', '4971', '11', '503.6300', '30-oct-13\tDEPCO (RADIADOR DE CHEVY)\\n'), ('3647', '11', '15', '4971', '11', '1299.1500', '30-oct-13\tDEPCO (cofre, defensa y refuerzo)\t\t\t\t\\n'), ('3648', '11', '16', '4995', '11', '900.0000', '31-oct-13\tRECTIFICACION DE BALATAS Y DISCOS\\n'), ('3649', '6', '7', '4925', '13', '145.5000', '31/10/13 SALDO MILO'), ('3650', '6', '7', '4925', '13', '97.0000', '31/10/13 SALDO JOSE BALAMCEDA'), ('3651', '7', '8', '4925', '13', '1440.0000', '31/10/13 PAGO SOCIOS 4 1/2 PZS'), ('3652', '8', '11', '4925', '13', '122.0000', '31/10/13 LAVADO Y PULIDO 4 PZS'), ('3653', '8', '11', '4925', '13', '61.0000', 'SHAMPOO'), ('3654', '11', '15', '4925', '13', '100.0000', 'GRAPAS'), ('3659', '6', '7', '4973', '13', '210.0000', '31/10/13 PAGO MILO'), ('3656', '6', '7', '4959', '13', '612.5000', '31/10/13 1º ANT MILO'), ('3658', '6', '7', '4971', '13', '525.0000', '31/10/13 1º ANT MILO'), ('3660', '6', '7', '4554', '13', '370.0000', '31/10/13 PAGO MILO'), ('3661', '6', '7', '4981', '13', '540.0000', '31/10/13 PAGO MILO'), ('3662', '6', '7', '4982', '13', '105.0000', '31/10/13 PAGO MILO'), ('3663', '6', '7', '4983', '13', '120.0000', '31/10/13 PAGO MILO\\n'), ('3664', '6', '7', '4926', '13', '400.0000', '31/10/13 PAGO JAVIER'), ('3665', '7', '8', '4926', '13', '1520.0000', '31/10/13 PAGO SOCIOS 4 3/4'), ('3667', '8', '11', '4926', '13', '168.0000', '31/10/13 PULIDO'), ('3668', '8', '12', '4926', '13', '84.0000', 'MATERIAL'), ('3669', '8', '11', '4926', '13', '100.0000', 'ENCERADO'), ('3670', '8', '12', '4926', '13', '50.0000', 'MATERIAL'), ('3671', '6', '7', '4930', '13', '540.0000', '31/10/13 1º ANT JAVIER'), ('3672', '6', '7', '4930', '13', '200.0000', '31/10/13 PAGO JAVIER REP FASCIA'), ('3673', '6', '7', '4975', '13', '150.0000', '31/10/13 PAGO JAVIER FASCIA'), ('3674', '6', '7', '4985', '13', '375.0000', '31/10/13 PAGO JAVIER '), ('3675', '7', '8', '4985', '13', '400.0000', '31/10/13 PAGO SOCIOS 1 1/4 PZ'), ('3676', '8', '11', '4985', '13', '76.0000', '31/10/13 LAVADO Y PULIDO '), ('3677', '8', '12', '4985', '13', '38.0000', 'SHAMPOO'), ('3680', '6', '7', '4992', '13', '517.5000', '31/10/13 1º ANT MILO'), ('3681', '9', '13', '4966', '13', '240.0000', '31/10/13 PAGO OSCAR'), ('3682', '8', '11', '4966', '13', '53.0000', 'LAVADO,ASPIRADO Y MOTOR'), ('3683', '8', '12', '4966', '13', '26.5000', 'SHAMPOO Y DESENGRASANTE'), ('3684', '9', '13', '4968', '13', '105.0000', '31/10/13 PAGO OSCAR'), ('3685', '9', '13', '4950', '13', '263.6700', '31/10/13 SALDO OSCAR'), ('3686', '8', '11', '4950', '13', '53.0000', '31/10/13 LAVADO,ASPITADO Y MOTOR'), ('3687', '11', '15', '4968', '13', '100.0000', 'GRAPAS'), ('3688', '8', '12', '4950', '13', '26.5000', '31/10/13 SHAMPOO'), ('3689', '11', '16', '4950', '13', '150.0000', 'ALINEACION'), ('3690', '9', '13', '4976', '13', '330.0000', '31/10/13 PAGO OSCAR'), ('3691', '9', '13', '4990', '13', '195.0000', '31/10/13 PAGO OSCAR'), ('3692', '9', '13', '4995', '13', '250.0000', '31/10/13 1º ANT OSCAR'), ('3693', '9', '13', '4998', '13', '100.0000', '31/10/13 1º ANT OSCAR'), ('3694', '9', '13', '4977', '13', '100.0000', '31/10/13 1º ANT OSCAR'), ('3696', '9', '13', '4979', '13', '150.0000', '31/1013 1º ANT OSCAR'), ('3697', '9', '13', '4962', '13', '275.0000', '31/10/13 2º ANT OSCAR'), ('3698', '9', '13', '4930', '13', '200.0000', '31/10/13 SALDO OSCAR'), ('3699', '9', '13', '4352', '13', '150.0000', '31/10/13 SALDO OSCAR'), ('3700', '6', '7', '4964', '13', '170.0000', '31/10/13 PAGO PINTORES'), ('3702', '7', '8', '4964', '13', '400.0000', '31/10/13 PAGO SOCIOS 1 1/4PZS'), ('3703', '6', '7', '4986', '13', '185.0000', '31/10/13 PAGO PINTORES'), ('3704', '7', '8', '4986', '13', '160.0000', '31/10/13 PAGO SOCIOS 1/2 PZ'), ('3705', '8', '11', '4986', '13', '53.0000', '31/10/13 LAVADO Y PULIDO'), ('3706', '8', '12', '4986', '13', '26.5000', 'SHAMPOO'), ('3707', '6', '7', '4972', '13', '250.0000', '31/10/13 pago pintores'), ('3708', '7', '8', '4972', '13', '320.0000', '31/10/13 PAGO SOCIOS 1 PZ'), ('3709', '8', '11', '4972', '13', '53.0000', '31/10/13 LAVADO,ASPIRADO Y PULIDO'), ('3710', '8', '12', '4972', '13', '26.5000', 'SHAMPOO'), ('3711', '6', '7', '4993', '13', '70.0000', '31/10/13 PAGO PINTORES'), ('3712', '7', '8', '4993', '13', '320.0000', '31/10/13 PAGO SOCIOS 1 PZ'), ('3713', '8', '11', '4993', '13', '53.0000', '31/10/13 LAVADO,ASPIRADO Y PULIDO'), ('3714', '8', '12', '4993', '13', '26.5000', '31/10/13 SHAMPOO'), ('3715', '6', '7', '4980', '13', '200.0000', '31/10/13 PAGO ABRAHAN'), ('3719', '8', '11', '4980', '13', '30.0000', 'LAVADO Y ASPIRADO\\n'), ('3717', '8', '12', '4980', '13', '15.0000', 'SHAMPOO'), ('3718', '11', '15', '4980', '13', '200.0000', 'KIT DE GRAPAS'), ('3720', '6', '7', '4970', '13', '551.5400', '31/10/13 1º ANT ABRAHAN'), ('3721', '6', '7', '4989', '13', '240.0000', '31/10/13 PAGO ABRAHAN'), ('3722', '7', '8', '4989', '13', '480.0000', '31/10/13 PAGO SOCIOS 1 1/2PZ'), ('3723', '8', '11', '4989', '13', '76.0000', '31/10/13 LAVADO,ASPIRADO Y PULIDO '), ('3724', '8', '11', '4989', '13', '38.0000', 'SHAMPOO'), ('3725', '11', '16', '5015', '13', '2450.0000', '8/11/13 REPARACION Y REEMPLAZO DE POLEA, BALERO Y PASTAS DE COMPRESOR\\n'), ('3726', '11', '16', '5017', '13', '150.0000', '8/11/13 ALINEACION DE RUEDAS DELANTERA'), ('3727', '8', '11', '4832', '13', '189.7500', 'ESTETICA INTERIO 7/11/13\\n'), ('3730', '6', '7', '4832', '13', '120.0000', '1/11/13 PAGO ABRAHAN '), ('3729', '8', '12', '4832', '13', '94.8800', '7/11/13 MATERIAL'), ('3731', '6', '7', '4884', '13', '54.0000', '1/11/13 PAGO ABRAHAN'), ('3732', '8', '11', '4884', '13', '30.0000', 'LAVADO Y ASPIRADO 31/10/13'), ('3733', '8', '12', '4884', '13', '15.0000', 'MATERIAL'), ('3734', '6', '7', '4984', '13', '126.1800', '31/10/13 1º ANT ABRAHAN'), ('3736', '6', '7', '4984', '13', '123.0900', '7/11/13 SALDO ABRAHAN'), ('3737', '7', '8', '4984', '13', '320.0000', '7/11/13 PAGO SOCIOS 1 PZ'), ('3741', '11', '15', '4984', '13', '192.0000', 'KIT DE GRAPAS'), ('3739', '8', '11', '4984', '13', '53.0000', 'LAVADO Y PULIDA'), ('3740', '8', '12', '4984', '13', '26.5000', 'MATERIAL'), ('3742', '7', '8', '4961', '13', '960.0000', '31/11/13 PAGO SOCIOS 3 PZS'), ('3743', '8', '11', '4961', '13', '99.0000', 'LAVADO Y PULIDO 31/10/13'), ('3745', '8', '12', '4961', '13', '49.5000', 'MATERIAL'), ('3746', '6', '7', '4961', '13', '210.0000', 'PAGO SOCIOS '), ('3747', '7', '8', '4969', '13', '80.0000', '31/10/13 PAGO SOCIOS 1/4 PZ'), ('3748', '7', '8', '4978', '13', '640.0000', '31/10/13 PAGO SOCIOS 2 PZS'), ('3749', '8', '11', '4978', '13', '76.0000', '31/10/13 LAVADO Y PULIDO '), ('3750', '8', '12', '4978', '13', '38.0000', 'MATERIAL'), ('3751', '7', '8', '4987', '13', '320.0000', '31/10/13 PAGO SOCIOS 1 PZ'), ('3754', '8', '11', '4987', '13', '53.0000', 'LAVADO Y PULIDO'), ('3753', '8', '12', '4987', '13', '26.5000', 'MATERIAL'), ('3755', '7', '8', '4991', '13', '160.0000', '31/10/13 PAGO SOCIOS 1/2 PZ'), ('3756', '7', '8', '4963', '13', '160.0000', '31/10/13 PAGO SOCIOS 1/2 PZ'), ('3757', '7', '8', '4708', '13', '5400.0000', '31/10/13 SALDO SOCIOS'), ('3758', '8', '11', '4963', '13', '30.0000', 'LAVADO'), ('3759', '8', '12', '4963', '13', '15.0000', 'MATERIAL'), ('3760', '8', '11', '4834', '13', '100.0000', 'ENCERADO 31/10/13\\n'), ('3761', '8', '12', '4834', '13', '50.0000', 'MATERIAL'), ('3762', '8', '11', '4554', '13', '53.0000', 'LAVADO Y PULIDO '), ('3763', '8', '12', '4554', '13', '26.5000', 'MATERIAL'), ('3764', '7', '8', '4554', '13', '320.0000', 'PAGO SOCIOS 1PZ'), ('3765', '6', '7', '4959', '13', '306.2500', '8/11/13 2º ANT MILO'), ('3766', '6', '7', '4971', '13', '175.0000', '7/11/13 SALDO MILO'), ('3767', '7', '8', '4971', '13', '1040.0000', '7/11/13 PAGO SOCIOS 3 1/4 PZS'), ('3768', '6', '7', '4999', '13', '888.2500', '7/11/13 PAGO MILO'), ('3769', '7', '8', '4999', '13', '560.0000', '7/11/13 PAGO SOCIOS 1 3/4'), ('3770', '6', '7', '5003', '13', '480.0000', '7/11/13 PAGO MILO'), ('3771', '7', '8', '5003', '13', '960.0000', '7/11/13 PAGO SOCIOS 3 PZS'), ('3772', '6', '7', '5014', '13', '460.0000', '7/11/13 PAGO MILO'), ('3773', '6', '7', '5018', '13', '600.0000', '7/11/13 1º ANT MILO'), ('3774', '6', '7', '4930', '13', '180.0000', '7/11/13 SALDO JAVIER'), ('3775', '7', '8', '4930', '13', '2160.0000', '7/11/13 PAGO SOCIOS 6 3/4 PZS'), ('3776', '6', '7', '4992', '13', '437.5000', '7/11/13 SALDO JAVIER'), ('3777', '7', '8', '4992', '13', '560.0000', '7/11/13 PAGO SOCIOS 1 3/4 PZS'), ('3778', '8', '11', '4992', '13', '76.0000', 'LAVADO Y PULIDO 7/11/13'), ('3779', '8', '12', '4992', '13', '38.0000', 'MATERIAL'), ('3780', '11', '15', '4992', '13', '13010.0000', 'ESPEJO RETROV/ MOLDURA PLAT'), ('3781', '6', '7', '4979', '13', '100.0000', '7/11/13 PAGO JAVIER'), ('3782', '6', '7', '4979', '13', '50.0000', '7/11/13 SALDO OSCAR'), ('3783', '6', '7', '5013', '13', '330.0000', '7/11/13 PAGO JAVIER'), ('3784', '6', '7', '5016', '13', '390.0000', '7/11/13 PAGO JAVIER'), ('3785', '7', '8', '5016', '13', '480.0000', '7/11/13 PAGO SOCIOS 1 1/2 PZS'), ('3786', '6', '7', '4994', '13', '515.0000', '7/11/13 PAGO JAVIER'), ('3787', '7', '8', '4994', '13', '160.0000', '7/11/13 PAGO SOCIOS 1/2 PZ'), ('3788', '8', '11', '4994', '13', '30.0000', 'LAVADO Y ASPIRADO'), ('3789', '8', '12', '4994', '13', '15.0000', '7/11/13 MATERIAL'), ('3790', '6', '7', '5006', '13', '400.0000', '7/11/13 1º ANT JAVIER'), ('3791', '6', '7', '4352', '13', '525.0000', '7/11/13 2º ANT ABRAHAN'), ('3792', '6', '7', '5002', '13', '352.3700', '7/11/13 PAGO ABRAHAN'), ('3793', '7', '8', '5002', '13', '1280.0000', '7/11/13 PAGO SOCIOS 4PZS'), ('3794', '8', '11', '5002', '13', '76.0000', 'LAVADO Y PULIDO '), ('3795', '8', '11', '5002', '13', '38.0000', '7/11/13 MATERIAL'), ('3796', '6', '7', '5017', '13', '150.0000', '7/11/13 PAGADO ABRAHAN'), ('3797', '11', '15', '5017', '13', '453.5700', '7-nov-13\tFILTRO DE ACEITE,ACEITE,BANDA DE ALTER,ANTI,TAPON TANQUE RECUP (CONST\\n'), ('3798', '11', '15', '5017', '13', '424.5800', '7-nov-13\tTERMINAL,VARILLA( CONST G20140)\\n'), ('3799', '9', '13', '5017', '13', '112.5000', '7/11/13 1ºANT OSCAR'), ('3800', '8', '11', '5017', '13', '53.0000', 'LAVADO,ASPIRADO Y MOTOR'), ('3801', '8', '12', '5017', '13', '26.5000', 'SHAMPOO DESENGRASANTA'), ('3802', '6', '7', '5020', '13', '37.5000', '7/11/13 1º ANT ABRAHAN\\n'), ('3803', '6', '7', '5004', '13', '150.0000', '7/11/13 1º ANT ABRAHAN'), ('3804', '6', '7', '5004', '13', '150.0000', '7/11/13 1º ANT ABRAHAM'), ('3805', '9', '13', '4962', '13', '225.0000', '7/11/13 SALDO OSCAR'), ('3806', '9', '13', '4995', '13', '250.0000', '7/11/13 SALDO OSCAR'), ('3807', '8', '11', '4995', '13', '53.0000', 'LAVADO,ASPIRADO Y MOTOR'), ('3808', '8', '12', '4995', '13', '26.5000', 'SHAMPOO Y DESENGRASANTE'), ('3809', '9', '13', '5000', '13', '100.0000', '7/11/13 PAGO OSCAR'), ('3810', '9', '13', '5015', '13', '250.0000', '7/11/13 PAGO OSCAR'), ('3811', '9', '13', '4998', '13', '600.0000', '7/11/13 SALDO OSCAR'), ('3812', '11', '15', '4998', '13', '22.7300', 'SELLADOR'), ('3813', '9', '13', '5010', '13', '120.0000', '7/11/13 PAGO OSCAR'), ('3814', '9', '13', '5019', '13', '135.0000', '7/11/13 PAGO OSCAR'), ('3815', '11', '15', '4971', '13', '253.1700', '4/11/13 G19784 SENSOR OXIG ANTICONGELANTE ( CONST'), ('3816', '11', '15', '5019', '13', '120.0000', '6/11/13 JUEGO DE BALATAS TRASERA'), ('3817', '9', '13', '5022', '13', '100.0000', '7/11/13 1º ANT OSCAR'), ('3818', '6', '7', '5005', '13', '135.0000', '7/11/13 PAGO SOCIOS'), ('3819', '7', '8', '5005', '13', '480.0000', '7/11/13 PAGO SOCIOS 1 1/2 PZ'), ('3820', '8', '11', '5005', '13', '76.0000', '7/11/13 LAVADO Y PULIDO'), ('3821', '8', '12', '5005', '13', '38.0000', 'MATERIAL'), ('3822', '6', '7', '5012', '13', '269.4700', '7/11/13 PAGO SOCIOS'), ('3823', '7', '8', '5012', '13', '160.0000', '7/11/13 PAGO SOCIOS 1/2 PZ'), ('3824', '8', '11', '5012', '13', '53.0000', '7/11/13 LAVADO Y PULIDO'), ('3825', '8', '12', '5012', '13', '26.5000', 'MATERIAL'), ('3826', '6', '7', '4930', '12', '200.0000', '7/11/13 PAGO SOCIOS (RINES'), ('3830', '7', '8', '4997', '13', '160.0000', '7/11/13 PAGO SOCIOS 1/2 PZ'), ('3829', '6', '7', '5021', '12', '300.0000', '7/11/13 PAGO SOCIOS'), ('3831', '7', '8', '5001', '13', '640.0000', '7/11/13 PAGO SOCIOS 2PZS'), ('3832', '8', '11', '5001', '13', '53.0000', '7/11/13 LAVADO Y PULIDO'), ('3833', '8', '12', '5001', '13', '26.5000', '7/11/13 SHAMPOO'), ('3834', '7', '8', '5007', '13', '320.0000', '7/11/13 PAGO SOCIOS 1PZ'), ('3835', '8', '11', '5007', '13', '53.0000', '7/11/13 LAVADO Y ASPIRADO PULIDO'), ('3836', '8', '12', '5007', '13', '26.5000', 'SHAMPOO\\n')\");\n\n\t\t//table orden\n\t\t$fields = array(\n\t\t\t\t\t\"`idOrdenes` int(11) NOT NULL AUTO_INCREMENT\",\n\t\t\t\t\t\"`fecha_hora` datetime DEFAULT NULL\",\n\t\t\t\t\t\"`factura` tinyint(1) DEFAULT NULL\",\n\t\t\t\t\t\"`idVehiculo` int(11) DEFAULT NULL\",\n\t\t\t\t\t\"`num_factura` varchar(45) DEFAULT NULL\",\n\t\t\t\t\t\"`IVA` float(10,2) DEFAULT NULL\",\n\t\t\t\t\t\"`idUsuario` int(11) DEFAULT NULL\",\n\t\t\t\t\t\"`monto` float(10,4) DEFAULT NULL\",\n\t\t\t\t\t\"`finalizado` tinyint(1) DEFAULT '0'\",\n\t\t\t\t\t\"`cancelado` tinyint(1) DEFAULT '0'\",\n\t\t\t\t\t\"`fechaPromesa` datetime DEFAULT NULL\",\n\t\t\t\t\t\"`clave` int(11) NOT NULL DEFAULT '0'\",\n\t\t\t\t\t\"`presupuesto` tinyint(1) DEFAULT '0'\",\n\t\t\t\t);\n\n\t\t$this->dbforge->add_field($fields);\n\t\t$this->dbforge->add_key('idOrdenes', TRUE);\n\t\t$this->dbforge->create_table('orden', TRUE);\n\t\t$this->db->simple_query('ALTER TABLE `orden` AUTO_INCREMENT=5052 DEFAULT CHARSET=utf8');\n\t\t$this->db->simple_query(\"INSERT INTO `orden` VALUES ('4313', '2013-06-21 11:32:14', '0', '19', '0', '0.00', '0', '7000.0000', '1', '0', '0000-00-00 00:00:00', '4313', '0'), ('4314', '2013-05-15 09:14:25', '1', '20', 'A1628', '1872.01', '0', '13572.0996', '1', '0', '0000-00-00 00:00:00', '4314', '0'), ('4315', '2013-05-15 11:29:47', '0', '21', '0', '0.00', '0', '6585.5000', '1', '0', '0000-00-00 00:00:00', '4315', '0'), ('4316', '2013-05-03 12:57:38', '0', '22', '0', '0.00', '10', '1200.0000', '1', '0', '0000-00-00 00:00:00', '4316', '0'), ('4317', '2013-05-03 13:17:22', '0', '23', '0', '0.00', '10', '1800.0000', '1', '0', '0000-00-00 00:00:00', '4317', '0'), ('4318', '2013-05-15 12:15:20', '1', '24', '0', '1257.42', '0', '9116.2998', '1', '0', '0000-00-00 00:00:00', '4318', '0'), ('4319', '2013-05-15 11:34:41', '1', '25', 'A1626', '249.60', '0', '1809.6000', '1', '0', '0000-00-00 00:00:00', '4319', '0'), ('4320', '2013-05-15 11:36:51', '1', '26', 'A1627', '262.40', '0', '1640.0000', '1', '0', '0000-00-00 00:00:00', '4320', '0'), ('4321', '2013-05-15 11:41:19', '1', '27', 'A1620', '318.57', '0', '1991.0900', '1', '0', '0000-00-00 00:00:00', '4321', '0'), ('4322', '2013-05-04 09:50:26', '0', '28', '0', '0.00', '10', '0.0000', '1', '0', '0000-00-00 00:00:00', '4322', '0'), ('4323', '2013-05-15 12:14:04', '1', '29', '', '601.84', '0', '4363.3198', '1', '0', '0000-00-00 00:00:00', '4323', '0'), ('4324', '2013-09-11 11:05:37', '1', '30', '1645', '0.00', '0', '4300.0000', '1', '0', '2013-05-22 00:00:00', '4324', '0'), ('4325', '2013-05-04 10:18:58', '0', '31', '0', '0.00', '10', '650.0000', '1', '0', '0000-00-00 00:00:00', '4325', '0'), ('4326', '2013-05-04 10:27:09', '0', '32', '0', '0.00', '10', '1982.0000', '1', '0', '0000-00-00 00:00:00', '4326', '0'), ('4327', '2013-08-14 16:57:34', '0', '33', '0', '0.00', '0', '11210.7002', '1', '0', '0000-00-00 00:00:00', '4327', '0'), ('4328', '2013-05-04 10:30:39', '0', '34', '0', '0.00', '10', '750.0000', '1', '0', '0000-00-00 00:00:00', '4328', '0'), ('4329', '2013-05-04 10:54:44', '0', '35', '0', '0.00', '0', '500.0000', '1', '0', '0000-00-00 00:00:00', '4329', '0'), ('4330', '2013-05-15 13:46:37', '0', '36', '0', '0.00', '0', '3375.0000', '1', '0', '0000-00-00 00:00:00', '4330', '0'), ('4331', '2013-05-07 08:46:22', '0', '37', '0', '0.00', '12', '2300.0000', '1', '0', '0000-00-00 00:00:00', '4331', '0'), ('4332', '2013-05-15 13:52:07', '1', '38', '0', '1794.64', '0', '13011.2002', '1', '0', '0000-00-00 00:00:00', '4332', '0'), ('4333', '2013-05-15 13:54:54', '1', '39', '0', '1511.06', '0', '10955.2002', '1', '0', '0000-00-00 00:00:00', '4333', '0'), ('4334', '2013-05-15 14:08:09', '0', '40', '0', '0.00', '0', '3930.6001', '1', '0', '0000-00-00 00:00:00', '4334', '0'), ('4335', '2013-05-15 14:22:30', '1', '41', '0', '831.56', '0', '6028.8198', '1', '0', '0000-00-00 00:00:00', '4335', '0'), ('4336', '2013-06-07 12:43:37', '0', '42', '0', '0.00', '0', '7217.0000', '1', '0', '0000-00-00 00:00:00', '4336', '0'), ('4337', '2013-05-15 10:08:10', '1', '43', 'A1630', '516.12', '0', '3741.8401', '1', '0', '0000-00-00 00:00:00', '4337', '0'), ('4338', '2013-05-15 14:17:17', '0', '44', '0', '0.00', '0', '2779.5901', '1', '0', '0000-00-00 00:00:00', '4338', '0'), ('4339', '2013-05-15 14:19:40', '0', '45', '0', '0.00', '0', '1200.0000', '1', '0', '0000-00-00 00:00:00', '4339', '0'), ('4340', '2013-05-15 14:29:41', '1', '46', 'A1625', '504.00', '0', '3654.0000', '1', '0', '0000-00-00 00:00:00', '4340', '0'), ('4341', '2013-05-15 14:42:55', '1', '47', 'A1624', '584.00', '0', '4234.0000', '1', '0', '0000-00-00 00:00:00', '4341', '0'), ('4342', '2013-09-11 12:03:21', '0', '48', '0', '9.00', '0', '0.0000', '0', '0', '0000-00-00 00:00:00', '4342', '0'), ('4343', '2013-05-14 18:47:41', '0', '49', '0', '0.00', '12', '1789.0000', '1', '0', '0000-00-00 00:00:00', '4343', '0'), ('4344', '2013-09-11 11:08:41', '0', '50', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4344', '0'), ('4345', '2013-05-14 18:56:53', '0', '51', '0', '0.00', '12', '0.0000', '1', '0', '0000-00-00 00:00:00', '4345', '0'), ('4346', '2013-05-14 19:00:12', '0', '52', '0', '0.00', '12', '1500.0000', '1', '0', '0000-00-00 00:00:00', '4346', '0'), ('4347', '2013-09-05 18:05:30', '1', '53', '1677', '0.00', '0', '4689.6699', '1', '0', '0000-00-00 00:00:00', '4347', '0'), ('4348', '2013-05-24 19:24:35', '0', '54', '0', '0.00', '0', '3200.0000', '1', '0', '0000-00-00 00:00:00', '4348', '0'), ('4349', '2013-05-14 19:07:51', '0', '55', '0', '0.00', '12', '3300.0000', '1', '0', '0000-00-00 00:00:00', '4349', '0'), ('4350', '2013-09-05 18:26:41', '0', '56', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4350', '0'), ('4351', '2013-05-27 09:12:05', '0', '57', '0', '0.00', '0', '5500.0000', '1', '0', '0000-00-00 00:00:00', '4351', '0'), ('4352', '2013-09-12 20:53:36', '0', '58', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4352', '0'), ('4353', '2013-05-15 09:04:47', '0', '59', '0', '0.00', '12', '4460.0000', '1', '0', '0000-00-00 00:00:00', '4353', '0'), ('4354', '2013-09-05 09:50:38', '0', '60', '', '0.00', '0', '800.0000', '1', '0', '0000-00-00 00:00:00', '4354', '0'), ('4355', '2013-05-15 11:26:26', '0', '61', '0', '0.00', '12', '5450.0000', '1', '0', '0000-00-00 00:00:00', '4355', '0'), ('4356', '2013-05-15 12:44:08', '0', '62', '0', '0.00', '12', '1970.5000', '1', '0', '0000-00-00 00:00:00', '4356', '0'), ('4357', '2013-05-15 12:46:14', '0', '63', '0', '0.00', '12', '1800.0000', '1', '0', '0000-00-00 00:00:00', '4357', '0'), ('4358', '2013-05-15 12:49:33', '0', '64', '0', '0.00', '12', '5800.0000', '1', '0', '0000-00-00 00:00:00', '4358', '0'), ('4359', '2013-08-26 10:43:52', '0', '65', '0', '0.00', '0', '6119.0000', '1', '0', '0000-00-00 00:00:00', '4359', '0'), ('4360', '2013-05-16 11:26:31', '0', '66', '0', '0.00', '0', '2200.0000', '1', '0', '0000-00-00 00:00:00', '4360', '0'), ('4361', '2013-05-22 19:14:19', '0', '67', '0', '0.00', '0', '1880.0000', '1', '0', '0000-00-00 00:00:00', '4361', '0'), ('4362', '2013-09-05 18:29:53', '1', '68', '1646', '0.00', '0', '4185.2202', '1', '0', '0000-00-00 00:00:00', '4362', '0'), ('4363', '2013-09-05 18:38:06', '1', '69', '1647', '47.91', '0', '1871.3800', '1', '0', '0000-00-00 00:00:00', '4363', '0'), ('4364', '2013-05-15 13:46:52', '0', '70', '0', '0.00', '0', '2200.0000', '1', '0', '0000-00-00 00:00:00', '4364', '0'), ('4365', '2013-05-16 11:21:13', '0', '71', '0', '0.00', '0', '3200.0000', '1', '0', '0000-00-00 00:00:00', '4365', '0'), ('4366', '2013-05-16 11:21:35', '0', '72', '0', '0.00', '0', '5989.0000', '1', '0', '0000-00-00 00:00:00', '4366', '0'), ('4367', '2013-09-05 18:53:54', '1', '73', '1663', '0.00', '0', '7968.9800', '1', '0', '0000-00-00 00:00:00', '4367', '0'), ('4368', '2013-05-16 08:33:02', '0', '74', '0', '0.00', '12', '380.0000', '1', '0', '0000-00-00 00:00:00', '4368', '0'), ('4369', '2013-09-11 11:12:25', '0', '75', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4369', '0'), ('4370', '2013-09-05 18:59:43', '1', '76', '1668', '0.00', '0', '5786.2998', '1', '0', '0000-00-00 00:00:00', '4370', '0'), ('4371', '2013-09-05 16:38:28', '0', '77', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4371', '0'), ('4372', '2013-09-05 19:04:52', '1', '78', '1678', '0.00', '0', '9596.2305', '1', '0', '0000-00-00 00:00:00', '4372', '0'), ('4373', '2013-06-11 11:58:38', '0', '79', '0', '0.00', '0', '5078.9702', '1', '0', '0000-00-00 00:00:00', '4373', '0'), ('4374', '2013-09-05 19:22:42', '1', '80', '1659', '0.00', '0', '8114.6499', '1', '0', '0000-00-00 00:00:00', '4374', '0'), ('4375', '2013-05-20 09:07:37', '0', '81', '0', '0.00', '12', '450.0000', '1', '0', '0000-00-00 00:00:00', '4375', '0'), ('4376', '2013-05-22 15:54:33', '0', '82', '0', '0.00', '13', '3450.0000', '1', '0', '0000-00-00 00:00:00', '4376', '0'), ('4377', '2013-05-22 15:59:22', '0', '83', '0', '0.00', '12', '8500.0000', '1', '0', '0000-00-00 00:00:00', '4377', '0'), ('4378', '2013-05-22 16:03:41', '0', '84', '0', '0.00', '13', '1500.0000', '1', '0', '0000-00-00 00:00:00', '4378', '0'), ('4379', '2013-05-22 16:06:34', '0', '85', '0', '0.00', '13', '5660.0000', '1', '0', '0000-00-00 00:00:00', '4379', '0'), ('4380', '2013-07-02 09:08:05', '1', '86', '0', '4894.76', '0', '35487.0000', '1', '0', '0000-00-00 00:00:00', '4380', '0'), ('4381', '2013-06-11 11:55:27', '1', '87', '0', '2681.10', '0', '19438.0000', '1', '0', '0000-00-00 00:00:00', '4381', '0'), ('4382', '2013-05-22 16:26:26', '0', '88', '0', '0.00', '0', '1800.0000', '1', '0', '0000-00-00 00:00:00', '4382', '0'), ('4383', '2013-09-05 16:41:03', '0', '89', '0', '0.00', '0', '2585.0000', '1', '0', '0000-00-00 00:00:00', '4383', '0'), ('4384', '2013-09-06 10:07:42', '1', '90', '1662', '0.00', '0', '4508.6699', '1', '0', '0000-00-00 00:00:00', '4384', '0'), ('4385', '2013-09-06 12:14:46', '0', '91', '0', '0.00', '0', '5371.5801', '1', '0', '0000-00-00 00:00:00', '4385', '0'), ('4386', '2013-05-23 09:46:17', '1', '92', '0', '754.99', '0', '5473.6499', '1', '0', '0000-00-00 00:00:00', '4386', '0'), ('4387', '2013-09-06 10:10:13', '1', '93', '1679', '0.00', '0', '4726.6602', '1', '0', '0000-00-00 00:00:00', '4387', '0'), ('4388', '2013-05-23 09:52:57', '0', '94', '0', '0.00', '13', '2921.1399', '1', '0', '0000-00-00 00:00:00', '4388', '0'), ('4389', '2013-07-01 14:12:49', '1', '95', '0', '1058.00', '0', '7670.4902', '1', '0', '0000-00-00 00:00:00', '4389', '0'), ('4390', '2013-10-08 13:08:57', '0', '96', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4390', '0'), ('4391', '2013-09-05 16:59:27', '0', '97', '0', '0.00', '0', '6264.0000', '1', '0', '0000-00-00 00:00:00', '4391', '0'), ('4392', '2013-05-23 13:42:59', '0', '98', '0', '0.00', '12', '1800.0000', '1', '0', '0000-00-00 00:00:00', '4392', '0'), ('4393', '2013-05-23 13:44:10', '0', '99', '0', '0.00', '12', '10150.0000', '1', '0', '0000-00-00 00:00:00', '4393', '0'), ('4394', '2013-06-19 13:03:19', '1', '100', '1693', '1557.43', '0', '11291.2998', '1', '0', '0000-00-00 00:00:00', '4394', '0'), ('4395', '2013-09-06 10:18:47', '1', '101', '1680', '0.00', '0', '11925.5000', '1', '0', '0000-00-00 00:00:00', '4395', '0'), ('4396', '2013-09-05 17:17:47', '1', '102', '1381', '20.22', '0', '790.0000', '1', '0', '0000-00-00 00:00:00', '4396', '0'), ('4397', '2013-09-05 17:20:02', '0', '103', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4397', '0'), ('4398', '2013-09-06 11:36:17', '1', '104', '1681', '0.00', '0', '6407.6001', '1', '0', '0000-00-00 00:00:00', '4398', '0'), ('4399', '2013-05-23 17:07:38', '0', '105', '0', '0.00', '12', '2400.0000', '1', '0', '0000-00-00 00:00:00', '4399', '0'), ('4400', '2013-09-06 11:44:01', '1', '106', '1902', '0.00', '0', '15343.4004', '1', '0', '0000-00-00 00:00:00', '4400', '0'), ('4401', '2013-05-30 11:25:02', '0', '107', '0', '0.00', '12', '900.0000', '1', '0', '0000-00-00 00:00:00', '4401', '0'), ('4402', '2013-09-05 17:24:30', '1', '108', '1670', '0.00', '0', '2350.0000', '1', '0', '0000-00-00 00:00:00', '4402', '0'), ('4403', '2013-05-30 11:32:45', '0', '109', '0', '0.00', '12', '4500.0000', '1', '0', '0000-00-00 00:00:00', '4403', '0'), ('4404', '2013-09-06 15:59:57', '1', '110', '1801', '0.00', '0', '7080.4502', '1', '0', '0000-00-00 00:00:00', '4404', '0'), ('4405', '2013-09-07 08:31:03', '1', '111', '1695', '0.00', '0', '1476.5000', '1', '0', '0000-00-00 00:00:00', '4405', '0'), ('4406', '2013-09-11 11:23:07', '0', '112', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4406', '0'), ('4407', '2013-09-06 11:55:36', '1', '113', '1683-1833', '0.00', '0', '3261.2900', '1', '0', '0000-00-00 00:00:00', '4407', '0'), ('4408', '2013-05-30 13:16:51', '0', '114', '0', '0.00', '0', '1500.0000', '1', '0', '0000-00-00 00:00:00', '4408', '0'), ('4409', '2013-09-05 19:34:19', '0', '115', '0', '0.00', '0', '5030.0000', '1', '0', '0000-00-00 00:00:00', '4409', '0'), ('4410', '2013-05-30 13:21:12', '0', '116', '0', '0.00', '13', '1550.0000', '1', '0', '0000-00-00 00:00:00', '4410', '0'), ('4411', '2013-05-30 13:25:31', '0', '117', '0', '0.00', '13', '1750.0000', '1', '0', '0000-00-00 00:00:00', '4411', '0'), ('4412', '2013-05-30 13:30:19', '0', '118', '0', '0.00', '13', '400.0000', '1', '0', '0000-00-00 00:00:00', '4412', '0'), ('4413', '2013-09-07 08:44:12', '1', '119', '4413', '0.00', '0', '6494.2100', '1', '0', '0000-00-00 00:00:00', '4413', '0'), ('4414', '2013-09-07 08:58:11', '1', '120', '1682', '0.00', '0', '8893.0000', '1', '0', '0000-00-00 00:00:00', '4414', '0'), ('4415', '2013-09-11 11:32:05', '0', '121', '0', '0.00', '0', '5100.0000', '1', '0', '0000-00-00 00:00:00', '4415', '0'), ('4416', '2013-07-01 09:24:37', '1', '122', '0', '2054.95', '0', '14898.4004', '1', '0', '0000-00-00 00:00:00', '4416', '0'), ('4417', '2013-05-31 14:20:34', '1', '123', '', '528.00', '12', '3300.0000', '1', '0', '0000-00-00 00:00:00', '4417', '0'), ('4418', '2013-09-07 08:47:32', '1', '124', '1740-1751', '0.00', '0', '9050.1396', '1', '0', '0000-00-00 00:00:00', '4418', '0'), ('4419', '2013-09-11 11:48:42', '0', '125', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4419', '0'), ('4420', '2013-09-07 09:55:07', '1', '126', '1792', '0.00', '0', '2264.0500', '1', '0', '0000-00-00 00:00:00', '4420', '0'), ('4421', '2013-09-07 10:02:31', '1', '127', '1684', '0.00', '0', '4890.5298', '1', '0', '0000-00-00 00:00:00', '4421', '0'), ('4422', '2013-09-11 11:50:14', '0', '128', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4422', '0'), ('4423', '2013-09-07 10:06:31', '1', '129', '1712', '0.00', '0', '4528.7402', '1', '0', '0000-00-00 00:00:00', '4423', '0'), ('4424', '2013-09-11 12:05:12', '0', '130', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4424', '0'), ('4425', '2013-09-11 12:17:02', '0', '131', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4425', '0'), ('4426', '2013-05-31 16:23:57', '0', '132', '0', '0.00', '12', '8744.0000', '1', '0', '0000-00-00 00:00:00', '4426', '0'), ('4427', '2013-05-31 16:28:25', '0', '133', '0', '0.00', '12', '1100.0000', '1', '0', '0000-00-00 00:00:00', '4427', '0'), ('4428', '2013-06-01 16:51:29', '0', '134', '0', '0.00', '12', '1200.0000', '1', '0', '0000-00-00 00:00:00', '4428', '0'), ('4429', '2013-09-07 10:09:14', '1', '135', '1711', '0.00', '0', '651.8600', '1', '0', '0000-00-00 00:00:00', '4429', '0'), ('4430', '2013-06-01 16:55:00', '0', '136', '0', '0.00', '12', '2481.2500', '1', '0', '0000-00-00 00:00:00', '4430', '0'), ('4431', '2013-06-01 16:57:22', '0', '137', '0', '0.00', '12', '22402.0000', '1', '0', '0000-00-00 00:00:00', '4431', '0'), ('4432', '2013-06-01 17:00:46', '0', '138', '0', '0.00', '12', '7418.0000', '1', '0', '0000-00-00 00:00:00', '4432', '0'), ('4433', '2013-06-01 17:07:32', '1', '139', '', '1217.76', '12', '7611.0000', '1', '0', '0000-00-00 00:00:00', '4433', '0'), ('4434', '2013-06-01 17:08:52', '0', '140', '', '0.00', '12', '5000.0000', '1', '0', '0000-00-00 00:00:00', '4434', '0'), ('4435', '2013-09-02 09:52:19', '1', '141', '0', '1232.08', '0', '8932.5898', '1', '0', '0000-00-00 00:00:00', '4435', '0'), ('4436', '2013-06-01 17:12:31', '0', '142', '0', '0.00', '12', '1000.0000', '1', '0', '0000-00-00 00:00:00', '4436', '0'), ('4437', '2013-06-01 17:13:37', '0', '143', '0', '0.00', '12', '0.0000', '0', '1', '0000-00-00 00:00:00', '4437', '0'), ('4438', '2013-09-07 10:40:30', '0', '144', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4438', '0'), ('4439', '2013-09-07 10:41:43', '1', '145', '1765', '0.00', '0', '24300.0000', '1', '0', '0000-00-00 00:00:00', '4439', '0'), ('4440', '2013-06-04 11:15:49', '0', '146', '0', '0.00', '0', '0.0000', '0', '1', '0000-00-00 00:00:00', '4440', '0'), ('4441', '2013-06-01 17:21:54', '0', '147', '0', '0.00', '12', '3850.0000', '1', '0', '0000-00-00 00:00:00', '4441', '0'), ('4442', '2013-06-01 17:25:24', '0', '148', '0', '0.00', '12', '1400.0000', '1', '0', '0000-00-00 00:00:00', '4442', '0'), ('4443', '2013-09-07 11:34:06', '1', '149', '1853', '0.00', '0', '1326.7000', '1', '0', '0000-00-00 00:00:00', '4443', '0'), ('4444', '2013-06-01 17:30:54', '0', '150', '0', '0.00', '0', '1900.0000', '1', '0', '0000-00-00 00:00:00', '4444', '0'), ('4445', '2013-06-01 17:32:25', '0', '151', '0', '0.00', '12', '649.0000', '1', '0', '0000-00-00 00:00:00', '4445', '0'), ('4446', '2013-07-23 11:25:37', '0', '152', '0', '0.00', '0', '9750.0000', '1', '0', '0000-00-00 00:00:00', '4446', '0'), ('4447', '2013-09-11 12:35:06', '0', '153', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4447', '0'), ('4448', '2013-09-07 10:11:12', '0', '154', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4448', '0'), ('4449', '2013-06-06 12:27:39', '0', '155', '0', '0.00', '12', '4200.0000', '1', '0', '0000-00-00 00:00:00', '4449', '0'), ('4450', '2013-09-07 10:12:06', '1', '156', '1745', '1752.35', '0', '10952.1602', '1', '0', '0000-00-00 00:00:00', '4450', '0'), ('4451', '2013-06-06 17:02:54', '0', '157', '0', '0.00', '0', '8435.0000', '1', '0', '0000-00-00 00:00:00', '4451', '0'), ('4452', '2013-06-06 17:06:08', '0', '158', '0', '0.00', '12', '150.0000', '1', '0', '0000-00-00 00:00:00', '4452', '0'), ('4453', '2013-07-09 09:58:23', '0', '159', '0', '0.00', '0', '7342.0000', '1', '0', '0000-00-00 00:00:00', '4453', '0'), ('4454', '2013-06-06 18:14:35', '0', '160', '0', '0.00', '12', '61300.0000', '1', '0', '0000-00-00 00:00:00', '4454', '0'), ('4455', '2013-06-06 18:16:33', '0', '161', '0', '0.00', '12', '2900.0000', '1', '0', '0000-00-00 00:00:00', '4455', '0'), ('4456', '2013-06-06 18:50:52', '0', '162', '0', '0.00', '0', '4050.0000', '1', '0', '0000-00-00 00:00:00', '4456', '0'), ('4457', '2013-09-07 11:49:05', '1', '163', '1879', '0.00', '0', '10036.3799', '1', '0', '0000-00-00 00:00:00', '4457', '0'), ('4458', '2013-06-07 09:10:09', '0', '164', '0', '0.00', '12', '1800.0000', '1', '0', '0000-00-00 00:00:00', '4458', '0'), ('4459', '2013-08-13 09:30:05', '1', '165', '0', '3971.42', '0', '24821.3906', '1', '0', '0000-00-00 00:00:00', '4459', '0'), ('4460', '2013-09-07 11:40:57', '1', '166', '1760', '857.60', '0', '5359.9902', '1', '0', '0000-00-00 00:00:00', '4460', '0'), ('4461', '2013-09-07 11:42:18', '1', '167', '1793', '846.86', '0', '5010.8999', '1', '0', '0000-00-00 00:00:00', '4461', '0'), ('4462', '2013-06-07 11:05:25', '0', '168', '0', '0.00', '12', '1200.0000', '1', '0', '0000-00-00 00:00:00', '4462', '0'), ('4463', '2013-06-07 11:21:51', '0', '169', '0', '0.00', '12', '1600.0000', '1', '0', '0000-00-00 00:00:00', '4463', '0'), ('4464', '2013-06-07 11:23:18', '0', '170', '0', '0.00', '12', '8984.1699', '1', '0', '0000-00-00 00:00:00', '4464', '0'), ('4465', '2013-06-07 11:25:11', '0', '171', '0', '0.00', '12', '3286.8501', '1', '0', '0000-00-00 00:00:00', '4465', '0'), ('4466', '2013-09-09 18:02:30', '1', '172', '1775', '1184.73', '0', '6213.5098', '1', '0', '0000-00-00 00:00:00', '4466', '0'), ('4467', '2013-07-23 09:27:22', '1', '173', '01776', '1003.20', '0', '7273.2002', '1', '0', '0000-00-00 00:00:00', '4467', '0'), ('4468', '2013-06-07 11:30:04', '0', '174', '0', '0.00', '12', '900.0000', '1', '0', '0000-00-00 00:00:00', '4468', '0'), ('4469', '2013-09-07 12:05:27', '0', '175', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4469', '0'), ('4470', '2013-09-09 18:05:35', '1', '176', '1747', '1269.96', '0', '7937.2598', '1', '0', '0000-00-00 00:00:00', '4470', '0'), ('4471', '2013-06-07 11:59:46', '0', '177', '0', '0.00', '12', '1190.0000', '1', '0', '0000-00-00 00:00:00', '4471', '0'), ('4472', '2013-06-07 12:02:24', '0', '178', '0', '0.00', '12', '0.0000', '1', '0', '0000-00-00 00:00:00', '4472', '0'), ('4473', '2013-06-07 12:26:33', '0', '179', '0', '0.00', '12', '500.0000', '1', '0', '0000-00-00 00:00:00', '4473', '0'), ('4474', '2013-06-07 18:01:54', '0', '180', '0', '0.00', '12', '3300.0000', '1', '0', '0000-00-00 00:00:00', '4474', '0'), ('4475', '2013-06-07 18:08:31', '0', '181', '0', '0.00', '12', '780.0000', '1', '0', '0000-00-00 00:00:00', '4475', '0'), ('4476', '2013-08-13 10:35:41', '0', '182', '0', '0.00', '0', '1800.0000', '1', '0', '0000-00-00 00:00:00', '4476', '0'), ('4477', '2013-09-09 19:13:14', '1', '183', '1761', '0.00', '0', '1396.6100', '1', '0', '0000-00-00 00:00:00', '4477', '0'), ('4478', '2013-09-07 12:24:00', '0', '184', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4478', '0'), ('4479', '2013-09-07 12:24:36', '0', '185', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4479', '0'), ('4480', '2013-06-11 14:29:55', '0', '186', '0', '0.00', '0', '3300.0000', '1', '0', '0000-00-00 00:00:00', '4480', '0'), ('4481', '2013-07-08 12:12:26', '1', '187', '0', '1250.40', '0', '9065.4199', '1', '0', '0000-00-00 00:00:00', '4481', '0'), ('4482', '2013-09-09 18:09:39', '1', '188', '1837', '1455.68', '0', '7815.0200', '1', '0', '0000-00-00 00:00:00', '4482', '0'), ('4483', '2013-09-11 14:38:24', '1', '189', '1699', '0.00', '0', '1383.1801', '1', '0', '2013-06-12 00:00:00', '4483', '0'), ('4484', '2013-06-11 14:39:23', '0', '190', '0', '0.00', '12', '3500.0000', '1', '0', '0000-00-00 00:00:00', '4484', '0'), ('4485', '2013-09-09 18:18:11', '1', '191', '1749', '566.57', '0', '3541.0801', '1', '0', '0000-00-00 00:00:00', '4485', '0'), ('4486', '2013-06-11 14:43:21', '0', '192', '0', '0.00', '12', '3691.4099', '1', '0', '0000-00-00 00:00:00', '4486', '0'), ('4487', '2013-06-11 14:44:49', '0', '193', '0', '0.00', '12', '1900.0000', '1', '0', '0000-00-00 00:00:00', '4487', '0'), ('4488', '2013-06-11 14:45:53', '0', '194', '0', '0.00', '12', '2650.0000', '1', '0', '0000-00-00 00:00:00', '4488', '0'), ('4489', '2013-06-11 14:47:48', '0', '195', '0', '0.00', '12', '0.0000', '1', '0', '0000-00-00 00:00:00', '4489', '0'), ('4490', '2013-06-11 14:49:01', '0', '196', '0', '0.00', '12', '1300.0000', '1', '0', '0000-00-00 00:00:00', '4490', '0'), ('4491', '2013-09-09 18:29:13', '1', '197', '1756', '1074.78', '0', '6717.3799', '1', '0', '0000-00-00 00:00:00', '4491', '0'), ('4492', '2013-06-19 11:08:56', '1', '198', '', '0.00', '10', '2070.3301', '1', '0', '0000-00-00 00:00:00', '4492', '0'), ('4493', '2013-09-11 14:44:15', '0', '199', '', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4493', '0'), ('4494', '2013-06-19 11:21:16', '0', '200', '0', '0.00', '10', '60.0000', '1', '0', '0000-00-00 00:00:00', '4494', '0'), ('4495', '2013-09-09 18:54:44', '1', '201', '1743', '0.00', '0', '5660.8398', '1', '0', '0000-00-00 00:00:00', '4495', '0'), ('4496', '2013-09-09 19:06:18', '1', '202', '1780', '0.00', '0', '6192.3701', '1', '0', '0000-00-00 00:00:00', '4496', '0'), ('4497', '2013-06-19 12:03:31', '1', '203', '', '152.00', '10', '950.0000', '1', '0', '0000-00-00 00:00:00', '4497', '0'), ('4498', '2013-06-19 12:05:35', '1', '204', '', '80.00', '10', '500.0000', '1', '0', '0000-00-00 00:00:00', '4498', '0'), ('4499', '2013-06-19 12:08:34', '0', '205', '', '0.00', '10', '5350.0000', '1', '0', '0000-00-00 00:00:00', '4499', '0'), ('4500', '2013-06-19 12:10:56', '0', '206', '', '0.00', '10', '2986.0000', '1', '0', '0000-00-00 00:00:00', '4500', '0'), ('4501', '2013-06-19 12:26:19', '0', '207', '0', '0.00', '10', '0.0000', '1', '0', '0000-00-00 00:00:00', '4501', '0'), ('4502', '2013-09-10 09:33:03', '1', '208', '1830', '777.42', '0', '4858.8701', '1', '0', '0000-00-00 00:00:00', '4502', '0'), ('4503', '2013-09-10 18:30:43', '0', '209', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4503', '0'), ('4504', '2013-06-19 12:37:01', '1', '210', '', '272.00', '10', '1700.0000', '1', '0', '0000-00-00 00:00:00', '4504', '0'), ('4505', '2013-09-10 17:52:44', '1', '211', '1713', '0.00', '0', '2969.6699', '1', '0', '0000-00-00 00:00:00', '4505', '0'), ('4506', '2013-07-02 12:54:46', '0', '212', '0', '0.00', '0', '3999.7900', '1', '0', '0000-00-00 00:00:00', '4506', '0'), ('4507', '2013-09-10 17:54:54', '1', '213', '1818', '1416.15', '0', '8850.9600', '1', '0', '0000-00-00 00:00:00', '4507', '0'), ('4508', '2013-09-10 17:59:22', '1', '214', '1829', '0.00', '0', '3423.7700', '1', '0', '0000-00-00 00:00:00', '4508', '0'), ('4509', '2013-06-19 12:56:36', '0', '215', '', '0.00', '10', '6464.2002', '1', '0', '0000-00-00 00:00:00', '4509', '0'), ('4510', '2013-09-10 18:35:35', '0', '216', '', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4510', '0'), ('4511', '2013-06-19 12:59:35', '0', '217', '', '0.00', '10', '4700.0000', '1', '0', '0000-00-00 00:00:00', '4511', '0'), ('4512', '2013-10-03 15:00:19', '1', '218', '1988', '3702.76', '0', '23142.2402', '1', '0', '2013-09-28 00:00:00', '4512', '0'), ('4513', '2013-06-19 13:40:23', '0', '219', '', '0.00', '10', '5950.0000', '1', '0', '0000-00-00 00:00:00', '4513', '0'), ('4514', '2013-09-11 11:51:35', '0', '220', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4514', '0'), ('4515', '2013-09-10 18:02:31', '1', '221', '1754', '0.00', '0', '3265.0000', '1', '0', '0000-00-00 00:00:00', '4515', '0'), ('4516', '2013-09-10 18:04:03', '1', '222', '1826', '0.00', '0', '12025.5400', '1', '0', '0000-00-00 00:00:00', '4516', '0'), ('4517', '2013-09-11 14:48:48', '1', '223', '', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4517', '0'), ('4518', '2013-09-10 10:39:02', '1', '224', '1758', '502.30', '0', '3139.3501', '1', '0', '0000-00-00 00:00:00', '4518', '0'), ('4519', '2013-06-19 16:26:24', '1', '225', '', '80.00', '10', '500.0000', '1', '0', '0000-00-00 00:00:00', '4519', '0'), ('4520', '2013-09-10 10:54:52', '1', '226', '1831', '0.00', '0', '2700.0000', '1', '0', '0000-00-00 00:00:00', '4520', '0'), ('4521', '2013-09-10 18:06:54', '1', '227', '1781', '0.00', '0', '7266.1699', '1', '0', '0000-00-00 00:00:00', '4521', '0'), ('4522', '2013-09-10 11:09:49', '1', '228', '1886', '0.00', '0', '4409.8198', '1', '0', '0000-00-00 00:00:00', '4522', '0'), ('4523', '2013-09-10 18:09:59', '1', '229', '', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4523', '0'), ('4524', '2013-06-19 16:58:16', '0', '230', '0', '0.00', '10', '200.0000', '1', '0', '0000-00-00 00:00:00', '4524', '0'), ('4525', '2013-09-11 14:50:54', '0', '231', '0', '0.00', '0', '1500.0000', '1', '0', '0000-00-00 00:00:00', '4525', '0'), ('4526', '2013-06-19 17:05:17', '0', '232', '0', '0.00', '10', '0.0000', '1', '0', '0000-00-00 00:00:00', '4526', '0'), ('4527', '2013-09-10 18:10:48', '1', '233', '1748', '0.00', '0', '3755.7900', '1', '0', '0000-00-00 00:00:00', '4527', '0'), ('4528', '2013-06-20 11:09:03', '0', '234', '0', '0.00', '10', '3600.0000', '1', '0', '0000-00-00 00:00:00', '4528', '0'), ('4529', '2013-09-10 18:16:43', '1', '235', '1782', '0.00', '0', '4314.7900', '1', '0', '0000-00-00 00:00:00', '4529', '0'), ('4530', '2013-09-10 18:24:13', '1', '236', '1901-1861', '974.09', '0', '9258.0400', '1', '0', '0000-00-00 00:00:00', '4530', '0'), ('4531', '2013-09-10 18:41:31', '1', '237', '', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4531', '0'), ('4532', '2013-09-11 14:58:42', '0', '238', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4532', '0'), ('4533', '2013-09-10 12:02:25', '1', '239', '1794', '0.00', '0', '3042.0701', '1', '0', '0000-00-00 00:00:00', '4533', '0'), ('4534', '2013-06-21 11:52:32', '0', '240', '', '0.00', '10', '200.0000', '1', '0', '0000-00-00 00:00:00', '4534', '0'), ('4535', '2013-08-26 14:44:02', '0', '241', '0', '0.00', '0', '8097.2798', '1', '0', '0000-00-00 00:00:00', '4535', '0'), ('4536', '2013-06-21 12:33:51', '1', '242', '', '232.00', '10', '1450.0000', '1', '0', '0000-00-00 00:00:00', '4536', '0'), ('4537', '2013-06-21 12:38:35', '1', '243', '', '152.00', '10', '950.0000', '1', '0', '0000-00-00 00:00:00', '4537', '0'), ('4538', '2013-06-21 12:46:26', '1', '244', '', '80.00', '10', '500.0000', '1', '0', '0000-00-00 00:00:00', '4538', '0'), ('4539', '2013-06-24 17:55:45', '1', '245', '', '1539.20', '10', '9620.0000', '1', '0', '0000-00-00 00:00:00', '4539', '0'), ('4540', '2013-06-24 17:57:19', '0', '246', '', '0.00', '10', '900.0000', '1', '0', '0000-00-00 00:00:00', '4540', '0'), ('4541', '2013-06-24 18:10:14', '0', '247', '0', '0.00', '10', '1800.0000', '1', '0', '0000-00-00 00:00:00', '4541', '0'), ('4542', '2013-06-24 18:11:58', '0', '248', '0', '0.00', '10', '4300.0000', '1', '0', '0000-00-00 00:00:00', '4542', '0'), ('4543', '2013-09-11 15:48:58', '1', '249', '1828', '2180.54', '0', '13268.4004', '1', '0', '2013-07-22 00:00:00', '4543', '0'), ('4544', '2013-09-11 15:48:33', '0', '250', '', '0.00', '0', '0.0000', '0', '0', '0000-00-00 00:00:00', '4544', '0'), ('4545', '2013-09-11 16:35:09', '0', '251', '', '0.00', '0', '10300.0000', '1', '0', '0000-00-00 00:00:00', '4545', '0'), ('4546', '2013-07-01 08:37:33', '0', '252', '', '0.00', '10', '3000.0000', '1', '0', '0000-00-00 00:00:00', '4546', '0'), ('4547', '2013-09-12 09:38:23', '1', '253', '1848', '0.00', '0', '7487.4800', '1', '0', '2013-08-03 00:00:00', '4547', '0'), ('4548', '2013-09-12 09:45:42', '1', '254', '1724', '152.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4548', '0'), ('4549', '2013-09-12 09:58:19', '0', '255', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4549', '0'), ('4550', '2013-09-12 11:12:58', '0', '256', '0', '0.00', '0', '4500.0000', '1', '0', '2013-07-28 00:00:00', '4550', '0'), ('4551', '2013-09-12 11:53:46', '1', '257', '1738', '450.24', '0', '2614.0000', '1', '0', '0000-00-00 00:00:00', '4551', '0'), ('4552', '2013-07-08 12:07:12', '0', '258', '0', '0.00', '10', '580.0000', '1', '0', '0000-00-00 00:00:00', '4552', '0'), ('4553', '2013-07-08 12:12:23', '0', '259', '0', '0.00', '10', '2350.0000', '1', '0', '0000-00-00 00:00:00', '4553', '0'), ('4554', '2013-11-01 09:27:44', '0', '260', '0', '0.00', '0', '0.0000', '0', '0', '0000-00-00 00:00:00', '4554', '0'), ('4555', '2013-07-09 13:12:11', '0', '261', '0', '0.00', '10', '6200.0000', '1', '0', '0000-00-00 00:00:00', '4555', '0'), ('4556', '2013-07-09 13:13:49', '0', '262', '0', '0.00', '10', '6000.0000', '1', '0', '0000-00-00 00:00:00', '4556', '0'), ('4557', '2013-07-09 13:16:36', '0', '263', '0', '0.00', '10', '3250.0000', '1', '0', '0000-00-00 00:00:00', '4557', '0'), ('4558', '2013-07-09 13:18:11', '0', '264', '0', '0.00', '10', '200.0000', '1', '0', '0000-00-00 00:00:00', '4558', '0'), ('4559', '2013-07-09 13:20:17', '0', '265', '0', '0.00', '10', '500.0000', '1', '0', '0000-00-00 00:00:00', '4559', '0'), ('4560', '2013-07-09 13:21:23', '0', '266', '0', '0.00', '10', '2615.9199', '1', '0', '0000-00-00 00:00:00', '4560', '0'), ('4561', '2013-09-17 13:38:09', '1', '267', '1783', '906.92', '0', '5668.2798', '1', '0', '2013-07-11 00:00:00', '4561', '0'), ('4562', '2013-09-12 14:55:31', '1', '268', '1832', '2893.65', '0', '18085.2891', '1', '0', '2013-07-23 00:00:00', '4562', '0'), ('4563', '2013-09-17 13:43:40', '1', '269', '1784', '821.58', '0', '5134.0000', '1', '0', '2013-07-11 00:00:00', '4563', '0'), ('4564', '2013-09-17 14:14:55', '1', '270', '1814', '1071.22', '0', '6695.1299', '1', '0', '2013-07-22 00:00:00', '4564', '0'), ('4565', '2013-07-09 14:32:24', '0', '271', '', '0.00', '10', '990.0000', '1', '0', '0000-00-00 00:00:00', '4565', '0'), ('4566', '2013-09-17 14:44:51', '0', '272', '0', '0.00', '0', '503.8700', '1', '0', '0000-00-00 00:00:00', '4566', '0'), ('4567', '2013-09-17 16:07:50', '0', '273', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4567', '0'), ('4568', '2013-09-17 14:51:12', '1', '274', '1785', '1058.12', '0', '6613.2500', '1', '0', '0000-00-00 00:00:00', '4568', '0'), ('4569', '2013-09-17 15:01:22', '1', '275', '1841', '0.00', '0', '9431.0801', '1', '0', '0000-00-00 00:00:00', '4569', '0'), ('4570', '2013-07-09 17:45:43', '0', '276', '0', '0.00', '10', '8550.0000', '1', '0', '0000-00-00 00:00:00', '4570', '0'), ('4571', '2013-07-09 17:47:39', '0', '277', '0', '0.00', '10', '532.0000', '1', '0', '0000-00-00 00:00:00', '4571', '0'), ('4572', '2013-07-09 17:48:50', '0', '278', '0', '0.00', '10', '2768.0000', '1', '0', '0000-00-00 00:00:00', '4572', '0'), ('4573', '2013-07-09 17:49:54', '0', '279', '0', '0.00', '10', '1850.0000', '1', '0', '0000-00-00 00:00:00', '4573', '0'), ('4574', '2013-07-09 17:52:27', '0', '280', '0', '0.00', '10', '2350.0000', '1', '0', '0000-00-00 00:00:00', '4574', '0'), ('4575', '2013-09-17 15:16:39', '1', '281', '1827', '2126.77', '0', '13292.3203', '1', '0', '2013-07-22 00:00:00', '4575', '0'), ('4576', '2013-07-24 13:03:13', '1', '282', 'A1836', '1400.89', '0', '10156.5000', '1', '0', '0000-00-00 00:00:00', '4576', '0'), ('4577', '2013-09-14 13:12:53', '1', '283', '1777', '1250.56', '0', '7816.0000', '1', '0', '2013-07-11 00:00:00', '4577', '0'), ('4578', '2013-09-14 13:11:35', '1', '284', '1777', '1643.42', '0', '10271.4004', '1', '0', '2013-07-11 00:00:00', '4578', '0'), ('4579', '2013-07-10 17:55:52', '0', '285', '', '0.00', '10', '2520.0000', '1', '0', '0000-00-00 00:00:00', '4579', '0'), ('4580', '2013-09-17 16:09:24', '1', '286', '', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4580', '0'), ('4581', '2013-07-11 08:42:37', '0', '287', '', '0.00', '10', '3700.0000', '1', '0', '0000-00-00 00:00:00', '4581', '0'), ('4582', '2013-07-11 08:44:12', '0', '288', '', '0.00', '10', '5410.0000', '1', '0', '0000-00-00 00:00:00', '4582', '0'), ('4583', '2013-09-17 16:13:09', '1', '289', '1975', '441.90', '0', '2761.8899', '1', '0', '0000-00-00 00:00:00', '4583', '0'), ('4584', '2013-08-21 14:13:50', '1', '290', '1890 20/8/13', '2125.35', '0', '15408.7998', '1', '0', '0000-00-00 00:00:00', '4584', '0'), ('4585', '2013-07-11 08:48:31', '0', '291', '', '0.00', '10', '901.0000', '1', '0', '0000-00-00 00:00:00', '4585', '0'), ('4586', '2013-07-11 08:50:14', '0', '292', '0', '0.00', '10', '2650.0000', '1', '0', '0000-00-00 00:00:00', '4586', '0'), ('4587', '2013-09-17 15:24:03', '0', '293', '0', '0.00', '0', '0.0000', '0', '0', '0000-00-00 00:00:00', '4587', '0'), ('4588', '2013-09-17 15:33:45', '1', '294', '1819', '1479.19', '0', '0.0000', '0', '0', '0000-00-00 00:00:00', '4588', '0'), ('4589', '2013-07-24 13:10:37', '0', '295', '', '0.00', '0', '11327.0000', '1', '0', '0000-00-00 00:00:00', '4589', '0'), ('4590', '2013-07-11 11:54:06', '0', '296', '0', '0.00', '10', '1200.0000', '1', '0', '0000-00-00 00:00:00', '4590', '0'), ('4591', '2013-09-17 16:19:43', '1', '297', '1849', '507.12', '0', '3169.5300', '1', '0', '0000-00-00 00:00:00', '4591', '0'), ('4592', '2013-07-11 11:59:11', '0', '298', '', '0.00', '10', '2200.0000', '1', '0', '0000-00-00 00:00:00', '4592', '0'), ('4593', '2013-07-11 12:00:34', '0', '299', '', '0.00', '10', '1024.0400', '1', '0', '0000-00-00 00:00:00', '4593', '0'), ('4594', '2013-09-17 16:21:55', '1', '300', '1850', '766.38', '0', '4789.8701', '1', '0', '0000-00-00 00:00:00', '4594', '0'), ('4595', '2013-09-26 11:47:42', '1', '301', '1851', '454.38', '0', '2839.8999', '1', '0', '2013-08-03 00:00:00', '4595', '0'), ('4596', '2013-09-17 15:55:16', '1', '302', '1819', '827.44', '0', '5171.4800', '1', '0', '0000-00-00 00:00:00', '4596', '0'), ('4597', '2013-09-26 11:56:42', '1', '303', '1925', '868.80', '0', '5430.0000', '1', '0', '2013-09-05 00:00:00', '4597', '0'), ('4598', '2013-09-17 16:04:26', '1', '304', '1820', '801.26', '0', '5007.8701', '1', '0', '0000-00-00 00:00:00', '4598', '0'), ('4599', '2013-09-26 15:48:15', '1', '305', '1771', '480.00', '0', '3000.0000', '1', '0', '2013-07-10 00:00:00', '4599', '0'), ('4600', '2013-09-26 12:01:29', '0', '306', '', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4600', '0'), ('4601', '2013-08-13 13:41:44', '1', '307', '', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4601', '0'), ('4602', '2013-09-26 11:31:46', '1', '308', '', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4602', '0'), ('4603', '2013-07-11 16:02:08', '0', '309', '', '0.00', '10', '4200.0000', '1', '0', '0000-00-00 00:00:00', '4603', '0'), ('4604', '2013-09-17 12:58:31', '0', '310', '0', '0.00', '0', '5000.0000', '1', '0', '0000-00-00 00:00:00', '4604', '0'), ('4605', '2013-07-23 11:32:10', '0', '311', '', '0.00', '0', '3000.0000', '1', '0', '0000-00-00 00:00:00', '4605', '0'), ('4606', '2013-09-26 12:34:58', '0', '312', '', '0.00', '0', '3374.0000', '1', '0', '2013-07-10 00:00:00', '4606', '0'), ('4607', '2013-09-26 15:38:06', '0', '313', '0', '0.00', '0', '0.0000', '0', '0', '0000-00-00 00:00:00', '4607', '0'), ('4608', '2013-09-27 10:10:25', '1', '314', '1821', '452.83', '0', '2830.1899', '1', '0', '2013-07-22 00:00:00', '4608', '0'), ('4609', '2013-09-27 11:16:51', '1', '315', '1887', '406.40', '0', '2540.0100', '1', '0', '2013-08-19 00:00:00', '4609', '0'), ('4610', '2013-10-10 16:11:16', '1', '316', '1772', '800.00', '0', '5000.0000', '1', '0', '0000-00-00 00:00:00', '4610', '0'), ('4611', '2013-09-27 10:21:26', '1', '317', '1822', '699.40', '0', '4371.2202', '1', '0', '0000-00-00 00:00:00', '4611', '0'), ('4612', '2013-10-02 10:36:39', '0', '318', '0', '0.00', '0', '2212.5100', '1', '0', '0000-00-00 00:00:00', '4612', '0'), ('4613', '2013-07-15 18:44:01', '0', '319', '0', '0.00', '10', '5750.0000', '1', '0', '0000-00-00 00:00:00', '4613', '0'), ('4614', '2013-07-16 09:10:24', '0', '320', '0', '0.00', '10', '4600.0000', '1', '0', '0000-00-00 00:00:00', '4614', '0'), ('4615', '2013-09-27 10:27:43', '0', '321', '0', '0.00', '0', '2954.0000', '1', '0', '0000-00-00 00:00:00', '4615', '0'), ('4616', '2013-07-16 09:30:08', '0', '322', '0', '0.00', '10', '25000.0000', '1', '0', '0000-00-00 00:00:00', '4616', '0'), ('4617', '2013-09-27 11:34:13', '1', '323', '1795', '272.17', '0', '1701.0601', '1', '0', '2013-07-18 00:00:00', '4617', '0'), ('4618', '2013-07-16 09:37:19', '0', '324', '0', '0.00', '10', '2200.0000', '1', '0', '0000-00-00 00:00:00', '4618', '0'), ('4619', '2013-07-16 09:38:17', '0', '325', '0', '0.00', '10', '3525.0000', '1', '0', '0000-00-00 00:00:00', '4619', '0'), ('4620', '2013-10-17 12:39:58', '0', '326', '0', '0.00', '0', '2055.0000', '1', '0', '0000-00-00 00:00:00', '4620', '0'), ('4621', '2013-09-27 10:45:34', '1', '327', '1823', '556.17', '0', '3476.0601', '1', '0', '2013-07-22 00:00:00', '4621', '0'), ('4622', '2013-07-16 13:44:19', '0', '328', '0', '0.00', '10', '1450.0000', '1', '0', '0000-00-00 00:00:00', '4622', '0'), ('4623', '2013-07-16 13:48:33', '0', '329', '0', '0.00', '10', '2300.0000', '1', '0', '0000-00-00 00:00:00', '4623', '0'), ('4624', '2013-07-16 13:51:27', '0', '330', '0', '0.00', '10', '1100.0000', '1', '0', '0000-00-00 00:00:00', '4624', '0'), ('4625', '2013-09-27 11:59:12', '1', '331', '1926', '2400.00', '0', '15000.0000', '1', '0', '2013-05-09 00:00:00', '4625', '0'), ('4626', '2013-07-16 18:18:25', '1', '332', '0', '0.00', '10', '3899.0000', '1', '0', '0000-00-00 00:00:00', '4626', '0'), ('4627', '2013-07-16 18:21:01', '0', '333', '0', '0.00', '10', '800.0000', '1', '0', '0000-00-00 00:00:00', '4627', '0'), ('4628', '2013-10-02 11:29:24', '1', '334', '1806', '896.00', '0', '5600.0000', '1', '0', '2013-07-20 00:00:00', '4628', '0'), ('4629', '2013-09-27 10:48:37', '0', '335', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4629', '0'), ('4630', '2013-09-27 12:01:12', '1', '336', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4630', '0'), ('4631', '2013-09-27 10:59:05', '1', '337', '1882', '977.85', '0', '6111.5601', '1', '0', '2013-08-19 00:00:00', '4631', '0'), ('4632', '2013-07-23 13:19:15', '0', '338', '0', '0.00', '0', '4138.0000', '1', '0', '0000-00-00 00:00:00', '4632', '0'), ('4633', '2013-07-22 09:29:16', '0', '339', '0', '0.00', '12', '2200.0000', '1', '0', '0000-00-00 00:00:00', '4633', '0'), ('4634', '2013-09-27 11:09:41', '1', '340', '1824', '304.37', '0', '1902.2900', '1', '0', '2013-07-22 00:00:00', '4634', '0'), ('4635', '2013-10-02 15:24:42', '1', '341', '1807', '176.00', '0', '1100.0000', '1', '0', '0000-00-00 00:00:00', '4635', '0'), ('4636', '2013-09-27 12:04:11', '1', '342', '1852', '583.23', '0', '3645.2000', '1', '0', '2013-08-03 00:00:00', '4636', '0'), ('4637', '2013-07-22 10:22:16', '0', '343', '0', '0.00', '12', '24787.0000', '1', '0', '0000-00-00 00:00:00', '4637', '0'), ('4638', '2013-10-04 15:12:20', '1', '344', '1883', '426.97', '0', '2668.5500', '1', '0', '2013-08-19 00:00:00', '4638', '0'), ('4639', '2013-07-22 10:26:34', '0', '345', '0', '0.00', '12', '550.0000', '1', '0', '0000-00-00 00:00:00', '4639', '0'), ('4640', '2013-10-04 15:35:24', '1', '346', '1802', '133.63', '0', '835.1600', '1', '0', '2013-07-18 00:00:00', '4640', '0'), ('4641', '2013-10-04 15:41:11', '0', '347', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4641', '0'), ('4642', '2013-10-02 16:09:21', '1', '348', '1799', '305.21', '0', '1907.5500', '1', '0', '2013-07-18 00:00:00', '4642', '0'), ('4643', '2013-07-22 10:55:11', '0', '349', '0', '0.00', '12', '650.0000', '1', '0', '0000-00-00 00:00:00', '4643', '0'), ('4644', '2013-07-22 10:56:44', '0', '350', '0', '0.00', '12', '4800.0000', '1', '0', '0000-00-00 00:00:00', '4644', '0'), ('4645', '2013-10-07 15:15:30', '1', '351', '1798', '160.00', '0', '1000.0000', '1', '0', '2013-07-18 00:00:00', '4645', '0'), ('4646', '2013-09-30 09:33:16', '0', '352', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4646', '0'), ('4647', '2013-07-22 11:11:06', '0', '353', '0', '0.00', '12', '1800.0000', '1', '0', '0000-00-00 00:00:00', '4647', '0'), ('4648', '2013-07-22 11:12:27', '0', '354', '0', '0.00', '12', '2600.0000', '1', '0', '0000-00-00 00:00:00', '4648', '0'), ('4649', '2013-10-03 10:41:25', '1', '355', '1805', '80.00', '0', '500.0000', '1', '0', '2013-07-20 00:00:00', '4649', '0'), ('4650', '2013-10-07 15:27:06', '1', '356', '1813', '136.00', '0', '850.0000', '1', '0', '2013-07-22 00:00:00', '4650', '0'), ('4651', '2013-07-22 11:21:58', '0', '357', '0', '0.00', '12', '1400.0000', '1', '0', '0000-00-00 00:00:00', '4651', '0'), ('4652', '2013-07-22 11:35:18', '0', '358', '0', '0.00', '12', '300.0000', '1', '0', '0000-00-00 00:00:00', '4652', '0'), ('4653', '2013-10-03 11:26:24', '0', '359', '0', '0.00', '0', '1361.0500', '1', '0', '0000-00-00 00:00:00', '4653', '0'), ('4654', '2013-07-22 11:55:02', '0', '360', '0', '0.00', '12', '7000.0000', '1', '0', '0000-00-00 00:00:00', '4654', '0'), ('4655', '2013-07-22 12:47:39', '0', '361', '0', '0.00', '12', '4000.0000', '1', '0', '0000-00-00 00:00:00', '4655', '0'), ('4656', '2013-10-03 14:41:43', '0', '362', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4656', '0'), ('4657', '2013-10-05 10:52:50', '1', '363', '1884', '1129.74', '0', '7060.8799', '1', '0', '2013-08-19 00:00:00', '4657', '0'), ('4658', '2013-10-03 15:23:45', '0', '364', '0', '0.00', '0', '400.0000', '1', '0', '0000-00-00 00:00:00', '4658', '0'), ('4659', '2013-07-22 12:55:41', '0', '365', '0', '0.00', '12', '3000.0000', '1', '0', '0000-00-00 00:00:00', '4659', '0'), ('4660', '2013-10-03 15:43:23', '0', '366', '0', '0.00', '0', '20000.0000', '1', '0', '0000-00-00 00:00:00', '4660', '0'), ('4661', '2013-10-03 15:22:08', '0', '367', '0', '0.00', '0', '0.0000', '0', '0', '0000-00-00 00:00:00', '4661', '0'), ('4662', '2013-10-22 09:25:18', '0', '368', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4662', '0'), ('4663', '2013-07-22 13:00:22', '0', '369', '0', '0.00', '12', '81.8000', '1', '0', '0000-00-00 00:00:00', '4663', '0'), ('4664', '2013-10-07 16:10:23', '1', '370', '1888', '217.57', '0', '1359.8199', '1', '0', '2013-08-19 00:00:00', '4664', '0'), ('4665', '2013-10-04 09:32:10', '1', '371', '1838', '257.60', '0', '1610.0000', '1', '0', '2013-07-25 00:00:00', '4665', '0'), ('4666', '2013-10-04 10:37:39', '1', '372', '1909', '1900.80', '0', '11880.0000', '1', '0', '2013-08-27 00:00:00', '4666', '0'), ('4667', '2013-10-07 12:10:30', '1', '373', '1889', '373.06', '0', '2331.6201', '1', '0', '2013-08-19 00:00:00', '4667', '0'), ('4668', '2013-07-31 10:22:32', '0', '374', '0', '0.00', '0', '9630.0000', '1', '0', '0000-00-00 00:00:00', '4668', '0'), ('4669', '2013-07-31 10:24:11', '0', '375', '0', '0.00', '0', '805.3000', '1', '0', '0000-00-00 00:00:00', '4669', '0'), ('4670', '2013-07-31 10:25:44', '0', '376', '0', '0.00', '0', '345.2300', '1', '0', '0000-00-00 00:00:00', '4670', '0'), ('4671', '2013-07-31 10:27:08', '0', '377', '0', '0.00', '0', '1000.0000', '1', '0', '0000-00-00 00:00:00', '4671', '0'), ('4672', '2013-07-31 11:21:56', '0', '378', '0', '0.00', '12', '4437.0000', '1', '0', '0000-00-00 00:00:00', '4672', '0'), ('4673', '2013-10-08 09:59:25', '1', '379', '1837', '256.00', '0', '1600.0000', '1', '0', '2013-07-24 00:00:00', '4673', '0'), ('4674', '2013-10-08 13:27:40', '0', '380', '0', '0.00', '0', '0.0000', '0', '0', '0000-00-00 00:00:00', '4674', '0'), ('4675', '2013-08-05 13:51:55', '0', '381', '0', '0.00', '10', '2000.0000', '1', '0', '0000-00-00 00:00:00', '4675', '0'), ('4676', '2013-10-07 12:23:24', '1', '382', '1938', '84.62', '0', '528.8500', '1', '0', '2013-09-09 00:00:00', '4676', '0'), ('4677', '2013-10-07 13:08:51', '0', '383', '0', '0.00', '0', '789.0000', '1', '0', '0000-00-00 00:00:00', '4677', '0'), ('4678', '2013-10-07 13:34:15', '1', '384', '1933', '2160.00', '0', '13500.0000', '1', '0', '2013-09-05 00:00:00', '4678', '0'), ('4679', '2013-08-05 16:57:38', '0', '385', '0', '0.00', '10', '1100.0000', '1', '0', '0000-00-00 00:00:00', '4679', '0'), ('4680', '2013-10-07 15:33:54', '1', '386', '1904', '176.00', '0', '1100.0000', '1', '0', '2013-09-03 00:00:00', '4680', '0'), ('4681', '2013-10-07 14:00:32', '1', '387', '1891', '521.02', '0', '3256.3999', '1', '0', '2013-08-09 00:00:00', '4681', '0'), ('4682', '2013-10-07 15:41:26', '1', '388', '1840', '256.00', '0', '1600.0000', '1', '0', '2013-07-26 00:00:00', '4682', '0'), ('4683', '2013-08-05 17:10:00', '0', '389', '0', '0.00', '10', '1030.0000', '1', '0', '0000-00-00 00:00:00', '4683', '0'), ('4684', '2013-08-14 12:36:25', '1', '390', '1872 -9/8/13', '1129.23', '0', '7057.7202', '1', '0', '0000-00-00 00:00:00', '4684', '0'), ('4685', '2013-10-07 14:23:37', '1', '391', '1892', '967.56', '0', '6047.2202', '1', '0', '2013-08-20 00:00:00', '4685', '0'), ('4686', '2013-10-08 14:30:33', '1', '392', '4686/4727', '3451.68', '0', '21573.0000', '1', '0', '0000-00-00 00:00:00', '4686', '0'), ('4687', '2013-08-05 18:19:16', '0', '393', '0', '0.00', '10', '1200.0000', '1', '0', '0000-00-00 00:00:00', '4687', '0'), ('4688', '2013-10-08 14:36:35', '0', '394', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4688', '0'), ('4689', '2013-10-07 14:39:24', '1', '395', '1895', '36.80', '0', '230.0000', '1', '0', '2013-08-20 00:00:00', '4689', '0'), ('4690', '2013-08-05 18:32:28', '0', '396', '0', '0.00', '10', '2900.0000', '1', '0', '0000-00-00 00:00:00', '4690', '0'), ('4691', '2013-08-05 18:33:35', '0', '397', '0', '0.00', '10', '1200.0000', '1', '0', '0000-00-00 00:00:00', '4691', '0'), ('4692', '2013-10-07 14:52:41', '1', '398', '0', '0.00', '0', '3054.0000', '1', '0', '0000-00-00 00:00:00', '4692', '0'), ('4693', '2013-08-05 18:40:29', '0', '399', '0', '0.00', '10', '2446.0000', '1', '0', '0000-00-00 00:00:00', '4693', '0'), ('4694', '2013-10-07 14:45:12', '1', '400', '1893 20/8/13', '1621.64', '0', '10135.2402', '1', '0', '2013-08-20 00:00:00', '4694', '0'), ('4695', '2013-10-07 14:56:57', '1', '401', '1896', '968.75', '0', '6054.6602', '1', '0', '2013-08-20 00:00:00', '4695', '0'), ('4696', '2013-10-08 15:23:12', '0', '402', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4696', '0'), ('4697', '2013-10-08 15:25:25', '0', '403', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4697', '0'), ('4698', '2013-08-05 18:51:36', '0', '404', '0', '0.00', '10', '2586.0000', '1', '0', '0000-00-00 00:00:00', '4698', '0'), ('4699', '2013-10-08 15:33:46', '0', '405', '0', '0.00', '0', '1800.0000', '1', '0', '0000-00-00 00:00:00', '4699', '0'), ('4700', '2013-10-10 16:35:26', '1', '406', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4700', '0'), ('4701', '2013-10-10 16:32:26', '0', '407', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4701', '0'), ('4702', '2013-10-09 12:01:27', '1', '408', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4702', '0'), ('4703', '2013-08-06 09:59:02', '0', '409', '0', '0.00', '0', '1200.0000', '1', '0', '0000-00-00 00:00:00', '4703', '0'), ('4704', '2013-10-08 16:00:17', '0', '410', '0', '0.00', '0', '19092.1309', '1', '0', '0000-00-00 00:00:00', '4704', '0'), ('4705', '2013-08-06 10:11:02', '1', '411', '0', '0.00', '0', '6000.0000', '1', '0', '0000-00-00 00:00:00', '4705', '0'), ('4706', '2013-10-09 11:51:14', '1', '412', '1897', '380.76', '0', '2379.7400', '1', '0', '2013-08-20 00:00:00', '4706', '0'), ('4707', '2013-10-08 16:02:51', '0', '413', '0', '0.00', '0', '431.2500', '1', '0', '0000-00-00 00:00:00', '4707', '0'), ('4708', '2013-08-06 10:15:25', '0', '414', '0', '0.00', '10', '36000.0000', '0', '0', '0000-00-00 00:00:00', '4708', '0'), ('4709', '2013-10-09 12:01:59', '1', '415', '0', '0.00', '0', '0.0000', '0', '0', '0000-00-00 00:00:00', '4709', '0'), ('4710', '2013-10-09 15:33:42', '1', '416', '1968', '860.85', '0', '5380.2900', '1', '0', '2013-09-18 00:00:00', '4710', '0'), ('4711', '2013-08-06 10:19:24', '0', '417', '0', '0.00', '10', '1097.0000', '1', '0', '0000-00-00 00:00:00', '4711', '0'), ('4712', '2013-10-22 12:13:27', '1', '418', '1859', '640.00', '0', '4000.0000', '1', '0', '2013-08-09 00:00:00', '4712', '0'), ('4713', '2013-08-06 10:22:35', '1', '419', '0', '0.00', '10', '1950.0000', '1', '0', '0000-00-00 00:00:00', '4713', '0'), ('4714', '2013-08-06 10:23:25', '0', '420', '0', '0.00', '10', '2500.0000', '1', '0', '0000-00-00 00:00:00', '4714', '0'), ('4715', '2013-08-06 10:28:23', '0', '421', '0', '0.00', '10', '1280.0000', '1', '0', '0000-00-00 00:00:00', '4715', '0'), ('4716', '2013-10-09 09:23:05', '1', '422', '1858', '357.60', '0', '2235.0000', '1', '0', '2013-08-08 00:00:00', '4716', '0'), ('4717', '2013-08-20 15:26:24', '0', '423', '0', '0.00', '0', '17450.0000', '1', '0', '0000-00-00 00:00:00', '4717', '0'), ('4718', '2013-08-06 10:32:33', '0', '424', '0', '0.00', '10', '3000.0000', '1', '0', '0000-00-00 00:00:00', '4718', '0'), ('4719', '2013-10-09 09:48:11', '1', '425', '1867', '656.72', '0', '4104.5000', '1', '0', '2013-08-14 00:00:00', '4719', '0'), ('4720', '2013-08-26 16:23:05', '0', '426', '0', '0.00', '0', '21400.0000', '1', '0', '0000-00-00 00:00:00', '4720', '0'), ('4721', '2013-10-09 10:04:27', '0', '427', '0', '0.00', '0', '2605.0000', '1', '0', '0000-00-00 00:00:00', '4721', '0'), ('4722', '2013-10-09 13:11:55', '0', '428', '0', '0.00', '0', '2067.7900', '1', '0', '0000-00-00 00:00:00', '4722', '0'), ('4723', '2013-10-09 14:11:07', '1', '429', '1939', '616.95', '0', '3855.9199', '1', '0', '2013-09-09 00:00:00', '4723', '0'), ('4724', '2013-08-06 11:00:12', '0', '430', '0', '0.00', '10', '500.0000', '1', '0', '0000-00-00 00:00:00', '4724', '0'), ('4725', '2013-08-12 12:31:21', '0', '431', '0', '0.00', '0', '420.0000', '1', '0', '0000-00-00 00:00:00', '4725', '0'), ('4726', '2013-10-09 14:16:15', '1', '432', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4726', '0'), ('4727', '2013-10-09 11:22:57', '0', '433', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4727', '0'), ('4728', '2013-08-06 11:13:46', '0', '434', '0', '0.00', '10', '565.0000', '1', '0', '0000-00-00 00:00:00', '4728', '0'), ('4729', '2013-08-12 13:30:52', '0', '435', '0', '0.00', '10', '4570.0000', '1', '0', '0000-00-00 00:00:00', '4729', '0'), ('4730', '2013-10-09 15:21:20', '1', '436', '1860', '312.00', '0', '1950.0000', '1', '0', '2013-08-09 00:00:00', '4730', '0'), ('4731', '2013-08-12 13:49:31', '0', '437', '0', '0.00', '10', '600.0000', '1', '0', '0000-00-00 00:00:00', '4731', '0'), ('4732', '2013-10-09 15:40:18', '1', '438', '1928', '274.42', '0', '1715.1200', '1', '0', '2013-09-05 00:00:00', '4732', '0'), ('4733', '2013-08-12 14:01:12', '0', '439', '0', '0.00', '10', '3249.0000', '1', '0', '0000-00-00 00:00:00', '4733', '0'), ('4734', '2013-10-10 13:08:34', '1', '440', '1940', '926.56', '0', '5791.0098', '1', '0', '2013-09-09 00:00:00', '4734', '0'), ('4735', '2013-10-09 16:18:07', '1', '441', '1869 /15/8/13', '399.92', '0', '2499.5000', '1', '0', '0000-00-00 00:00:00', '4735', '0'), ('4736', '2013-08-21 15:47:11', '1', '442', '1870 15/8/13', '509.28', '0', '3183.0000', '1', '0', '0000-00-00 00:00:00', '4736', '0'), ('4737', '2013-08-12 18:06:17', '0', '443', '0', '0.00', '10', '4500.0000', '1', '0', '0000-00-00 00:00:00', '4737', '0'), ('4738', '2013-08-12 18:08:24', '0', '444', '0', '0.00', '10', '2200.0000', '1', '0', '0000-00-00 00:00:00', '4738', '0'), ('4739', '2013-08-12 18:09:29', '0', '445', '0', '0.00', '10', '5200.0000', '1', '0', '0000-00-00 00:00:00', '4739', '0'), ('4740', '2013-10-09 15:44:23', '1', '446', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4740', '0'), ('4741', '2013-10-10 10:25:05', '1', '447', '1866', '416.00', '0', '2600.0000', '1', '0', '2013-08-13 00:00:00', '4741', '0'), ('4742', '2013-10-09 15:55:16', '1', '448', '1929', '627.84', '0', '3924.0300', '1', '0', '2013-09-05 00:00:00', '4742', '0'), ('4743', '2013-10-09 16:03:23', '1', '449', '1927', '1076.43', '0', '6727.6602', '1', '0', '2013-09-05 00:00:00', '4743', '0'), ('4744', '2013-08-12 18:28:04', '0', '450', '0', '0.00', '10', '3600.0000', '1', '0', '0000-00-00 00:00:00', '4744', '0'), ('4745', '2013-10-10 12:26:06', '1', '451', '1941', '742.65', '0', '4641.5801', '1', '0', '2013-09-09 00:00:00', '4745', '0'), ('4746', '2013-10-10 12:52:13', '1', '452', '1898', '657.39', '0', '4108.7100', '1', '0', '2013-08-20 00:00:00', '4746', '0'), ('4747', '2013-08-21 15:09:54', '0', '453', 'PAGADO 16/8/13', '0.00', '0', '3650.0000', '1', '0', '0000-00-00 00:00:00', '4747', '0'), ('4748', '2013-10-10 13:15:30', '1', '454', '1942', '38.40', '0', '240.0000', '1', '0', '2013-09-09 00:00:00', '4748', '0'), ('4749', '2013-10-10 13:26:13', '1', '455', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4749', '0'), ('4750', '2013-10-10 14:03:39', '1', '456', '2003', '2238.06', '0', '13987.5996', '1', '0', '2013-10-03 00:00:00', '4750', '0'), ('4751', '2013-10-10 10:56:26', '0', '457', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4751', '0'), ('4752', '2013-08-13 12:21:13', '0', '458', '0', '0.00', '0', '1000.0000', '1', '0', '0000-00-00 00:00:00', '4752', '0'), ('4753', '2013-10-10 11:20:05', '1', '459', '1910', '1008.96', '0', '6306.0000', '1', '0', '0000-00-00 00:00:00', '4753', '0'), ('4754', '2013-08-13 17:01:37', '0', '460', '0', '0.00', '10', '11590.0000', '1', '0', '0000-00-00 00:00:00', '4754', '0'), ('4755', '2013-10-10 14:16:49', '1', '461', '1943 Y 1973', '3111.97', '0', '19449.8203', '1', '0', '0000-00-00 00:00:00', '4755', '0'), ('4756', '2013-10-10 14:24:25', '1', '462', '1899', '228.91', '0', '1430.7100', '1', '0', '2013-08-20 00:00:00', '4756', '0'), ('4757', '2013-08-27 11:34:09', '0', '463', '0', '0.00', '0', '1575.0000', '1', '0', '0000-00-00 00:00:00', '4757', '0'), ('4758', '2013-08-13 17:28:31', '0', '464', '0', '0.00', '10', '6872.0000', '1', '0', '0000-00-00 00:00:00', '4758', '0'), ('4759', '2013-10-10 14:37:36', '1', '465', '1974', '3970.32', '0', '24814.8906', '1', '0', '2013-09-23 00:00:00', '4759', '0'), ('4760', '2013-08-19 09:36:02', '0', '466', '0', '0.00', '0', '3457.0000', '1', '0', '0000-00-00 00:00:00', '4760', '0'), ('4761', '2013-10-10 15:59:00', '1', '467', '1930', '521.43', '0', '3258.9099', '1', '0', '0000-00-00 00:00:00', '4761', '0'), ('4762', '2013-08-19 09:39:17', '0', '468', '0', '0.00', '0', '4500.0000', '1', '0', '0000-00-00 00:00:00', '4762', '0'), ('4763', '2013-10-11 14:03:11', '1', '469', '1871', '448.00', '0', '2800.0000', '1', '0', '2013-08-16 00:00:00', '4763', '0'), ('4764', '2013-10-11 14:06:36', '1', '470', '1907', '272.00', '0', '1700.0000', '1', '0', '2013-08-26 00:00:00', '4764', '0'), ('4765', '2013-10-10 14:47:03', '1', '471', '1944', '922.94', '0', '5768.3799', '1', '0', '2013-09-09 00:00:00', '4765', '0'), ('4766', '2013-08-27 16:17:20', '0', '472', '0', '0.00', '0', '400.0000', '1', '0', '0000-00-00 00:00:00', '4766', '0'), ('4767', '2013-08-19 09:51:31', '0', '473', '0', '0.00', '0', '1977.0000', '1', '0', '0000-00-00 00:00:00', '4767', '0'), ('4768', '2013-10-11 14:26:07', '1', '474', '1894', '888.00', '0', '5550.0000', '1', '0', '2013-08-20 00:00:00', '4768', '0'), ('4769', '2013-10-10 14:50:51', '1', '475', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4769', '0'), ('4770', '2013-10-11 14:59:04', '0', '476', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4770', '0'), ('4771', '2013-10-10 14:56:18', '1', '477', '1975', '970.36', '0', '6064.7300', '1', '0', '2013-09-23 00:00:00', '4771', '0'), ('4772', '2013-08-19 09:59:03', '0', '478', '0', '0.00', '0', '2241.0000', '1', '0', '0000-00-00 00:00:00', '4772', '0'), ('4773', '2013-10-11 15:19:28', '1', '479', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4773', '0'), ('4774', '2013-10-11 15:22:16', '0', '480', '0', '0.00', '0', '487.2500', '1', '0', '0000-00-00 00:00:00', '4774', '0'), ('4775', '2013-10-10 14:58:33', '1', '481', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4775', '0'), ('4776', '2013-10-10 16:27:49', '1', '482', '1931', '491.79', '0', '3073.6799', '1', '0', '0000-00-00 00:00:00', '4776', '0'), ('4777', '2013-10-10 15:01:42', '1', '483', '1945', '259.61', '0', '1622.5800', '1', '0', '2013-09-09 00:00:00', '4777', '0'), ('4778', '2013-09-12 21:01:17', '1', '484', '1946', '1566.66', '0', '9791.6201', '1', '0', '0000-00-00 00:00:00', '4778', '0'), ('4779', '2013-10-10 15:13:40', '1', '485', '1976', '1379.44', '0', '8621.5195', '1', '0', '2013-09-23 00:00:00', '4779', '0'), ('4780', '2013-10-11 12:25:06', '1', '486', '1967', '1193.57', '0', '7459.7798', '1', '0', '2013-09-18 00:00:00', '4780', '0'), ('4781', '2013-10-11 12:35:20', '1', '487', '1956', '1320.64', '0', '8254.0303', '1', '0', '2013-09-10 00:00:00', '4781', '0'), ('4782', '2013-08-22 11:45:26', '0', '488', '0', '0.00', '0', '750.0000', '1', '0', '0000-00-00 00:00:00', '4782', '0'), ('4783', '2013-10-22 16:01:33', '1', '489', '0', '0.00', '0', '15600.0000', '1', '0', '0000-00-00 00:00:00', '4783', '0'), ('4784', '2013-10-11 12:44:33', '1', '490', '1966', '659.58', '0', '4122.3901', '1', '0', '2013-09-18 00:00:00', '4784', '0'), ('4785', '2013-10-11 15:42:38', '1', '491', '1912', '856.00', '0', '5350.0000', '1', '0', '2013-08-28 00:00:00', '4785', '0'), ('4786', '2013-10-10 15:33:42', '1', '492', '1947', '257.12', '0', '1607.0000', '1', '0', '2013-09-09 00:00:00', '4786', '0'), ('4787', '2013-08-28 10:52:38', '0', '493', 'PAGADO 23/8/13', '0.00', '0', '2500.0000', '1', '0', '0000-00-00 00:00:00', '4787', '0'), ('4788', '2013-09-19 13:09:28', '0', '494', '0', '0.00', '0', '9473.0000', '1', '0', '0000-00-00 00:00:00', '4788', '0'), ('4789', '2013-10-11 16:11:08', '0', '495', '0', '0.00', '0', '1500.0000', '1', '0', '0000-00-00 00:00:00', '4789', '0'), ('4790', '2013-08-23 12:31:03', '0', '496', '0', '0.00', '10', '750.0000', '1', '0', '0000-00-00 00:00:00', '4790', '0'), ('4791', '2013-08-23 13:05:52', '0', '497', '0', '0.00', '10', '3000.0000', '1', '0', '0000-00-00 00:00:00', '4791', '0'), ('4792', '2013-08-23 13:06:48', '0', '498', '0', '0.00', '10', '750.0000', '1', '0', '0000-00-00 00:00:00', '4792', '0'), ('4793', '2013-08-23 13:08:30', '0', '499', '0', '0.00', '10', '240.0000', '1', '0', '0000-00-00 00:00:00', '4793', '0'), ('4794', '2013-10-11 08:51:39', '1', '500', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4794', '0'), ('4795', '2013-10-11 13:05:19', '1', '501', '1932', '279.18', '0', '1744.8900', '1', '0', '2013-09-05 00:00:00', '4795', '0'), ('4796', '2013-10-11 13:08:33', '1', '502', '1959', '957.12', '0', '5981.9902', '1', '0', '2013-09-10 00:00:00', '4796', '0'), ('4797', '2013-10-22 15:07:33', '1', '503', '1960', '919.17', '0', '5744.8101', '1', '0', '2013-09-10 00:00:00', '4797', '0'), ('4798', '2013-10-11 13:32:37', '1', '504', '1965', '1096.77', '0', '6854.8101', '1', '0', '2013-09-18 00:00:00', '4798', '0'), ('4799', '2013-10-14 14:56:26', '0', '505', '0', '0.00', '0', '21275.0000', '1', '0', '0000-00-00 00:00:00', '4799', '0'), ('4800', '2013-08-26 12:24:02', '0', '506', '0', '0.00', '12', '3650.0000', '1', '0', '0000-00-00 00:00:00', '4800', '0'), ('4801', '2013-10-15 11:41:18', '1', '507', '1948', '304.41', '0', '1902.5800', '1', '0', '2013-09-09 00:00:00', '4801', '0'), ('4802', '2013-10-15 11:53:20', '1', '508', '1949', '953.32', '0', '5958.2300', '1', '0', '2013-09-09 00:00:00', '4802', '0'), ('4803', '2013-08-26 12:28:34', '0', '509', '0', '0.00', '12', '800.0000', '1', '0', '0000-00-00 00:00:00', '4803', '0'), ('4804', '2013-10-15 10:32:07', '1', '510', '1903', '232.00', '0', '1450.0000', '1', '0', '2013-08-22 00:00:00', '4804', '0'), ('4805', '2013-10-15 14:37:42', '0', '511', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4805', '0'), ('4806', '2013-10-15 10:55:41', '1', '512', '2002', '1052.45', '0', '6577.7900', '1', '0', '2013-10-03 00:00:00', '4806', '0'), ('4807', '2013-10-15 16:37:11', '0', '513', '0', '0.00', '0', '36050.0000', '1', '0', '0000-00-00 00:00:00', '4807', '0'), ('4808', '2013-10-15 14:35:06', '0', '514', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4808', '0'), ('4809', '2013-08-26 12:38:53', '0', '515', '0', '0.00', '12', '2627.0000', '1', '0', '0000-00-00 00:00:00', '4809', '0'), ('4810', '2013-08-26 12:40:18', '0', '516', '0', '0.00', '12', '3300.0000', '1', '0', '0000-00-00 00:00:00', '4810', '0'), ('4811', '2013-10-22 10:43:49', '0', '517', '0', '0.00', '0', '2400.0000', '1', '0', '0000-00-00 00:00:00', '4811', '0'), ('4812', '2013-10-15 11:05:26', '1', '518', '2000', '972.16', '0', '6075.9902', '1', '0', '2013-10-01 00:00:00', '4812', '0'), ('4813', '2013-10-15 12:11:15', '1', '519', '1987', '1739.71', '0', '10873.1797', '1', '0', '2013-09-24 00:00:00', '4813', '0'), ('4814', '2013-10-15 12:32:20', '1', '520', '1995', '1682.08', '0', '10513.0303', '1', '0', '2013-10-01 00:00:00', '4814', '0'), ('4815', '2013-10-15 12:37:03', '1', '521', '1958', '1464.86', '0', '9155.3496', '1', '0', '2013-09-10 00:00:00', '4815', '0'), ('4816', '2013-10-15 12:48:25', '1', '522', '1950', '353.89', '0', '2211.8301', '1', '0', '2013-09-09 00:00:00', '4816', '0'), ('4817', '2013-10-22 10:57:47', '1', '523', '1998', '831.31', '0', '0.0000', '1', '0', '2013-10-01 00:00:00', '4817', '0'), ('4818', '2013-08-28 18:33:09', '0', '524', '0', '0.00', '12', '800.0000', '1', '0', '0000-00-00 00:00:00', '4818', '0'), ('4819', '2013-10-15 08:51:28', '0', '525', '0', '0.00', '0', '4300.0000', '1', '0', '0000-00-00 00:00:00', '4819', '0'), ('4820', '2013-10-15 09:14:17', '1', '526', '1911', '528.00', '0', '3300.0000', '1', '0', '2013-08-27 00:00:00', '4820', '0'), ('4821', '2013-10-22 09:15:54', '0', '527', '0', '0.00', '0', '668.4100', '1', '0', '2013-08-14 00:00:00', '4821', '0'), ('4822', '2013-10-15 13:17:36', '0', '528', '0', '0.00', '0', '0.0000', '1', '0', '2013-09-03 14:00:00', '4822', '0'), ('4823', '2013-10-15 09:44:17', '1', '529', '2004', '1275.20', '0', '7970.0000', '1', '0', '2013-10-03 00:00:00', '4823', '0'), ('4824', '2013-10-15 13:20:04', '0', '530', '0', '0.00', '0', '0.0000', '1', '0', '2013-09-17 12:00:00', '4824', '0'), ('4825', '2013-10-15 13:31:15', '1', '531', '2005', '912.88', '0', '5705.5298', '1', '0', '2013-10-08 00:00:00', '4825', '0'), ('4826', '2013-10-15 09:15:58', '0', '532', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4826', '0'), ('4827', '2013-08-30 09:32:48', '0', '533', '0', '0.00', '12', '650.0000', '1', '0', '0000-00-00 00:00:00', '4827', '0'), ('4828', '2013-10-15 13:35:22', '1', '534', '2001', '1334.26', '0', '8339.1201', '1', '0', '2013-10-01 00:00:00', '4828', '0'), ('4829', '2013-08-30 09:35:30', '0', '535', '0', '0.00', '12', '1614.0000', '1', '0', '0000-00-00 00:00:00', '4829', '0'), ('4830', '2013-10-15 10:18:45', '1', '536', '1970', '144.00', '0', '900.0000', '1', '0', '2013-09-20 00:00:00', '4830', '0'), ('4831', '2013-10-16 15:25:33', '0', '537', '0', '0.00', '0', '680.0000', '1', '0', '0000-00-00 00:00:00', '4831', '0'), ('4832', '2013-11-11 16:29:02', '0', '538', '0', '0.00', '0', '650.0000', '1', '0', '0000-00-00 00:00:00', '4832', '0'), ('4833', '2013-08-30 09:48:25', '0', '539', '0', '0.00', '12', '3064.0000', '1', '0', '0000-00-00 00:00:00', '4833', '0'), ('4834', '2013-10-24 15:30:32', '0', '540', '0', '0.00', '0', '4181.1802', '1', '0', '0000-00-00 00:00:00', '4834', '0'), ('4835', '2013-08-30 09:54:05', '0', '541', '0', '0.00', '12', '350.0000', '1', '0', '0000-00-00 00:00:00', '4835', '0'), ('4836', '2013-10-15 14:57:51', '1', '542', '1951', '306.43', '0', '1915.1700', '1', '0', '2013-09-09 00:00:00', '4836', '0'), ('4837', '2013-08-30 11:25:03', '0', '543', '0', '0.00', '12', '1500.0000', '1', '0', '0000-00-00 00:00:00', '4837', '0'), ('4838', '2013-08-31 11:28:44', '0', '544', '0', '0.00', '10', '650.0000', '1', '0', '0000-00-00 00:00:00', '4838', '0'), ('4839', '2013-08-31 12:01:06', '0', '545', '0', '0.00', '10', '1525.0000', '1', '0', '0000-00-00 00:00:00', '4839', '0'), ('4840', '2013-10-22 09:23:53', '1', '546', '1922', '80.00', '0', '500.0000', '1', '0', '2013-09-04 00:00:00', '4840', '0'), ('4841', '2013-10-21 11:15:58', '1', '547', '2016', '1263.44', '0', '7896.5298', '1', '0', '2013-10-18 00:00:00', '4841', '0'), ('4842', '2013-10-16 15:57:55', '0', '548', '0', '0.00', '0', '17856.0000', '1', '0', '0000-00-00 00:00:00', '4842', '0'), ('4843', '2013-10-16 16:25:40', '0', '549', '0', '0.00', '0', '14876.0000', '1', '0', '0000-00-00 00:00:00', '4843', '0')\");\n\t\t$this->db->simple_query(\"INSERT INTO `orden` VALUES ('4844', '2013-10-22 09:29:59', '0', '550', '0', '0.00', '0', '0.0000', '0', '0', '0000-00-00 00:00:00', '4844', '0'), ('4845', '2013-09-02 11:55:06', '0', '551', '0', '0.00', '12', '22500.0000', '1', '0', '0000-00-00 00:00:00', '4845', '0'), ('4846', '2013-10-24 09:52:34', '0', '552', '0', '0.00', '0', '383.7000', '1', '0', '0000-00-00 00:00:00', '4846', '0'), ('4847', '2013-10-17 09:05:57', '1', '553', '1921', '264.00', '0', '1650.0000', '1', '0', '2013-09-04 00:00:00', '4847', '0'), ('4848', '2013-10-16 14:49:25', '1', '554', '1961', '112.00', '0', '700.0000', '1', '0', '2013-09-10 00:00:00', '4848', '0'), ('4849', '2013-09-03 17:12:39', '0', '555', '0', '0.00', '0', '3200.0000', '1', '0', '0000-00-00 00:00:00', '4849', '0'), ('4850', '2013-10-18 15:28:14', '1', '556', '1923', '200.00', '0', '1250.0000', '1', '0', '0000-00-00 00:00:00', '4850', '0'), ('4852', '2013-09-05 13:59:08', '0', '558', '0', '0.00', '0', '2020.0000', '0', '0', '2013-09-20 00:00:00', '0', '1'), ('4853', '2013-09-05 13:54:30', '0', '517', '0', '0.00', '12', '750.0000', '1', '0', '2013-09-06 00:00:00', '4851', '0'), ('4854', '2013-10-15 16:02:53', '0', '559', '0', '0.00', '0', '11440.0000', '1', '0', '2013-09-14 00:00:00', '4852', '0'), ('4855', '2013-10-15 15:57:29', '1', '560', '1978', '932.62', '0', '5828.8799', '1', '0', '0000-00-00 00:00:00', '4853', '0'), ('4856', '2013-10-15 16:34:52', '1', '561', '1979', '989.15', '0', '6182.1899', '1', '0', '2013-09-23 00:00:00', '4854', '0'), ('4857', '2013-10-16 14:56:23', '1', '562', '1957', '313.20', '0', '1957.5200', '1', '0', '2013-09-05 00:00:00', '4855', '0'), ('4858', '2013-10-16 08:47:55', '1', '321', '2007', '1736.23', '0', '10851.4199', '1', '0', '2013-10-08 00:00:00', '4856', '0'), ('4859', '2013-09-05 19:28:55', '0', '521', '0', '0.00', '0', '650.0000', '1', '0', '2013-09-04 00:00:00', '4857', '0'), ('4882', '2013-10-16 11:30:16', '1', '573', '1952', '363.58', '0', '2272.3899', '1', '0', '2013-09-09 00:00:00', '4866', '0'), ('4861', '2013-10-16 15:03:04', '1', '563', '1969', '217.66', '0', '1360.3700', '1', '0', '2013-09-18 00:00:00', '4859', '0'), ('4862', '2013-10-17 11:49:20', '0', '564', '0', '0.00', '0', '3910.0000', '1', '0', '2013-09-14 00:00:00', '4860', '0'), ('4863', '2013-10-16 10:53:30', '1', '565', '2006', '2319.54', '0', '14497.0996', '1', '0', '2013-09-19 13:00:00', '4861', '0'), ('4864', '2013-09-06 14:42:47', '1', '566', '0', '0.00', '0', '7600.0000', '1', '0', '2013-09-20 12:00:00', '4862', '0'), ('4865', '2013-09-06 15:10:28', '0', '567', '0', '0.00', '0', '2000.0000', '1', '0', '2013-09-10 00:00:00', '4863', '0'), ('4866', '2013-09-06 15:18:48', '0', '568', '0', '0.00', '0', '2100.0000', '1', '0', '2013-09-09 00:00:00', '4864', '0'), ('4883', '2013-10-17 12:29:00', '0', '410', '0', '0.00', '0', '0.0000', '1', '0', '2013-09-06 19:00:00', '4867', '0'), ('4884', '2013-09-06 18:22:37', '0', '574', '0', '0.00', '10', '180.0000', '0', '0', '0000-00-00 00:00:00', '4868', '0'), ('4881', '2013-10-16 11:12:45', '1', '572', '1999', '748.80', '0', '4679.9800', '1', '0', '2013-10-01 00:00:00', '4865', '0'), ('4885', '2013-10-24 09:54:26', '0', '517', '0', '0.00', '0', '0.0000', '1', '0', '2013-09-09 00:00:00', '4869', '0'), ('4886', '2013-10-16 11:35:18', '1', '575', '1980', '621.62', '0', '3885.1001', '1', '0', '2013-09-23 00:00:00', '4870', '0'), ('4887', '2013-09-06 19:18:00', '0', '576', '0', '0.00', '12', '1200.0000', '0', '0', '2013-09-10 00:00:00', '0', '1'), ('4888', '2013-10-16 11:52:53', '1', '558', '1981', '733.47', '0', '4584.1802', '1', '0', '2013-09-23 00:00:00', '4871', '0'), ('4889', '2013-10-03 14:38:49', '0', '577', '0', '0.00', '0', '0.0000', '1', '0', '2013-09-11 00:00:00', '4872', '0'), ('4890', '2013-10-24 15:04:32', '0', '578', '0', '0.00', '0', '0.0000', '0', '0', '2013-09-09 00:00:00', '4873', '0'), ('4891', '2013-09-07 10:36:30', '0', '578', '0', '0.00', '12', '1500.0000', '1', '0', '2013-09-09 00:00:00', '4874', '0'), ('4892', '2013-09-07 10:47:00', '0', '579', '0', '0.00', '12', '2700.0000', '1', '0', '2013-09-07 00:00:00', '4875', '0'), ('4893', '2013-10-16 12:09:02', '1', '580', '1997', '686.99', '0', '4293.7002', '1', '0', '2013-10-01 00:00:00', '4876', '0'), ('4894', '2013-10-18 13:19:55', '0', '581', '0', '0.00', '0', '0.0000', '1', '0', '2013-09-13 00:00:00', '4877', '0'), ('4895', '2013-10-24 15:19:15', '0', '582', '0', '0.00', '0', '0.0000', '1', '0', '0000-00-00 00:00:00', '4878', '0'), ('4896', '2013-10-22 11:22:09', '1', '576', '1953', '368.00', '0', '2300.0000', '1', '0', '2013-09-13 00:00:00', '4879', '0'), ('4897', '2013-10-24 15:28:42', '0', '583', '0', '0.00', '0', '7081.3799', '1', '0', '2013-09-18 00:00:00', '4880', '0'), ('4898', '2013-10-17 13:25:56', '0', '503', '0', '0.00', '0', '0.0000', '1', '0', '2013-09-06 00:00:00', '4881', '0'), ('4899', '2013-10-22 09:29:12', '0', '584', '0', '0.00', '0', '0.0000', '0', '0', '2013-09-13 00:00:00', '4882', '0'), ('4900', '2013-09-07 12:20:14', '0', '418', '0', '0.00', '0', '400.0000', '1', '0', '2013-09-06 00:00:00', '4883', '0'), ('4901', '2013-10-18 15:55:27', '1', '585', '1955', '408.00', '0', '2550.0000', '1', '0', '2013-09-10 00:00:00', '4884', '0'), ('4902', '2013-09-07 12:24:58', '0', '586', '0', '0.00', '12', '2000.0000', '1', '0', '2013-09-07 00:00:00', '4885', '0'), ('4903', '2013-10-18 16:02:50', '1', '419', '1935', '80.00', '0', '500.0000', '1', '0', '2013-09-06 00:00:00', '4886', '0'), ('4904', '2013-09-07 12:27:19', '0', '587', '0', '0.00', '12', '15422.0000', '1', '0', '2013-09-11 00:00:00', '4887', '0'), ('4905', '2013-10-17 14:26:42', '1', '425', '1962', '1079.64', '0', '6747.7798', '1', '0', '2013-09-10 00:00:00', '4888', '0'), ('4906', '2013-09-07 12:41:48', '0', '588', '0', '0.00', '12', '2600.0000', '1', '0', '2013-09-10 00:00:00', '4889', '0'), ('4907', '2013-10-16 12:58:44', '1', '589', '1996', '867.78', '0', '5423.6201', '1', '0', '2013-10-01 00:00:00', '4890', '0'), ('4908', '2013-10-16 15:09:12', '1', '590', '1971', '276.36', '0', '1727.2600', '1', '0', '2013-09-23 00:00:00', '4891', '0'), ('4909', '2013-09-09 12:46:34', '0', '591', '0', '0.00', '0', '7000.0000', '1', '0', '2013-09-11 00:00:00', '4892', '0'), ('4910', '2013-10-17 16:28:39', '1', '592', '1963', '56.00', '0', '350.0000', '1', '0', '2013-09-10 00:00:00', '4893', '0'), ('4911', '2013-10-16 14:28:13', '1', '593', '1982', '337.10', '0', '2106.8899', '1', '0', '2013-09-23 00:00:00', '4894', '0'), ('4912', '2013-10-16 14:35:11', '1', '594', '1983', '573.33', '0', '3583.3401', '1', '0', '2013-09-23 00:00:00', '4895', '0'), ('4913', '2013-09-10 10:18:41', '0', '594', '0', '0.00', '12', '1300.0000', '1', '0', '2013-09-14 00:00:00', '4896', '0'), ('4914', '2013-10-16 14:41:00', '1', '595', '1984', '190.82', '0', '1192.6200', '1', '0', '0000-00-00 00:00:00', '4897', '0'), ('4915', '2013-09-10 10:32:05', '0', '596', '0', '0.00', '12', '851.7200', '0', '0', '2013-09-13 00:00:00', '4898', '0'), ('4916', '2013-09-10 10:36:25', '0', '597', '0', '0.00', '12', '0.0000', '0', '0', '2013-09-10 00:00:00', '4899', '0'), ('4917', '2013-10-24 16:14:43', '0', '598', '0', '0.00', '0', '0.0000', '0', '0', '2013-09-16 00:00:00', '4900', '0'), ('4918', '2013-10-22 11:09:04', '1', '599', '1977', '803.58', '0', '5022.3501', '1', '0', '2013-09-10 12:03:00', '4858', '0'), ('4919', '2013-10-18 16:07:41', '1', '600', '1964', '192.00', '0', '1200.0000', '1', '0', '2013-09-11 00:00:00', '4902', '0'), ('4920', '2013-09-10 16:28:19', '0', '601', '0', '0.00', '12', '2900.0000', '1', '0', '2013-09-12 00:00:00', '4901', '0'), ('4921', '2013-10-18 13:43:40', '0', '602', '0', '0.00', '0', '1911.5000', '1', '0', '2013-09-20 00:00:00', '4903', '0'), ('4922', '2013-09-11 11:39:23', '0', '603', '0', '0.00', '12', '3100.0000', '1', '0', '2013-09-14 00:00:00', '4904', '0'), ('4923', '2013-09-12 10:40:00', '0', '604', '0', '0.00', '12', '0.0000', '0', '0', '2013-09-12 00:00:00', '0', '1'), ('4924', '2013-10-24 16:25:28', '0', '519', '0', '0.00', '0', '4400.0000', '1', '0', '2013-09-17 00:00:00', '4905', '0'), ('4962', '2013-10-24 16:44:04', '0', '218', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '4943', '0'), ('4925', '2013-10-22 13:23:00', '0', '605', '0', '0.00', '0', '8600.0000', '1', '0', '0000-00-00 00:00:00', '4906', '0'), ('4926', '2013-11-05 09:57:43', '1', '606', '2032', '1360.00', '0', '8500.0000', '1', '0', '2013-11-01 00:00:00', '4907', '0'), ('4927', '2013-10-01 10:31:18', '0', '607', '0', '0.00', '12', '450.0000', '1', '0', '0000-00-00 00:00:00', '4908', '0'), ('4928', '2013-10-04 16:13:53', '0', '608', '0', '0.00', '0', '5381.0000', '0', '0', '0000-00-00 00:00:00', '4909', '0'), ('4929', '2013-10-18 14:36:51', '1', '609', '2008', '862.57', '0', '5391.0400', '1', '0', '2013-10-10 00:00:00', '4910', '0'), ('4930', '2013-10-14 13:47:10', '0', '375', '0', '0.00', '0', '0.0000', '0', '0', '2013-10-31 00:00:00', '4911', '0'), ('4931', '2013-10-10 17:48:54', '0', '495', '0', '0.00', '12', '0.0000', '0', '0', '2013-10-12 00:00:00', '4912', '0'), ('4932', '2013-10-21 12:09:36', '1', '610', '2010', '1008.99', '0', '6306.2002', '1', '0', '2013-10-17 00:00:00', '4913', '0'), ('4944', '2013-10-16 16:01:36', '0', '621', '0', '0.00', '12', '581.0000', '1', '0', '2013-10-16 00:00:00', '4925', '0'), ('4933', '2013-10-14 08:11:50', '0', '611', '0', '0.00', '12', '4400.0000', '0', '0', '2013-10-15 00:00:00', '4914', '0'), ('4934', '2013-10-14 08:36:14', '0', '612', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '4915', '0'), ('4937', '2013-10-14 15:16:39', '0', '615', '0', '0.00', '12', '200.0000', '1', '0', '2013-10-14 00:00:00', '4918', '0'), ('4935', '2013-10-15 16:16:50', '1', '613', '2009', '216.00', '0', '1350.0000', '1', '0', '2013-10-15 00:00:00', '4916', '0'), ('4936', '2013-10-14 12:41:18', '0', '614', '0', '0.00', '12', '2500.0000', '1', '0', '0000-00-00 00:00:00', '4917', '0'), ('4938', '2013-10-14 15:24:04', '0', '616', '0', '0.00', '12', '200.0000', '1', '0', '2013-10-15 00:00:00', '4919', '0'), ('4939', '2013-10-18 09:05:30', '1', '617', 'A-2011', '160.00', '0', '1000.0000', '1', '0', '2013-10-18 00:00:00', '4920', '0'), ('4940', '2013-10-15 08:27:00', '0', '618', '0', '0.00', '12', '2600.0000', '1', '0', '2013-10-16 00:00:00', '4921', '0'), ('4941', '2013-10-15 15:45:20', '0', '534', '0', '0.00', '12', '1900.0000', '1', '0', '2013-10-15 00:00:00', '4922', '0'), ('4942', '2013-10-21 08:53:23', '1', '619', 'A-2015', '336.00', '0', '2100.0000', '1', '0', '2013-10-18 00:00:00', '4923', '0'), ('4943', '2013-10-30 13:31:30', '0', '620', '0', '0.00', '0', '3400.0000', '0', '0', '2013-10-31 00:00:00', '4924', '0'), ('4945', '2013-10-16 16:18:43', '0', '622', '0', '0.00', '12', '1800.0000', '0', '0', '2013-10-17 00:00:00', '4926', '0'), ('4946', '2013-10-17 08:42:50', '0', '623', '0', '0.00', '12', '1200.0000', '0', '0', '2013-10-18 00:00:00', '4927', '0'), ('4947', '2013-10-18 09:30:07', '1', '624', 'A-2012', '456.00', '0', '2850.0000', '0', '0', '2013-10-18 00:00:00', '4928', '0'), ('4948', '2013-10-21 17:01:12', '0', '625', '0', '0.00', '0', '600.0000', '0', '0', '2013-10-19 00:00:00', '4929', '0'), ('4949', '2013-10-18 09:28:22', '0', '359', '0', '0.00', '12', '424.2700', '1', '0', '2013-10-18 00:00:00', '4930', '0'), ('4950', '2013-10-19 08:05:46', '0', '626', '0', '0.00', '12', '18610.7695', '1', '0', '0000-00-00 00:00:00', '4931', '0'), ('4951', '2013-10-21 11:24:59', '0', '627', '0', '0.00', '0', '2000.0000', '0', '0', '0000-00-00 00:00:00', '4932', '0'), ('4952', '2013-10-21 09:48:31', '0', '468', '0', '0.00', '12', '150.0000', '0', '0', '0000-00-00 00:00:00', '4933', '0'), ('4953', '2013-10-21 10:00:57', '0', '628', '0', '0.00', '12', '2150.0000', '0', '0', '0000-00-00 00:00:00', '4934', '0'), ('4954', '2013-10-23 09:09:15', '1', '629', 'A-2017', '256.00', '0', '1600.0000', '1', '0', '2013-10-23 00:00:00', '4935', '0'), ('4955', '2013-10-24 08:37:49', '0', '630', '0', '0.00', '0', '3400.0000', '0', '0', '0000-00-00 00:00:00', '4936', '0'), ('4956', '2013-10-21 15:57:17', '0', '631', '0', '0.00', '12', '0.0000', '0', '0', '2013-10-26 00:00:00', '4937', '0'), ('4957', '2013-10-29 15:20:16', '1', '632', '2018', '504.00', '0', '3150.0000', '1', '0', '2013-10-23 17:30:00', '4938', '0'), ('4958', '2013-10-22 12:06:42', '0', '633', '0', '0.00', '12', '1200.0000', '0', '0', '2013-10-23 00:00:00', '4939', '0'), ('4959', '2013-10-23 10:51:23', '0', '634', '0', '0.00', '12', '0.0000', '0', '0', '2013-10-30 16:41:00', '4940', '0'), ('4960', '2013-10-23 17:54:34', '0', '635', '0', '0.00', '12', '1500.0000', '0', '0', '2013-10-24 00:00:00', '4941', '0'), ('4961', '2013-10-24 09:20:12', '0', '636', '0', '0.00', '12', '4500.0000', '1', '0', '2013-10-26 00:00:00', '4942', '0'), ('4963', '2013-10-25 10:39:41', '0', '637', '0', '0.00', '0', '450.0000', '1', '0', '2013-10-25 00:00:00', '4944', '0'), ('4965', '2013-10-25 16:08:27', '0', '639', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '4946', '0'), ('4964', '2013-11-06 11:58:46', '0', '638', '0', '0.00', '0', '646.7000', '1', '0', '0000-00-00 00:00:00', '4945', '0'), ('4966', '2013-10-26 11:20:10', '0', '508', '0', '0.00', '0', '1389.0000', '1', '0', '0000-00-00 00:00:00', '4947', '0'), ('4967', '2013-10-25 17:06:03', '0', '640', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '4948', '0'), ('4968', '2013-10-26 08:51:17', '0', '641', '0', '0.00', '12', '840.0000', '0', '0', '0000-00-00 00:00:00', '4949', '0'), ('4969', '2013-11-12 11:53:47', '1', '624', '2025 LA SUSTITUYE 4041', '48.00', '0', '300.0000', '1', '0', '2013-10-31 00:00:00', '4950', '0'), ('4970', '2013-10-26 14:18:55', '0', '642', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '4951', '0'), ('4971', '2013-10-28 08:19:53', '0', '643', '0', '0.00', '12', '1000.0000', '0', '0', '0000-00-00 00:00:00', '4952', '0'), ('4972', '2013-10-28 09:02:19', '0', '644', '0', '0.00', '12', '1900.0000', '1', '0', '0000-00-00 00:00:00', '4953', '0'), ('4973', '2013-10-28 09:44:12', '0', '645', '0', '0.00', '12', '700.0000', '0', '0', '0000-00-00 00:00:00', '4954', '0'), ('4974', '2013-10-28 10:24:26', '0', '646', '0', '0.00', '12', '0.0000', '0', '0', '2013-10-28 00:00:00', '4955', '0'), ('4975', '2013-10-28 11:53:26', '0', '647', '0', '0.00', '12', '0.0000', '0', '0', '2013-10-29 00:00:00', '4956', '0'), ('4976', '2013-10-31 15:31:00', '1', '648', '2030', '416.00', '0', '2600.0000', '1', '0', '2013-10-31 00:00:00', '4957', '0'), ('4977', '2013-10-29 09:15:49', '0', '649', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '4958', '0'), ('4978', '2013-10-29 10:41:38', '0', '650', '0', '0.00', '0', '2100.0000', '0', '0', '0000-00-00 00:00:00', '4959', '0'), ('4979', '2013-10-29 12:09:34', '0', '651', '0', '0.00', '12', '5559.0000', '0', '0', '0000-00-00 00:00:00', '4960', '0'), ('4980', '2013-10-29 12:22:54', '0', '652', '0', '0.00', '12', '1400.0000', '0', '0', '2013-10-31 00:00:00', '4961', '0'), ('4981', '2013-10-29 14:47:42', '0', '653', '0', '0.00', '12', '1800.0000', '0', '0', '0000-00-00 00:00:00', '4962', '0'), ('4982', '2013-10-29 14:57:28', '0', '654', '0', '0.00', '12', '350.0000', '0', '0', '0000-00-00 00:00:00', '4963', '0'), ('4983', '2013-10-29 15:02:44', '0', '655', '0', '0.00', '12', '400.0000', '0', '0', '0000-00-00 00:00:00', '4964', '0'), ('4984', '2013-10-29 15:43:35', '0', '656', '0', '0.00', '12', '2378.5200', '1', '0', '0000-00-00 00:00:00', '4965', '0'), ('4985', '2013-10-31 15:03:34', '1', '657', '2027', '456.00', '0', '2850.0000', '1', '0', '2013-10-31 00:00:00', '4966', '0'), ('4986', '2013-10-31 15:18:39', '1', '658', '2029', '184.00', '0', '1150.0000', '0', '0', '2013-10-31 00:00:00', '4967', '0'), ('4987', '2013-11-12 12:53:31', '1', '659', '2028', '152.00', '0', '950.0000', '0', '0', '2013-10-31 00:00:00', '4968', '0'), ('4988', '2013-10-30 10:33:06', '0', '606', '0', '0.00', '12', '2260.7500', '1', '0', '0000-00-00 00:00:00', '4969', '0'), ('4989', '2013-10-30 10:36:24', '0', '660', '0', '0.00', '12', '2700.0000', '0', '0', '0000-00-00 00:00:00', '4970', '0'), ('4990', '2013-10-30 11:10:30', '0', '661', '0', '0.00', '12', '450.0000', '0', '0', '0000-00-00 00:00:00', '4971', '0'), ('4991', '2013-10-30 12:12:43', '0', '662', '0', '0.00', '12', '800.0000', '1', '0', '0000-00-00 00:00:00', '4972', '0'), ('4992', '2013-10-30 13:23:34', '0', '663', '0', '0.00', '12', '21601.0000', '1', '0', '0000-00-00 00:00:00', '4973', '0'), ('4993', '2013-10-30 15:23:11', '0', '664', '0', '0.00', '12', '1300.0000', '1', '0', '0000-00-00 00:00:00', '4974', '0'), ('4994', '2013-10-30 17:41:01', '0', '665', '0', '0.00', '12', '2623.9900', '0', '0', '2013-11-04 00:00:00', '4975', '0'), ('4995', '2013-10-31 11:06:34', '0', '666', '0', '0.00', '12', '6122.6602', '1', '0', '0000-00-00 00:00:00', '4976', '0'), ('4996', '2013-10-31 11:41:41', '0', '667', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '4977', '0'), ('4997', '2013-11-01 16:08:42', '0', '668', '0', '0.00', '12', '600.0000', '0', '0', '2013-11-02 00:00:00', '4978', '0'), ('4998', '2013-11-01 16:22:13', '0', '185', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '4979', '0'), ('4999', '2013-11-01 16:35:07', '0', '669', '0', '0.00', '12', '7802.0000', '0', '0', '0000-00-00 00:00:00', '4980', '0'), ('5000', '2013-11-01 16:36:28', '0', '670', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '4981', '0'), ('5001', '2013-11-04 13:17:05', '0', '671', '0', '0.00', '0', '0.0000', '0', '0', '2013-11-16 00:00:00', '4982', '0'), ('5002', '2013-11-04 09:33:11', '0', '672', '0', '0.00', '12', '5821.2500', '0', '0', '0000-00-00 00:00:00', '4983', '0'), ('5003', '2013-11-04 09:47:42', '0', '673', '0', '0.00', '12', '4800.0000', '0', '0', '0000-00-00 00:00:00', '4984', '0'), ('5004', '2013-11-04 10:01:16', '0', '674', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '4985', '0'), ('5005', '2013-11-04 11:44:48', '0', '675', '0', '0.00', '12', '2050.0000', '1', '0', '0000-00-00 00:00:00', '4986', '0'), ('5006', '2013-11-04 13:21:34', '0', '676', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '4987', '0'), ('5007', '2013-11-04 16:51:27', '0', '677', '0', '0.00', '12', '2000.0000', '1', '0', '2013-11-05 00:00:00', '4988', '0'), ('5008', '2013-11-04 17:23:21', '0', '678', '0', '0.00', '0', '0.0000', '0', '0', '2013-11-14 00:00:00', '4989', '0'), ('5009', '2013-11-05 09:01:39', '0', '566', '0', '0.00', '0', '0.0000', '0', '0', '0000-00-00 00:00:00', '4990', '0'), ('5010', '2013-11-05 09:32:59', '0', '679', '0', '0.00', '12', '400.0000', '1', '0', '2013-11-05 00:00:00', '4991', '0'), ('5011', '2013-11-05 09:35:37', '0', '680', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '4992', '0'), ('5012', '2013-11-05 09:53:53', '0', '681', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '4993', '0'), ('5013', '2013-11-05 12:11:27', '0', '682', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '4994', '0'), ('5014', '2013-11-06 08:36:21', '0', '683', '0', '0.00', '0', '5000.0000', '0', '0', '0000-00-00 00:00:00', '4995', '0'), ('5015', '2013-11-06 10:47:25', '0', '626', '0', '0.00', '12', '6126.0000', '0', '0', '0000-00-00 00:00:00', '4996', '0'), ('5016', '2013-11-06 10:51:19', '0', '684', '0', '0.00', '12', '2900.0000', '0', '0', '2013-11-08 00:00:00', '4997', '0'), ('5017', '2013-11-06 15:52:34', '0', '685', '0', '0.00', '0', '4459.6001', '0', '0', '0000-00-00 00:00:00', '4998', '0'), ('5018', '2013-11-06 15:55:55', '0', '686', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '4999', '0'), ('5019', '2013-11-06 16:40:51', '0', '661', '0', '0.00', '12', '270.0000', '0', '0', '0000-00-00 00:00:00', '5000', '0'), ('5020', '2013-11-06 17:54:27', '0', '674', '0', '0.00', '12', '3460.0000', '0', '0', '0000-00-00 00:00:00', '5001', '0'), ('5021', '2013-11-07 12:46:29', '0', '687', '0', '0.00', '12', '2400.0000', '0', '0', '0000-00-00 00:00:00', '5002', '0'), ('5022', '2013-11-07 17:26:11', '0', '285', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '5003', '0'), ('5023', '2013-11-07 18:11:48', '0', '688', '0', '0.00', '12', '500.0000', '0', '0', '0000-00-00 00:00:00', '5004', '0'), ('5024', '2013-11-07 18:20:07', '0', '311', '0', '0.00', '12', '3400.0000', '0', '0', '0000-00-00 00:00:00', '5005', '0'), ('5025', '2013-11-08 10:13:26', '0', '689', '0', '0.00', '12', '1900.0000', '0', '0', '0000-00-00 00:00:00', '5006', '0'), ('5026', '2013-11-08 12:29:36', '0', '675', '0', '0.00', '12', '700.0000', '0', '0', '0000-00-00 00:00:00', '5007', '0'), ('5027', '2013-11-09 10:23:46', '0', '690', '0', '0.00', '12', '4200.0000', '0', '0', '0000-00-00 00:00:00', '5008', '0'), ('5028', '2013-11-11 09:36:53', '0', '691', '0', '0.00', '0', '1300.0000', '0', '0', '0000-00-00 00:00:00', '5009', '0'), ('5029', '2013-11-09 12:11:29', '0', '692', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '5010', '0'), ('5030', '2013-11-11 08:23:40', '0', '693', '0', '0.00', '12', '2700.0000', '0', '0', '0000-00-00 00:00:00', '5011', '0'), ('5031', '2013-11-11 13:02:43', '0', '694', '0', '0.00', '12', '5600.0000', '0', '0', '0000-00-00 00:00:00', '5012', '0'), ('5032', '2013-11-11 13:14:21', '0', '551', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '5013', '0'), ('5033', '2013-11-11 13:25:12', '0', '695', '0', '0.00', '12', '1066.1000', '0', '0', '0000-00-00 00:00:00', '5014', '0'), ('5034', '2013-11-11 15:04:20', '0', '696', '0', '0.00', '12', '642.0000', '0', '0', '0000-00-00 00:00:00', '5015', '0'), ('5035', '2013-11-11 16:30:02', '0', '697', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '5016', '0'), ('5036', '2013-11-12 08:26:01', '0', '698', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '5017', '0'), ('5037', '2013-11-12 10:37:10', '0', '699', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '5018', '0'), ('5038', '2013-11-12 16:26:15', '0', '700', '0', '0.00', '12', '3600.0000', '0', '0', '0000-00-00 00:00:00', '5019', '0'), ('5039', '2013-11-12 16:36:49', '0', '701', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '5020', '0'), ('5040', '2013-11-12 16:43:42', '0', '702', '0', '0.00', '12', '480.0000', '0', '0', '0000-00-00 00:00:00', '5021', '0'), ('5041', '2013-11-13 12:49:43', '0', '703', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '5022', '0'), ('5042', '2013-11-14 08:19:36', '0', '704', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '5023', '0'), ('5043', '2013-11-14 10:18:52', '0', '705', '0', '0.00', '12', '1365.0000', '0', '0', '0000-00-00 00:00:00', '5024', '0'), ('5044', '2013-11-14 13:25:29', '0', '706', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '5025', '0'), ('5045', '2013-11-14 13:28:16', '0', '707', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '5026', '0'), ('5046', '2013-11-14 13:32:48', '0', '708', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '5027', '0'), ('5047', '2013-11-14 13:35:03', '0', '709', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '5028', '0'), ('5048', '2013-11-14 13:36:28', '0', '605', '0', '0.00', '12', '3500.0000', '0', '0', '0000-00-00 00:00:00', '5029', '0'), ('5049', '2013-11-14 16:46:02', '0', '710', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '5030', '0'), ('5050', '2013-11-14 16:54:43', '0', '669', '0', '0.00', '12', '500.0000', '0', '0', '0000-00-00 00:00:00', '5031', '0'), ('5051', '2013-11-14 18:27:09', '0', '711', '0', '0.00', '12', '0.0000', '0', '0', '0000-00-00 00:00:00', '5032', '0')\");\n\t\n\n\t//table relacion de caracteristicas\n\t\t$fields = array(\n\t\t\t\t\t\"`idRel` int(11) NOT NULL AUTO_INCREMENT\",\n\t\t\t\t\t\"`idVehiculo` int(11) DEFAULT NULL\",\n\t\t\t\t\t\"`idCaracteristica` int(11) DEFAULT NULL\",\n\t\t\t\t\t\"`activo` tinyint(1) DEFAULT '0'\",\n\t\t\t\t\t\"`idOrden` int(11) DEFAULT NULL\",\n\t\t\t\t);\n\n\t\t$this->dbforge->add_field($fields);\n\t\t$this->dbforge->add_key('idRel', TRUE);\n\t\t$this->dbforge->create_table('relcaracteristica', TRUE);\n\t\t$this->db->simple_query('ALTER TABLE `relcaracteristica` AUTO_INCREMENT=412 DEFAULT CHARSET=utf8');\n\t\t$this->db->simple_query(\"INSERT INTO `relcaracteristica` VALUES ('1', '529', '10', '1', '4822'), ('2', '529', '14', '1', '4822'), ('3', '529', '18', '1', '4822'), ('4', '529', '28', '1', '4822'), ('5', '529', '36', '1', '4822'), ('6', '529', '44', '1', '4822'), ('7', '0', '10', '1', '4824'), ('8', '0', '22', '1', '4824'), ('9', '0', '18', '1', '4824'), ('10', '0', '32', '1', '4824'), ('11', '0', '36', '1', '4824'), ('12', '0', '33', '1', '4824'), ('13', '0', '29', '1', '4824'), ('14', '0', '41', '1', '4824'), ('15', '0', '34', '1', '4824'), ('16', '0', '30', '1', '4824'), ('17', '0', '24', '1', '4824'), ('18', '0', '35', '1', '4824'), ('19', '0', '31', '1', '4824'), ('20', '0', '26', '1', '4824'), ('21', '37', '10', '1', '4331'), ('22', '37', '22', '1', '4331'), ('23', '37', '33', '1', '4331'), ('24', '37', '41', '1', '4331'), ('25', '37', '49', '1', '4331'), ('26', '37', '34', '1', '4331'), ('27', '37', '24', '1', '4331'), ('28', '37', '16', '1', '4331'), ('29', '37', '18', '1', '4331'), ('30', '37', '36', '1', '4331'), ('32', '0', '10', '1', '4853'), ('33', '0', '14', '1', '4853'), ('35', '0', '18', '1', '4853'), ('36', '0', '22', '1', '4853'), ('37', '0', '28', '1', '4853'), ('39', '0', '36', '1', '4853'), ('40', '0', '40', '1', '4853'), ('41', '0', '11', '1', '4853'), ('42', '0', '15', '1', '4853'), ('43', '0', '19', '1', '4853'), ('44', '0', '23', '1', '4853'), ('45', '0', '29', '1', '4853'), ('46', '0', '33', '1', '4853'), ('47', '0', '37', '1', '4853'), ('48', '0', '41', '1', '4853'), ('49', '0', '45', '1', '4853'), ('50', '0', '49', '1', '4853'), ('51', '0', '12', '1', '4853'), ('52', '0', '16', '1', '4853'), ('53', '0', '20', '1', '4853'), ('54', '0', '30', '1', '4853'), ('55', '0', '24', '1', '4853'), ('56', '0', '34', '1', '4853'), ('57', '0', '38', '1', '4853'), ('58', '0', '42', '1', '4853'), ('59', '0', '46', '1', '4853'), ('60', '0', '13', '1', '4853'), ('61', '0', '17', '1', '4853'), ('62', '0', '21', '1', '4853'), ('63', '0', '26', '1', '4853'), ('64', '0', '31', '1', '4853'), ('66', '0', '35', '1', '4853'), ('67', '0', '39', '1', '4853'), ('68', '0', '47', '1', '4853'), ('69', '0', '43', '1', '4853'), ('71', '517', '18', '1', '4853'), ('72', '517', '10', '1', '4853'), ('73', '517', '32', '1', '4853'), ('74', '517', '44', '1', '4853'), ('75', '588', '47', '1', '4906'), ('76', '589', '14', '1', '4907'), ('77', '589', '18', '1', '4907'), ('78', '589', '11', '1', '4907'), ('79', '589', '15', '1', '4907'), ('80', '589', '12', '1', '4907'), ('81', '589', '13', '1', '4907'), ('82', '589', '17', '1', '4907'), ('83', '589', '16', '1', '4907'), ('84', '589', '20', '1', '4907'), ('85', '589', '32', '1', '4907'), ('86', '589', '36', '1', '4907'), ('87', '589', '40', '1', '4907'), ('88', '589', '44', '1', '4907'), ('89', '589', '41', '1', '4907'), ('90', '589', '37', '1', '4907'), ('91', '589', '33', '1', '4907'), ('92', '589', '34', '1', '4907'), ('93', '589', '38', '1', '4907'), ('94', '589', '42', '1', '4907'), ('95', '589', '21', '1', '4907'), ('96', '589', '31', '1', '4907'), ('97', '589', '39', '1', '4907'), ('99', '589', '47', '1', '4907'), ('100', '589', '35', '1', '4907'), ('101', '589', '46', '1', '4907'), ('102', '589', '49', '1', '4907'), ('103', '589', '45', '1', '4907'), ('104', '589', '48', '1', '4907'), ('105', '589', '28', '1', '4907'), ('106', '589', '22', '1', '4907'), ('107', '589', '19', '1', '4907'), ('108', '589', '23', '1', '4907'), ('109', '589', '29', '1', '4907'), ('110', '589', '24', '1', '4907'), ('111', '590', '10', '1', '4908'), ('112', '590', '14', '1', '4908'), ('113', '590', '18', '1', '4908'), ('114', '590', '36', '1', '4908'), ('115', '590', '40', '1', '4908'), ('116', '590', '11', '1', '4908'), ('117', '590', '12', '1', '4908'), ('118', '590', '16', '1', '4908'), ('119', '590', '13', '1', '4908'), ('120', '590', '17', '1', '4908'), ('121', '590', '15', '1', '4908'), ('122', '590', '44', '1', '4908'), ('123', '590', '33', '1', '4908'), ('124', '590', '34', '1', '4908'), ('125', '590', '38', '1', '4908'), ('126', '590', '42', '1', '4908'), ('127', '590', '39', '1', '4908'), ('128', '590', '21', '1', '4908'), ('129', '590', '31', '1', '4908'), ('130', '590', '35', '1', '4908'), ('131', '590', '43', '1', '4908'), ('132', '590', '37', '1', '4908'), ('133', '590', '41', '1', '4908'), ('134', '590', '32', '1', '4908'), ('135', '590', '48', '1', '4908'), ('136', '590', '49', '1', '4908'), ('137', '590', '45', '1', '4908'), ('138', '590', '46', '1', '4908'), ('139', '590', '47', '1', '4908'), ('140', '590', '22', '1', '4908'), ('141', '590', '29', '1', '4908'), ('142', '590', '19', '1', '4908'), ('143', '590', '23', '1', '4908'), ('144', '590', '24', '1', '4908'), ('145', '593', '10', '1', '4911'), ('146', '593', '11', '1', '4911'), ('147', '593', '12', '1', '4911'), ('148', '593', '13', '1', '4911'), ('149', '593', '17', '1', '4911'), ('150', '593', '36', '1', '4911'), ('151', '593', '14', '1', '4911'), ('152', '593', '18', '1', '4911'), ('153', '593', '42', '1', '4911'), ('154', '593', '38', '1', '4911'), ('155', '593', '34', '1', '4911'), ('156', '593', '16', '1', '4911'), ('157', '593', '31', '1', '4911'), ('158', '593', '35', '1', '4911'), ('159', '593', '39', '1', '4911'), ('160', '593', '21', '1', '4911'), ('161', '593', '44', '1', '4911'), ('162', '593', '40', '1', '4911'), ('163', '593', '37', '1', '4911'), ('164', '593', '33', '1', '4911'), ('165', '593', '15', '1', '4911'), ('166', '593', '49', '1', '4911'), ('167', '593', '48', '1', '4911'), ('168', '593', '43', '1', '4911'), ('169', '593', '47', '1', '4911'), ('170', '593', '45', '1', '4911'), ('171', '593', '41', '1', '4911'), ('172', '593', '32', '1', '4911'), ('173', '593', '46', '1', '4911'), ('174', '593', '19', '1', '4911'), ('175', '593', '22', '1', '4911'), ('176', '593', '28', '1', '4911'), ('177', '593', '24', '1', '4911'), ('178', '593', '23', '1', '4911'), ('179', '593', '29', '1', '4911'), ('180', '0', '10', '1', '4912'), ('181', '0', '14', '1', '4912'), ('182', '0', '11', '1', '4912'), ('184', '0', '12', '1', '4912'), ('185', '0', '13', '1', '4912'), ('186', '0', '15', '1', '4912'), ('187', '0', '16', '1', '4912'), ('189', '0', '18', '1', '4912'), ('190', '0', '19', '1', '4912'), ('191', '0', '21', '1', '4912'), ('192', '0', '17', '1', '4912'), ('193', '0', '22', '1', '4912'), ('194', '0', '23', '1', '4912'), ('195', '0', '24', '1', '4912'), ('196', '0', '29', '1', '4912'), ('197', '0', '33', '1', '4912'), ('198', '0', '34', '1', '4912'), ('199', '0', '35', '1', '4912'), ('200', '0', '36', '1', '4912'), ('201', '0', '32', '1', '4912'), ('202', '0', '37', '1', '4912'), ('203', '0', '38', '1', '4912'), ('204', '0', '39', '1', '4912'), ('205', '0', '40', '1', '4912'), ('206', '0', '41', '1', '4912'), ('207', '0', '42', '1', '4912'), ('208', '0', '44', '1', '4912'), ('209', '0', '46', '1', '4912'), ('210', '0', '47', '1', '4912'), ('211', '0', '45', '1', '4912'), ('212', '0', '49', '1', '4912'), ('213', '0', '48', '1', '4912'), ('214', '0', '10', '1', '4914'), ('215', '0', '11', '1', '4914'), ('216', '0', '13', '1', '4914'), ('217', '0', '14', '1', '4914'), ('218', '0', '15', '1', '4914'), ('219', '0', '16', '1', '4914'), ('220', '0', '17', '1', '4914'), ('221', '0', '18', '1', '4914'), ('222', '0', '19', '1', '4914'), ('223', '0', '21', '1', '4914'), ('224', '0', '44', '1', '4914'), ('225', '0', '29', '1', '4914'), ('226', '0', '33', '1', '4914'), ('227', '0', '32', '1', '4914'), ('228', '0', '31', '1', '4914'), ('229', '0', '36', '1', '4914'), ('230', '0', '37', '1', '4914'), ('231', '0', '38', '1', '4914'), ('232', '0', '39', '1', '4914'), ('233', '0', '40', '1', '4914'), ('234', '0', '41', '1', '4914'), ('235', '0', '42', '1', '4914'), ('236', '0', '45', '1', '4914'), ('237', '0', '46', '1', '4914'), ('238', '0', '47', '1', '4914'), ('239', '0', '48', '1', '4914'), ('240', '0', '49', '1', '4914'), ('241', '0', '10', '1', '4917'), ('242', '0', '11', '1', '4917'), ('243', '0', '13', '1', '4917'), ('244', '0', '14', '1', '4917'), ('245', '0', '15', '1', '4917'), ('246', '0', '16', '1', '4917'), ('247', '0', '17', '1', '4917'), ('248', '0', '18', '1', '4917'), ('249', '0', '19', '1', '4917'), ('250', '0', '22', '1', '4917'), ('251', '0', '23', '1', '4917'), ('252', '0', '24', '1', '4917'), ('253', '0', '28', '1', '4917'), ('254', '0', '29', '1', '4917'), ('255', '0', '31', '1', '4917'), ('256', '0', '32', '1', '4917'), ('257', '0', '33', '1', '4917'), ('258', '0', '34', '1', '4917'), ('259', '0', '35', '1', '4917'), ('260', '0', '36', '1', '4917'), ('261', '0', '37', '1', '4917'), ('262', '0', '38', '1', '4917'), ('263', '0', '39', '1', '4917'), ('264', '0', '40', '1', '4917'), ('265', '0', '41', '1', '4917'), ('266', '0', '43', '1', '4917'), ('267', '0', '42', '1', '4917'), ('269', '0', '44', '1', '4917'), ('270', '0', '45', '1', '4917'), ('271', '0', '46', '1', '4917'), ('272', '0', '47', '1', '4917'), ('273', '0', '48', '1', '4917'), ('274', '0', '49', '1', '4917'), ('275', '0', '10', '1', '4921'), ('276', '0', '11', '1', '4921'), ('277', '0', '13', '1', '4921'), ('278', '0', '14', '1', '4921'), ('279', '0', '15', '1', '4921'), ('280', '0', '16', '1', '4921'), ('281', '0', '17', '1', '4921'), ('282', '0', '18', '1', '4921'), ('283', '0', '19', '1', '4921'), ('284', '0', '29', '1', '4921'), ('285', '0', '21', '1', '4921'), ('286', '0', '31', '1', '4921'), ('287', '0', '33', '1', '4921'), ('288', '0', '35', '1', '4921'), ('289', '0', '36', '1', '4921'), ('290', '0', '37', '1', '4921'), ('291', '0', '38', '1', '4921'), ('292', '0', '39', '1', '4921'), ('293', '0', '40', '1', '4921'), ('294', '0', '41', '1', '4921'), ('295', '0', '42', '1', '4921'), ('296', '0', '44', '1', '4921'), ('297', '0', '45', '1', '4921'), ('298', '0', '46', '1', '4921'), ('299', '0', '47', '1', '4921'), ('302', '0', '48', '1', '4921'), ('301', '0', '49', '1', '4921'), ('303', '602', '10', '1', '4921'), ('304', '602', '11', '1', '4921'), ('305', '602', '12', '1', '4921'), ('306', '602', '13', '1', '4921'), ('307', '602', '14', '1', '4921'), ('308', '602', '15', '1', '4921'), ('309', '602', '16', '1', '4921'), ('310', '602', '17', '1', '4921'), ('311', '602', '18', '1', '4921'), ('312', '602', '19', '1', '4921'), ('313', '602', '21', '1', '4921'), ('314', '602', '29', '1', '4921'), ('315', '602', '31', '1', '4921'), ('316', '602', '33', '1', '4921'), ('317', '602', '35', '1', '4921'), ('318', '602', '36', '1', '4921'), ('319', '602', '37', '1', '4921'), ('320', '602', '38', '1', '4921'), ('321', '602', '39', '1', '4921'), ('322', '602', '40', '1', '4921'), ('323', '602', '41', '1', '4921'), ('324', '602', '42', '1', '4921'), ('325', '602', '44', '1', '4921'), ('326', '602', '48', '1', '4921'), ('327', '602', '49', '1', '4921'), ('328', '602', '45', '1', '4921'), ('329', '602', '46', '1', '4921'), ('330', '602', '47', '1', '4921'), ('331', '0', '12', '1', '4922'), ('332', '495', '20', '1', '4789'), ('333', '616', '10', '1', '4938'), ('334', '616', '14', '1', '4938'), ('335', '616', '18', '1', '4938'), ('339', '616', '11', '1', '4938'), ('338', '616', '32', '1', '4938'), ('340', '616', '15', '1', '4938'), ('341', '616', '19', '1', '4938'), ('342', '616', '23', '1', '4938'), ('343', '616', '29', '1', '4938'), ('344', '616', '12', '1', '4938'), ('345', '616', '16', '1', '4938'), ('346', '616', '20', '1', '4938'), ('347', '616', '13', '1', '4938'), ('348', '616', '17', '1', '4938'), ('349', '616', '21', '1', '4938'), ('350', '616', '31', '1', '4938'), ('351', '616', '35', '1', '4938'), ('352', '616', '39', '1', '4938'), ('353', '616', '43', '1', '4938'), ('354', '616', '47', '1', '4938'), ('355', '616', '46', '1', '4938'), ('356', '616', '42', '1', '4938'), ('357', '616', '38', '1', '4938'), ('358', '616', '34', '1', '4938'), ('359', '616', '30', '1', '4938'), ('360', '616', '49', '1', '4938'), ('361', '616', '45', '1', '4938'), ('362', '616', '41', '1', '4938'), ('363', '616', '37', '1', '4938'), ('364', '616', '33', '1', '4938'), ('365', '616', '36', '1', '4938'), ('366', '616', '40', '1', '4938'), ('367', '616', '44', '1', '4938'), ('368', '616', '48', '1', '4938'), ('369', '606', '10', '1', '4926'), ('370', '606', '14', '1', '4926'), ('372', '606', '18', '1', '4926'), ('373', '606', '22', '1', '4926'), ('374', '0', '10', '1', '4943'), ('375', '0', '14', '1', '4943'), ('376', '0', '18', '1', '4943'), ('377', '0', '11', '1', '4943'), ('378', '0', '12', '1', '4943'), ('379', '0', '13', '1', '4943'), ('380', '0', '15', '1', '4943'), ('381', '0', '16', '1', '4943'), ('383', '0', '19', '1', '4943'), ('384', '0', '21', '1', '4943'), ('385', '0', '17', '1', '4943'), ('386', '0', '22', '1', '4943'), ('387', '0', '23', '1', '4943'), ('388', '0', '24', '1', '4943'), ('389', '0', '29', '1', '4943'), ('390', '0', '31', '1', '4943'), ('391', '0', '32', '1', '4943'), ('392', '0', '33', '1', '4943'), ('393', '0', '34', '1', '4943'), ('394', '0', '35', '1', '4943'), ('395', '0', '36', '1', '4943'), ('396', '0', '37', '1', '4943'), ('397', '0', '38', '1', '4943'), ('398', '0', '39', '1', '4943'), ('399', '0', '40', '1', '4943'), ('400', '0', '41', '1', '4943'), ('401', '0', '42', '1', '4943'), ('402', '0', '43', '1', '4943'), ('403', '0', '44', '1', '4943'), ('404', '0', '45', '1', '4943'), ('405', '0', '46', '1', '4943'), ('406', '0', '47', '1', '4943'), ('407', '0', '48', '1', '4943'), ('408', '0', '49', '1', '4943'), ('409', '0', '10', '1', '4948'), ('410', '0', '34', '1', '4980'), ('411', '0', '49', '1', '5008')\");\n\n\n\t//table relacion de categorias\n\t\t$fields = array(\n\t\t\t\t\t\"`idRel` int(11) NOT NULL AUTO_INCREMENT\",\n\t\t\t\t\t\"`idCategoria` int(11) DEFAULT NULL\",\n\t\t\t\t\t\"`idVehiculo` int(11) DEFAULT NULL\",\n\t\t\t\t\t\"`monto` decimal(10,2) DEFAULT NULL\",\n\t\t\t\t\t\"`activo` tinyint(4) DEFAULT NULL\",\n\t\t\t\t\t\"`concepto` varchar(255) DEFAULT NULL\",\n\t\t\t\t\t\"`idOrden` int(11) DEFAULT NULL\",\n\t\t\t\t);\n\n\t\t$this->dbforge->add_field($fields);\n\t\t$this->dbforge->add_key('idRel', TRUE);\n\t\t$this->dbforge->create_table('relcategorias', TRUE);\n\t\t$this->db->simple_query('ALTER TABLE `relcategorias` AUTO_INCREMENT=2135 DEFAULT CHARSET=utf8');\n\t\t$this->db->simple_query(\"INSERT INTO `relcategorias` VALUES ('1758', '7', '527', '18.41', '1', 'MTE', '4821'), ('1757', '7', '527', '100.00', '1', 'COSTO', '4821'), ('1756', '6', '527', '550.00', '1', 'COSTO', '4821'), ('4', '6', '528', '2000.00', '1', 'Cofre', '4822'), ('5', '7', '528', '1300.00', '1', 'cofre', '4822'), ('6', '6', '20', '1000.00', '1', 'asaz', '4823'), ('7', '6', '423', '1200.00', '1', 'Salpicadera izquierda', '4821'), ('8', '7', '423', '1500.00', '1', 'Salpicadera izquierda', '4821'), ('9', '6', '529', '1200.00', '1', 'Cofre', '4822'), ('10', '6', '529', '500.00', '1', 'Puerta trasera izquierda', '4822'), ('11', '7', '529', '1300.00', '1', 'cofre', '4822'), ('12', '7', '529', '1200.00', '1', 'puerta trasera izquierda', '4822'), ('13', '6', '529', '500.00', '1', 'puerta delantera derecha', '4822'), ('14', '7', '529', '1300.00', '1', 'puerta delantera derecha', '4822'), ('15', '6', '514', '300.00', '1', 'Facia trasera', '4823'), ('16', '7', '514', '1200.00', '1', 'Facia trasera', '4823'), ('17', '6', '0', '100.00', '1', 'cofre', '4824'), ('18', '7', '0', '1200.00', '1', 'cofre', '4824'), ('19', '7', '0', '1200.00', '1', 'facia delantera', '4824'), ('20', '11', '0', '950.00', '1', 'Facia delantera nueva', '4824'), ('21', '6', '0', '0.00', '1', '0', '4824'), ('22', '7', '0', '0.00', '1', '0', '4824'), ('23', '7', '0', '0.00', '1', '0', '4824'), ('24', '11', '0', '0.00', '1', '0', '4824'), ('25', '6', '37', '1200.00', '1', 'Salpicadera izquierda', '4331'), ('26', '7', '37', '1100.00', '1', 'salpicadera izquierda', '4331'), ('27', '6', '557', '1200.00', '1', 'cofre', '4851'), ('28', '7', '557', '1200.00', '1', 'cofre', '4851'), ('29', '6', '557', '0.00', '1', '0', '4851'), ('30', '7', '557', '0.00', '1', '0', '4851'), ('31', '11', '60', '800.00', '1', 'Reemplazo de silenciador', '4354'), ('32', '8', '0', '750.00', '1', 'estetica exterior', '4853'), ('33', '6', '558', '300.00', '1', 'facia delantera', '4852'), ('34', '6', '558', '400.00', '1', 'salpicadera izquierda', '4852'), ('35', '7', '558', '600.00', '1', 'facia delantera', '4852'), ('36', '7', '558', '700.00', '1', 'salpicadera izquierda', '4852'), ('37', '11', '558', '20.00', '1', 'cambio carril izquierdo facia delantera', '4852'), ('38', '8', '517', '750.00', '1', 'estetica exterior', '4853'), ('1696', '6', '624', '850.00', '1', 'SALPICADERA IZQUIERDA', '4947'), ('40', '9', '89', '700.00', '1', 'Afinación mayor', '4383'), ('41', '11', '89', '1885.00', '1', 'Kit de afinación mayor', '4383'), ('42', '6', '97', '1100.00', '1', 'Costado derecho', '4391'), ('43', '6', '97', '300.00', '1', 'Garganta / toma de gasolina', '4391'), ('44', '6', '97', '200.00', '1', 'Moldura de costado derecho', '4391'), ('45', '6', '97', '300.00', '1', 'Moldura de costado izquierdo', '4391'), ('46', '6', '97', '150.00', '1', 'Lodera derecha de costado derecho', '4391'), ('47', '6', '97', '300.00', '1', 'Mofle', '4391'), ('48', '6', '97', '400.00', '1', 'Poste trasero derecho de cabina parte inferior', '4391'), ('49', '7', '97', '1100.00', '1', 'Costado derecho', '4391'), ('51', '9', '97', '500.00', '1', 'Sustitución de amortiguadores traseros', '4391'), ('52', '11', '97', '1014.00', '1', 'Amortiguadores traseros (Refacciones)', '4391'), ('82', '11', '99', '1450.00', '1', 'Refacciones de frenos delanteros', '4393'), ('60', '7', '97', '500.00', '1', 'Moldura de costado izquierdo', '4391'), ('61', '7', '97', '400.00', '1', 'Retoque de poste trasero derecho de cabina parte inferior', '4391'), ('90', '6', '108', '700.00', '1', 'Facia delantera lado derecho', '4402'), ('78', '11', '99', '1000.00', '1', 'Instalación y programación de computadora', '4393'), ('77', '11', '99', '6500.00', '1', 'Suministro de computadora principal (uso)', '4393'), ('75', '9', '99', '400.00', '1', 'Servicio de frenos traseros (limpieza)', '4393'), ('76', '9', '99', '800.00', '1', 'Servicio de frenos delanteros', '4393'), ('91', '6', '108', '200.00', '1', 'Puerta del izq (ajuste)', '4402'), ('86', '6', '102', '790.00', '1', 'Varios', '4396'), ('92', '7', '108', '700.00', '1', 'Retoque Facia delantera lado derecho', '4402'), ('93', '8', '108', '750.00', '1', 'Estetica exterior', '4402'), ('99', '7', '53', '1748.67', '1', 'Pintura', '4347'), ('98', '6', '53', '2941.00', '1', 'Hojalatería', '4347'), ('100', '6', '68', '2017.25', '1', 'Hojalatería', '4362'), ('101', '7', '68', '2167.97', '1', 'Pintura', '4362'), ('102', '6', '68', '0.00', '1', '0', '4362'), ('103', '7', '68', '0.00', '1', '0', '4362'), ('104', '6', '69', '1200.00', '1', 'Hojalatería', '4363'), ('105', '7', '69', '671.38', '1', 'Pintura', '4363'), ('106', '6', '73', '4437.50', '1', 'Hojalatería', '4367'), ('107', '7', '73', '1961.48', '1', 'Mo Pintura', '4367'), ('108', '7', '73', '1570.00', '1', 'Mat Pintura', '4367'), ('109', '6', '76', '3412.50', '1', 'Hojalatería', '4370'), ('110', '7', '76', '1080.00', '1', 'Mo Pintura', '4370'), ('111', '7', '76', '1293.80', '1', 'Mat Pintura', '4370'), ('112', '6', '78', '5100.00', '1', 'Hojalatería', '4372'), ('113', '7', '78', '1570.00', '1', 'Mo Pintura', '4372'), ('114', '7', '78', '1796.23', '1', 'Mat Pintura', '4372'), ('115', '11', '78', '750.00', '1', 'Brazo Susp Del Iz', '4372'), ('116', '11', '78', '230.00', '1', 'Rotula del Izq', '4372'), ('117', '11', '78', '150.00', '1', 'Bieleta I dirección', '4372'), ('118', '6', '79', '3037.50', '1', 'Hojalatería', '4373'), ('119', '7', '79', '1082.72', '1', 'Mat Pintura', '4373'), ('120', '7', '79', '958.75', '1', 'Mo Pintura', '4373'), ('125', '7', '80', '1117.50', '1', 'Mo Pintura', '4374'), ('124', '6', '80', '4900.00', '1', 'Hojalatería', '4374'), ('126', '7', '80', '1117.15', '1', 'Mat Pintura', '4374'), ('127', '11', '80', '800.00', '1', 'Juego Sujec Facia trasera', '4374'), ('128', '11', '80', '180.00', '1', 'DYM llanta en rin', '4374'), ('129', '6', '115', '700.00', '1', 'Instalación y adaptación de radiador', '4409'), ('130', '7', '115', '200.00', '1', 'Retoque bases de radiador', '4409'), ('131', '11', '115', '4070.00', '1', 'Radiador de motor', '4409'), ('132', '11', '115', '60.00', '1', 'Anticongelante', '4409'), ('133', '6', '90', '2587.50', '1', 'Mo Hojalatería', '4384'), ('134', '7', '90', '1023.67', '1', 'Mat Pintura', '4384'), ('135', '7', '90', '897.50', '1', 'Mo Pintura', '4384'), ('136', '6', '93', '2412.00', '1', 'Mo Hojalatería', '4387'), ('137', '7', '93', '1355.91', '1', 'Mat Pintura', '4387'), ('138', '7', '93', '958.75', '1', 'Mo Pintura', '4387'), ('139', '6', '101', '5862.50', '1', 'Mo Hojalateria', '4395'), ('140', '7', '101', '1365.50', '1', 'Mat Pintura', '4395'), ('141', '7', '101', '1037.50', '1', 'Mo Pintura', '4395'), ('142', '11', '101', '360.00', '1', 'DYM 2 Lantas en rin', '4395'), ('143', '11', '101', '750.00', '1', 'Amortiguador del Izq', '4395'), ('144', '11', '101', '750.00', '1', 'Amortiguador del der', '4395'), ('145', '11', '101', '900.00', '1', 'Buje del Izq', '4395'), ('146', '11', '101', '900.00', '1', 'Buje del Der', '4395'), ('147', '6', '104', '4100.00', '1', 'Mo Hojalatería', '4398'), ('148', '7', '104', '1282.50', '1', 'Mo Pintura', '4398'), ('149', '7', '104', '1025.10', '1', 'Mat Pintura', '4398'), ('150', '6', '106', '6250.00', '1', 'Mo Hojalateria', '4400'), ('151', '7', '106', '1481.25', '1', 'Mo Pintura', '4400'), ('152', '7', '106', '1609.15', '1', 'Mat Pintura', '4400'), ('153', '11', '106', '265.00', '1', 'Moldura marco puerta del derecha', '4400'), ('154', '11', '106', '265.00', '1', 'Moldura col dl puerta trasera derecha', '4400'), ('155', '11', '106', '265.00', '1', 'Moldura trasera puerta trasera derecha', '4400'), ('156', '11', '106', '1062.00', '1', 'Sensor RPM Tra D', '4400'), ('157', '11', '106', '2656.00', '1', 'LLanta trasera derecha', '4400'), ('158', '11', '106', '1490.00', '1', 'Amortiguador trasero derecho', '4400'), ('159', '6', '113', '2275.00', '1', 'Mo Hojalatería', '4407'), ('160', '7', '113', '252.54', '1', 'Mat pintura', '4407'), ('161', '7', '113', '308.75', '1', 'Mo Pintura', '4407'), ('162', '11', '113', '80.00', '1', 'Rodamiento tra Iz', '4407'), ('163', '11', '113', '250.00', '1', 'Amortiguador tra izq', '4407'), ('164', '11', '113', '95.00', '1', 'Buje tra izq', '4407'), ('173', '6', '62', '480.00', '1', 'Soporte interno izquierdo facia del', '4356'), ('172', '6', '62', '72.00', '1', 'Soporte int derecho facia del', '4356'), ('171', '6', '62', '192.00', '1', 'Sustitución Facia del', '4356'), ('174', '6', '62', '420.00', '1', 'Salpicadera derecha', '4356'), ('175', '7', '62', '542.50', '1', 'Retoque Salpicadera derecha', '4356'), ('176', '7', '62', '264.00', '1', 'Mat de pintura', '4356'), ('177', '6', '91', '24.00', '1', 'Ajuste de faros', '4385'), ('178', '6', '91', '420.00', '1', 'Marco de radiador', '4385'), ('179', '6', '91', '420.00', '1', 'Cambiar salpicadera del derecha', '4385'), ('180', '6', '91', '240.00', '1', 'Alma facia delantera', '4385'), ('181', '6', '91', '12.00', '1', 'Sustitución faro derecho', '4385'), ('182', '6', '91', '24.00', '1', 'Sustituir Bomba sistema limpia', '4385'), ('183', '6', '91', '60.00', '1', 'Facia del sustitución', '4385'), ('184', '6', '91', '480.00', '1', 'Grapas', '4385'), ('185', '6', '91', '60.00', '1', 'Deposito de agua sustituir', '4385'), ('186', '6', '91', '360.00', '1', 'Caja de rueda del derecha', '4385'), ('187', '6', '91', '60.00', '1', 'Desmontar faro', '4385'), ('188', '6', '91', '540.00', '1', 'Cofre', '4385'), ('189', '7', '91', '84.79', '1', 'Caja de rueda del derecha', '4385'), ('190', '7', '91', '121.98', '1', 'Salpicadera derecha', '4385'), ('191', '7', '91', '27.60', '1', 'Alma facia daño medio', '4385'), ('192', '11', '91', '180.00', '1', 'Focos', '4385'), ('193', '7', '91', '31.80', '1', 'Alma facia daño medio', '4385'), ('194', '7', '91', '74.40', '1', 'Marco radiador', '4385'), ('195', '7', '91', '109.55', '1', 'Mat pintura', '4385'), ('196', '7', '91', '74.40', '1', 'Caja de rueda del derecha', '4385'), ('197', '7', '91', '301.53', '1', 'Facia del', '4385'), ('198', '7', '91', '93.60', '1', 'Salpicadera derecha', '4385'), ('199', '7', '91', '84.79', '1', 'Marco de radiador', '4385'), ('200', '7', '91', '1273.54', '1', 'Cofre', '4385'), ('201', '7', '91', '213.60', '1', 'Tiempo', '4385'), ('223', '7', '91', '0.00', '1', '0', '4385'), ('224', '7', '91', '0.00', '1', '0', '4385'), ('225', '7', '91', '0.00', '1', '0', '4385'), ('226', '7', '91', '0.00', '1', '0', '4385'), ('227', '7', '91', '0.00', '1', '0', '4385'), ('228', '7', '91', '0.00', '1', '0', '4385'), ('229', '7', '91', '0.00', '1', '0', '4385'), ('230', '7', '91', '0.00', '1', '0', '4385'), ('231', '7', '91', '0.00', '1', '0', '4385'), ('232', '11', '91', '0.00', '1', '0', '4385'), ('233', '6', '94', '60.00', '1', 'Moldura facia delantera', '4388'), ('234', '6', '94', '180.00', '1', 'Alma facia delantera', '4388'), ('235', '6', '94', '60.00', '1', 'Cofre D+M', '4388'), ('236', '6', '94', '18.00', '1', 'Tiempo de reparación', '4388'), ('237', '6', '94', '60.00', '1', 'Rec Espejo lateral izquierdo', '4388'), ('238', '6', '94', '660.00', '1', 'Facia delantera', '4388'), ('239', '6', '94', '252.00', '1', 'Salpicadera izquierda', '4388'), ('240', '6', '94', '60.00', '1', 'Desmontar cub para facia del', '4388'), ('241', '7', '94', '115.05', '1', 'Materiales', '4388'), ('242', '7', '94', '76.56', '1', 'Espejo lateral izq', '4388'), ('243', '7', '94', '123.60', '1', 'Salpicadera izquierda', '4388'), ('244', '7', '94', '260.40', '1', 'Tiempo de reparación', '4388'), ('245', '7', '94', '147.54', '1', 'Salpicadera izquierda', '4388'), ('246', '7', '94', '54.00', '1', 'Espejo lateral izquierdo', '4388'), ('247', '7', '94', '793.99', '1', 'Facia del', '4388'), ('248', '6', '94', '0.00', '1', '0', '4388'), ('249', '6', '94', '0.00', '1', '0', '4388'), ('250', '6', '94', '0.00', '1', '0', '4388'), ('251', '6', '94', '0.00', '1', '0', '4388'), ('252', '6', '94', '0.00', '1', '0', '4388'), ('253', '6', '94', '0.00', '1', '0', '4388'), ('254', '6', '94', '0.00', '1', '0', '4388'), ('255', '6', '94', '0.00', '1', '0', '4388'), ('256', '7', '94', '0.00', '1', '0', '4388'), ('257', '7', '94', '0.00', '1', '0', '4388'), ('258', '7', '94', '0.00', '1', '0', '4388'), ('259', '7', '94', '0.00', '1', '0', '4388'), ('260', '7', '94', '0.00', '1', '0', '4388'), ('261', '7', '94', '0.00', '1', '0', '4388'), ('262', '7', '94', '0.00', '1', '0', '4388'), ('263', '6', '0', '0.00', '1', 'Sustitución tapa de motor', '4863'), ('264', '6', '0', '0.00', '1', 'Cajillo inferior trasero', '4863'), ('265', '6', '0', '0.00', '1', 'Salpicadera derecha trasera', '4863'), ('266', '6', '0', '0.00', '1', 'Sustitución Defensa trasera', '4863'), ('267', '6', '0', '0.00', '1', 'Braso izq defensa trasera', '4863'), ('268', '6', '0', '0.00', '1', 'Braso der defensa trasera', '4863'), ('269', '7', '0', '0.00', '1', 'Tapa de motor', '4863'), ('270', '7', '0', '0.00', '1', 'Cajillo inferior trasero', '4863'), ('271', '7', '0', '0.00', '1', 'Ret salpicadera derecha trasera', '4863'), ('272', '7', '0', '0.00', '1', 'Defensa trasera', '4863'), ('285', '6', '565', '0.00', '1', 'BISAGRAS DE PUERTA DELANTERA IZQUIERDA', '4863'), ('284', '6', '565', '0.00', '1', 'Sustitución PUERTA DELANTERA IZQUIERDA', '4863'), ('283', '6', '565', '0.00', '1', 'Sustitución SALPICADERA IZQUIERDA', '4863'), ('286', '6', '565', '0.00', '1', 'PUERTA TRASERA IZQUIERDA', '4863'), ('287', '6', '565', '0.00', '1', 'ESTRIBO IZQUIERDO', '4863'), ('288', '6', '565', '0.00', '1', 'COSTADO IZQUIERDO', '4863'), ('289', '6', '565', '0.00', '1', 'FACIA TRASERA', '4863'), ('290', '7', '565', '0.00', '1', 'SALPICADERA IZQUIERDA', '4863'), ('291', '7', '565', '0.00', '1', 'PUERTA DELANTERA IZQUIERDA', '4863'), ('292', '7', '565', '0.00', '1', 'PUERTA TRASERA IZQUIERDA', '4863'), ('293', '7', '565', '0.00', '1', 'Retoque ESTRIBO IZQUIERDO', '4863'), ('294', '7', '565', '0.00', '1', 'Retoque COSTADO IZQUIERDO', '4863'), ('295', '7', '565', '0.00', '1', 'Retoque FACIA TRASERA', '4863'), ('296', '9', '565', '0.00', '1', 'DESMONTAR SUSPENSIÓN DELANTERA IZQ PARA CAMBIO DE COMPONENTES', '4863'), ('297', '6', '0', '700.00', '1', 'Puerta trasera izquierda parte inferior', '4865'), ('298', '6', '0', '300.00', '1', 'Ajuste Facia trasera', '4865'), ('299', '6', '0', '900.00', '1', 'Facia delantera', '4865'), ('300', '6', '0', '0.00', '1', 'AJUSTE DE TOLVAS INFERIORES DE MOTOR', '4865'), ('301', '7', '0', '650.00', '1', 'Retoque puerta trasera izquierda parte inferior', '4865'), ('302', '7', '0', '1100.00', '1', 'Facia trasera', '4865'), ('303', '7', '0', '1100.00', '1', 'SALPICADERA DERECHA', '4865'), ('304', '7', '0', '1100.00', '1', 'Facia delantera ', '4865'), ('305', '7', '0', '0.00', '1', 'Pinceleada general', '4865'), ('306', '8', '0', '800.00', '1', 'Estetica interior', '4865'), ('307', '8', '0', '750.00', '1', 'Estetica exterior', '4865'), ('308', '8', '0', '500.00', '1', ' Moldura facia trasera', '4865'), ('309', '6', '566', '700.00', '1', 'PUERTA TRASERA IZQUIERDA (PARTE INFERIOR) AREA DAÑADA', '4864'), ('310', '6', '566', '300.00', '1', 'FACIA TRASERA (Y AJUSTE)', '4864'), ('311', '7', '566', '650.00', '1', 'PUERTA TRASERA IZQUIERDA (PARTE INFERIOR) AREA DAÑADA', '4864'), ('312', '7', '566', '1100.00', '1', 'FACIA TRASERA (Y AJUSTE)', '4864'), ('313', '6', '566', '900.00', '1', 'Facia delantera', '4864'), ('314', '7', '566', '1100.00', '1', 'SALPICADERA DERECHA', '4864'), ('315', '7', '566', '1100.00', '1', 'Facia delantera', '4864'), ('321', '6', '0', '800.00', '1', 'Facia delantera', '4866'), ('317', '7', '566', '0.00', '1', 'Pinceleada general', '4864'), ('318', '7', '566', '500.00', '1', 'Moldura de facia trasera', '4864'), ('319', '8', '566', '800.00', '1', 'Estética interior', '4864'), ('320', '8', '566', '750.00', '1', 'Estética exterior', '4864'), ('322', '7', '0', '1200.00', '1', 'Facia delantera', '4866'), ('323', '6', '567', '800.00', '1', 'Facia delantera', '4865'), ('324', '7', '567', '1200.00', '1', 'Facia delantera', '4865'), ('325', '6', '0', '200.00', '1', 'Desmontar y montar frente', '4867'), ('337', '6', '568', '200.00', '1', 'SELLLADO DE UNIDAD IZQUIERDA', '4866'), ('327', '11', '0', '1700.00', '1', 'Reemplazo de balastro unidad izquierda', '4867'), ('334', '6', '0', '200.00', '1', 'Sellar unidad izquierda', '4867'), ('336', '6', '568', '200.00', '1', 'DESMONTAJE Y MONTAJE DE FRENTE', '4866'), ('338', '11', '568', '1700.00', '1', 'REEMPLAZO DE BALASTRO DE UNIDAD IZQUIERDA', '4866'), ('339', '8', '521', '650.00', '1', 'Estética Interior', '4859'), ('340', '6', '569', '0.00', '1', 'Facia delantera', '4867'), ('341', '6', '569', '0.00', '1', 'Sustituir refuerzo de facia delantera', '4867'), ('342', '7', '569', '0.00', '1', 'Facia delantera', '4867'), ('343', '6', '0', '0.00', '1', 'FACIA DELANTERA', '4879'), ('344', '6', '0', '0.00', '1', 'Sustitución REFUERZO FACIA DELANTERA', '4879'), ('345', '7', '0', '0.00', '1', 'FACIA DELANTERA', '4879'), ('346', '7', '0', '0.00', '1', 'REFUERZO FACIA DELANTERA', '4879'), ('347', '6', '0', '0.00', '1', 'MARCO DE RADIADOR', '4879'), ('348', '6', '0', '0.00', '1', 'COMPACTOS DELANTEROS', '4879'), ('349', '6', '0', '0.00', '1', 'COFRE ( AJUSTAR)', '4879'), ('350', '6', '0', '0.00', '1', 'Sustitución RADIADOR', '4879'), ('351', '7', '0', '0.00', '1', 'Retoque MARCO DE RADIADOR', '4879'), ('352', '6', '0', '0.00', '1', 'Facia delantera', '4880'), ('353', '7', '0', '0.00', '1', 'Facia delantera', '4880'), ('354', '6', '0', '0.00', '1', 'Facia delantera', '4881'), ('355', '6', '0', '0.00', '1', 'Sustitución Refuerzo facia delantera', '4881'), ('356', '6', '0', '0.00', '1', 'Marco de radiador', '4881'), ('357', '7', '0', '0.00', '1', 'Facia delantera', '4881'), ('358', '7', '0', '0.00', '1', 'Refuerzo de facia delantera', '4881'), ('359', '7', '0', '0.00', '1', 'Retoque Marco de radiador', '4881'), ('368', '6', '0', '0.00', '1', 'COFRE ( AJUSTAR)', '4881'), ('1077', '11', '573', '2272.39', '1', 'T O T REP. DE RIN', '4882'), ('375', '6', '0', '0.00', '1', 'Garantía', '4883'), ('366', '6', '0', '0.00', '1', 'Compactos delanteros', '4881'), ('367', '6', '0', '0.00', '1', 'Sustitución de radiador', '4881'), ('372', '7', '0', '850.00', '1', 'Rin', '4882'), ('377', '8', '0', '700.00', '1', 'Estética interior', '4885'), ('378', '8', '0', '600.00', '1', 'Estética exterior', '4885'), ('381', '6', '0', '0.00', '1', 'Sustitución Facia delantera', '4886'), ('382', '6', '0', '0.00', '1', 'Sustitución tolva de montoventiladores', '4886'), ('383', '6', '0', '0.00', '1', 'Marco de radiador', '4886'), ('384', '6', '0', '0.00', '1', 'Lodera de salpicadera izquierda', '4886'), ('385', '7', '0', '0.00', '1', 'Facia delantera', '4886'), ('386', '7', '0', '0.00', '1', 'Retoque Marco de radiador', '4886'), ('395', '6', '110', '180.00', '1', 'Moldura puer del izq', '4404'), ('394', '6', '110', '72.00', '1', 'Sust Facia del', '4404'), ('393', '6', '110', '300.00', '1', 'Caja rueda del izq', '4404'), ('396', '9', '110', '228.00', '1', 'semieje del izq ', '4404'), ('397', '11', '110', '60.00', '1', 'Moldura protec salpic izq', '4404'), ('398', '11', '110', '60.00', '1', 'Montar/Balancear llanta del izq', '4404'), ('399', '6', '110', '180.00', '1', 'Spoiler estribo izq', '4404'), ('400', '6', '110', '300.00', '1', 'Marco radiador', '4404'), ('401', '6', '110', '240.00', '1', 'Cofre', '4404'), ('404', '6', '110', '540.00', '1', 'Puerta del izq', '4404'), ('403', '11', '110', '252.00', '1', 'Alineación', '4404'), ('405', '9', '110', '48.00', '1', 'Amortiguador del izq d+m', '4404'), ('406', '11', '110', '72.00', '1', 'Balanceo', '4404'), ('407', '6', '110', '12.00', '1', 'Emblema salp izq d+m', '4404'), ('408', '6', '110', '180.00', '1', 'Base faro izq', '4404'), ('409', '6', '110', '300.00', '1', 'Poste A Izq', '4404'), ('412', '6', '110', '60.00', '1', 'Faro izq d+m', '4404'), ('413', '6', '110', '60.00', '1', 'Salpicadera izq d+m', '4404'), ('414', '6', '110', '36.00', '1', 'Deposito limpiacrist d+m', '4404'), ('415', '9', '110', '24.00', '1', 'Flecha motriz izq/der d+m', '4404'), ('416', '11', '110', '300.00', '1', 'grapas', '4404'), ('417', '6', '110', '144.00', '1', 'Mangueta del izq d+m', '4404'), ('418', '7', '110', '144.00', '1', 'Retoque Marco radiador', '4404'), ('419', '7', '110', '33.02', '1', 'Retoque Poste A izq ', '4404'), ('420', '7', '110', '131.68', '1', 'retoque Spoiler estribo ', '4404'), ('421', '7', '110', '131.27', '1', 'retoque caja rueda del izq', '4404'), ('422', '7', '110', '109.20', '1', 'retoque caja rueda del der', '4404'), ('423', '7', '110', '136.22', '1', 'retoque conj marco radiador', '4404'), ('424', '7', '110', '66.00', '1', 'retoque Spoiler estribo izq', '4404'), ('425', '7', '110', '116.95', '1', 'Mat pintura', '4404'), ('426', '7', '110', '72.73', '1', 'Moldu puer del izq retoque', '4404'), ('427', '7', '110', '292.80', '1', 'Puerta del izq', '4404'), ('428', '7', '110', '295.19', '1', 'Salpicadera izq', '4404'), ('429', '9', '110', '24.00', '1', 'Amortiguador del izq d+m', '4404'), ('430', '9', '110', '144.00', '1', 'Buje del der d+m', '4404'), ('455', '6', '111', '24.00', '1', 'Facia trasera sust', '4405'), ('433', '7', '110', '350.87', '1', 'Puerta del izq', '4404'), ('434', '7', '110', '954.52', '1', 'Cofre', '4404'), ('435', '7', '110', '260.40', '1', 'Tiempo de reparación', '4404'), ('436', '7', '110', '42.00', '1', 'Moldura puerta del izq', '4404'), ('437', '7', '110', '27.60', '1', 'Poste a-Izq retoque', '4404'), ('450', '8', '110', '100.00', '1', 'Pulida faro derecho', '4404'), ('452', '7', '576', '1200.00', '1', 'facia delantera', '4887'), ('453', '6', '111', '60.00', '1', 'Ajuste facia trasera d+m', '4405'), ('454', '6', '111', '168.00', '1', 'Alma facia trasera', '4405'), ('456', '7', '111', '90.50', '1', 'Mat pintura', '4405'), ('457', '7', '111', '791.00', '1', 'Facia trasera', '4405'), ('458', '7', '111', '39.40', '1', 'Retoque alma facia trasera', '4405'), ('459', '7', '111', '171.60', '1', 'Tiempo de reparación', '4405'), ('460', '11', '111', '132.00', '1', 'Grapas', '4405'), ('476', '7', '124', '675.00', '1', 'Mo Pintura', '4418'), ('471', '7', '119', '1318.75', '1', 'Mo Pintura', '4413'), ('470', '7', '119', '1681.71', '1', 'Mat pintura', '4413'), ('469', '6', '119', '3493.75', '1', 'Mo Hojalatería', '4413'), ('475', '6', '124', '5625.00', '1', 'Mo Hojalatería', '4418'), ('477', '7', '124', '820.14', '1', 'Mat Pintura', '4418'), ('478', '11', '124', '950.00', '1', 'T.O.T Reparación tuberias a/C', '4418'), ('479', '11', '124', '980.00', '1', 'Soporte del motor', '4418'), ('487', '6', '120', '1000.00', '1', 'Defensa delantera cromada', '4414'), ('485', '6', '118', '400.00', '1', 'Hacer cerradura de puerta', '4412'), ('488', '6', '120', '300.00', '1', 'Parilla', '4414'), ('489', '6', '120', '500.00', '1', 'Marco de parrilla', '4414'), ('490', '6', '120', '800.00', '1', 'Salpicadera derecha', '4414'), ('491', '6', '120', '900.00', '1', 'Refuerzo de defensa delantera', '4414'), ('492', '7', '120', '600.00', '1', 'Spoiler de defensa delantera', '4414'), ('493', '7', '120', '1200.00', '1', 'Salpicadera derecha', '4414'), ('494', '7', '120', '250.00', '1', 'Aplicación de resina a faros', '4414'), ('502', '6', '120', '0.00', '1', '0', '4414'), ('496', '11', '120', '400.00', '1', 'Moldura de defensa del superior (antiderrapante)', '4414'), ('497', '11', '120', '600.00', '1', 'Moldura de defensa del inferior', '4414'), ('498', '6', '120', '300.00', '1', 'Sust defensa delantera superior', '4414'), ('499', '7', '120', '1000.00', '1', 'Defensa delantera superior', '4414'), ('511', '7', '0', '0.00', '1', 'marcos de puertas traseras parte inferior', '4889'), ('501', '11', '120', '793.00', '1', 'Defensa delantera suerior', '4414'), ('504', '8', '120', '250.00', '1', 'Pulida de faros', '4414'), ('510', '6', '0', '0.00', '1', 'ajuste de core, manija de puerta del izq (garantia)', '4889'), ('512', '6', '126', '120.00', '1', 'Marco radiador superior', '4420'), ('513', '6', '126', '24.00', '1', 'Tiempo de reparación', '4420'), ('514', '6', '126', '24.00', '1', 'Faro I D+m', '4420'), ('515', '6', '126', '12.00', '1', 'Ajuste de faros', '4420'), ('516', '6', '126', '480.00', '1', 'Facia delantera', '4420'), ('517', '6', '126', '48.00', '1', 'Deposito wipers d+m', '4420'), ('518', '6', '126', '300.00', '1', 'Salpicadera izq', '4420'), ('519', '7', '126', '575.73', '1', 'Retoque facia delantera', '4420'), ('520', '7', '126', '304.87', '1', 'Retoque salpicadera izquierda', '4420'), ('521', '7', '126', '115.05', '1', 'Mat Pintura', '4420'), ('522', '7', '126', '260.40', '1', 'Tiempo de reparación', '4420'), ('544', '7', '129', '615.00', '1', 'Mo Pintura', '4423'), ('543', '7', '129', '738.74', '1', 'Mat Pintura', '4423'), ('542', '6', '129', '3175.00', '1', 'Mo Hojalatería', '4423'), ('541', '7', '127', '1113.75', '1', 'Mo Pintura', '4421'), ('535', '7', '127', '1364.28', '1', 'Mat Pintura', '4421'), ('534', '6', '127', '2412.50', '1', 'Mo Hojalatería', '4421'), ('548', '6', '135', '290.00', '1', 'Mo Hojalatería', '4429'), ('549', '7', '135', '191.86', '1', 'Mat Pintura', '4429'), ('550', '7', '135', '170.00', '1', 'Mo Pintura', '4429'), ('555', '7', '156', '2849.59', '1', 'Mat Pintura', '4450'), ('554', '6', '156', '4981.25', '1', 'Mo Hojalatería', '4450'), ('556', '7', '156', '2357.50', '1', 'Mo Pintura', '4450'), ('557', '11', '156', '763.82', '1', 'Mold tapa cajuela', '4450'), ('563', '7', '137', '6150.00', '1', 'Pintura', '4431'), ('562', '6', '137', '11050.00', '1', 'Hojalatería', '4431'), ('564', '11', '137', '751.00', '1', 'Calavera derecha', '4431'), ('565', '11', '137', '400.00', '1', 'Brazos de defensa trasera', '4431'), ('566', '11', '137', '800.00', '1', 'Defensa trasera', '4431'), ('567', '11', '137', '550.00', '1', 'Antiderrapante de defensa trasera', '4431'), ('568', '11', '137', '200.00', '1', 'Kit de grapas', '4431'), ('569', '11', '137', '501.00', '1', 'Luz portaplacas izq', '4431'), ('586', '6', '138', '1300.00', '1', 'Facia delantera', '4432'), ('587', '6', '138', '100.00', '1', 'd+m calavera', '4432'), ('588', '7', '138', '1100.00', '1', 'Facia delantera', '4432'), ('582', '11', '137', '2000.00', '1', 'Tapa trasera desmontada original', '4431'), ('589', '8', '138', '750.00', '1', 'Estética interior', '4432'), ('590', '8', '138', '750.00', '1', 'Estética exterior', '4432'), ('591', '11', '138', '3418.00', '1', 'Calavera', '4432'), ('601', '8', '0', '0.00', '1', '0', '4891'), ('600', '8', '0', '0.00', '1', '0', '4891'), ('599', '8', '0', '750.00', '1', 'estetica exterior', '4891'), ('598', '8', '0', '750.00', '1', 'estetica interior', '4891'), ('602', '6', '0', '850.00', '1', 'COSTADO IZQUIERDO (AREA DAÑADA)', '4892'), ('603', '6', '0', '500.00', '1', 'EXTENSION DE COSTADO IZQUIERDO', '4892'), ('604', '6', '0', '350.00', '1', 'FACIA TRASERA (Y AJUSTE)', '4892'), ('605', '6', '0', '300.00', '1', 'AJUSTE DE TAPA CAJUELA', '4892'), ('606', '6', '0', '100.00', '1', 'REEMPLAZO DE CALAVERA IZQUIERDA', '4892'), ('607', '7', '0', '600.00', '1', 'COSTADO IZQUIERDO (AREA DAÑADA)', '4892'), ('608', '7', '0', '500.00', '1', 'EXTENSION DE COSTADO IZQUIERDO', '4892'), ('609', '7', '0', '800.00', '1', 'FACIA TRASERA (Y AJUSTE)', '4892'), ('610', '6', '0', '0.00', '1', '0', '4892'), ('611', '6', '0', '0.00', '1', '0', '4892'), ('612', '6', '0', '0.00', '1', '0', '4892'), ('613', '6', '0', '0.00', '1', '0', '4892'), ('614', '6', '0', '0.00', '1', '0', '4892'), ('615', '7', '0', '0.00', '1', '0', '4892'), ('616', '7', '0', '0.00', '1', '0', '4892'), ('617', '7', '0', '0.00', '1', '0', '4892'), ('618', '9', '145', '8200.00', '1', 'Servicio de mecanica', '4439'), ('619', '11', '145', '2450.00', '1', 'Servicio eléctrico', '4439'), ('620', '11', '145', '2800.00', '1', 'Escaneo a 3 camiones y un tractor', '4439'), ('621', '11', '145', '1300.00', '1', 'Hechura de llaves', '4439'), ('622', '11', '145', '1600.00', '1', 'Reparación bomba de combustible', '4439'), ('623', '11', '145', '1350.00', '1', 'Combustible diesel y refacciones varios', '4439'), ('624', '11', '145', '6600.00', '1', '6 acumuladores nuevos', '4439'), ('635', '6', '0', '1000.00', '1', 'CUBIERTA DE REFACCION', '4900'), ('732', '6', '180', '800.00', '1', 'Moldura de poste trasero izq', '4474'), ('633', '6', '0', '400.00', '1', 'FACIA TRASERA', '4898'), ('632', '8', '0', '650.00', '1', 'ESTETICA INTERIOR', '4896'), ('636', '7', '0', '950.00', '1', 'CUBIERTA DE REFACCION', '4900'), ('637', '7', '0', '600.00', '1', 'MOLDURA DE SALPICADERA IZQUIERDA', '4900'), ('638', '6', '0', '0.00', '1', '0', '4900'), ('639', '7', '0', '0.00', '1', '0', '4900'), ('640', '7', '0', '0.00', '1', '0', '4900'), ('641', '6', '157', '100.00', '1', 'Sustituir Moldura de costado derecho', '4451'), ('642', '6', '157', '750.00', '1', 'Puerta trasera derecha ', '4451'), ('643', '6', '157', '1500.00', '1', 'Costado derecho', '4451'), ('644', '6', '157', '600.00', '1', 'Facia trasera', '4451'), ('645', '7', '157', '1000.00', '1', 'Puerta trasrea derecha', '4451'), ('646', '7', '157', '1000.00', '1', 'Costado derecho', '4451'), ('647', '7', '157', '1000.00', '1', 'Facia trasera', '4451'), ('663', '6', '136', '48.00', '1', 'Moldura salpc izq sust', '4430'), ('649', '11', '157', '2185.00', '1', 'Refacción moldura de costado derecho', '4451'), ('664', '6', '136', '192.00', '1', 'Puerta del izq sust', '4430'), ('657', '7', '157', '300.00', '1', 'Espejo derecho', '4451'), ('662', '6', '136', '48.00', '1', 'Puerta del izq d+m', '4430'), ('665', '6', '136', '120.00', '1', 'Poste a del izq', '4430'), ('666', '6', '136', '348.00', '1', 'Llave puerta', '4430'), ('667', '6', '136', '282.00', '1', 'Estribo ext izq', '4430'), ('668', '6', '136', '18.00', '1', 'Tiempo de reparación', '4430'), ('669', '11', '136', '60.00', '1', 'Retirar cristales', '4430'), ('670', '6', '136', '24.00', '1', 'Mold estribo izq d+m', '4430'), ('671', '7', '136', '90.50', '1', 'Mat Pintura', '4430'), ('672', '7', '136', '62.40', '1', 'Retoque Estribo ext izq', '4430'), ('673', '7', '136', '467.45', '1', 'Puerta izq', '4430'), ('674', '7', '136', '171.60', '1', 'Tiempo de reparación', '4430'), ('675', '7', '136', '51.60', '1', 'Retoque Poste A del izq ', '4430'), ('676', '7', '136', '81.03', '1', 'Estribo ext izq retoque', '4430'), ('682', '7', '136', '61.47', '1', 'retoque poste a del izq', '4430'), ('679', '7', '136', '355.20', '1', 'Puerta izq', '4430'), ('687', '6', '149', '24.00', '1', 'Carroseria', '4443'), ('688', '6', '149', '60.00', '1', 'Revest puerta del der d+m', '4443'), ('689', '6', '149', '18.00', '1', 'Tiempo de reparación', '4443'), ('690', '6', '149', '36.00', '1', 'Espejo lat derecho d+m', '4443'), ('691', '6', '149', '90.00', '1', 'Puerta del derecha', '4443'), ('704', '6', '149', '0.00', '1', '0', '4443'), ('701', '6', '149', '0.00', '1', '0', '4443'), ('703', '6', '149', '0.00', '1', '0', '4443'), ('710', '6', '166', '5359.99', '1', 'Varios', '4460'), ('697', '7', '149', '618.05', '1', 'Retoque puerta del der', '4443'), ('698', '7', '149', '110.00', '1', 'Retoque espejo lateral derecho', '4443'), ('699', '7', '149', '115.05', '1', 'Mat pintura', '4443'), ('700', '7', '149', '255.60', '1', 'Tiempo de reparación', '4443'), ('705', '6', '149', '0.00', '1', '0', '4443'), ('714', '6', '163', '5325.00', '1', 'Mo Hojalatería', '4457'), ('712', '6', '167', '5010.90', '1', 'Varios', '4461'), ('715', '7', '163', '1526.25', '1', 'Mo Pintura', '4457'), ('716', '7', '163', '1735.13', '1', 'Mat Pintura', '4457'), ('717', '11', '163', '1450.00', '1', 'Facia del', '4457'), ('718', '6', '165', '13680.00', '1', 'Mo Hojalatería', '4459'), ('719', '7', '165', '6361.79', '1', 'Mat Pintura', '4459'), ('720', '7', '165', '4779.60', '1', 'Mo Pintura', '4459'), ('724', '9', '168', '600.00', '1', 'Mano de obra por mantenimiento y sustitución de frenos', '4462'), ('725', '11', '168', '600.00', '1', 'Juego de balatas delanteras', '4462'), ('728', '11', '177', '795.00', '1', 'Brazo limpiador', '4471'), ('729', '11', '177', '395.00', '1', 'Escobilla limpiadora', '4471'), ('733', '6', '180', '800.00', '1', 'Ajuste cristal tras izq', '4474'), ('734', '6', '180', '500.00', '1', 'Sellar goma de marco de cristal tras izq', '4474'), ('735', '7', '180', '700.00', '1', 'Moldura de poste trasero izq', '4474'), ('736', '11', '180', '500.00', '1', 'd+m cristal tras izq', '4474'), ('737', '8', '503', '650.00', '1', 'ESTETICA INTERIOR', '4898'), ('738', '6', '180', '0.00', '1', '0', '4474'), ('739', '6', '180', '0.00', '1', '0', '4474'), ('740', '6', '180', '0.00', '1', '0', '4474'), ('741', '7', '180', '0.00', '1', '0', '4474'), ('742', '11', '180', '0.00', '1', '0', '4474'), ('743', '9', '181', '150.00', '1', 'Cambio de aceite y filtro', '4475'), ('744', '11', '181', '430.00', '1', 'Aceite y filtro', '4475'), ('745', '11', '181', '200.00', '1', 'Gasolina premium', '4475'), ('746', '9', '181', '0.00', '1', '0', '4475'), ('747', '11', '181', '0.00', '1', '0', '4475'), ('748', '11', '181', '0.00', '1', '0', '4475'), ('749', '6', '418', '400.00', '1', 'FACIA TRASERA', '4900'), ('750', '6', '0', '1000.00', '1', 'CUBIERTA DE TAPA DE REFACCION', '4901'), ('751', '7', '0', '950.00', '1', 'CUBIERTA DE TAPA DE REFACCION', '4901'), ('752', '7', '0', '600.00', '1', 'MOLDURA DE SALPICADERA IZQUIERDA', '4901'), ('753', '6', '585', '1000.00', '1', 'CUBIERTA DE TAPA DE REFACCION', '4901'), ('754', '7', '585', '950.00', '1', 'CUBIERTA DE TAPA DE REFACCION', '4901'), ('755', '7', '585', '600.00', '1', 'MOLDURA DE SALPICADERA IZQUIERDA', '4901'), ('760', '8', '0', '800.00', '1', 'EXTERIOR', '4902'), ('759', '7', '0', '1200.00', '1', 'FACIA TRASERA', '4902'), ('761', '7', '0', '500.00', '1', 'COSTADO IZQUIERDO PARTE INFERIOR (AREA DAÑADA)', '4903'), ('762', '6', '194', '1400.00', '1', 'Costado derecho', '4488'), ('763', '7', '194', '1100.00', '1', 'Costado derecho', '4488'), ('764', '6', '194', '150.00', '1', 'Facia trasera punta izquierda', '4488'), ('766', '9', '0', '400.00', '1', 'REEMPLAZO DE BALEROS DOBLES DELANTEROS (IZQ Y DER)', '4905'), ('767', '9', '0', '400.00', '1', 'REEMPLAZO DE BALEROS TRONCO Y PUNTA TRASEROS (IZQ Y DER)', '4905'), ('768', '11', '0', '1261.50', '1', 'REFACIONES', '4905'), ('769', '11', '0', '320.00', '1', 'ALINEACION DE RUEDAS DELANTERAS', '4905'), ('770', '11', '0', '-381.50', '1', 'DESCUENTO', '4905'), ('771', '9', '0', '0.00', '1', '0', '4905'), ('772', '9', '0', '0.00', '1', '0', '4905'), ('773', '11', '0', '0.00', '1', '0', '4905'), ('774', '11', '0', '0.00', '1', '0', '4905'), ('775', '11', '0', '0.00', '1', '0', '4905'), ('776', '6', '170', '5000.00', '1', 'Mo Hojalatería', '4464'), ('777', '7', '170', '2240.42', '1', 'Mat Pintura', '4464'), ('778', '7', '170', '1743.75', '1', 'Mo Pintura', '4464'), ('779', '6', '170', '0.00', '1', '0', '4464'), ('780', '7', '170', '0.00', '1', '0', '4464'), ('781', '7', '170', '0.00', '1', '0', '4464'), ('782', '6', '171', '1512.50', '1', 'Mo Hojalatería', '4465'), ('820', '6', '171', '0.00', '1', '0', '4465'), ('784', '7', '171', '896.85', '1', 'Mat Pintura', '4465'), ('785', '11', '171', '100.00', '1', 'Juego sujec facia del', '4465'), ('786', '6', '0', '100.00', '1', 'facia delantera', '4906'), ('787', '6', '0', '0.00', '1', 'ajuste de rejilla central de facia del', '4906'), ('788', '7', '0', '950.00', '1', 'facia delantera', '4906'), ('789', '7', '0', '950.00', '1', 'facia trasera', '4906'), ('790', '7', '0', '500.00', '1', 'costado izquierdo parte inferior area danada', '4906'), ('791', '8', '0', '0.00', '1', 'pulir rin trasero izquierdo', '4906'), ('792', '6', '0', '100.00', '1', 'facia delantera', '4906'), ('793', '6', '0', '0.00', '1', 'ajuste de rejilla central de facia del', '4906'), ('794', '7', '0', '950.00', '1', 'facia delantera', '4906'), ('795', '7', '0', '950.00', '1', 'facia trasera', '4906'), ('796', '7', '0', '500.00', '1', 'costado izquierdo parte inferior area danada', '4906'), ('797', '8', '0', '0.00', '1', 'pulir rin trasero izquierdo', '4906'), ('798', '6', '588', '100.00', '1', 'facia dealntera', '4906'), ('799', '7', '588', '950.00', '1', 'facia dealntera', '4906'), ('800', '7', '588', '500.00', '1', 'costado izquierdo parte inferior area danada', '4906'), ('801', '7', '588', '950.00', '1', 'facia trasera', '4906'), ('812', '6', '588', '0.00', '1', '0', '4906'), ('807', '6', '588', '100.00', '1', 'ajuste de rejilla central de facia del', '4906'), ('806', '8', '588', '0.00', '1', 'desmanchar rin trasero izq', '4906'), ('816', '8', '588', '0.00', '1', '0', '4906'), ('815', '7', '588', '0.00', '1', '0', '4906'), ('814', '7', '588', '0.00', '1', '0', '4906'), ('813', '7', '588', '0.00', '1', '0', '4906'), ('818', '7', '171', '777.50', '1', 'Mo Pintura', '4465'), ('821', '7', '171', '0.00', '1', '0', '4465'), ('822', '11', '171', '0.00', '1', '0', '4465'), ('823', '6', '0', '0.00', '1', 'facia del y ajuste', '4909'), ('824', '6', '0', '0.00', '1', 'cofre y ajuste', '4909'), ('825', '6', '0', '0.00', '1', 'marco de radiador y ajuste', '4909'), ('826', '6', '0', '0.00', '1', 'salpicadera izq y ajuste', '4909'), ('827', '7', '0', '0.00', '1', 'cofre', '4909'), ('828', '7', '0', '0.00', '1', 'salpicadera izq', '4909'), ('829', '7', '0', '0.00', '1', 'facia del', '4909'), ('1718', '6', '581', '200.00', '1', 'MO', '4894'), ('1719', '7', '581', '1019.00', '1', 'MO', '4894'), ('1716', '11', '591', '-450.00', '1', 'MENOS BONIFICACION', '4909'), ('1715', '8', '591', '550.00', '1', 'ESTERIOR', '4909'), ('1714', '7', '591', '4800.00', '1', 'MO', '4909'), ('1657', '6', '589', '3449.00', '1', 'MO', '4907'), ('1658', '7', '589', '755.00', '1', 'MO', '4907'), ('1659', '7', '589', '1219.62', '1', 'MAT', '4907'), ('1660', '6', '594', '2205.00', '1', 'MO', '4912'), ('1661', '7', '594', '537.00', '1', 'MO', '4912'), ('1662', '7', '594', '841.34', '1', 'MAT', '4912'), ('1667', '6', '541', '350.00', '1', 'MO', '4835'), ('1668', '8', '543', '1500.00', '1', 'MO', '4837'), ('1669', '8', '544', '650.00', '1', 'MO', '4838'), ('1670', '9', '545', '800.00', '1', 'MO', '4839'), ('1673', '9', '545', '725.00', '1', 'PZS', '4839'), ('1674', '9', '0', '150.00', '1', 'cambio de aceite y filtro', '4944'), ('1675', '11', '0', '431.00', '1', 'aceite y filtro', '4944'), ('1676', '6', '0', '500.00', '1', 'facia delantera', '4945'), ('1677', '7', '0', '1100.00', '1', 'facia delantera', '4945'), ('1678', '8', '0', '200.00', '1', 'pulida de faros', '4945'), ('1679', '6', '622', '500.00', '1', 'FACIA DELANTERA', '4945'), ('1680', '7', '622', '1100.00', '1', 'FACIA DELANTERA', '4945'), ('1681', '8', '622', '200.00', '1', 'PULIDA DE FAROS', '4945'), ('1682', '9', '621', '150.00', '1', 'CAMBIO DE ACEITE Y FILTRO', '4944'), ('1720', '11', '581', '1462.00', '1', 'PZAS', '4894'), ('1713', '6', '591', '2100.00', '1', 'MO', '4909'), ('867', '7', '172', '1068.75', '1', 'Mo Pintura', '4466'), ('872', '6', '172', '3875.00', '1', 'Mo Hojalatería', '4466'), ('868', '7', '172', '1269.76', '1', 'Mat Pintura', '4466'), ('875', '6', '176', '4250.00', '1', 'Mo Hojalatería', '4470'), ('876', '7', '176', '1957.26', '1', 'Mat Pintura', '4470'), ('877', '7', '176', '1730.00', '1', 'Mo Pintura', '4470'), ('878', '6', '176', '0.00', '1', '0', '4470'), ('879', '7', '176', '0.00', '1', '0', '4470'), ('880', '7', '176', '0.00', '1', '0', '4470'), ('881', '6', '188', '4845.50', '1', 'Mo Hojalateria', '4482'), ('882', '7', '188', '1255.10', '1', 'Mo Pintura', '4482'), ('883', '7', '188', '1364.42', '1', 'Mat Pintura', '4482'), ('884', '11', '188', '350.00', '1', 'TOT D+M medallon', '4482'), ('885', '11', '0', '350.00', '1', 'servicio de grua cargado a la pickup 2000', '4910'), ('886', '11', '592', '350.00', '1', 'servicio de grua cargado a la pickup 2000', '4910'), ('1717', '9', '0', '0.00', '1', 'cambio de aceite y filtro', '4949'), ('888', '6', '188', '0.00', '1', '0', '4482'), ('889', '7', '188', '0.00', '1', '0', '4482'), ('890', '7', '188', '0.00', '1', '0', '4482'), ('891', '11', '188', '0.00', '1', '0', '4482'), ('892', '6', '191', '1818.75', '1', 'Mo Hojalatería', '4485'), ('893', '7', '191', '813.75', '1', 'Mo Pintura', '4485'), ('894', '7', '191', '908.58', '1', 'Mat Pintura', '4485'), ('895', '6', '191', '0.00', '1', '0', '4485'), ('896', '7', '191', '0.00', '1', '0', '4485'), ('897', '7', '191', '0.00', '1', '0', '4485'), ('898', '6', '192', '2075.00', '1', 'Mo Hojalatería', '4486'), ('899', '7', '192', '735.00', '1', 'Mo Pintura', '4486'), ('900', '7', '192', '881.41', '1', 'Mat Pintura', '4486'), ('901', '6', '192', '0.00', '1', '0', '4486'), ('902', '7', '192', '0.00', '1', '0', '4486'), ('903', '7', '192', '0.00', '1', '0', '4486'), ('904', '6', '197', '3968.75', '1', 'Mo Hojalatería', '4491'), ('905', '7', '197', '1257.50', '1', 'Mo Pintura', '4491'), ('906', '7', '197', '1491.13', '1', 'Mat Pintura', '4491'), ('907', '6', '197', '0.00', '1', '0', '4491'), ('908', '7', '197', '0.00', '1', '0', '4491'), ('909', '7', '197', '0.00', '1', '0', '4491'), ('910', '6', '198', '800.00', '1', 'Mo Hojalatería', '4492'), ('911', '7', '198', '526.25', '1', 'Mo Pintura', '4492'), ('912', '7', '198', '744.08', '1', 'Mat Pintura', '4492'), ('913', '6', '201', '3400.00', '1', 'Mo Hojalatería', '4495'), ('914', '7', '201', '1068.75', '1', 'Mo Pintura', '4495'), ('915', '7', '201', '1192.09', '1', 'Mat Pintura', '4495'), ('916', '6', '201', '0.00', '1', '0', '4495'), ('917', '7', '201', '0.00', '1', '0', '4495'), ('918', '7', '201', '0.00', '1', '0', '4495'), ('919', '6', '202', '4325.00', '1', 'Mo Hojalatería', '4496'), ('920', '7', '202', '983.75', '1', 'Mo Pintura', '4496'), ('921', '7', '202', '883.62', '1', 'Mat Pintura', '4496'), ('922', '6', '202', '0.00', '1', '0', '4496'), ('923', '7', '202', '0.00', '1', '0', '4496'), ('924', '7', '202', '0.00', '1', '0', '4496'), ('925', '6', '183', '366.00', '1', 'Costado Izq', '4477'), ('926', '6', '183', '72.00', '1', 'Facia trasera d+m', '4477'), ('927', '6', '183', '240.00', '1', 'Refuerzo costado izq', '4477'), ('928', '6', '183', '18.00', '1', 'Tiempo de rep', '4477'), ('929', '7', '183', '338.51', '1', 'Retoque Costado Izq', '4477'), ('930', '7', '183', '171.60', '1', 'Tiempo de rep', '4477'), ('931', '7', '183', '90.50', '1', 'Mat Pinturas', '4477'), ('945', '6', '208', '24.00', '1', 'Mold facia tra d+m', '4502'), ('939', '6', '183', '100.00', '1', 'Mo.', '4477'), ('944', '6', '208', '36.00', '1', 'Revest compartim tras d+m', '4502'), ('943', '6', '208', '60.00', '1', 'Tapa cajuela d+m', '4502'), ('946', '6', '208', '228.00', '1', 'tolva escape', '4502'), ('947', '6', '208', '360.00', '1', 'facia trasera', '4502'), ('948', '6', '208', '120.00', '1', 'tolva bocinas tra izq d+m', '4502'), ('949', '6', '208', '4030.87', '1', 'varios', '4502'), ('951', '8', '0', '650.00', '1', 'ESTETICA INTERIOR', '4913'), ('952', '8', '0', '650.00', '1', 'ESTETICA EXTERIOR', '4913'), ('953', '8', '0', '0.00', '1', '0', '4913'), ('954', '8', '0', '0.00', '1', '0', '4913'), ('955', '9', '0', '0.00', '1', 'VEIRIFCAR FUGA DE ACEITE', '4915'), ('956', '9', '0', '0.00', '1', 'VERIFICAR A/A O SENSOR DE TEM ABIENTAL', '4915'), ('957', '11', '0', '400.00', '1', 'INSTALACION DE AMORTIGUADOR DE COFRE', '4915'), ('958', '6', '0', '0.00', '1', 'AJUSTE DE COFRE', '4916'), ('959', '6', '0', '0.00', '1', 'AJUSTE DE FACIA DELANTERA LADO DERECHO', '4916'), ('960', '6', '0', '0.00', '1', 'AJUSTE DE CERRADURA DE COFRE', '4916'), ('961', '8', '0', '0.00', '1', 'VERIFICAR VIBRACION EN RUEDAS DELANTERAS', '4916'), ('962', '6', '224', '840.00', '1', 'Costado derecho', '4518'), ('963', '6', '224', '36.00', '1', 'Moldura cantonera tra derecha d+m', '4518'), ('964', '6', '224', '120.00', '1', 'Puerta del de', '4518'), ('965', '6', '224', '360.00', '1', 'Ref marco int derecho ', '4518'), ('966', '6', '224', '144.00', '1', 'Aleta derecha d+m', '4518'), ('967', '9', '596', '451.72', '1', 'SENSOR DE TEMPERATURA AMBIENTAL Y CHECAR A/A', '4915'), ('968', '9', '596', '0.00', '1', 'VERIFICAR FUGA DE ACEITE', '4915'), ('977', '11', '596', '0.00', '1', '0', '4915'), ('976', '9', '596', '0.00', '1', '0', '4915'), ('971', '11', '596', '400.00', '1', 'ADAPTACION DE AMORTIGUADOR DE COFRE', '4915'), ('975', '9', '596', '0.00', '1', '0', '4915'), ('974', '11', '596', '0.00', '1', '0', '4915'), ('993', '6', '224', '0.00', '1', '0', '4518'), ('992', '6', '224', '0.00', '1', '0', '4518'), ('991', '6', '224', '0.00', '1', '0', '4518'), ('990', '6', '224', '0.00', '1', '0', '4518'), ('989', '6', '224', '0.00', '1', '0', '4518'), ('983', '7', '224', '115.05', '1', 'Materiales', '4518'), ('984', '7', '224', '85.77', '1', 'Mold costado d', '4518'), ('985', '7', '224', '44.99', '1', 'Ref marco int de retoque', '4518'), ('986', '7', '224', '393.82', '1', 'Retoque puerta del dere', '4518'), ('987', '7', '224', '249.60', '1', 'Tiempo reparacion', '4518'), ('988', '7', '224', '750.12', '1', 'Costado derecho retoque', '4518'), ('994', '7', '224', '0.00', '1', '0', '4518'), ('995', '7', '224', '0.00', '1', '0', '4518'), ('996', '7', '224', '0.00', '1', '0', '4518'), ('997', '7', '224', '0.00', '1', '0', '4518'), ('998', '7', '224', '0.00', '1', '0', '4518'), ('999', '7', '224', '0.00', '1', '0', '4518'), ('1000', '6', '226', '360.00', '1', 'Calavera d', '4520'), ('1003', '6', '226', '1320.00', '1', 'Costado Der', '4520'), ('1002', '7', '226', '1020.00', '1', 'Costado derecho', '4520'), ('1004', '6', '228', '4409.82', '1', 'Varios', '4522'), ('1007', '6', '600', '900.00', '1', 'ajuste y reparacion de estribo derecho', '4919'), ('1008', '6', '600', '300.00', '1', 'kit de grapas', '4919'), ('1009', '6', '239', '3042.07', '1', 'Varios', '4533'), ('1010', '6', '521', '3952.00', '1', 'MANO DE OBRA HOJALATERIA', '4815'), ('1011', '7', '521', '2903.68', '1', 'MANO DE OBRA PINTURA', '4815'), ('1012', '11', '521', '1494.00', '1', 'FASCIA TRASERA', '4815'), ('1013', '11', '521', '805.67', '1', 'CERRADURA TAPA CAJUELA', '4815'), ('1666', '6', '537', '680.00', '1', 'MO', '4831'), ('1665', '6', '539', '3064.00', '1', 'MO', '4833'), ('1016', '6', '0', '400.00', '1', 'ajuste de tolvas inferiores de motor', '4920'), ('1017', '6', '0', '800.00', '1', 'salpicadera izquierda', '4920'), ('1018', '6', '0', '300.00', '1', 'reparacion de spoiler de facia delantera', '4920'), ('1019', '6', '0', '200.00', '1', 'kit de grapas', '4920'), ('1020', '7', '0', '1100.00', '1', 'salpicadera izquierda', '4920'), ('1021', '6', '211', '1600.00', '1', 'Mo Hojalatería', '4505'), ('1022', '7', '211', '615.00', '1', 'Mo Pintura', '4505'), ('1023', '7', '211', '754.67', '1', 'Mat Pintura', '4505'), ('1027', '6', '213', '2670.00', '1', 'Mo Hojalatería', '4507'), ('1028', '7', '213', '861.00', '1', 'Mo Pintura', '4507'), ('1029', '7', '213', '1225.80', '1', 'Mat Pintura', '4507'), ('1030', '11', '213', '278.00', '1', 'Varilla izq sist wip', '4507'), ('1031', '11', '213', '278.00', '1', 'Varilla der sist wip', '4507'), ('1032', '11', '213', '1576.62', '1', '2 brazos wipers', '4507'), ('1033', '11', '213', '165.24', '1', 'Brazo limpiaparab der', '4507'), ('1036', '6', '213', '0.00', '1', '0', '4507'), ('1035', '11', '213', '1616.37', '1', 'Bomba limpiaparabrisas', '4507'), ('1037', '7', '213', '0.00', '1', '0', '4507'), ('1038', '7', '213', '0.00', '1', '0', '4507'), ('1039', '11', '213', '179.93', '1', 'brazo limpiaparab izq', '4507'), ('1040', '6', '214', '1315.00', '1', 'Mo Hojalatería', '4508'), ('1041', '7', '214', '690.00', '1', 'Mo Pintura', '4508'), ('1042', '7', '214', '1068.77', '1', 'Mat Pintura', '4508'), ('1043', '11', '214', '350.00', '1', 'd+m medallon', '4508'), ('1044', '6', '221', '1940.00', '1', 'Mo Hojalatería', '4515'), ('1045', '7', '221', '803.00', '1', 'Mat Pintura', '4515'), ('1046', '7', '221', '522.00', '1', 'Mo Pintura', '4515'), ('1047', '6', '222', '7730.00', '1', 'Mo Hojalatería', '4516'), ('1048', '7', '222', '1575.00', '1', 'Mo Pintura', '4516'), ('1049', '7', '222', '2720.54', '1', 'Mat Pintura', '4516'), ('1050', '6', '227', '4320.00', '1', 'Mo Hojalatería', '4521'), ('1051', '7', '227', '860.00', '1', 'Mo Pintura', '4521'), ('1052', '7', '227', '1236.17', '1', 'Mat Pintura', '4521'), ('1053', '11', '227', '850.00', '1', 'T.O.T rep codo bomba dh', '4521'), ('1054', '6', '233', '2101.00', '1', 'Mo Hojalatería', '4527'), ('1055', '7', '233', '901.39', '1', 'Mat Pintura', '4527'), ('1056', '7', '233', '653.40', '1', 'Mo Pintura', '4527'), ('1057', '9', '233', '100.00', '1', 'Jgo sujec facia trasera', '4527'), ('1058', '6', '235', '2610.00', '1', 'Mo Hojalatería', '4529'), ('1059', '7', '235', '683.00', '1', 'Mo Pintura', '4529'), ('1060', '7', '235', '1021.79', '1', 'Mat Pintura', '4529'), ('1061', '6', '236', '3625.00', '1', 'Mo Hojalatería', '4530'), ('1062', '7', '236', '1042.04', '1', 'Mat Pintura', '4530'), ('1063', '7', '236', '751.00', '1', 'Mo Pintura', '4530'), ('1064', '11', '236', '350.00', '1', 'Cubrepolv int del izq', '4530'), ('1065', '11', '236', '320.00', '1', 'Cubrepolv ext del izq', '4530'), ('1072', '9', '215', '300.00', '1', 'Instalación deslisador', '4509'), ('1073', '9', '215', '2480.00', '1', 'Servicio de frenos y refacciones', '4509'), ('1069', '11', '236', '1800.00', '1', 'Llave de valet', '4530'), ('1070', '11', '236', '200.00', '1', 'Gasolina', '4530'), ('1071', '11', '236', '1170.00', '1', 'Bateria', '4530'), ('1074', '11', '215', '3684.20', '1', 'Deslisador Volante', '4509'), ('1075', '6', '542', '1010.00', '1', 'MANO DE OBRA HOJALATERIA', '4836'), ('1076', '7', '542', '905.17', '1', 'MANO DE OBRA PINTURA', '4836'), ('1090', '11', '30', '4300.00', '1', 'PUERTA TRASERA IZQUIERDA ', '4324'), ('1080', '6', '601', '300.00', '1', 'ajuste de tolvas inferiores de motor', '4920'), ('1081', '6', '601', '800.00', '1', 'salpicadera izquierda', '4920'), ('1082', '6', '601', '400.00', '1', 'spoiler de facia delantera', '4920'), ('1083', '7', '601', '1100.00', '1', 'salpicadera izquierda', '4920'), ('1084', '11', '601', '300.00', '1', 'kit de grapas', '4920'), ('1091', '6', '121', '800.00', '1', 'REPARACION DE FACIA DELANTERA,AJUSTE DE PARRILLA CENTRAL ,FASCIA TRASERA', '4415'), ('1088', '7', '601', '0.00', '1', '0', '4920'), ('1089', '11', '601', '0.00', '1', '0', '4920'), ('1092', '7', '121', '2900.00', '1', 'FASCIA DEL Y TRAS RIN TRAS', '4415'), ('1093', '8', '121', '1400.00', '1', 'EXTERIOR E INTERIOR', '4415'), ('1094', '6', '121', '0.00', '1', '0', '4415'), ('1095', '7', '121', '0.00', '1', '0', '4415'), ('1096', '8', '121', '0.00', '1', '0', '4415'), ('1097', '6', '0', '400.00', '1', 'ajuste de facia delantera', '4922'), ('1098', '6', '0', '300.00', '1', 'reparacion de costado derecho', '4922'), ('1099', '7', '0', '1100.00', '1', 'facia delantera', '4922'), ('1100', '7', '0', '1100.00', '1', 'costado derecho', '4922'), ('1101', '7', '0', '600.00', '1', 'retoque de facia trasera lado derecho', '4922'), ('1107', '6', '0', '0.00', '1', '0', '4922'), ('1108', '6', '0', '0.00', '1', '0', '4922'), ('1109', '7', '0', '0.00', '1', '0', '4922'), ('1110', '7', '0', '0.00', '1', '0', '4922'), ('1111', '7', '0', '0.00', '1', '0', '4922'), ('1112', '6', '603', '400.00', '1', 'AJUSTE DE FACIA DELANTERA', '4922'), ('1113', '6', '603', '300.00', '1', 'COSTADO DERECHO', '4922'), ('1370', '7', '603', '900.00', '1', 'COSTADO DERECHO', '4922'), ('1369', '7', '603', '900.00', '1', 'FASCIA DELANTERA', '4922'), ('1116', '7', '603', '600.00', '1', 'RETOQUE DE FACIA TRASERA LADO DERECHO', '4922'), ('1117', '6', '160', '17250.00', '1', 'MANO DE OBRA HOJALATERIA', '4454'), ('1118', '7', '160', '13600.00', '1', 'MANO DE OBRA PINTURA', '4454'), ('1119', '9', '160', '3050.00', '1', 'MANO DE OBRA MECANICA', '4454'), ('1120', '11', '160', '27400.00', '1', 'REFACCIONES VARIOS', '4454'), ('1121', '11', '384', '13500.00', '1', 'PIEZA DE PIÑON CORONA', '4678'), ('1122', '6', '429', '2552.00', '1', 'MANO DE OBRA', '4723'), ('1123', '7', '429', '729.30', '1', 'MANO DE OBRA', '4723'), ('1124', '7', '429', '574.62', '1', 'MATERIAL', '4723'), ('1125', '6', '382', '210.00', '1', 'MANO DE OBRA', '4676'), ('1126', '7', '382', '170.00', '1', 'MANO DE OBRA', '4676'), ('1127', '7', '382', '148.85', '1', 'MATERIAL', '4676'), ('1128', '6', '189', '1383.18', '1', 'MANO DE OBRA', '4483'), ('1129', '9', '234', '3600.00', '1', 'M/O Y REFACCIONES', '4528'), ('1130', '11', '246', '900.00', '1', 'CARGA DE GAS DOBLE DIFUSOR', '4540'), ('1131', '6', '249', '9805.00', '1', 'M/O', '4543'), ('1132', '7', '249', '3463.40', '1', 'M/O', '4543'), ('1136', '11', '251', '4110.00', '1', 'REFACCIONES', '4545'), ('1135', '6', '251', '6190.00', '1', 'M/O', '4545'), ('1137', '6', '253', '6287.48', '1', 'M/O', '4547'), ('1138', '11', '253', '1200.00', '1', 'PARTICULAR )RECTIFICACION DE CABLERIA Y PROGRAMACION DE LLAVE SWICH', '4547'), ('1141', '7', '254', '500.00', '1', 'RETOQUE FASCIA DELANTERA', '4548'), ('1142', '6', '604', '2000.00', '1', 'hojalateria general', '4923'), ('1143', '7', '604', '17000.00', '1', 'pintura general', '4923'), ('1144', '6', '604', '0.00', '1', '0', '4923'), ('1145', '7', '604', '0.00', '1', '0', '4923'), ('1146', '6', '256', '1800.00', '1', 'COSTADO IZQUIERDO', '4550'), ('1147', '6', '256', '600.00', '1', 'FASCIA TRASERA', '4550'), ('1148', '7', '256', '1100.00', '1', 'COSTADO IZQUIERDO', '4550'), ('1149', '7', '256', '600.00', '1', 'RETOQUE FASCIA TRASERA', '4550'), ('1150', '8', '256', '750.00', '1', 'EXTERIOR', '4550'), ('1151', '11', '256', '100.00', '1', 'AJUSTE DE CALAVERA', '4550'), ('1152', '11', '256', '-450.00', '1', 'MENOS DESCUENTO', '4550'), ('1153', '9', '257', '2614.00', '1', 'MO Y REFACCIONES', '4551'), ('1154', '9', '258', '580.00', '1', 'M/O Y REFACCION', '4552'), ('1155', '6', '259', '750.00', '1', 'M/O ', '4553'), ('1162', '7', '262', '2750.00', '1', 'M O', '4556'), ('1158', '7', '259', '1600.00', '1', 'M/O', '4553'), ('1161', '6', '262', '1550.00', '1', 'M / O', '4556'), ('1163', '11', '262', '1700.00', '1', 'REFACCIONES', '4556'), ('1168', '7', '268', '7700.00', '1', 'M O', '4562'), ('1167', '6', '268', '1950.00', '1', 'M O', '4562'), ('1169', '8', '268', '1200.00', '1', 'M O', '4562'), ('1170', '9', '268', '2400.00', '1', 'M O', '4562'), ('1171', '11', '268', '4835.29', '1', 'KIT DE AFINACION MAYOR', '4562'), ('1172', '9', '271', '990.00', '1', 'M O', '4565'), ('1173', '6', '276', '2400.00', '1', 'M O', '4570'), ('1174', '7', '276', '5500.00', '1', 'M O ', '4570'), ('1175', '8', '276', '650.00', '1', 'M O', '4570'), ('1176', '9', '277', '532.00', '1', 'M O Y REFACCIONES', '4571'), ('1177', '6', '0', '150.00', '1', 'puerta delantera izquierda', '4924'), ('1178', '7', '0', '1100.00', '1', 'salpicadera izquierda', '4924'), ('1179', '7', '0', '1100.00', '1', 'puerta delantera izquierda', '4924'), ('1180', '7', '0', '600.00', '1', 'retoque lado derecho de facia trasera', '4924'), ('1183', '6', '0', '0.00', '1', '0', '4924'), ('1182', '8', '0', '700.00', '1', 'estetica exterior', '4924'), ('1189', '6', '0', '0.00', '1', '0', '4924'), ('1188', '6', '454', '240.00', '1', 'REPARACION DE ESPEJO', '4748'), ('1187', '8', '0', '750.00', '1', 'estetica interior', '4924'), ('1190', '7', '0', '0.00', '1', '0', '4924'), ('1191', '7', '0', '0.00', '1', '0', '4924'), ('1192', '7', '0', '0.00', '1', '0', '4924'), ('1193', '8', '0', '0.00', '1', '0', '4924'), ('1194', '6', '519', '150.00', '1', 'puerta delantera izquierda', '4924'), ('1195', '7', '519', '1100.00', '1', 'salpicadera izquierda', '4924'), ('1196', '7', '519', '1100.00', '1', 'puerta delantera izquierda', '4924'), ('1197', '7', '519', '600.00', '1', 'retoque de facia trasera lado izquierdo', '4924'), ('1198', '8', '519', '750.00', '1', 'estetica interior', '4924'), ('1199', '8', '519', '700.00', '1', 'estetica exterior', '4924'), ('1200', '6', '508', '2025.00', '1', 'MANO DE OBRA', '4802'), ('1201', '7', '508', '771.30', '1', 'MANO DE OBRA', '4802'), ('1202', '7', '508', '1319.93', '1', 'MATERIAL', '4802'), ('1203', '11', '508', '1842.00', '1', 'FARO IZQ', '4802'), ('1204', '6', '507', '950.00', '1', 'MANO DE OBRA', '4801'), ('1205', '7', '507', '299.00', '1', 'MANO DE OBRA', '4801'), ('1206', '7', '507', '653.58', '1', 'MATERIAL', '4801'), ('1207', '6', '492', '840.00', '1', 'MANO DE OBRA', '4786'), ('1208', '7', '492', '279.00', '1', 'MANO DE OBRA', '4786'), ('1209', '7', '492', '488.00', '1', 'MATERIAL', '4786'), ('1210', '11', '576', '2300.00', '1', 'PIEZA RIN', '4896'), ('1211', '6', '440', '3882.00', '1', 'MANO DE OBRA', '4734'), ('1212', '7', '440', '635.80', '1', 'MANO DE OBRA', '4734'), ('1213', '7', '440', '823.21', '1', 'MATERIAL', '4734'), ('1214', '11', '440', '450.00', '1', 'TAPON DE ARRASTRE', '4734'), ('1215', '6', '451', '2333.00', '1', 'MANO DE OBRA', '4745'), ('1216', '7', '451', '927.00', '1', 'MANO DE OBRA', '4745'), ('1217', '7', '451', '1381.58', '1', 'MATERIAL', '4745'), ('1218', '6', '461', '10680.00', '1', 'MANO DE OBRA', '4755'), ('1219', '7', '461', '1813.00', '1', 'MANO DE OBRA', '4755'), ('1220', '7', '461', '2928.26', '1', 'MATERIAL', '4755'), ('1221', '11', '461', '3232.93', '1', 'PTA. TRAS DER, MOLDURA PTA, MOD, PTA TRAS DEL', '4755'), ('1222', '6', '471', '2140.00', '1', 'MANO DE OBRA', '4765'), ('1223', '7', '471', '982.00', '1', 'MANO DE OBRA', '4765'), ('1224', '7', '471', '1731.38', '1', 'MATERIAL', '4765'), ('1225', '11', '471', '915.00', '1', 'FASCIA DELANTERA', '4765'), ('1226', '6', '483', '670.00', '1', 'MANO DE OBRA', '4777'), ('1227', '7', '483', '299.00', '1', 'MANO DE OBRA', '4777'), ('1228', '7', '483', '653.58', '1', 'MATERIAL', '4777'), ('1229', '6', '484', '1999.00', '1', 'MANO DE OBRA', '4778'), ('1230', '7', '484', '1038.00', '1', 'MANO DE OBRA', '4778'), ('1231', '7', '484', '1354.62', '1', 'MATERIAL', '4778'), ('1232', '11', '484', '5400.00', '1', 'PTA DEL. Y DORAMIENTO DEL I', '4778'), ('1841', '9', '587', '1991.00', '1', 'MO', '4904'), ('1840', '8', '587', '1250.00', '1', 'MO', '4904'), ('1845', '7', '587', '2800.00', '1', 'MO', '4904'), ('1844', '6', '587', '3250.00', '1', 'MO', '4904'), ('1837', '6', '540', '4181.18', '1', 'MO', '4834'), ('1836', '6', '583', '7081.38', '1', 'MO', '4897'), ('1239', '6', '593', '924.00', '1', 'MANO DE OBRA', '4911'), ('1240', '7', '593', '432.30', '1', 'MANO DE OBRA', '4911'), ('1241', '7', '593', '750.59', '1', 'MATERIAL', '4911'), ('1242', '6', '283', '1800.00', '1', 'M O', '4577'), ('1243', '7', '283', '4600.00', '1', 'M O', '4577'), ('1272', '11', '284', '789.40', '1', 'KIT DE AFINACION', '4578'), ('1245', '11', '283', '450.00', '1', 'ESCANEO Y REPROGRAMACION', '4577'), ('1246', '11', '283', '466.00', '1', 'SENSOR DE VELOCIMETRO', '4577'), ('1273', '11', '284', '120.00', '1', 'RETEN DE SIGUEÑAL', '4578'), ('1249', '8', '283', '500.00', '1', 'M O', '4577'), ('1271', '11', '284', '550.00', '1', 'ESCANEO Y REPROGRAMACION', '4578'), ('1268', '7', '284', '4700.00', '1', 'MO', '4578'), ('1269', '8', '284', '500.00', '1', 'EXTERIOR', '4578'), ('1270', '9', '284', '900.00', '1', 'MO', '4578'), ('1267', '6', '284', '1850.00', '1', 'MO', '4578'), ('1274', '11', '284', '862.00', '1', 'KIT DE BANDA DE TIEMPO', '4578'), ('1275', '9', '285', '300.00', '1', 'MO', '4579'), ('1279', '9', '285', '0.00', '1', '0', '4579'), ('1277', '9', '285', '0.00', '1', '0', '4579'), ('1278', '11', '285', '120.00', '1', 'JUGO DE MANGUERAS', '4579'), ('1280', '11', '285', '2100.00', '1', 'RADIADOR', '4579'), ('1281', '6', '292', '2000.00', '1', 'MO', '4586'), ('1282', '11', '292', '650.00', '1', 'REPARACION DE RIN', '4586'), ('1283', '6', '295', '1850.00', '1', 'MO', '4589'), ('1284', '11', '295', '8577.00', '1', 'PIEZAS', '4589'), ('1285', '11', '295', '900.00', '1', 'REPARACION DE PUENTE', '4589'), ('1286', '11', '299', '1024.04', '1', 'COSTO', '4593'), ('1290', '6', '310', '1150.00', '1', 'MO', '4604'), ('1288', '7', '310', '1300.00', '1', 'MO', '4604'), ('1289', '11', '310', '2550.00', '1', 'REFACCIONES', '4604'), ('1294', '7', '266', '1305.92', '1', 'M O', '4560'), ('1293', '6', '266', '1210.00', '1', 'M O', '4560'), ('1295', '11', '266', '100.00', '1', 'JGO SUJEC FACIA DEL', '4560'), ('1296', '6', '267', '2840.00', '1', 'MO', '4561'), ('1297', '7', '267', '2616.28', '1', 'MO', '4561'), ('1298', '11', '267', '212.00', '1', 'SOP D FASCIA TRAS/JGO SUJEC FASCIA TRAS', '4561'), ('1299', '6', '269', '3120.00', '1', 'MO', '4563'), ('1300', '7', '269', '2014.00', '1', 'MO', '4563'), ('1301', '6', '270', '3270.00', '1', 'MO', '4564'), ('1302', '7', '270', '1925.13', '1', 'MO', '4564'), ('1303', '11', '270', '1500.00', '1', 'TOT RIN DEL IZQ', '4564'), ('1304', '11', '272', '503.87', '1', 'COSTO', '4566'), ('1305', '6', '274', '2770.00', '1', 'MO', '4568'), ('1306', '7', '274', '2343.25', '1', 'MO', '4568'), ('1307', '11', '274', '1500.00', '1', 'ROTULACION', '4568'), ('1308', '6', '275', '6745.00', '1', 'MO', '4569'), ('1309', '7', '275', '2686.08', '1', 'MO', '4569'), ('1310', '6', '281', '7280.00', '1', 'MO', '4575'), ('1311', '7', '281', '4982.32', '1', 'MO', '4575'), ('1312', '11', '281', '180.00', '1', 'LLANTA EN RIN', '4575'), ('1313', '11', '281', '850.00', '1', 'TOT RIN TRASERO', '4575'), ('1316', '6', '302', '2470.00', '1', 'MO', '4596'), ('1317', '7', '302', '2701.48', '1', 'MO', '4596'), ('1318', '6', '304', '2910.00', '1', 'MO', '4598'), ('1319', '7', '304', '2097.87', '1', 'MO', '4598'), ('1320', '6', '289', '2761.89', '1', 'MO', '4583'), ('1321', '6', '297', '3169.53', '1', 'MO', '4591'), ('1322', '6', '300', '4789.87', '1', 'MO', '4594'), ('1323', '6', '465', '10710.00', '1', 'MANO OBRA', '4759'), ('1324', '7', '465', '1709.00', '1', 'MANO OBRA', '4759'), ('1325', '7', '465', '2324.36', '1', 'MATERIAL', '4759'), ('1326', '11', '465', '10071.53', '1', 'PIEZAS', '4759'), ('1327', '6', '477', '3784.00', '1', 'MANO DE OBRA', '4771'), ('1330', '6', '477', '0.00', '1', '0', '4771'), ('1329', '7', '477', '1297.33', '1', 'MATERIAL', '4771'), ('1331', '7', '477', '983.40', '1', 'MANO DE OBRA', '4771'), ('1332', '6', '595', '381.00', '1', 'MANO DE OBRA', '4914'), ('1333', '7', '595', '381.00', '1', 'MANO DE OBRA', '4914'), ('1334', '7', '595', '430.62', '1', 'MATERIAL', '4914'), ('1335', '6', '595', '0.00', '1', '0', '4914'), ('1664', '6', '590', '1727.26', '1', 'MO', '4908'), ('1663', '6', '563', '1360.37', '1', 'MO', '4861'), ('1346', '11', '494', '3323.00', '1', 'PZS', '4788'), ('1345', '7', '494', '2850.00', '1', 'MO', '4788'), ('1344', '6', '494', '3300.00', '1', 'MO', '4788'), ('1347', '6', '554', '700.00', '1', 'MO', '4848'), ('1352', '6', '561', '2406.80', '1', 'MANO DE OBRA', '4856'), ('1351', '6', '562', '1957.52', '1', 'MO', '4857'), ('1353', '7', '561', '1073.60', '1', 'MANO DE OBRA', '4856'), ('1354', '7', '561', '1394.79', '1', 'MATERIAL', '4856'), ('1355', '11', '561', '1307.00', '1', 'PIEZA FASCIA DEL.', '4856'), ('1356', '11', '461', '795.63', '1', 'PIEZA MOLDURA PUERTA TRAS. DERECHA', '4755'), ('1357', '6', '402', '900.00', '1', 'MANO DE OBRA', '4696'), ('1358', '7', '402', '2900.00', '1', 'MANO DE OBRA', '4696'), ('1359', '7', '402', '1500.00', '1', 'MATERIAL', '4696'), ('1360', '7', '402', '600.00', '1', 'DETALLADA', '4696'), ('1361', '8', '402', '302.00', '1', 'ESTETICA EXTERIOR', '4696'), ('1362', '7', '402', '1302.76', '1', 'MATERIAL DUPONT', '4696'), ('1363', '11', '402', '300.00', '1', 'CRISTALERO', '4696'), ('1364', '8', '403', '435.00', '1', 'ESTEICA EXTERIOR', '4697'), ('1366', '9', '403', '1396.00', '1', 'M/O Y MATERIAL', '4697'), ('1367', '7', '476', '350.00', '1', 'MATERIAL Y M/O', '4770'), ('1368', '9', '480', '487.25', '1', 'MATERIAL Y M/O', '4774'), ('1371', '6', '301', '2839.90', '1', 'MO', '4595'), ('1372', '6', '303', '4530.00', '1', 'MO', '4597'), ('1373', '11', '303', '900.00', '1', 'DEPOSITO RADIADOR', '4597'), ('1374', '6', '312', '400.00', '1', 'MO', '4606'), ('1375', '7', '312', '1600.00', '1', 'MO', '4606'), ('1376', '8', '312', '650.00', '1', 'MO', '4606'), ('1377', '11', '312', '724.00', '1', 'EMBLEMA', '4606'), ('1378', '6', '305', '2050.00', '1', 'MO', '4599'), ('1379', '7', '305', '950.00', '1', 'MO', '4599'), ('1380', '6', '314', '2830.19', '1', 'mo', '4608'), ('1381', '6', '317', '4371.22', '1', 'MO', '4611'), ('1382', '6', '327', '1640.00', '1', 'MO', '4621'), ('1383', '7', '327', '1836.06', '1', 'MO', '4621'), ('1384', '6', '337', '4247.00', '1', 'MO', '4631'), ('1385', '7', '337', '1864.56', '1', 'MO', '4631'), ('1386', '6', '340', '750.00', '1', 'MO', '4634'), ('1387', '7', '340', '1152.29', '1', 'MO', '4634'), ('1388', '6', '315', '2540.01', '1', 'MO', '4609'), ('1389', '6', '323', '1701.06', '1', 'MO', '4617'), ('1390', '6', '331', '15000.00', '1', 'MO', '4625'), ('1391', '6', '342', '3645.20', '1', 'MO', '4636'), ('1397', '9', '321', '1450.00', '1', 'MO', '4615'), ('1394', '6', '319', '5750.00', '1', 'MO', '4613'), ('1400', '11', '321', '1504.00', '1', 'KIT DE AFINACION Y RECTIFICACION DE BALATAS', '4615'), ('1398', '11', '0', '450.00', '1', 'reparacion y reemplazo de silenciador', '4927'), ('1399', '11', '607', '450.00', '1', 'SILENCIADOR E INSTALACION', '4927'), ('1401', '6', '324', '400.00', '1', 'MO', '4618'), ('1402', '7', '324', '1200.00', '1', 'MO', '4618'), ('1403', '11', '324', '600.00', '1', 'MO CALCAS', '4618'), ('1404', '9', '326', '400.00', '1', 'MO', '4620'), ('1405', '11', '326', '831.00', '1', 'KIT AFINACION MAYOR', '4620'), ('1406', '11', '326', '674.00', '1', 'RECTIFICAR JUEGOS DE BALATAS', '4620'), ('1407', '11', '326', '150.00', '1', 'ALINEACION', '4620'), ('1408', '6', '318', '2212.51', '1', 'MO', '4612'), ('1409', '6', '334', '5600.00', '1', 'MO', '4628'), ('1410', '8', '341', '1100.00', '1', 'MO', '4635'), ('1411', '6', '339', '2200.00', '1', 'MO', '4633'), ('1412', '6', '348', '1907.55', '1', 'MO', '4642'), ('1413', '8', '349', '650.00', '1', 'MO', '4643'), ('1415', '9', '355', '500.00', '1', 'MO', '4649'), ('1416', '11', '357', '1400.00', '1', 'REPROGRAMACION Y GASOLINA', '4651'), ('1420', '9', '359', '1061.05', '1', 'KIT DE AFINACION / COSTO', '4653'), ('1419', '9', '359', '300.00', '1', 'MO / COSTO', '4653')\");\n\t\t$this->db->simple_query(\"INSERT INTO `relcategorias` VALUES ('1421', '6', '360', '7000.00', '1', 'MO ', '4654'), ('1422', '9', '218', '8250.00', '1', 'MO', '4512'), ('1423', '9', '218', '14892.24', '1', 'PZS VARIAS', '4512'), ('1424', '11', '364', '400.00', '1', 'DIAGNOSTICO', '4658'), ('1426', '6', '366', '20000.00', '1', 'MO', '4660'), ('1427', '7', '369', '81.80', '1', 'MO', '4663'), ('1428', '9', '371', '1610.00', '1', 'MO', '4665'), ('1429', '9', '372', '9800.00', '1', 'MO', '4666'), ('1430', '9', '372', '2080.00', '1', 'PZAS VARIAS', '4666'), ('1431', '6', '344', '1469.00', '1', 'MO', '4638'), ('1433', '7', '344', '1199.55', '1', 'MO', '4638'), ('1434', '6', '346', '200.00', '1', 'MO', '4640'), ('1435', '7', '346', '635.16', '1', 'MO', '4640'), ('1436', '6', '608', '900.00', '1', 'MO', '4928'), ('1437', '11', '608', '2000.00', '1', 'AMORTIGUADOR DEL IZQ', '4928'), ('1438', '11', '608', '900.00', '1', 'BASE DE AMORTIGUADOR DEL IZQ', '4928'), ('1439', '6', '363', '4731.10', '1', 'MO', '4657'), ('1440', '7', '363', '2329.78', '1', 'MO', '4657'), ('1441', '6', '373', '970.00', '1', 'MO', '4667'), ('1442', '7', '373', '1361.62', '1', 'MO', '4667'), ('1443', '6', '565', '6093.00', '1', 'MANO DE OBRA', '4863'), ('1444', '7', '565', '1625.00', '1', 'MANO DE OBRA', '4863'), ('1445', '7', '565', '2534.10', '1', 'MATERIAL', '4863'), ('1446', '11', '565', '4245.00', '1', 'PIEZAS', '4863'), ('1447', '6', '387', '1692.00', '1', 'MO', '4681'), ('1448', '7', '387', '1564.40', '1', 'MO', '4681'), ('1449', '6', '391', '2720.00', '1', 'MO', '4685'), ('1450', '7', '391', '2552.22', '1', 'MO', '4685'), ('1451', '11', '391', '775.00', '1', 'EXTRA CALAVERA IZQ ( DEPCO )', '4685'), ('1452', '6', '395', '230.00', '1', 'MO', '4689'), ('1453', '6', '400', '5692.00', '1', 'MO', '4694'), ('1454', '7', '400', '4443.24', '1', 'MO', '4694'), ('1455', '6', '401', '1508.66', '1', 'MO', '4695'), ('1457', '7', '401', '4546.00', '1', 'MO', '4695'), ('1458', '6', '328', '1450.00', '1', 'MO', '4622'), ('1459', '6', '351', '1000.00', '1', 'MO', '4645'), ('1460', '6', '356', '300.00', '1', 'MO', '4650'), ('1461', '7', '356', '550.00', '1', 'MO', '4650'), ('1462', '6', '386', '150.00', '1', 'MO', '4680'), ('1463', '7', '386', '950.00', '1', 'MO', '4680'), ('1464', '6', '388', '1600.00', '1', 'MO', '4682'), ('1465', '6', '370', '1359.82', '1', 'MO', '4664'), ('1466', '8', '374', '9630.00', '1', 'mo', '4668'), ('1467', '6', '375', '805.30', '1', 'mo', '4669'), ('1468', '6', '376', '345.23', '1', 'MO', '4670'), ('1469', '6', '377', '1000.00', '1', 'MO', '4671'), ('1470', '6', '378', '4437.00', '1', 'MO', '4672'), ('1471', '6', '379', '650.00', '1', 'MO', '4673'), ('1472', '7', '379', '950.00', '1', 'MO', '4673'), ('1473', '6', '381', '2000.00', '1', 'MO', '4675'), ('1474', '6', '385', '1100.00', '1', 'MO', '4679'), ('1475', '6', '389', '1030.00', '1', 'MO', '4683'), ('1476', '9', '390', '3900.00', '1', 'MO', '4684'), ('1477', '9', '390', '3157.72', '1', 'PZS', '4684'), ('1478', '6', '392', '21573.00', '1', 'MO', '4686'), ('1479', '7', '393', '1200.00', '1', 'MO', '4687'), ('1480', '6', '396', '2900.00', '1', 'MO', '4690'), ('1481', '7', '397', '1200.00', '1', 'MO', '4691'), ('1482', '6', '398', '3054.00', '1', 'mo', '4692'), ('1483', '9', '399', '2446.00', '1', 'mo', '4693'), ('1484', '9', '404', '2586.00', '1', 'mo', '4698'), ('1485', '6', '405', '1800.00', '1', 'MO', '4699'), ('1486', '6', '409', '1200.00', '1', 'MO', '4703'), ('1487', '9', '410', '19092.13', '1', 'MO', '4704'), ('1488', '6', '411', '6000.00', '1', 'MO', '4705'), ('1489', '8', '413', '431.25', '1', 'MO', '4707'), ('1490', '9', '417', '1097.00', '1', 'MO', '4711'), ('1491', '11', '420', '2500.00', '1', 'MO', '4714'), ('1492', '11', '421', '1280.00', '1', 'MO', '4715'), ('1493', '6', '422', '2235.00', '1', 'MO', '4716'), ('1494', '6', '423', '17450.00', '1', 'MO', '4717'), ('1495', '7', '424', '3000.00', '1', 'MO', '4718'), ('1496', '9', '425', '4104.50', '1', 'MO ', '4719'), ('1497', '6', '426', '21400.00', '1', 'MO', '4720'), ('1498', '9', '430', '500.00', '1', 'MO', '4724'), ('1499', '9', '431', '420.00', '1', 'mo', '4725'), ('1500', '6', '434', '565.00', '1', 'MO', '4728'), ('1501', '6', '412', '1629.00', '1', 'MO', '4706'), ('1502', '7', '412', '750.74', '1', 'MO', '4706'), ('1503', '9', '428', '2067.79', '1', 'MO', '4722'), ('1504', '6', '435', '4570.00', '1', 'mo', '4729'), ('1505', '6', '419', '1950.00', '1', 'mo', '4713'), ('1506', '6', '427', '2605.00', '1', 'mo', '4721'), ('1507', '6', '436', '1950.00', '1', 'mo', '4730'), ('1508', '6', '416', '5380.29', '1', 'MO', '4710'), ('1509', '6', '438', '1715.12', '1', 'MO', '4732'), ('1510', '6', '448', '3924.03', '1', 'MO', '4742'), ('1511', '6', '449', '6727.66', '1', 'MO', '4743'), ('1512', '6', '442', '3183.00', '1', 'MO', '4736'), ('1513', '6', '443', '4500.00', '1', 'MO', '4737'), ('1514', '6', '441', '2499.50', '1', 'MO', '4735'), ('1515', '11', '437', '600.00', '1', 'MO', '4731'), ('1516', '6', '439', '3249.00', '1', 'MO', '4733'), ('1517', '6', '444', '2200.00', '1', 'MO', '4738'), ('1518', '6', '445', '5200.00', '1', 'MO', '4739'), ('1519', '6', '447', '2600.00', '1', 'MO', '4741'), ('1520', '6', '450', '3600.00', '1', 'MO', '4744'), ('1521', '6', '453', '3650.00', '1', 'mo', '4747'), ('1522', '6', '459', '2200.00', '1', 'MO', '4753'), ('1523', '7', '459', '2500.00', '1', 'MO', '4753'), ('1524', '11', '459', '500.00', '1', 'DESMONTAR Y MONTAJE CRISTAL MEDALLON', '4753'), ('1525', '11', '459', '1106.00', '1', 'CICLOPE TOLDO', '4753'), ('1526', '6', '460', '2950.00', '1', 'MO', '4754'), ('1527', '7', '460', '4300.00', '1', 'MO', '4754'), ('1528', '8', '460', '1500.00', '1', 'MO', '4754'), ('1529', '11', '460', '2840.00', '1', 'REP DE PTS ABATIBLES IZQ Y DER', '4754'), ('1530', '11', '463', '1575.00', '1', 'VARIOS', '4757'), ('1531', '6', '464', '6872.00', '1', 'MO', '4758'), ('1532', '6', '452', '2148.00', '1', 'mo', '4746'), ('1533', '7', '452', '1960.71', '1', 'mo', '4746'), ('1534', '6', '456', '10078.00', '1', 'MO', '4750'), ('1535', '7', '456', '3909.60', '1', 'MO', '4750'), ('1536', '6', '462', '693.00', '1', 'MO', '4756'), ('1537', '7', '462', '737.71', '1', 'MO', '4756'), ('1538', '6', '485', '5575.50', '1', 'MO', '4779'), ('1539', '7', '485', '3046.02', '1', 'MO', '4779'), ('1540', '6', '467', '3258.91', '1', 'mo', '4761'), ('1541', '11', '383', '789.00', '1', 'FUCIBLES', '4677'), ('1542', '11', '316', '5000.00', '1', 'PIEZAS', '4610'), ('1543', '11', '231', '1500.00', '1', 'COSTO PRESUPUESTO', '4525'), ('1544', '6', '482', '3073.68', '1', 'MO', '4776'), ('1545', '6', '548', '17856.00', '1', 'REPARACION BLOBAL', '4842'), ('1546', '6', '579', '2700.00', '1', 'HOJALATERI Y PINTURA', '4892'), ('1547', '6', '486', '7459.78', '1', 'MO', '4780'), ('1548', '6', '487', '8254.03', '1', 'mo', '4781'), ('1549', '6', '490', '4122.39', '1', 'MO', '4784'), ('1553', '6', '504', '6854.81', '1', 'mo', '4798'), ('1551', '6', '501', '1744.89', '1', 'mo', '4795'), ('1552', '6', '502', '5981.99', '1', 'mo', '4796'), ('1554', '6', '468', '1000.00', '1', 'MO', '4762'), ('1555', '7', '468', '3500.00', '1', 'MO', '4762'), ('1556', '6', '469', '1600.00', '1', 'MO', '4763'), ('1557', '7', '469', '1200.00', '1', 'MO', '4763'), ('1558', '6', '470', '1700.00', '1', 'MO', '4764'), ('1559', '6', '472', '400.00', '1', 'MO', '4766'), ('1560', '11', '473', '1977.00', '1', 'REFUERZO DE FASCIA TRAS', '4767'), ('1561', '9', '474', '2200.00', '1', 'MO', '4768'), ('1562', '9', '474', '3350.00', '1', 'PZAS VARIAS', '4768'), ('1563', '6', '478', '2241.00', '1', 'MO', '4772'), ('1564', '8', '488', '750.00', '1', 'MO', '4782'), ('1565', '6', '491', '5350.00', '1', 'MO', '4785'), ('1566', '8', '495', '1500.00', '1', 'MO', '4789'), ('1569', '6', '549', '14876.00', '1', 'HOJALATERIA, PINTURA Y PIEZAS (GLOBAL)', '4843'), ('1568', '8', '496', '750.00', '1', 'EST INTERIOE', '4790'), ('1570', '6', '505', '21275.00', '1', 'GLOBAL', '4799'), ('1571', '6', '497', '1700.00', '1', 'MO', '4791'), ('1572', '8', '497', '1300.00', '1', 'ESTETICA INTERIOR Y EXTERIOR', '4791'), ('1573', '8', '498', '750.00', '1', 'EST INT', '4792'), ('1574', '9', '499', '240.00', '1', 'MANGUERA', '4793'), ('1575', '6', '506', '1500.00', '1', 'MO', '4800'), ('1576', '7', '506', '1700.00', '1', 'MO', '4800'), ('1577', '8', '506', '450.00', '1', 'EST EXT', '4800'), ('1578', '7', '509', '800.00', '1', 'MO', '4803'), ('1579', '9', '0', '0.00', '1', 'diagnostico caja de velocidades', '4937'), ('1580', '7', '0', '0.00', '1', 'aplicacion de resina', '4938'), ('1582', '8', '515', '650.00', '1', 'INTERIOR', '4809'), ('1583', '11', '515', '1977.00', '1', 'REFUERZO TRASERO', '4809'), ('1584', '8', '0', '0.00', '1', 'pulida de faros', '4938'), ('1591', '8', '616', '200.00', '1', 'Pulida de faros', '4938'), ('1592', '9', '615', '200.00', '1', 'Reparar seguro de clutch de velocidades', '4937'), ('1588', '6', '516', '1700.00', '1', 'MO', '4810'), ('1589', '8', '516', '1600.00', '1', 'MO', '4810'), ('1590', '6', '524', '800.00', '1', 'MO', '4818'), ('1593', '6', '617', '300.00', '1', 'FACIA TRASERA LADO DERECHO', '4939'), ('1594', '6', '617', '100.00', '1', 'AJUSTE DE LODERA TRASERA DERECHA', '4939'), ('1595', '7', '617', '600.00', '1', 'FACIA TRASERA LADO IZQUIERDO', '4939'), ('1596', '6', '525', '4300.00', '1', 'MO', '4819'), ('1597', '6', '526', '3300.00', '1', 'MO', '4820'), ('1598', '8', '533', '650.00', '1', 'MO', '4827'), ('1599', '9', '529', '2450.00', '1', 'MO', '4823'), ('1600', '9', '529', '5270.00', '1', 'CAJA DE VELOCIDAD Y BALERO DOBLE', '4823'), ('1601', '11', '529', '250.00', '1', 'ALINEACION DE RUEDAS DEL', '4823'), ('1602', '6', '535', '1614.00', '1', 'mo', '4829'), ('1603', '11', '536', '900.00', '1', 'TAPICERO', '4830'), ('1604', '7', '510', '1450.00', '1', 'MO', '4804'), ('1605', '6', '512', '6577.79', '1', 'MO', '4806'), ('1606', '6', '518', '6075.99', '1', 'MO', '4812'), ('1607', '6', '489', '15600.00', '1', 'GLOBAL', '4783'), ('1608', '6', '519', '6556.00', '1', 'MO', '4813'), ('1609', '7', '519', '2728.78', '1', 'MO', '4813'), ('1610', '7', '519', '1588.40', '1', 'COLOR', '4813'), ('1611', '6', '520', '6200.00', '1', 'MO', '4814'), ('1612', '7', '520', '2602.03', '1', 'MO', '4814'), ('1613', '7', '520', '1711.00', '1', 'COLOR', '4814'), ('1614', '6', '522', '869.00', '1', 'MO', '4816'), ('1615', '7', '522', '613.00', '1', 'MO', '4816'), ('1616', '7', '522', '729.83', '1', 'COLOR', '4816'), ('1617', '6', '531', '2772.00', '1', 'MO', '4825'), ('1618', '7', '531', '941.60', '1', 'MO', '4825'), ('1619', '7', '531', '1241.93', '1', 'MATERIAL', '4825'), ('1620', '11', '531', '750.00', '1', 'VENTILADOR', '4825'), ('1621', '6', '534', '4570.00', '1', 'MO', '4828'), ('1622', '7', '534', '1441.00', '1', 'MO', '4828'), ('1623', '7', '534', '2328.12', '1', 'MTERIAL', '4828'), ('1624', '9', '534', '300.00', '1', 'REEMPLAZO DE REPUESTO DE BOMBA DE GASOLINA', '4941'), ('1625', '9', '534', '300.00', '1', 'LIMPIEZA DE SEDASO DE REPUESTO', '4941'), ('1626', '11', '534', '1300.00', '1', 'REPUESTO DE BOMBA DE GASOLINA', '4941'), ('1627', '6', '560', '4042.00', '1', 'MO', '4855'), ('1628', '7', '560', '1041.88', '1', 'MAT', '4855'), ('1629', '7', '560', '745.00', '1', 'MO', '4855'), ('1630', '7', '613', '1350.00', '1', 'DOS ESPEJOS Y CUATRO MANIJAS DE PUERTAS', '4935'), ('1631', '6', '321', '2475.00', '1', 'mo', '4858'), ('1632', '7', '321', '993.30', '1', 'mo', '4858'), ('1633', '7', '321', '1283.12', '1', 'mat', '4858'), ('1634', '11', '321', '6100.00', '1', 'PUERTAS DEL E IZQ', '4858'), ('1635', '6', '523', '2924.00', '1', 'MO', '4817'), ('1636', '7', '523', '907.00', '1', 'MO', '4817'), ('1637', '7', '523', '1364.67', '1', 'MAT', '4817'), ('1638', '6', '572', '2644.40', '1', 'MO', '4881'), ('1639', '7', '572', '856.90', '1', 'MO', '4881'), ('1640', '7', '572', '1178.68', '1', 'MAT', '4881'), ('1641', '6', '575', '1886.50', '1', 'MO', '4886'), ('1642', '7', '575', '471.90', '1', 'MO', '4886'), ('1643', '7', '575', '756.70', '1', 'MAT', '4886'), ('1644', '11', '575', '770.00', '1', 'ABSORBEDOR', '4886'), ('1645', '6', '0', '900.00', '1', 'facia trasera lado derecho', '4942'), ('1646', '7', '0', '1200.00', '1', 'facia trasera', '4942'), ('1647', '6', '558', '2924.90', '1', 'MO', '4888'), ('1648', '7', '558', '624.80', '1', 'MO', '4888'), ('1649', '7', '558', '1034.48', '1', 'MAT', '4888'), ('1650', '6', '580', '2120.00', '1', 'MO', '4893'), ('1651', '7', '580', '483.00', '1', 'MO', '4893'), ('1652', '7', '580', '840.70', '1', 'MAT', '4893'), ('1653', '11', '580', '850.00', '1', 'BOMBA DE AGUA', '4893'), ('1654', '6', '619', '1000.00', '1', 'FACIA TRASERA', '4942'), ('1655', '7', '619', '1100.00', '1', 'FACIA TRASERA', '4942'), ('1683', '11', '621', '431.00', '1', 'ACEITE Y FILTRO', '4944'), ('1684', '6', '618', '600.00', '1', 'FACIA DELANTERA', '4940'), ('1685', '6', '618', '450.00', '1', 'REFUERZO DE FACIA DELANTERA', '4940'), ('1686', '6', '618', '450.00', '1', 'MARCO DE RADIADOR', '4940'), ('1687', '7', '618', '1100.00', '1', 'FACIA DELANTERA', '4940'), ('1688', '6', '0', '600.00', '1', 'facia delantera lado derecho', '4946'), ('1690', '6', '0', '600.00', '1', 'facia delantera lado derecho', '4946'), ('1692', '6', '623', '600.00', '1', 'facia delantera lado derecho (y ajuste)', '4946'), ('1693', '7', '623', '600.00', '1', 'facia delantera lado derecho', '4946'), ('1694', '6', '553', '1000.00', '1', 'MO', '4847'), ('1695', '7', '553', '650.00', '1', 'MO', '4847'), ('1697', '6', '624', '500.00', '1', 'EXTENSION IZQUIERDA DE FACIA TRASERA', '4947'), ('1698', '6', '624', '0.00', '1', 'AJUSTE DE SPOILER DE FACIA TRASERA LADO IZQUIERDO', '4947'), ('1699', '7', '624', '900.00', '1', 'SALPICADERA IZQUIERDA', '4947'), ('1700', '7', '624', '600.00', '1', 'EXTENSION IZQUIERDA DE FACIA TRASERA', '4947'), ('1701', '6', '559', '11440.00', '1', 'GLOBAL', '4854'), ('1702', '6', '0', '600.00', '1', 'facia trasera', '4948'), ('1703', '6', '564', '3910.00', '1', 'MO', '4862'), ('1704', '11', '566', '-300.00', '1', 'MENOS DESCUENTO', '4864'), ('1705', '8', '578', '1500.00', '1', 'MO', '4891'), ('1706', '7', '503', '1500.00', '1', 'FASCIA DEL', '4898'), ('1707', '7', '586', '1200.00', '1', 'mo', '4902'), ('1708', '8', '586', '800.00', '1', 'mo', '4902'), ('1712', '9', '425', '6747.78', '1', 'MO', '4905'), ('1711', '8', '594', '1300.00', '1', 'mo', '4913'), ('1721', '6', '602', '1911.50', '1', 'MO', '4921'), ('1722', '9', '609', '600.00', '1', 'AFINACION MAYOR', '4929'), ('1723', '9', '609', '750.00', '1', 'FRENOS', '4929'), ('1724', '11', '609', '650.00', '1', 'ESCANEO Y REPROGRAMACION', '4929'), ('1725', '11', '609', '3391.04', '1', 'REFACCIONES VARIAS', '4929'), ('1726', '6', '556', '1250.00', '1', 'MO', '4850'), ('1727', '7', '419', '500.00', '1', 'COST IZQ RETOQ', '4903'), ('1733', '9', '611', '400.00', '1', 'REEMPLAZO DE ARNES(ES)', '4933'), ('1730', '6', '627', '150.00', '1', 'PUERTA DELANTERA IZQUIERDA', '4951'), ('1731', '6', '627', '900.00', '1', 'PUERTA TRASERA IZQUIERDA', '4951'), ('1732', '6', '627', '950.00', '1', 'COSTADO IZQUIERDO', '4951'), ('1734', '11', '611', '2500.00', '1', 'REEMPLAZO DE COMPUTADORA', '4933'), ('1735', '11', '611', '1500.00', '1', 'REPROGRAMACION', '4933'), ('1736', '8', '0', '150.00', '1', 'lavado y encerado', '4952'), ('1737', '8', '468', '150.00', '1', 'LAVADO Y ENCERADO', '4952'), ('1738', '6', '547', '3443.00', '1', 'mo', '4841'), ('1739', '7', '547', '1311.00', '1', 'mo', '4841'), ('1740', '7', '547', '1942.53', '1', 'mt', '4841'), ('1742', '11', '547', '1200.00', '1', 'modulo de vent', '4841'), ('1743', '9', '610', '3400.00', '1', 'MO', '4932'), ('1744', '9', '610', '2906.20', '1', 'PZS VARIAS', '4932'), ('1745', '6', '0', '300.00', '1', 'extension izquierda de spoiler trasero', '4955'), ('1753', '6', '625', '600.00', '1', 'FACIA TRASERA (RESTO DE PIEZA)', '4948'), ('1751', '9', '359', '374.27', '1', 'REFACIONES ACEITE Y FILTRO', '4949'), ('1752', '9', '359', '50.00', '1', 'MO', '4949'), ('1749', '7', '0', '700.00', '1', 'extension de facia trasera lado izquierdo', '4955'), ('1750', '7', '0', '600.00', '1', 'extension izquierda de spoiler trasero', '4955'), ('1754', '7', '546', '600.00', '1', 'EXTENCION DE FASCIA TRASERA LADO IZQ', '4840'), ('1755', '11', '546', '-100.00', '1', 'SEPASA A LA ORDEN 4850', '4840'), ('1814', '7', '632', '500.00', '1', 'Facia delantera lado izquierdo (área dañada)', '4957'), ('1813', '6', '632', '850.00', '1', 'Salpicadera izquierda', '4957'), ('1761', '7', '632', '900.00', '1', 'SALPICADERA IZQUIERDA', '4957'), ('1762', '7', '632', '900.00', '1', 'PUERTA TRASERA DERECHA', '4957'), ('1763', '6', '629', '300.00', '1', 'EXTENSION DE SPOILER DE FACIA TRASERA LADO IZQUIERDO', '4954'), ('1764', '6', '629', '200.00', '1', 'EXTENSION DE FACIA TRASERA LADO IZQUIERDO', '4954'), ('1765', '7', '629', '500.00', '1', 'EXTENSION DE SPOILER DE FACIA TRASERA LADO IZQUIERDO', '4954'), ('1780', '7', '629', '600.00', '1', 'EXTENSION DE FACIA TRASERA LADO IZQUIERDO ', '4954'), ('1767', '6', '517', '2400.00', '1', 'MO', '4811'), ('1768', '6', '628', '400.00', '1', 'CORROSION EN CICLOPE TRASERO', '4953'), ('1769', '6', '628', '100.00', '1', 'AJUSTE DE MOLDURA DE SALPICADERA IZQUIERDA', '4953'), ('1770', '7', '628', '400.00', '1', 'CORROSION EN CICLOPE (MARCO DE TAPA CAJUELA)', '4953'), ('1771', '7', '628', '900.00', '1', 'PINTURA DE ESTRIBOS (IZQ Y DER)AREAS DAÑADAS', '4953'), ('1772', '7', '628', '200.00', '1', 'APLICACION DE RESINA A FAROS DE NIEBLA', '4953'), ('1773', '8', '628', '150.00', '1', 'LIMPIEZA DE INTERIORES, DESCONTAMINADO Y ENCERADO GENERAL', '4953'), ('1774', '8', '628', '0.00', '1', 'LAVADO DE MOTOR Y DESMANCHADO DE HULES Y GOMAS', '4953'), ('1775', '6', '599', '2469.60', '1', 'MO', '4918'), ('1776', '7', '599', '922.50', '1', 'MO', '4918'), ('1777', '7', '599', '1630.25', '1', 'MT', '4918'), ('1778', '6', '418', '4000.00', '1', 'MO', '4712'), ('1779', '6', '503', '5744.81', '1', 'MO', '4797'), ('1835', '6', '605', '450.00', '1', 'SALPICADERA DERECHA', '4925'), ('1782', '6', '605', '200.00', '1', 'ACOMPLETAR GRAPAS Y AJUSTAR LODERAS DELANTERAS Y TOLVAS', '4925'), ('1783', '6', '605', '100.00', '1', 'AJUSTAR PARRILA DELANTERA', '4925'), ('1834', '6', '605', '1400.00', '1', 'FACIA DELANTERA', '4925'), ('1870', '6', '605', '700.00', '1', 'puerta trasera derecha', '4925'), ('1869', '6', '605', '650.00', '1', 'puerta delantera derecha', '4925'), ('1787', '6', '605', '300.00', '1', 'ESTRIBO DERECHO (AREA DAÑADA)', '4925'), ('1832', '7', '605', '1000.00', '1', 'PUERTA TRASERA DERECHA', '4925'), ('1829', '7', '605', '1000.00', '1', 'FACIA DELANTERA', '4925'), ('1830', '7', '605', '1000.00', '1', 'SALPICADERA DERECHA', '4925'), ('1831', '7', '605', '1000.00', '1', 'PUERTA DELANTERA DERECHA', '4925'), ('1793', '11', '605', '100.00', '1', 'GUIA DE FACIA DELANTERA LADO DERECHO', '4925'), ('1794', '6', '614', '1400.00', '1', 'COSTADO IZQUIERDO', '4936'), ('1795', '7', '614', '1100.00', '1', 'COSTADO IZQUIERDO', '4936'), ('1796', '6', '606', '500.00', '1', 'SALPICADERA DERECHA', '4926'), ('1797', '6', '606', '200.00', '1', 'ESPEJO DERECHO', '4926'), ('1798', '6', '606', '400.00', '1', 'PUERTA DELANTERA DERECHA', '4926'), ('1799', '6', '606', '500.00', '1', 'PUERTA TRASERA DERECHA', '4926'), ('1800', '6', '606', '500.00', '1', 'COSTADO DERECHO', '4926'), ('1801', '7', '606', '300.00', '1', 'FACIA DELANTERA LADO IZQUIERDO', '4926'), ('1802', '7', '606', '300.00', '1', 'FACIA DELANTERA LADO DERECHO', '4926'), ('1803', '7', '606', '1100.00', '1', 'SALPICADERA DERECHA', '4926'), ('1804', '7', '606', '300.00', '1', 'ESPEJO DRECHO', '4926'), ('1805', '7', '606', '1100.00', '1', 'PUERTA DELANTERA DERECHA', '4926'), ('1806', '7', '606', '1100.00', '1', 'PUERTA TRASERA DERECHA', '4926'), ('1807', '7', '606', '1100.00', '1', 'COSTADO DERECHO', '4926'), ('1808', '7', '606', '600.00', '1', 'FACIA TRASERA LADO DERECHO', '4926'), ('1809', '11', '606', '500.00', '1', 'LUNA DE ESPEJO DERECHO', '4926'), ('1810', '8', '635', '750.00', '1', 'estetica interior', '4960'), ('1811', '8', '635', '750.00', '1', 'estetica exterior', '4960'), ('1812', '6', '513', '36050.00', '1', 'GLOBAL', '4807'), ('1817', '9', '626', '4200.00', '1', 'MANO DE OBRA POR REEMPLAZO DE PIEZAS MECANICAS', '4950'), ('1818', '9', '626', '650.00', '1', 'SERVICIO DE AFINACION MAYOR', '4950'), ('1819', '11', '626', '450.00', '1', 'ESCANEO PARA DETECCION DE FALLOS', '4950'), ('1820', '11', '626', '2300.00', '1', 'RESETEO Y REPROGRAMACION DE CATALIZADOR Y SENSORES DE OXIGENO', '4950'), ('1821', '11', '626', '350.00', '1', 'ALINEACION DE RUEDAS DELANTERAS', '4950'), ('1822', '11', '626', '10660.77', '1', 'REFACCIONES DE SUSPENSION', '4950'), ('1823', '7', '552', '150.00', '1', 'MO', '4846'), ('1824', '7', '552', '102.45', '1', 'MAT', '4846'), ('1825', '8', '552', '87.50', '1', 'MO', '4846'), ('1826', '8', '552', '43.75', '1', 'MAT', '4846'), ('1827', '6', '633', '300.00', '1', 'DESFORRADO DE PUERTAS PARA RETIRAR MANIJAS EXTERIORES', '4958'), ('1828', '7', '633', '900.00', '1', '4 MANIJAS', '4958'), ('1833', '7', '605', '700.00', '1', 'ESTRIBO DERECHO (AREA DAÑADA)', '4925'), ('1846', '11', '587', '6131.00', '1', 'PZAS Y TOT', '4904'), ('1847', '6', '598', '2067.00', '1', 'MO', '4917'), ('1848', '7', '598', '728.00', '1', 'MO', '4917'), ('1849', '7', '598', '1259.65', '1', 'MAT', '4917'), ('1850', '11', '598', '80.00', '1', 'FOCO', '4917'), ('1851', '11', '608', '1331.00', '1', 'TOLVA DE SALPICADERA', '4928'), ('1852', '11', '608', '250.00', '1', 'KIT GRAPAS', '4928'), ('1853', '6', '0', '200.00', '1', 'facia delantera', '4963'), ('1854', '6', '0', '450.00', '1', 'salpicadera derecha punta del', '4963'), ('1855', '7', '0', '1100.00', '1', 'facia delantera', '4963'), ('1856', '7', '0', '600.00', '1', 'salpicadera derecha punta del', '4963'), ('1873', '7', '637', '450.00', '1', 'pintura de herrajes', '4963'), ('1858', '6', '630', '500.00', '1', 'SELLADO DE CALAVERAS', '4955'), ('1859', '6', '630', '400.00', '1', 'SELLADO DE HALOGENOS', '4955'), ('1860', '6', '630', '500.00', '1', 'REPARACION DE MANIJAS TRASERA IZQUIERDA Y DEL DERECHA', '4955'), ('1861', '6', '630', '300.00', '1', 'COSTADO DERECHO DE CAMA (AREA DAÑADA)', '4955'), ('1862', '7', '630', '600.00', '1', 'COSTADO DERECHO DE CAMA (AREA DAÑADA)', '4955'), ('1863', '8', '630', '250.00', '1', 'LIMPIEZA DE INTERIORES', '4955'), ('1864', '8', '630', '850.00', '1', 'ESTETICA EXTERIOR', '4955'), ('1976', '6', '652', '300.00', '1', 'SALPICADERA IZQUIERDA (PUNTA) AREA DAÑADA) SIN PINTURA', '4980'), ('1975', '6', '652', '300.00', '1', 'AJUSTE DE TOLVAS Y LODERAS DELANTERAS', '4980'), ('1974', '6', '652', '300.00', '1', 'AJUSTE DE FACIA DELANTERA ', '4980'), ('1871', '6', '0', '0.00', '1', 'revision de faro o luz de unidad izquierda', '4966'), ('1872', '7', '0', '300.00', '1', 'moldura de forro de puerta', '4969'), ('1874', '6', '641', '250.00', '1', 'AJUSTE DE TOLVAS', '4968'), ('1875', '9', '641', '350.00', '1', 'AJUSTE Y SELLADO DE MORDASAS', '4968'), ('1876', '11', '641', '200.00', '1', 'KIT DE GRAPAS', '4968'), ('1877', '11', '641', '40.00', '1', 'SILICON', '4968'), ('1878', '9', '508', '650.00', '1', 'SERVICIO DE AFINACION MAYOR', '4966'), ('1881', '9', '508', '150.00', '1', 'LIMPIEZA Y AJUSTE DE FRENOS DELANTEROS Y TRASEROS', '4966'), ('1880', '11', '508', '589.00', '1', 'KIT DE AFINACION MAYOR', '4966'), ('1882', '6', '636', '400.00', '1', 'COSTADO IZQUIERDO\t\t\t', '4961'), ('1883', '6', '636', '300.00', '1', 'RIN TRASERO IZQUIERDO (AREA DAÑADA)', '4961'), ('1884', '6', '636', '150.00', '1', 'PUERTA TRASERA IZQUIERDA', '4961'), ('1885', '6', '636', '150.00', '1', 'PUERTA DELANTERA IZQUIERDA (FILO)', '4961'), ('1886', '7', '636', '1100.00', '1', 'COSTADO IZQUIERDO', '4961'), ('1887', '7', '636', '300.00', '1', 'ESTRIBO IZQUIERDO PUNTA TRASERA', '4961'), ('1892', '11', '643', '1000.00', '1', 'presupuesto', '4971'), ('1889', '7', '636', '400.00', '1', 'RIN TRASERO IZQUIERDO (AREA DAÑADA)', '4961'), ('1890', '7', '636', '1100.00', '1', 'PUERTA TRASERA IZQUIERDA', '4961'), ('1891', '7', '636', '600.00', '1', 'PUERTA DELANTERA IZQUIERDA (FILO)', '4961'), ('1893', '6', '644', '800.00', '1', 'facia delantera', '4972'), ('1894', '7', '644', '1100.00', '1', 'facia delantera', '4972'), ('1895', '6', '645', '700.00', '1', 'adaptacion de tapa de cama', '4973'), ('1899', '9', '648', '1100.00', '1', 'REPARACION Y MODIFICACION DE CABLERIA PARA SU OPTIMO FUNCIONAMIENTO', '4976'), ('1900', '11', '648', '1500.00', '1', 'BATERIA', '4976'), ('1901', '6', '0', '350.00', '1', 'ajuste de spoiler de facia delantera', '4982'), ('1902', '6', '654', '350.00', '1', 'AJUSTE DE SPOILER DE FACIA DELANTERA', '4982'), ('1903', '6', '655', '400.00', '1', 'AJUSTE DE ESPEJO IZQUIERDO', '4983'), ('1904', '6', '653', '1800.00', '1', 'adaptacion de base de cremallera', '4981'), ('1905', '6', '606', '600.00', '1', 'FACIA TRASERA', '4988'), ('1906', '7', '606', '1000.00', '1', 'FACIA TRASERA', '4988'), ('1907', '6', '660', '700.00', '1', 'FACIA TRASERA', '4989'), ('1908', '7', '660', '1100.00', '1', 'FACIA TRASERA', '4989'), ('1909', '7', '660', '600.00', '1', 'FACIA DELANTERA LADO DERECHO (AREA DAÑADA)', '4989'), ('1910', '8', '660', '300.00', '1', 'APLICACION DE PROTECCION A PIEL (INTERIOR)', '4989'), ('1911', '9', '0', '0.00', '1', 'SERVICIO DE AFINACION MAYOR', '4990'), ('1912', '11', '0', '450.00', '1', 'KIT DE AFINACION MAYOR', '4990'), ('1913', '7', '0', '800.00', '1', 'ARBOL (ESTRUCTURA)', '4991'), ('1914', '6', '0', '750.00', '1', 'puerta delantera izquierda (area dañada)(filo)', '4992'), ('1915', '6', '0', '1900.00', '1', 'salpicadera izquierda', '4992'), ('1916', '6', '0', '300.00', '1', 'reemplazo y ajuste de partes', '4992'), ('1917', '7', '0', '600.00', '1', 'puerta delantera izquierda (area dañada)(filo)', '4992'), ('1918', '7', '0', '1500.00', '1', 'salpicadera izquierda', '4992'), ('1919', '11', '0', '14351.00', '1', 'espejo izquierdo', '4992'), ('1920', '11', '0', '1650.00', '1', 'moldura cromada de puerta delantera izquierda', '4992'), ('1921', '6', '620', '3400.00', '1', 'GLOBAL', '4943'), ('1922', '6', '663', '1900.00', '1', 'SALPICADERA IZQUIERDA', '4992'), ('1923', '6', '663', '750.00', '1', 'PUERTA DELANTERA IZQUIERDA AREA DAÑADA (FILO)', '4992'), ('1924', '6', '663', '300.00', '1', 'REEMPLAZO Y AJUSTE DE PIEZAS', '4992'), ('1925', '7', '663', '1500.00', '1', 'SALPICADERA IZQUIERDA', '4992'), ('1926', '7', '663', '600.00', '1', 'PUERTA DELANTERA IZQUIERDA AREA DAÑADA (FILO)', '4992'), ('1930', '11', '663', '1650.00', '1', 'MOLDURA CROMADA DE PUERTA DELANTERA IZQUIERDA', '4992'), ('1929', '11', '663', '14351.00', '1', 'ESPEJO IZQUIERDO (COMPLETO)', '4992'), ('1931', '6', '0', '1800.00', '1', 'REEMPLAZO DE PISO TRASERO LADO DERECHO Y BASE DE ACUMULADOR', '4994'), ('1932', '7', '0', '300.00', '1', 'PISO TRASERO LADO DERECHO', '4994'), ('1933', '7', '662', '800.00', '1', 'aplicacion de resina a estructura (arbol)', '4991'), ('1934', '6', '664', '200.00', '1', 'facia trasera', '4993'), ('1935', '7', '664', '1100.00', '1', 'facia trasera', '4993'), ('1936', '6', '665', '1800.00', '1', 'reemplazo de piso trasero derecho y base de acumulador', '4994'), ('1937', '6', '665', '150.00', '1', 'sustitucion de espejo derecho', '4994'), ('1938', '7', '665', '300.00', '1', 'piso trasero derecho y base de acumulador', '4994'), ('1939', '11', '665', '373.99', '1', 'espejo derecho negro (agencia)', '4994'), ('1940', '7', '659', '950.00', '1', 'salpicadera izquierda', '4987'), ('1941', '6', '658', '500.00', '1', 'toldo parte trasera', '4986'), ('1942', '7', '658', '650.00', '1', 'toldo parte trasera (area dañada)', '4986'), ('1943', '7', '624', '300.00', '1', 'MOLDURA DE FORRO DE PUERTA', '4969'), ('1944', '6', '650', '200.00', '1', 'PUERTA DELANTERA IZQUIERDA', '4978'), ('1945', '7', '650', '1900.00', '1', 'PUERTA DELANTERA IZQUIERDA\t\t PUERTA DELANTERA DERECHA\t\t', '4978'), ('1950', '6', '657', '1150.00', '1', 'FACIA DELANTERA', '4985'), ('1947', '6', '657', '250.00', '1', 'PUERTA DERECHA (PARTE BAJA) AREA DAÑADA', '4985'), ('1948', '7', '657', '950.00', '1', 'FACIA DELANTERA', '4985'), ('1949', '7', '657', '500.00', '1', 'PUERTA DERECHA (PARTE BAJA) AREA DAÑADA', '4985'), ('1951', '6', '574', '180.00', '1', 'SUSTITUIR FASCIA DELANTERA', '4884'), ('1952', '7', '0', '600.00', '1', 'facia delantera lado izquierdo (area dañada)', '4997'), ('1961', '7', '671', '1100.00', '1', '4 RINES', '5001'), ('1954', '11', '666', '896.00', '1', 'KIT DE AFINACION MAYOR', '4995'), ('1955', '11', '666', '447.00', '1', 'BALATAS DELANTERAS (NUEVAS)', '4995'), ('1956', '11', '666', '448.00', '1', 'BALATAS TRASERAS (NUEVAS)', '4995'), ('1957', '11', '666', '493.66', '1', 'BASE FRONTAL DE MOTOR', '4995'), ('1958', '11', '666', '358.00', '1', 'BASE TRASERA DE MOTOR', '4995'), ('1959', '11', '666', '390.00', '1', 'BASE IZQUIERDA LADO CAJA', '4995'), ('1960', '11', '666', '290.00', '1', 'BANDA DE ALTERNADOR', '4995'), ('1962', '7', '671', '1100.00', '1', 'TAPA DE REFACCION', '5001'), ('1963', '11', '606', '660.75', '1', 'DIFERENCIA DEL ESPEJO', '4988'), ('1964', '9', '679', '400.00', '1', 'instalacion de sensor de llanta de ABS', '5010'), ('1965', '6', '675', '600.00', '1', 'PUERTA TRASERA DERECHA', '5005'), ('1966', '7', '675', '950.00', '1', 'PUERTA TRASERA DERECHA', '5005'), ('1967', '7', '675', '500.00', '1', 'COSTADO DERECHO (PARTE BAJA) AREA DAÑADA', '5005'), ('1968', '6', '0', '250.00', '1', 'FACIA DELANTERA LADO IZQUIERDO (AJUSTE) AREA DAÑADA', '5016'), ('1969', '6', '0', '950.00', '1', 'SALPICADERA IZQUIERDA', '5016'), ('1970', '7', '0', '600.00', '1', 'FACIA DELANTERA LADO IZQUIERDO (AJUSTE) AREA DAÑADA', '5016'), ('1971', '7', '0', '1100.00', '1', 'SALPICADERA IZQUIERDA', '5016'), ('1973', '6', '638', '646.70', '1', 'COSTO', '4964'), ('1977', '6', '652', '250.00', '1', 'AJUSTE DE FACIA TRASERA', '4980'), ('1978', '11', '652', '250.00', '1', 'KIT DE GRAPAS PARA TOLVAS DELANTERAS', '4980'), ('1979', '9', '0', '150.00', '1', 'REEMPLAZO DE BALATAS TRASERAS', '5019'), ('1980', '11', '0', '120.00', '1', 'BALATAS TRASERAS', '5019'), ('1981', '6', '0', '200.00', '1', 'MOLDURA DE COSTADO IZQUIERDO', '5020'), ('1982', '6', '0', '100.00', '1', 'MANO DE OBRA POR REEMPLAZO DE AMORTIGUADORES DE TAPA CAJUELA', '5020'), ('1983', '7', '0', '300.00', '1', 'MOLDURA DE COSTADO IZQUIERDO', '5020'), ('1984', '7', '0', '700.00', '1', 'MOLDURAS DE EXTENSION DE FACIA TRASERA LADO IZQUIERDO', '5020'), ('1985', '8', '0', '700.00', '1', 'ESTETICA INTERIOR', '5020'), ('1986', '8', '0', '700.00', '1', 'ESTETICA EXTERIOR', '5020'), ('1987', '11', '0', '760.00', '1', 'AMORTIGUADORES DE TAPA CAJUELA (2)', '5020'), ('1988', '6', '687', '1000.00', '1', 'costado derecho parte inferior (area dañada)', '5021'), ('1989', '6', '687', '400.00', '1', 'puerta trasera derecha (filo)area dañada', '5021'), ('1990', '7', '687', '500.00', '1', 'costado derecho parte inferior (area dañada)', '5021'), ('1991', '7', '687', '500.00', '1', 'puerta trasera derecha (filo)area dañada', '5021'), ('1992', '6', '677', '800.00', '1', 'puerta trasera izquierda', '5007'), ('1993', '7', '677', '1200.00', '1', 'puerta trasera izquierda', '5007'), ('1994', '9', '626', '500.00', '1', 'REEMPLAZO DE BALEROS DELANTEROS', '5015'), ('1995', '9', '626', '300.00', '1', 'RREMPLAZO DE POLEA LOCA', '5015'), ('1996', '11', '626', '3500.00', '1', 'reemplazo de balero, pastas y polea de compresor', '5015'), ('1997', '11', '626', '700.00', '1', 'RESETEO Y REPROGRAMACION', '5015'), ('1998', '11', '626', '200.00', '1', 'ALINEACION DE RUEDAS DELANTERAS', '5015'), ('1999', '11', '626', '818.00', '1', '2 BALEROS DELANTEROS', '5015'), ('2000', '11', '626', '108.00', '1', 'POLEA LOCA', '5015'), ('2001', '6', '651', '100.00', '1', 'AJUSTE DE CINTURON DE SEGURIDAD DE CONDUCTOR', '4979'), ('2002', '6', '651', '400.00', '1', 'REPARACION DE CERRADURA DE GUANTERA', '4979'), ('2003', '9', '651', '300.00', '1', 'AJUSTE DE LUCES DE INTERIOR', '4979'), ('2004', '9', '651', '450.00', '1', 'RECTIFICACION DE CABLERIA PARA LUCES DELANTERAS Y TRASERAS', '4979'), ('2005', '11', '651', '3403.00', '1', 'REEMPLAZO DE BOMBA PRINCIPAL Y AUXILIAR DE CLUCH', '4979'), ('2006', '11', '651', '28.00', '1', 'KIT DE FOCOS', '4979'), ('2007', '11', '651', '878.00', '1', 'CALAVERAS (IZQ Y DER)', '4979'), ('2008', '9', '688', '500.00', '1', 'REEMPLAZO DE SENSOR DE VELOCIMETRO', '5023'), ('2009', '6', '689', '800.00', '1', 'FACIA TRASERA', '5025'), ('2010', '7', '689', '1100.00', '1', 'FACIA TRASERA', '5025'), ('2011', '6', '0', '250.00', '1', 'COSTADO DERECHO PARTE INFERIOR (AREA DAÑADA)', '5026'), ('2012', '7', '0', '500.00', '1', 'COSTADO DERECHO PARTE INFERIOR (AREA DAÑADA)', '5026'), ('2013', '6', '673', '900.00', '1', 'FACIA TRASERA', '5003'), ('2014', '6', '673', '300.00', '1', 'SALPICADERA DERECHA', '5003'), ('2015', '7', '673', '1200.00', '1', 'FACIA DELANTERA', '5003'), ('2016', '7', '673', '1200.00', '1', 'SALPICADERA DERECHA', '5003'), ('2017', '7', '673', '1200.00', '1', 'FACIA TRASERA', '5003'), ('2091', '9', '666', '3600.00', '1', 'M O', '4995'), ('2019', '6', '684', '200.00', '1', 'FACIA DELANTERA LADO IZQUIERDO (AJUSTE)', '5016'), ('2020', '6', '684', '1000.00', '1', 'SALPICADERA IZQUIERDA', '5016'), ('2021', '7', '684', '1100.00', '1', 'SALPICADERA IZQUIERDA', '5016'), ('2022', '7', '684', '600.00', '1', 'FACIA DELANTERA LADO IZQUIERDO (AREA DAÑADA)', '5016'), ('2023', '6', '683', '200.00', '1', 'COSTADO DERECHO PARTE INFERIOR AREA DAÑADA', '5014'), ('2024', '6', '683', '1100.00', '1', 'ESTRIBO DERECHO', '5014'), ('2025', '7', '683', '1100.00', '1', 'FACIA DELANTERA', '5014'), ('2026', '7', '683', '600.00', '1', 'COSTADO DERECHO PARTE INFERIOR AREA DAÑADA', '5014'), ('2027', '7', '683', '900.00', '1', 'ESTRIBO DERECHO', '5014'), ('2028', '7', '683', '1100.00', '1', 'FACIA TRASERA', '5014'), ('2029', '6', '691', '500.00', '1', 'facia delantera lado derecho y ajuste', '5028'), ('2030', '7', '691', '800.00', '1', 'facia delantera lado derecho area dañada', '5028'), ('2102', '7', '675', '500.00', '1', 'COSTADO DERECHO (MARCO)AREA DAÑADA', '5026'), ('2054', '11', '0', '642.00', '1', 'UNIDAD DERECHA', '5034'), ('2043', '6', '0', '1400.00', '1', 'PUERTA TRASERA DERECHA', '5031'), ('2044', '6', '0', '1000.00', '1', 'COSTADO DERECHO', '5031'), ('2045', '7', '0', '1100.00', '1', 'PUERTA TRASERA DERECHA', '5031'), ('2046', '7', '0', '1100.00', '1', 'COSTADO DERECHO', '5031'), ('2047', '7', '0', '300.00', '1', 'ESPEJO IZQUIERDO', '5031'), ('2048', '8', '0', '700.00', '1', 'ESTETICA EXTERIOR', '5031'), ('2049', '6', '0', '500.00', '1', 'COSTADO IZQUIERDO', '5033'), ('2050', '8', '0', '50.00', '1', 'PULIR FACIA TRASERA LADO IZQUIERDO', '5033'), ('2051', '9', '0', '150.00', '1', 'SERVICIO DE AFINACION MENOR', '5033'), ('2101', '6', '675', '200.00', '1', 'COSTADO DERECHO (MARCO) AREA DAÑADA', '5026'), ('2052', '11', '0', '366.10', '1', 'KIT DE AFINACION MENOR', '5033'), ('2053', '6', '0', '0.00', '1', 'REEMPLAZO DE UNIDAD DERECHA', '5034'), ('2055', '6', '696', '0.00', '1', 'REEMPLAZO DE UNIDAD DERECHA', '5034'), ('2056', '11', '696', '642.00', '1', 'UNIDAD DERECHA', '5034'), ('2057', '8', '538', '650.00', '1', 'EST INTERIOR', '4832'), ('2064', '7', '656', '1225.32', '1', '', '4984'), ('2060', '11', '656', '204.00', '1', 'KIT DE GRAPAS', '4984'), ('2063', '6', '656', '949.20', '1', '', '4984'), ('2065', '7', '663', '550.00', '1', 'ESPEJO IZQUIERDO', '4992'), ('2066', '7', '0', '1100.00', '1', 'TANQUE DE GASOLINA', '5038'), ('2067', '7', '0', '900.00', '1', 'GUARDALODO DELANTERO', '5038'), ('2068', '7', '0', '1100.00', '1', 'GUARDALODO TRASERO', '5038'), ('2069', '7', '0', '500.00', '1', 'BASE DE GUARDALODO TRASERO', '5038'), ('2070', '9', '0', '300.00', '1', 'REEMPLAZO DE CHICOTE Y FUNDA DE CLUCH', '5040'), ('2071', '11', '0', '110.00', '1', 'CHICOTE DE CLUCH', '5040'), ('2072', '11', '0', '70.00', '1', 'FUNDA DE CLUCH', '5040'), ('2073', '9', '702', '300.00', '1', 'REEMPLAZO DE CHICOTE Y FUNDA DE CLUCH', '5040'), ('2074', '11', '702', '180.00', '1', 'CHICOTE Y FUNDA DE CLUCH', '5040'), ('2075', '6', '669', '1100.00', '1', 'TOLDO', '4999'), ('2076', '6', '669', '250.00', '1', 'DESMONTAJE DE CIELO RASO Y MEDALLON PARA REPARACION DE TOLDO Y FILTR DE AGUA', '4999'), ('2077', '6', '669', '600.00', '1', 'ADAPTACION DE SOPORTE DE BETLINER LADO IZQUIERDO', '4999'), ('2078', '6', '669', '750.00', '1', 'SELLADO DE MEDALLON Y AJUSTE DE CAÑUELA DE MEDALLON', '4999'), ('2079', '7', '669', '1100.00', '1', 'TOLDO', '4999'), ('2080', '7', '669', '500.00', '1', 'VOLANTE', '4999'), ('2081', '7', '669', '1000.00', '1', 'MARCOS DE TOLDO (IZQ Y DER)', '4999'), ('2082', '7', '669', '200.00', '1', 'GANCHO DE BICERA LADO IZQUIERDO', '4999'), ('2083', '8', '669', '750.00', '1', 'ESTETICA INTERIOR', '4999'), ('2084', '8', '669', '850.00', '1', 'ESTETICA EXTERIOR', '4999'), ('2085', '11', '669', '337.00', '1', 'GANCHO DE BICERA LADO IZQUIERDO', '4999'), ('2086', '11', '669', '365.00', '1', 'TAPA DE COSTADO DE CAMA LADO DERECHO', '4999'), ('2087', '6', '672', '3124.00', '1', '', '5002'), ('2088', '7', '672', '1048.30', '1', 'MO', '5002'), ('2089', '7', '672', '1268.95', '1', 'MAT', '5002'), ('2090', '11', '672', '380.00', '1', 'TAPA DE CTA DE ESTRIBO D', '5002'), ('2092', '11', '666', '-800.00', '1', 'MENOS DESCUENTO ', '4995'), ('2093', '6', '690', '400.00', '1', 'FACIA DELANTERA LADO IZQUIERDO AREA DAÑADA', '5027'), ('2094', '6', '690', '1800.00', '1', 'SALPICADERA IZQUIERDA', '5027'), ('2106', '7', '311', '1200.00', '1', 'FACIA TRASERA', '5024'), ('2096', '7', '690', '1300.00', '1', 'SALPICADERA IZQUIERDA', '5027'), ('2103', '6', '311', '1300.00', '1', 'FACIA TRASERA', '5024'), ('2104', '6', '311', '700.00', '1', 'BASES DE FACIA TRASERA CENTRALES (2)', '5024'), ('2099', '7', '690', '700.00', '1', 'FACIA DELANTERA LADO IZQUIERDO AREA DAÑADA', '5027'), ('2105', '6', '311', '200.00', '1', 'CAPARASON DE SENSOR DE REVERSA', '5024'), ('2107', '6', '693', '200.00', '1', 'COSTADO DERECHO PARTE INFERIOR (AREA DAÑADA)', '5030'), ('2108', '7', '693', '600.00', '1', 'COSTADO DERECHO PARTE INFERIOR (AREA DAÑADA)', '5030'), ('2109', '7', '693', '600.00', '1', 'FACIA TRASERA LADO DERECHO (AREA DAÑADA)', '5030'), ('2110', '8', '693', '650.00', '1', 'ESTETICA INTERIOR', '5030'), ('2111', '8', '693', '650.00', '1', 'ESTETICA EXTERIOR', '5030'), ('2112', '9', '685', '150.00', '1', 'servicio menor', '5017'), ('2113', '9', '685', '2600.00', '1', 'mano de obra por reemplazo y ajuste de partes mecanicas', '5017'), ('2114', '11', '685', '458.40', '1', 'KIT DE AFINACION MENOR', '5017'), ('2115', '11', '685', '60.00', '1', 'ANTICONGELANTE', '5017'), ('2116', '11', '685', '144.00', '1', 'VULVO DE TEMPERATURA', '5017'), ('2117', '11', '685', '301.20', '1', 'BANDA DE ALTERNADOR', '5017'), ('2118', '11', '685', '108.00', '1', 'TAPA DE RECUPERADOR', '5017'), ('2119', '11', '685', '638.00', '1', 'VARILLAS DE DIRECCION DEL IZQ Y DER', '5017'), ('2120', '7', '0', '300.00', '1', 'BASE DE MONTURA DE BICICLETA', '5050'), ('2121', '7', '0', '200.00', '1', 'GANCHO DE BICERA IZQUIERDA(YA COBRADO EN ORDEN ANTERIOR)', '5050'), ('2122', '6', '605', '1500.00', '1', 'FACIA DELANTERA', '5048'), ('2123', '6', '605', '200.00', '1', 'SALPICADERA DERECHA (PUNTA)AREA DAÑADA', '5048'), ('2124', '7', '605', '1200.00', '1', 'FACIA DELANTERA', '5048'), ('2125', '7', '605', '600.00', '1', 'SALPICADERA DERECHA (PUNTA)AREA DAÑADA', '5048'), ('2126', '6', '705', '250.00', '1', 'INSTALACION', '5043'), ('2127', '7', '705', '500.00', '1', 'ESPEJO IZQUIERDO', '5043'), ('2128', '11', '705', '615.00', '1', 'ESPEJO IZQUIERDO (GENERICO)', '5043'), ('2129', '6', '694', '1100.00', '1', 'PUERTA TRASERA DERECHA', '5031'), ('2130', '6', '694', '1300.00', '1', 'COSTADO DERECHO', '5031'), ('2131', '7', '694', '1100.00', '1', 'COSTADO DERECHO', '5031'), ('2132', '7', '694', '1100.00', '1', 'PUERTA TRASERA DERECHA', '5031'), ('2133', '7', '694', '300.00', '1', 'ESPEJO IZQUIERDO', '5031'), ('2134', '8', '694', '700.00', '1', 'ESTETICA EXTERIOR', '5031')\");\n\n\t//table usuarios\n\t\t$fields = array(\n\t\t\t\t\t\"`idUsuarios` int(11) NOT NULL AUTO_INCREMENT\",\n\t\t\t\t\t\"`nombre` varchar(45) DEFAULT NULL\",\n\t\t\t\t\t\"`apellido_pat` varchar(45) DEFAULT NULL\",\n\t\t\t\t\t\"`apellido_mat` varchar(45) DEFAULT NULL\",\n\t\t\t\t\t\"`username` varchar(45) DEFAULT NULL\",\n\t\t\t\t\t\"`password` varchar(150) DEFAULT NULL\",\n\t\t\t\t\t\"`privilegios` tinyint(1) DEFAULT NULL\",\n\t\t\t\t);\n\n\t\t$this->dbforge->add_field($fields);\n\t\t$this->dbforge->add_key('idUsuarios', TRUE);\n\t\t$this->dbforge->create_table('usuarios', TRUE);\n\t\t$this->db->simple_query('ALTER TABLE `usuarios` AUTO_INCREMENT=16 DEFAULT CHARSET=utf8');\n\t\t$this->db->simple_query(\"INSERT INTO `usuarios` VALUES ('10', 'Miguel', 'Canul', 'Conrado', 'Admin', '939fad8b811b96b9a11f3647ff572e0c5a9df072', '1'), ('11', 'Maricruz', 'Conrado', 'Euán', 'Maricruz', '615b0ce296419ed54ca30f854a713f5051085f71', '2'), ('12', 'Pablo', 'Martinez', 'Gonzales', 'Pablo', '86dc02e26038daaad5583757886e4dc4dcab83f8', '2'), ('13', 'Saydi', 'Mora', 'Solis', 'Saydi', '44eaeaf16d4ca5ab4e426443f84f74aeb0302b97', '2'), ('14', null, null, null, 'admin', 'ef4fc8d05a7b2d39d48d06bbb9d96957cb5bc968', '1'), ('15', 'Manuel', 'Batun', 'Calderon', 'manuel', 'ae8df4e1bc0d7edf60418f1210aa6e2509f60a3a', '2')\");\n\t\n\t//table vehiculos\n\t\t$fields = array(\n\t\t\t\t\t\"`idVehiculo` int(11) NOT NULL AUTO_INCREMENT\",\n\t\t\t\t\t\"`marca` varchar(45) DEFAULT NULL\",\n\t\t\t\t\t\"`modelo` varchar(45) DEFAULT NULL\",\n\t\t\t\t\t\"`color` varchar(45) DEFAULT NULL\",\n\t\t\t\t\t\"`placas` varchar(45) DEFAULT NULL\",\n\t\t\t\t\t\"`num_VIN` varchar(45) DEFAULT NULL\",\n\t\t\t\t\t\"`cliente` varchar(45) DEFAULT NULL\",\n\t\t\t\t\t\"`empresa` varchar(45) DEFAULT NULL\",\n\t\t\t\t\t\"`telefono` varchar(45) DEFAULT NULL\",\n\t\t\t\t\t\"`year` int(4) DEFAULT NULL\",\n\t\t\t\t\t\"`idUsuario` int(11) DEFAULT NULL\",\n\t\t\t\t\t\"`correo` varchar(255) DEFAULT NULL\",\n\t\t\t\t);\n\n\t\t$this->dbforge->add_field($fields);\n\t\t$this->dbforge->add_key('idVehiculo', TRUE);\n\t\t$this->dbforge->create_table('vehiculo', TRUE);\n\t\t$this->db->simple_query('ALTER TABLE `usuarios` AUTO_INCREMENT=712 DEFAULT CHARSET=utf8');\n\t\t$this->db->simple_query(\"INSERT INTO `vehiculo` VALUES ('19', 'Nissan', 'X-trail', 'Dorado', 'YZE7056', 'JN8BT08T76W814588', 'Miguel Cámara', 'Particular', '9991746955', '2006', '10', null), ('20', 'Mercedez Benz', 'C 200', 'Blanco', 'ZAF3068', 'WDDCF4JB6BA461548\t\t', 'BANOBRAS S.N.C', 'Mapfre', '9999900638', '2011', '10', null), ('21', 'Chrysler', 'Voyaguer', 'Azul', 'YZX2358', '1C4GJ25R25B41A457', 'MIGUEL ANGEL MARRUFO PIÑA', 'Mapfre', '9991728505', '2005', '10', null), ('22', 'Ford', 'Escape', 'Negra', 'ZAB8734', '00000000000000000', 'Oscar Pérez', 'Particular', '9260589', '2012', '10', null), ('23', 'Toyota', 'FJ', 'Azul', 'UUX5516', 'JTEBU11F28K036077', 'Eduardo Canto', 'Particular', '9999580341', '2011', '10', null), ('24', 'Volkswagen', 'Pointer', 'Blanco', 'YZV6171', '9BWCC05W47P004495', 'Catalina Canedo García', 'Mapfre', '9992343812', '2007', '10', null), ('25', 'Dodge', 'Ram', 'Cafe', 'YP63075', '3B7HF13Z5XG119055', 'Abel Canto', 'Particular', '9999688025', '1999', '10', null), ('26', 'Chrysler', 'H 100', 'Blanco', 'YP13711', 'KMFZB17H78U383348', 'Abel Canto', 'Particular', '0', '2007', '10', null), ('27', 'Nissan', 'Tsuru', 'Amarillo', '5819YZB', '3N1EB31SXBK305182', 'ALVAR ABRAHAM CABALLERO BETANCOURT', 'Mapfre', '9991788039', '2011', '10', null), ('28', 'Volkswagen', 'Pointer', 'Gris', 'YZA3252', '00000000000000001', 'José Garrido', 'Particular', '0000000', '2005', '10', null), ('29', 'Chrysler', 'Town and crountry', 'Blanco', 'ZAC4287', '2A4GP44L06N687656', 'SERVICIOS DE CONSULTORIA ORTEGON AZNAR', 'Qualitas', '9206731', '2006', '10', null), ('30', 'Mitsubishi', 'Outlander', 'Gris', 'XXXXXX', '0000', 'MAPFRE', 'PIEZA', '00', '2005', '10', ''), ('31', 'Mitsubishi', 'Lancer', 'Azul', 'YZH7141', 'JE3AJ26E37U008204', 'Silvia Carballo Gorosica', 'Particular', '9260589', '2007', '10', null), ('32', 'Chevrolet', 'Malibu', 'Gris', 'XXXXX1', '00000000000000003', 'Ricardo Rodriguez Espinoza', 'Particular', '9992681466\t', '2007', '10', null), ('33', 'Chevrolet', 'Chevy', 'Azul', 'YZB2925', '3G1SE51X195146165', 'JOAQUIN ARMANDO FERNANDEZ PERAZA', 'Mapfre', '9291314', '2009', '10', null), ('34', 'Cadillac', 'Escalade', 'Negro', 'XXXXX2', '00000000000000004', 'Betty Murillo', 'Particular', '9999999', '2003', '10', null), ('35', 'bicimotos', 'bicicleta', 'plata', 'sinplaca', 'sinnumerodeserie', 'ing raciel arjona', 'particular', '9449797', '2013', '12', null), ('36', 'mazda', '3', 'blanco', 'yzf1584', 'JM1BK12F181105405', 'alonso sansores', 'particular', '9991637856', '2008', '12', null), ('37', 'chevrolet', 'aveo', 'negro', '580wuf', '3G1TV52679L146742', 'juan diaz', 'particular', '9999681099', '2009', '12', null), ('38', 'toyota', 'rav 4', 'negro', 'yzz8914', 'JTM2035V675044101', 'tecnologias safe energy s.a de c.v', 'mapfre', '9992399097', '2007', '12', null), ('39', 'vw', 'polo', 'azul', 'yzl4824', '9BWHB09N65P029244', 'alfonzo palma gamboa', 'mapfre', '9992613032', '2005', '12', null), ('40', 'ford', 'winstar', 'rojo', 'yzy5121', '2FMDA5242YBB60558', 'oswaldo monsreal', 'particular', '9999494293', '2000', '12', null), ('41', 'ford', 'fiesta', 'azul', 'yzk1190', '00000000012102247', 'daniel francisco perez euan', 'qualitas', '9991432790', '2001', '12', null), ('42', 'ford', 'mustang', 'blanco', 'yzt1573', '12ft80n575268368', 'rafael ravedano', 'particular', '9991893015', '2007', '12', null), ('43', 'vw', 'gol', 'plata', 'YZR2780', '9BWDB05U79T228604', 'CRISTINA DEL SOCORRO HERRERA CARRILLO ', 'mapfre', '9992587904', '2009', '12', null), ('44', 'dodge', 'avenger', 'rojo', 'ZAK6655', '1B3KC46K18N261802', 'JAIME JOAQUIN MARTIN SALOMON', 'qualitas', '9992551603', '2008', '12', null), ('45', 'dodge', 'caliber', 'negro', 'ZAG1784', '1B3JB48C07D204905', 'JOSE FRANCISCO PUGA SOSA', 'particular', '9991201481', '2007', '12', null), ('46', 'mitsubishi', 'outlander', 'roja', 'SINPL', 'JE4L521W2DU025492', 'millenium', 'particular', '9202008', '2013', '12', null), ('47', 'mitsubishi', 'outlander', 'blanca', 'YZP-3745', 'JE4LX1F85UO29612', 'millenium', 'particular', '9202008', '2005', '12', null), ('48', 'nissan ( TRANSITO )', 'xtrail', 'gris', 'ZAJ1706', 'JN8ATAOT58W503021', 'MARCELA SANTOYO GARZA', 'mapfre / TRANSITO', '9991639580', '2008', '12', ''), ('49', 'toyota', 'camry', 'blanco', 'YZE8355', '000000000000000', 'leopoldo gomez', 'particular', '9997388135', '2009', '12', null), ('50', 'nissan', 'urvan', 'blanca', '316445B', 'JN6AF52S4AX024549', 'MARIA GUADALUPE SANTOS PECH', 'mapfre / P T', '9992701610', '2010', '12', ''), ('51', 'chevrolet', 'pickup', 'blanca', 'yzk1289', '000000000000001', 'talleres memo', 'particular', '9202008', '2001', '12', null), ('52', 'mazda', '3', 'blanco', 'xxxtz', '000000000000004', 'maria aguilar', 'particular', '9260589', '2012', '12', null), ('53', 'seat', 'ibiza', 'verde', 'ZAC2042', 'VSSMK46JNR14484', 'JOSE FERNANDO RODRIGUEZ ZAPATA', 'mapfre', '9991802699', '2010', '12', ''), ('54', 'hummer', 'h 3', 'negra', 'XXXWT', '00000000000078', 'micaela', 'particular', '9202008', '2010', '12', null), ('55', 'BMW', 'X 3', 'AZUL', 'XXX78', 'XS546111S5SXA2SS', 'MICAELA', 'PARTICULAR', '9202008', '2006', '12', null), ('56', 'ford', 'lobo (asociada C-4018)', 'azul', 'XF81908', 'IFTPX04506AD70913', 'RODRIGO JEHOVA RUIZ DEL HOYO GONZALEZ', 'mapfre', '9881033466', '2006', '12', ''), ('57', 'ford', 'fiesta', 'negro', 'yzc1212', 'xxxxxxxxxxxxxxxxxxx08', 'carolina lara', 'particular', '9991419711', '2003', '12', null), ('58', 'chevrolet', 'tracker', 'blanco', 's/p', 'xxxxxxxxxxx3265x23', 'ROSA ELENA BRAVO CARRILLO', 'qualitas / PAGO GLOBAL Y EXTRA PARTICULAR', '9992801856', '1998', '12', ''), ('59', 'honda', 'crv', 'blanca', 'yzc1456', 'xxxxxxxxxxxx0x0x554', 'addy cardenas', 'particular', '9999478949', '2008', '12', null), ('60', 'ford', 'fiesta', 'dorado', 'YZE2378', 'wjñhsjfhqowdfkhkh13', 'karina palma', 'particular', '3166213', '2006', '12', ''), ('61', 'Honda', 'Civic', 'Negro', 'ZAE2325', 'xxxxxxxxx0xxxxx', 'Luis Ernesto Sosa Medina', 'Particular', '9999979173', '2010', '12', null), ('62', 'ford', 'lobo', 'blanca', 'YP72579', 'JFTRW12W47KB8110', 'JUAN IVAN CASTILLA UICAB', 'qualitas', '9991911441', '2007', '12', null), ('63', 'nissan', 'altima', 'blanco', 'ZAP1865', 'xxxxxxx845xxxxxxxxx', 'humberto gomez', 'particular', '9999007232', '2012', '12', null), ('64', 'toyota', 'camry', 'rojo', 'zae1212', 'xxxxxxxxxx66421xx', 'MARIA LOURDES SOLIS ', 'particular', '9991271160', '2012', '12', null), ('65', 'ford', 'fiesta', 'gris', 'ZAC8872', '9BFBP14N048045484', 'MIGUELINA CALDERON ZACARIAS', 'mapfre', '9991994613', '2010', '12', null), ('66', 'mitsubishi', 'outlander', 'plata', 'yzm1163', 'xxxxxxxxxxx684321', 'kanasin', 'particular', '9999642321', '2006', '12', null), ('67', 'chrysler', 'atos', 'plata', 'yza1120', 'xxxxxxxxx45684', 'felipe noh', 'particular', '9992975684', '2007', '12', null), ('68', 'vw', 'bora', 'plata', 'dgy9610', '3VWRG11KX8M068689', 'CARLOS FRANCISCO RETIF YAÑEZ', 'mapfre', '1950977', '2008', '12', ''), ('69', 'mitsubishi', 'lancer', 'rojo', 'zae5721', 'JE3AJ26E96U033204', 'JORGE FRANCISCO VERA CARCAÑO', 'mapfre', '9992710073', '2006', '12', ''), ('70', 'VW', 'BORA', 'PLATA', 'dgy9610', '3VWRG11KX8M068689', 'susana salazar perez', 'particular', '1950922', '2008', '12', null), ('71', 'bmw', 'mini cooper', 'negro', 'yze6356', 'xxxxxxxxx6x5745xxx', 'humberto villanueva', 'particular', '9202008', '2010', '12', null), ('72', 'ford', 'escape', 'arena', 'yzw1566', '1fmcu03188ka23558', 'leonel zapata', 'particular', '9992716008', '2008', '12', null), ('73', 'NISSAN', 'sentra', 'azul', 'yzl3328', '3N1CB515861625653', 'felipe concha chanona', 'mapfre', '9403634', '2006', '12', ''), ('74', 'chrysler', 'atos', 'azul', 'YZM5330', 'xxxxxxxfjkdh45668', 'julia aznar', 'particular', '9260588', '2006', '12', null), ('75', 'dodge', 'neon', 'gris', 'dgv1900', '1B3B546C55D157888', 'dulce can perez', 'mapfre / P T', '9991439240', '2005', '12', ''), ('76', 'chevrolet', 'chevy', 'blanco', 'YZZ7881', '3G1SF21X885118521', 'JOSE JUAN ESTRADA VALENCIA', 'mapfre', '5545009323', '2008', '12', ''), ('77', 'chevrolet', 'silverado (taller)', 'blanco', 'YP98117', 'XJKDFHNFDFKD1564822A', 'DN MEMO', 'PARTICULAR', '9202008', '2011', '12', ''), ('78', 'NISSAN', 'CHASIS', 'BLANCO', 'YP36777', '3NGDD014577K009222', 'TONY TIENDAS', 'MAPFRE', '9992693269', '2007', '12', ''), ('79', 'CHEVROLET', 'AVEO', 'PLATA', 'YZJ9935', '3G1T051699L133902', 'BELCORP MEXICO,SA DE CV/MARTHA JUANITA NAVARR', 'MAPFRE', '9999056124', '2009', '12', null), ('80', 'CHEVROLET', 'AVEO', 'GRIS', '201XDJ', '3G1TA5AG8AL128039', 'JUAN CARLOS BASTARRACHEA', 'MAPFRE', '9991463452', '2010', '12', ''), ('81', 'SEAT', 'IBIZA', 'NEGRO', 'YZF2684', 'VSSMM16167R111492', 'JESUS MARTIN ANCONA RODRIGUEZ', 'PARTICULAR', '9991228248', '2007', '12', null), ('82', 'chevrolet', 'silverado', 'rojo', 'yp52148', '3gbec14x87m109151', 'elias aguilar', 'particular', '9993227236', '2007', '13', null), ('83', 'CADILLAC', 'ESCALADE', 'BLANCO', 'YP52220', '000000000005', 'ALFONSO FALCON', 'PARTICULAR', '9202696', '2008', '12', null), ('84', 'FORD', 'FIESTA', 'GRIS', 'ZAC-8872', '00000000006', 'MIGUELINA CALDERON', 'PARTICULAR', '00', '2010', '13', null), ('85', 'BMW', '325-i', 'NEGRO', 'YZL-2684', '0000000007', 'MIGUEL SARABIA', 'PARTICULAR', '9207731/ 9999493413', '2008', '13', null), ('86', 'HUMMER', 'H-3', 'NEGRO', 'YZY-4139', '5GTDN13E578143577', 'ALEJANDRO RUEDA FERRER', 'MAPFRE', '9999683357', '2007', '13', null), ('87', 'CHEVROLET', 'AVEO', 'PLATA', 'ZAA1412', '3G1TA5A61AL114693', 'LILIA VRISTINA PIÑA MONZON', 'MAPFRE', '999191345013/9991119141', '2010', '13', null), ('88', 'NISSAN', 'SENTRA', 'GRIS', 'YZR-9519', '0000000009', 'ADRIANA SASTRE', 'PARTICULAR', '9992925819', '2010', '13', null), ('89', 'VOLKSWAGEN', 'CROSSFOX', 'VERDE', 'YZR2281', '000000009', 'ANDRES DEGETAU', 'PARTICULAR', '9992920121/9138383', '2008', '13', '[email protected]'), ('90', 'VOLKSWAGEN', 'POINTER', 'PLATA', 'YZE2561', '5BWCC05WX7T077904', 'GONZALO HUMBERTO ROSADO', 'MAPFRE', '9992308938', '2007', '13', ''), ('91', 'NISSAN', 'SENTRA', 'GRIS', 'YZM1222', '3N1CB51S52L078822', 'ALEJANDRO JAVIER COELLO LOZO', 'Qualitas', '9872639/9992478581', '2002', '13', ''), ('92', 'FORD', 'FIESTA', 'BLANCO', 'YZY5058', '9BFBP1AN2A8001583', 'DAVID SALDIVAR', 'MAPFRE', '9992179340/9270485', '2010', '13', null), ('93', 'CHEVROLET', 'CHEVY', 'PLATA', 'DGU1892', '3G1SE51X97S117526', 'DANIELA JIMENEZ/CESAR RUBEN PINZON', 'MAPFRE', '9999561017/9427600', '2007', '13', ''), ('94', 'VOLKSWAGEN', 'POLO', 'GRIS', 'UUF5325', 'VWJB09N25P011776', 'ALVARO DORANTES', 'QUALITAS', '9999696125', '2005', '13', null), ('95', 'FORD', 'RANGER', 'PLATA', 'PP54586', '8AFDT50D526275686', 'JORGE CAMPOS ENRIQUEZ', 'QUALITAS', '9999000854/9282131', '2002', '13', null), ('96', 'HONDA', 'CIVIC', 'PLATA', 'ZAK6973', '19XFB2681CE604830', 'GERARDO ALVARADO', 'PARTICULAR / NO SEQUEDO', '9999700499/9201615', '2012', '13', ''), ('97', 'nissan', 'frontier', 'verde', 'yzy1412', '1N6ED27T9YC373731', 'edgardo medina', 'particular', '9992246695', '2000', '12', ''), ('98', 'ford', 'lobo', 'blanco', 'TB09971', 'xxxxxxxxxxxxxxklfdh354', 'miguel campos', 'particular', '9999700561', '2011', '12', null), ('99', 'DODGE', 'RAM 2500', 'CAFE', 'YZH4345', 'UIYVFDKFJF489J55N32', 'ABEL CANTO', 'PARTICULAR', '9202008', '1998', '12', null), ('100', 'TOYOTA', 'AVANZA', 'BEIGE', 'ZAK9209', 'MHKMC13E4CK000085', 'MARCO ANTONIO ALCOCER GONZALEZ', 'MAPFRE', '9992977170', '2012', '12', null), ('101', 'CHEVROLET', 'MATIZ', 'ROJO', 'ZAA5448', 'KL2MJ61055C069114', 'LUISA ISABEL COBOS RIVERO', 'MAPFRE', '9991743022', '2005', '12', ''), ('102', 'DODGE', 'STRATUS', 'DORADO', 'YZR9090', 'YEWTYHFGK734HJG8', 'EDUARDO CHAY', 'PARTICULAR', '9999701182', '2005', '12', ''), ('103', 'TOYOTA', 'RAV 4 (taller)', 'PLATA', 'ZAF4071', '87TRDGFSDJ478DSHGF', 'TALLERES MEMO', 'PARTICULAR', '9202008', '2007', '12', ''), ('104', 'GM', 'AVEO', 'BLANCO', 'YZT2128', 'KL1TF52698B213465', 'RAYMUNDO HERNANDEZ BARRERA', 'MAPFRE', '9993111127', '2008', '12', ''), ('105', 'FORD', 'ECOSPORT', 'GRIS', 'YZN1799', 'JFHDKGH938F3408SDJFH', 'MARCO CETINA', 'PARTICULAR', '9992589224', '2004', '12', null), ('106', 'MITSUBISHI', 'OUTLANDER', 'BLANCO', 'ZAB8701', 'TE34L521W8A2004886', 'S.C JHONSON AND SON', 'MAPFRE', '9991814281', '2010', '12', '[email protected]'), ('107', 'MERCEDEZ BENZ', 'L-350 ', 'GRIS', '00000', '00000', 'ALEJANDRO MAY', 'PARTICULAR', '9991217055', '2013', '12', null), ('108', 'MAZDA ', 'CX-9', 'BLACO', 'YZT8876', '00000', 'PEDRO QUEVEDO', 'PARTICULAR', '9999493738', '2010', '12', ''), ('109', 'VOLKSWAGEN', 'POLO', 'AZUL', 'YZL4824', '01', 'ALFONSO PALMA GAMBOA', 'PARTICULAR', '9911053680', '2005', '12', null), ('110', 'HONDA', 'CR-V', 'ORO', 'ZAG5406\t', 'JHLRD684X6C403726\t\t', 'YAMILI PANTI AGUILAR', 'QUALITAS CAMPAÑIA DE SEGUROS, S.A.B. DE C.V.', '9999916469\t', '2006', '12', ''), ('111', 'VOLKSWAGEN', 'SPORVAN', 'AZUL', 'YZY4495', '8A043355', 'ADOLFINA DEL SOCORRO ANGULO VAZQUEZ', 'QUALITAS', '9999075005-9300650', '2008', '13', ''), ('112', 'DODGE', 'ATTITUDE', 'ROJO', 'ZAA4417', 'KMHCM4NA5AU964000\t\t', 'JESUS ROLANDO VADILLO PATIÑO', 'MAPFRE / P T', '9999030591', '2010', '13', ''), ('113', 'CHEVROLET', 'CHEVY', 'GRIS', 'ZAF7593', '3g1st61x29s108446\t\t\t', 'ERIK FERNANDO MARRUFO RODRIGUEZ', 'MAPFRE', '9992026011', '2007', '13', ''), ('114', 'TOYOTA', 'COROLLA', 'ROJO', 'YP86074', '02\t\t', 'ALEXANDER MARTINEZ', 'PARTICULAR', '9991529485\t', '2005', '13', null), ('115', 'FORD', 'MUSTANG', 'ROJO', 'YP86074', '03', 'DOC ROBERTO SOSA', 'PARTICULAR', '9251015', '1987', '13', ''), ('116', 'BMW', '328 I', 'NEGRO', 'ZAL7853', '04', 'IGNACIO RIVERA', 'PARTICULAR', '9991638698\t', '2012', '13', null), ('117', 'MITSUBISHI', 'OUTLANDER', 'BLANCA', 'Y', '05', 'RACIEL ARJONA Y/O JUAN CARLOS SOSA', 'MITSUBISHI', '9449797', '2010', '13', null), ('118', 'FORD', 'CORDOBA', 'AMARILLO', 'Y', '06', 'PEDRO QUEVEDO', 'PARTICULAR', '9999493738\t', '1977', '13', null), ('119', 'JEEP', 'PATRIOT', 'BLANCO', 'YZD1101', '1J4FT28W18D668104', 'MARTHA ESTER VARGAS YAM', 'MAPFRE', '9991118306', '2008', '13', ''), ('120', 'DODGE', 'RAM2500', 'CAFE', 'YP98177', '07', 'ESCUELA MODELO', 'PARTICULAR', '9993318787\t', '2002', '13', ''), ('121', 'volvo', 's 60', 'gris', 'yzk7123', 'yv1r2524672618608', 'pedro quevedo', 'particular', '9999493738', '2007', '12', ''), ('122', 'vw', 'pointer', 'rojo', 'YZL7553', '9BWCC05X85T110512', 'MARIO FERNANDO PENICHE MEDINA', 'particular', '9991742592', '2005', '12', null), ('123', 'DODGE', 'ATTITUDE', 'PLATA', 'ZAL6503', 'JKM16330183DFN651', 'FRANCISCO EVIA', 'PARTICULAR', '9992246695', '2013', '12', null), ('124', 'DODGE', 'JOURNEY', 'PLATA', 'ZAK2605', '3DABG4FB0AT136348', 'TERESA MARLENE LORIA', 'MAPFRE', '9851082979', '2010', '12', ''), ('125', 'DODGE', 'journey', 'plata', 'zaj3977', '3DAPG5FB3BT52580', 'mario arturo cetina y castillo', 'mapfre / SOLICITO PAGO DE DAÑOS', '9971013177', '2011', '12', ''), ('126', 'ford', 'fiesta', 'azul', '684SDX', '9BFBT08N448425051', 'MARIA SORAYA MATAR VARGAS', 'qualitas', '9992051993', '2003', '12', ''), ('127', 'nissan', 'tiida', 'beige', 'ZAG8929', '3N1BCAS1BL489054', 'ELSIE JACKELINE VALDEZ OSORIO', 'mapfre', '9999957733', '2011', '12', ''), ('128', 'mazda', 'CX 7', 'GRIS', 'ZAM2157', 'JM3ER293870168278', 'MARIA VANESSA BRICEÑO MACHAY', 'MAPFRE / SOLICITO PAGO DE DAÑOS', '9992178089', '2007', '12', ''), ('129', 'MAZDA', '3', 'GRIS', 'YZY4387', 'JM1BL1553A1558519', 'DEIBI ROSADO ACANTARA', 'MAPFRE', '9991597698', '2010', '12', ''), ('130', 'CHEVROLET', 'MALIBU', 'BLANCO', 'YZJ8021', '1G12TS8NY3F317456', 'MARIO CANTO GOMEZ ', 'MAPFRE / SOLICITO PAGO DE DAÑOS', '99999999', '2007', '12', ''), ('131', 'NISSAN', 'ESTACAS', 'BLANCO', 'YP00537', 'YJN67MJH672001676', 'METRI DUARTE ELIAS NASEL', 'QUALITAS / SOLICITO PAGO DE DAÑOS', '9992285967', '1986', '12', ''), ('132', 'VW', 'JETTA', 'AZUL', 'YP86073', '3VWRV09M15M070154', 'JORGE CASTILLO /LUIS YAMA', 'PARTICULAR', '9991735320', '2005', '12', null), ('133', 'AUDI', 'A 4', 'NEGRO', 'YZZ8643', 'SGHDFKJH165H22739', 'DAVID VELOZ', 'PARTICULAR', '9992165354', '2001', '12', null), ('134', 'chevrolet', 'chevy', 'negro', 'yzt1455', '0', 'PAULINO MONFORTE', 'PARTICULAR', '3051908', '2004', '12', null), ('135', 'toyota', 'corolla', 'blanco', 'YZN4008', '2T1BU42E99C172298', 'KARLA CLAUDETTE ANCONA CAMEJO', 'mapfre', '9991372955', '2009', '12', ''), ('136', 'nissan', 'chasis', 'blanco', '289AK9', '3N6DD14585K003121', 'MEDAN TRANSPORTE,SA DE CV', 'qualitas', '9991710186', '2005', '12', null), ('137', 'ford', 'ranger', 'azul', 'YP56590', '8AFDT52D386118812', 'lic roberto diaz', 'particular', '9999491046', '2008', '12', null), ('138', 'nissan', 'xtrail', 'azul', 'YZW4621', 'JN8BT08T86W813903', 'erick osorno', 'particular', '9999001748', '2006', '12', null), ('139', 'dodge', 'avenger', 'gris', 'YZG4077', '1b3kc46k58n27999', 'HECTOR RODRIGUEZ HERNANDEZ', 'particular', '9303800', '2008', '12', null), ('140', 'mitsubishi', 'lancer', 'gris', 'YZL7016', 'SL3AU26U042058', 'millenium motors', 'millenium', '9202008', '2006', '12', null), ('141', 'toyota', 'hilux', 'rojo', 'YP00608', '8AJEX32GF794017525', 'ING JOSE LABERTO KOH LOPEZ', 'particular', '9992503887', '2009', '12', null), ('142', 'vw', 'polo', 'gris', 'UUF5325', '9BWJB09N25P011776', 'ALVARO DORANTES PERERA', 'particular', '9999696125', '2005', '12', null), ('143', 'vw', 'sedan', 'azul', '0', 'yzt', 'talleres memo', 'particular', '9202008', '1962', '12', null), ('144', 'ford', 'mustang', 'blanco', 'YZS5649', '12FT80N575268368x', 'OPERARIO EDUARDO MATOS', 'particular (cobrar operario matos)', '9202008', '2007', '12', ''), ('145', 'ford', 'f-450', 'blanco', '0', '0x', 'corporativo boxito', 'particular', '9300500 EXT 30284', '2006', '12', ''), ('146', 'ford', 'f-450', 'blanco', '0', 'hsx', 'corporativo boxito', 'particular', '9300500 EXT 30284', '2006', '12', null), ('147', 'mitsubishi', 'lancer', 'negro', 'S/P', 'JE3AU26U5DU019778', 'MITSUBISHI', 'millenium', '9202008', '2013', '12', null), ('148', 'MITSUBISHI', 'L 200', 'ROJO', '1YC055', 'MMBMG45H9DD013969', 'MILLENIUM MOTORS', 'MILLENIUM', '9202008', '2013', '12', null), ('149', 'VW', 'JETTA', 'AZUL', 'YZP5864', '3VWRH49M413179281', 'ISAIAS CANUL MARTINEZ', 'QUALITAS', '9991395611', '2005', '12', ''), ('150', 'MITSUBISHI', 'OUTLANDER', 'ROJO', '1YC055', 'JEALS21W8DU024945', 'MILLENIUM', 'MILLENIUM MOTORS', '9202008', '2012', '12', null), ('151', 'FORD', 'FIESTA', 'NEGRO', 'YZT1243', '9BFBT09N538027222', 'JESUS CERVERA', 'PARTICULAR', '9991192538', '2003', '12', null), ('152', 'VW', 'BORA', 'ROJO', 'SINPLACAS', '3VWFS71K98M012747', 'EDUARDO REYES', 'PARTICULAR', '9993303184', '2008', '12', null), ('153', 'FORD', 'COURIER', 'AZUL', 'YP49675', '9BFBT32NX47956308', 'AUREA MARIA BARALLOBRE AGUILAR', 'QUALITAS / P T', '9991647630', '2004', '12', ''), ('154', 'honda', 'civic', 'azul', 'YK13746', '1WGFA16968L901792', 'VIVE SOLUCIONES INTEGRALES S.A DE C.V', 'complemento mapfre garantía', '9991553811', '2008', '12', ''), ('155', 'mercedez benz', 'e 320', 'blanco', 'yzl6880', 'wdbuf65j63a247864', 'carlos escalante', 'particular', '9261152', '2003', '12', null), ('156', 'nissan', 'sentra', 'rojo', 'XES7546', '3N1AB6AD3AL645834', 'DIANA MARIBEL SANCHEZ QUINTERO', 'MAPFRE', '9993272296', '2010', '12', ''), ('157', 'MAZDA', 'CX 5', 'NEGRO', '0000', 'JM3KF2D74D0170291', 'ROBERTO DIAZ', 'PARTICULAR', '9999491046', '2013', '12', null), ('158', 'TOYOTA', 'YARIS', 'NEGRO', 'YZB3744', 'JTDBT923491323423', 'FELIPE HUITZ', 'PARTICULAR', '9991599229', '2009', '12', null), ('159', 'MAZDA', '6', 'ROJO', 'YZZ5878', '1YCHZ8CH8A5M11458', 'JOSE LUIS MARTINEZ', 'PARTICULAR', '9992246695', '2010', '12', null), ('160', 'DODGE', 'DAKOTA', 'BLANCO', 'YP87894', '1D7HG48K68S595671', 'FILIBERTO CAAMAL PERERA', 'PARTICULAR', '9992752501', '2008', '12', null), ('161', 'PONTIAC', 'SOLSTICE', 'NEGRO', 'UUK2073', 'EEGJKDKID39J2933', 'JESUS GALLARDO', 'PARTICULAR', '9991937880', '2008', '12', null), ('162', 'suzuki', 'swift', 'NEGRO', 'UUK2073', 'EEGJKDKID39J2933', 'IRAIDA SANTIAGO SAENZ', 'PARTICULAR', '9992 00 51 87', '2012', '12', null), ('163', 'vw', 'crossfox', 'negro', 'YZS5772', '9BWLD4S2674135644', 'CARLOS ORLANDO HERNANDEZ UC', 'mapfre', '9992436495', '2007', '12', ''), ('164', 'ford', 'focus', 'gris', 'ZAL5917', 'XXGDRHFF14562123', 'CARLOS PEREZ', 'PARTICULAR', '9992168409', '2012', '12', null), ('165', 'DODGE', 'RAM 2500', 'BEIGE', 'YP79355', '3D71251CT3AG146531', 'GRUPO ARRENDADORA DEL SURESTE', 'MAPFRE', '9999700343', '2010', '12', null), ('166', 'nissan', 'tsuru', 'azul', 'ZAK5403', '5BA4B1314508', 'JORGE ANTONIO CABALLERO GARRIDO', 'qualitas', '9991130194', '1995', '12', ''), ('167', 'nissan', 'tsuru', 'blanco', 'ZAG2296', '3N1EB3155YL162211', 'HECTOR MIGUEL MARTINEZ GUTIERREZ', 'qualitas', '9991781864', '2000', '12', ''), ('168', 'CHEVROLET', 'chevy', 'plata', 'ZAL6518', '1B443RJF30324955HK', 'JUAN SANSORES /SILPRO', 'PARTICULAR', '9999699521', '2009', '12', null), ('169', 'DODGE', 'ATTITUDE', 'ROJO', 'ZAK8839', 'KMHCU4ND7C179179', 'ALFONSO FALCON', 'PARTICULAR', '62*13*1287', '2012', '12', null), ('170', 'GM', 'MATIZ', 'NEGRO', 'YZY3841', 'KL2MM61078C436767', 'MIGUEL ANTONIO FERNANDEZ ALDANA', 'MAPFRE', '9992170819', '2008', '12', null), ('171', 'VW', 'POLO', 'PLATA', 'YZL2307', '9BWJB09A74P00932', 'LORENZO JOSE SANCHEZ Y VICTORIA', 'MAPFRE', '9991433365', '2004', '12', null), ('172', 'NISSAN', 'APRIO', 'BLANCO', 'ZAK5043', '93YL62J588J032043', 'CECILIA SOLIS GUTIERREZ', 'MPAFRE', '9999474974', '2008', '12', ''), ('173', 'FORD', 'WINSTAR', 'DORADO', 'YZE6893', 'ZFMDA584723A00013', 'JORGE MARIO CORTES ZACARIA', 'MAPFRE', '2900648', '2002', '12', null), ('174', 'HONDA', 'ODDISEY', 'VERDE', 'YZV1445', 'FG388GH34487FGHF97', 'PAULINO MONFORTE', 'PARTICULAR', '3051908', '2002', '12', null), ('175', 'DODGE', 'AVENGER', 'GRIS', 'YZG4077', '1b3kc46k58n279992', 'SECRETARIA DE CONTRALORIA GENERAL', 'PARTICULAR (asociado C-4433)', '9303800 EXT 13001', '2008', '12', ''), ('176', 'FORD', 'RANGER', 'BLANCO', '801-VPL', '8AFDT520786110261', 'GRUPO ELECTRICO AZTECA', 'MAPFRE', '9437307', '2008', '12', ''), ('177', 'PORSCHE', 'CAYENNE', 'NEGRO', 'YPZ458', 'WP1AB20P96LA80617', 'RUBEN ESCALANTE', 'PARTICULAR', '9992172539', '2006', '12', null), ('178', 'NISSAN', 'SENTRA', 'AZUL', 'YZK9720', '3N1CB51S75L551320', 'TALLERES MEMO', 'PARTICULAR', '9202008', '2005', '12', null), ('179', 'BUICK', 'ROADMASTER', 'ROJO', 'YZR9186', '1G4BT5372PR419426', 'JOSE HABIB', 'PARTICULAR', '9261109', '1998', '12', null), ('180', 'linconl', 'navigator', 'blanco', 'zak7336', '5lmjj3h5xbej08921', 'alejandro madera', 'particular', '9992618649', '2011', '12', null), ('181', 'CHEVROLET', 'AVEO', 'PLATA', 'ZAA1412', '3G1TA5A61AL114693*', 'OSCAR REYES MEJIA', 'PARTICULAR', '9991345013', '2010', '12', null), ('182', 'NISSAN', 'URVAN', 'BLANCO', 'ZAH6764', 'JN1AE56539X013151', 'COMBAND DTH', 'COMPLEMENTO MAPFRE', '9302928', '2009', '12', null), ('183', 'vw', 'sedan', 'blanco', 'zam8176', '11p9067219', 'sandra nicte ha islas gongora', 'qualitas', '9993382615', '1993', '12', ''), ('184', 'chevrolet', 'silverado', 'blanco', 'yp98117', 'dtgt2632039dh39d5', 'TALLERES MEMO', 'PARTICULAR (cortesia)', '9202008', '2011', '12', ''), ('185', 'CHEVROLET', 'CHEVY', 'AZUL', 'YZS3365', '3G1SF61X75S170662', 'PABLO//TALLERES MEMO', 'PARTICULAR', '9202008', '2005', '12', ''), ('186', 'TOYOTA', 'RAV 4', 'PLATA', 'YZJ2424', 'JTMZD35V465021298', 'RAUL RICALDE', 'PARTICULAR', '9997388053', '2006', '12', null), ('187', 'TOYOTA', 'RAV 4', 'NEGRO', 'UUP2950', 'JTEGD20V440035541', 'LILIA MARIA TUN CHI', 'MAPFRE', '9999032080', '2004', '12', null), ('188', 'TOYOTA', 'RAV 4', 'NEGRO', 'UUP2950', 'JTEGD20V440035544', 'lilia maria tun chi', 'mapfre', '9999032080', '2004', '12', ''), ('189', 'vw', 'SEDAN', 'PLATA', 'YZL2307', '1142102041', 'JORGE ALBERTO UC AVILES', 'QUALITAS', '9991130033', '1974', '12', ''), ('190', 'VW', 'POLO', 'PLATA', 'YZL2307', '9BWJB09A74P00932*', 'LORENZO SANCHEZ', 'PARTICULAR', '9991433365', '2004', '12', null), ('191', 'PEUGEOT', '307', 'ROJO', 'YZA3997', '8AD3DLFJ385030959', 'TERESA DEL CARMEN DE LA ROSA NOVELO', 'MAPFRE', '9991973856', '2008', '12', ''), ('192', 'PONTIAC', 'G 3', 'ROJO', 'YZY1981', 'KL2TJ31657B108139', 'JORGE ENRIQUE PEREZ PERAZA', 'MAPFRE', '9991546288', '2007', '12', null), ('193', 'FORD', 'LOBO', 'BLANCO', 'YP72579', '1FTRW12W47KB81101', 'JUAN IVAN CASTILLA UICAB', 'PARTICULAR', '9991911441', '2007', '12', null), ('194', 'TOYOTA', 'YARIS', 'ROJO', 'ZAE7940', 'JTDKT923875066966', 'ALEXANDER MARTINEZ', 'PARTICULAR', '9991529485', '2007', '12', null), ('195', 'CHEVROLET', 'CHEVY', 'AZUL', 'YZR2925', '3G1SE51X195146165*', 'JUANA CORDOBA', 'PARTICULAR GARANTIA MAPFRE', '9992387985', '2009', '12', null), ('196', 'DODGE', 'STRATUS', 'PLATA', 'YZT2777', '1B3DJ46X91N629711', 'ALEJANDRO RUBIO', 'PARTICULAR', '9992182905', '2001', '12', null), ('197', 'TOYOTA', 'COROLLA', 'BLANCO', 'YZK6703', '9BRBA42E99034047', 'JOSE ALBERTO ARCEO PENICHE', 'MAPFRE', '9256525', '2009', '12', ''), ('198', 'Nissan', 'Sentra', 'Gris', 'ZAF2211\t', '3N1AB6ADX6L633195', 'ANTONIO ALBERTO MEDINA CANTO', 'Mapfre', '9992427873', '2011', '10', null), ('199', 'Nissan', 'Xtrail', 'Gris', 'ZAF6613', 'JN8AT18T68W500788', 'MANUELA BURGOS', 'Mapfre / NO SEQUEDO', '9991027276', '2008', '10', ''), ('200', 'Chevrolet', 'Chevy', 'Plata', 'ZAE5846', '00000500000000', 'FRANCIA TOTOSAUS HERRERA', 'Particular', '9911037103', '2005', '10', null), ('201', 'Ford', 'Ikon', 'Verde', 'YZA9007\t', '3FABP04046M105197', 'NOEMI DEL ROCIO AVILES MARIN', 'Mapfre', '9991923802', '2006', '10', ''), ('202', 'Ford', 'Courier', 'Blanca', 'YP21384', '9BFBT32N997882063\t', 'COMERCIALIZADORA PORCICOLA MEXICANA S.A DE C.', 'Mapfre', '2400953', '2009', '10', ''), ('203', 'Mitsubishi', 'Lancer', 'Gris', 'Nuevo', 'JE3AU26UODU025293', 'Mitsubishi', 'Millenium Motors', '999999', '2013', '10', null), ('204', 'Mitsubishi', 'L200', 'Rojo', 'Nuevo', 'MMBMG45H9DD014247', 'Mitsubishi', 'Millenium', '999999', '2013', '10', null), ('205', 'Mazda', 'Mazda 3', 'Gris', 'YZY4387', '0000000A00000', 'DEIBI ROSADO ALCANTARA', 'Particular', '9999999', '2010', '10', null), ('206', 'Volkswagen', 'Jetta', 'Negro', 'ZAE5846', '3VWRV49M62M097045', 'Manuel Diaz', 'Particular', '9911053680\t', '2002', '10', null), ('207', 'Nissan ', 'Tidda', 'Blanco', 'YZD8377', '3VWRV49M62M09704', 'Memo', 'Taller', '9999999', '2007', '10', null), ('208', 'GM', 'Century', 'Azul', 'YZS7162\t', '3G5AL54T4NS126155', 'DAFNE LETICIA RIO GONZALEZ', 'Qualitas', '9991268574\t', '1992', '10', ''), ('209', 'Audi', 'A4', 'Negro', 'YZZ8643', 'XXXXXXXX1XXXXXXX', 'DAVID VELOZ MARTINEZ', 'Particular (cancelada por la 4535)', '9992989269', '2001', '10', ''), ('210', 'Chevrolet', 'Tornado', 'Gris', 'YP71804', '00000A0000000', 'SERVIVET DE ORIENTE S.A DE C.V.', 'Particular', '9812417', '2010', '10', null), ('211', 'Dodge', 'Attitud', 'Verde', 'YZN5583\t', 'KMHCM41C77U109166\t\t', 'ROSA MARLENE CAHUM MAY', 'Mapfre', '9991351229\t', '2007', '10', ''), ('212', 'Nissan', 'Xtrail', 'Dorada', 'YZA9439', 'JN1BT05A64W753250', 'Rafael Vargaz', 'Particular', '9999550819\t', '2004', '10', null), ('213', 'Volkswagen', 'Pointer', 'Verde', 'YZN6870\t', '9BWDG15X31T002609\t\t', 'SERGIO DE ANGELIS', 'Mapfre', '9991759069\t', '2001', '10', ''), ('214', 'Chevrolet', 'Chevy', 'Blanco', 'ZAA3437\t', '3G1SF21X1AS124117', 'COMERCIALIZADORA DE FRECUENCIAS', 'Mapfre', '9991439058\t', '2010', '10', ''), ('215', 'Toyota', 'Camry', 'Rojo', 'ZAC8506', 'XXXXXX5XXXXX', 'GABRIEL TORRE', 'Particular', '9995935017\t', '2005', '10', null), ('216', 'Volkswagen', 'Crosfox', 'Verde', 'YZR2281', '9BWLB45Z584126225', 'ANDRES DEGETAU', 'Particular (Garantía)', '9992920121\t', '2008', '10', ''), ('217', 'Zuzuki', 'Gran Vitara', 'Dorada', 'ZAH1124', '0000000B000000', 'SHYRLEY URIBE', 'Particular', '9992150191\t', '2011', '10', null), ('218', 'Ford', 'F-250', 'Blanco', 'YD09481', '3ftef17w14ma24332', 'COMISION FEDERAL DE ELECTRICIDAD', 'particular', '9868632192\t', '2004', '12', ''), ('219', 'Toyota', 'Camry', 'Plata', 'Particular', 'XXXXXCXXXXX', 'STEPHANYE MERIDA', 'Particular', '9999492950\t', '2012', '10', null), ('220', 'Volkswagen', 'Sedan', 'Blanco', 'YZV2510\t', '11M0041712\t\t', 'JOSE GUILLERMO POOL CRUZ', 'Qualitas / SOLICITO PAGO DE DAÑOS', '9991552361\t', '1991', '10', ''), ('221', 'Dodge', 'Atos', 'Blanco', 'YZB4570\t', 'MALABJ1M48M256790\t\t', 'MARIA MAGALY HERNANDEZ SANCHEZ', 'Mapfre', '9999034042\t', '2008', '10', ''), ('222', 'Nissan', 'Tiida', 'Rojo', 'ZAC2733\t', '3N1BCA07AL459735\t\t', 'FINANCE MEXICO S.A DE C.V', 'Mapfre', '9992442875\t', '2010', '10', ''), ('223', 'Nissan', 'Tsuru', 'Blanco', '423YSB\t', '3N1EB315X9K350990\t\t', 'ADRIAN OROPEZA PATIÑO', 'Qualitas / SOLICITO PAGO DE DAÑOS', '9993052921\t', '2009', '10', ''), ('224', 'GM', 'Chevy', 'Rojo', '261UGC\t', '3G1SF21X365141623\t\t', 'LUIS ARTURO MARQUEZ SANDOVAL', 'Qualitas', '9991355743\t', '2006', '10', ''), ('225', 'Mitsubishi', 'Lancer', 'Blanco', 'Nuevo', 'JE3AU26U1CU032736', 'Mitsubishi', 'Millenium Motors', '9999999', '2013', '10', null), ('226', 'Nissan', 'Datsun', 'Rojo', 'YZV2603\t', '2RLA1006297', 'CARLOS ALFONSO SUAREZ RUIZ', 'Qualitas', '9992223716\t', '1982', '10', ''), ('227', 'Volkswagen', 'Gol', 'Negro', 'YZR1385', '9bwdb05u29t223116\t', 'PEDRO HIGINIO CANEPA CARAVEO', 'Mapfre', '9993182520\t', '2009', '10', ''), ('228', 'Mitsubhishi', 'Outlander', 'Azul', 'YZC6565', 'JE4M541X882006382', 'VICTOR HUGO CASTILLO MUÑIZ', 'Qualitas', '9999470752\t', '2008', '10', ''), ('229', 'Nissan', 'Urvan ', 'Blanco', 'ZAH6764', 'JN1AE56539X01315', 'COMBAND DTH', 'Mapfre (complemento C-4476)', '9991416291', '2009', '10', ''), ('230', 'Toyota', 'Corolla', 'Blanco', 'Sin placa', '2J1BU42E99C172298', 'CARLA CLAUDET ANCONA CAMEJO', 'Particular', '9991372955\t', '2009', '10', null), ('231', 'Ford', 'Lobo F-150', 'Rojo', 'CZ91940', '1FTFX28L4UNB13346', 'ARMANDO BORGES LEON', 'Particular / PRESUPUESTO', '3085193', '1997', '10', ''), ('232', 'Seat ', 'Toledo', 'Azul', 'S/P', 'S/ VIN', 'Taller', 'Talleres memo', '9202008', '2002', '10', null), ('233', 'Peugeot', '206', 'Plata', 'YZX5650', '9362AKW55B008984\t', 'CARLOS ENRIQUE AGUAYO RUIZ', 'Mapfre', '9991255125\t', '2005', '10', ''), ('234', 'Wolkswagen', 'Safaris', 'Arena', 'XXXXXX', 'Vehículo Antiguo', 'Enrique Jorge', 'Particular', '999999', '1967', '10', null), ('235', 'Toyota', 'Yaris', 'Blanco', '835XEF\t', 'JTDBT9K39A1390281\t\t', 'ISIDRO VAZQUEZ REYES', 'Mapfre', '9999491393\t', '2010', '10', ''), ('236', 'Dodge', 'Attitud', 'Dorado', 'YZL9958\t', 'KMHCM41647U112882', 'AGUILAR LOPEZ CONTADORES PUBLICOS', 'Mapfre', '9992503191\t', '2007', '10', ''), ('237', 'Chevrolet', 'Cavalier', 'Rojo', 'YZT7037', '2G1JC144XR7279257', 'David veloz Martínes', 'Particular (Garantía C-4214)', '9997430514\t', '1994', '10', ''), ('238', 'Land Rover', 'HSE', 'Negro', '874XYM', 'XXXXXXXBXXXXXXXX', 'FERNANDO ABOGADO', 'Particular / NO SEQUEDO', '9991111226\t', '2011', '10', ''), ('239', 'Chevrolet', 'Chevy', 'Dorado', 'YZP9349\t', '7S123062', 'SAMUEL PACHECO VILLANUEVA', 'Qualitas', '9992427463\t', '2007', '10', ''), ('240', 'Honda', 'Civic', 'Cafe', '000000', 'XXXXXX7XXXXXXX', 'ISRAEL CEBALLOS', 'Particular', '99999999', '2007', '10', null), ('241', 'Audi', 'A4', 'Negro', 'YZZ8643', 'XXXXX1XXXXXXX', 'DAVID VELOZ MARTINEZ', 'Particular', '9992989269\t', '2001', '10', null), ('242', 'Mitsubishi', 'Outlander', 'Negro', 'DEMO', 'JE4LS21WXDU025529', 'Mitsubishi', 'Millenium', '9999999', '2014', '10', null), ('243', 'Mitsubishi', 'Outlander', 'Negra', 'DEMO', 'JE4LS21W8DU025531', 'Mitsubishi', 'Millenium', '9999999', '2014', '10', null), ('244', 'Mitsubishi', 'Lancer', 'Plata', 'DEMO', 'JE3AU26U0BU025293', 'Mitsubishi', 'Millenium Motors', '999999', '2014', '10', null), ('245', 'Nissan', 'Estaquita', 'Blanco', 'XX-XX-XX', '000000070000000', 'Diego Nuñez', 'Particular', '999999', '2007', '10', null), ('246', 'Ford', 'Expedition', 'Plata', 'YZC7674', '1FMRU1868XLA58100', 'REMIGIO HERNANDEZ', 'Particular', '999999', '1999', '10', null), ('247', 'Nissan', 'Tiida', 'Rojo', 'ZAC2733', '3N1BC1A07AL459735', 'LETICIA CABRERA', 'Particular', '9992442875\t', '2010', '10', null), ('248', 'Ford', 'Fussion', 'Negro', 'ZAB9525', '3FAHP0JA2AR358830', 'DAVID PENICHE', 'Particular', '9991277161\t', '2010', '10', null), ('249', 'Mazda', 'CX 7', 'Blanco', '182XWU\t', 'JM3ER2C55BD365069\t\t', 'SALVADOR JOSE SANTAMARIA MOLINA', 'Mapfre', '5535668046', '2011', '10', ''), ('250', 'Ford', 'Courier', 'Blanca', 'SZ1620A', '3GNCL13P29S617447', 'ING ANGEL COBA', 'Particular / PRESUPUESTO', '9991295783', '2006', '10', ''), ('251', 'Chevrolet', 'Captiva', 'Plata', 'YZS1908', '3GNCL13P29S617447', 'DR JUAN ESPOSITO', 'Particular', '9991324289', '2009', '10', ''), ('252', 'Volkswagen', 'Polo', 'Plata', 'YZL2307', '9BWJB09A74P00932X', 'ING LORENZO SANCHEZ VICTORIA', 'Particular', '9991433365', '2004', '10', null), ('253', 'Ford', 'Fiesta', 'Rojo', 'YZB7481\t', 'Y4119348\t\t', 'VICTOR MANUEL PENICHE GOROCICA', 'Qualitas', '9991519006\t', '2005', '10', ''), ('254', 'Mitsubishi', 'Outlander', 'Blanca', 'ZAN-63-76\t', 'JE4LS21W7DU025570', 'Mitsubishi', 'Millenium', '9999999', '2013', '10', ''), ('255', 'Ram', '2500', 'Beige', 'YP79355\t', '3D71251CT3AG146531\t\t', 'GRUPO ARRENDADORA DEL SURESTE (COMPLEMENTO DE', 'Mapfre / SE ASOCIO C-4459', '9999700343\t', '2010', '10', ''), ('256', 'Honda', 'Accord', 'Blanco', 'WPS2322', 'XXXXXX3XXXXXX', 'MARCO ANTONIO ALCOCER', 'Particular', '9991267935\t', '2003', '10', ''), ('257', 'Dodge', 'Attitud', 'Rojo', 'YZG8642', 'KMHCT4NDCU120174', 'RAFAEL RAMOS', 'Particular', '9999685014\t', '2012', '10', ''), ('258', 'Volkswagen', 'Crossfox', 'Verde', 'YZR2281', '9BWLB45Z5841262252', 'ANDRES DEGETAU', 'Particular', '9992920121\t', '2008', '10', null), ('259', 'Toyota', 'Camry', 'Negro', 'YZK3160', '4T1BE46K49U289962', 'Julio Polanco', 'Particular', '9992786302\t', '2009', '10', null), ('260', 'Ford', 'Ranger', 'Blanco', 'YP70269\t', '880152725\t\t\t', 'LUIS JORGE MORENO GOMEZ', 'Qualitas / TRANSITO', '9992784870\t', '1993', '10', ''), ('261', 'Nissan', 'Versa', 'Café', 'ZAK7571', 'XXXXXXBXXXXXX', 'JOSE CARLOS HERNANDEZ', 'Particular', '9992185984\t', '2012', '10', null), ('262', 'Nissan', 'Sentra ', 'Plata', 'YZE8855', '3N1CB51S72K213854', 'JORGE ESTEBAN ABUD', 'Particular', '9999496769\t', '2002', '10', null), ('263', 'Ford', 'Mustang', 'Blanco', 'YZS5649', '12FT80N5752683682', 'RAFAEL RAMOS', 'Particular', '9991893015', '2007', '10', null), ('264', 'Toyota', 'Hilux', 'Gris', 'YP74961', '8AJEX32G84A4029736', 'MARIO DZIB', 'Particular', '9999926007', '2010', '10', null), ('265', 'Ford', 'Expedition', 'Negra', 'ZAK3506', '1FMFU17527LA04089', 'ROSALBA MARTINEZ', 'Particular', '9991423162\t', '2007', '10', null), ('266', 'Nissan', 'March', 'Negro', 'ZAJ-5791\t', '3N1CK3CD3CL240001', 'CARLOS ENRIQUE CABRERA PATIÑO', 'Mapfre', '9991489250\t', '2012', '10', null), ('267', 'Nissan', 'Tiida', 'Rojo', 'ZAG7910\t', 'JN1BC1A52BK221586\t\t', 'FINANCE MEXICO S.A DE C.V', 'Mapfre', '9991011068\t', '2011', '10', ''), ('268', 'Ford', 'F-450', 'Blanco', '00000', 'XXXXX9XXXXX', 'Grupo Boxito', 'Particular', '9999688025\t', '2009', '10', ''), ('269', 'Toyota', 'Corolla', 'Blanco', 'ZAB-7696\t', '2T1BU4EE1AC284688\t\t', 'SANTIAGO AGUILAR AVILES', 'Mapfre', '9995933068\t', '2010', '10', ''), ('270', 'Chevrolet', 'Aveo', 'Azul', 'ZAK2532\t', '3G1TC5CF2CL108900', 'CONSORCIO PEREDO S.A DE C.V', 'Mapfre', '9991694174\t', '2012', '10', ''), ('271', 'Honda', 'Civic', 'Azul', 'XXXXX', 'XXXXXX2XXXXXX', 'Juan Caballero', 'Particular', '9202008\t', '2002', '10', null), ('272', 'Seat', 'Toledo', 'Azul', 'ZAD4737', 'VSSHE41M72B001956\t\t', 'VICENTE EDWIN BAAS PEREZ', 'Mapfre/ GARANTIA TALLER', '9991517486\t', '2002', '10', ''), ('273', 'Chevrolet', 'Chevy (PT)', 'Arena', 'YZE2368\t', 'XS123259\t\t', 'DIEGO VAZQUEZ CHABLE', 'Qualitas/ P T', '9992124556\t', '1999', '10', ''), ('274', 'Chevrolet', 'Aveo', 'Rojo', '721YSB\t', '3G1TC5CF6DL130612\t\t', 'Mapfre', 'Mapfre', '9992073910\t', '2013', '10', ''), ('275', 'Ford', 'Curier', 'Blanco', 'YP57194\t', '9BFBK3VN7A7891380\t\t', 'COMERCIALIZADORA PORCICOLA MEX', 'Mapfre', '9302200 EXT 1259\t', '2010', '10', ''), ('276', 'Toyota', 'Tacoma', 'Gris', 'YP93004', 'XXXXXBXXXXX', 'ERNESTO PEREZ', 'Particular', '9999912881\t', '2011', '10', null), ('277', 'Honda', 'Civic', 'Plata', 'YZA9543', '1HGFA15866L902141', 'Doña Gloria Herrera', 'Particular', '9999999', '2006', '10', null), ('278', 'Pontiac', 'G3', 'Verde', 'YZX-8266', 'KL2TJ51698B259342', 'CARLOS CABRERA', 'Particular', '9991489850\t', '2008', '10', null), ('279', 'Dodge', 'Stratus', 'Plata', 'YZT-2777', 'IB3DJ46X9IN6297II', 'ALEJANDRO RUBIO', 'Particular', '9992182905\t', '2001', '10', null), ('280', 'Peugeot', '307', 'Arena', 'YZT5631', '000000070000', 'ERICK GASCA', 'Particular', '99999999', '2007', '10', null), ('281', 'Mazda', '3', 'Rojo', 'YZN4004\t', 'JM1BL1SFXA1112212\t\t', 'ALFREDO GERARO MEZQUITA MANZANERO', 'Mapfre', '9991203548\t', '2010', '10', ''), ('282', 'Pontiac', 'G2', 'Blanco', 'UUL-9863', 'KL2MJ61048C483988', 'GRUPO BOXITO', 'Particular', '99999999', '2008', '10', null), ('283', 'Pontiac', 'G2', 'Blanco', 'UUP-7503', 'KL2MJ610X8C486992', 'GRUPO BOXITO', 'Particular', '99999999', '2008', '10', ''), ('284', 'Pontiac', 'G2', 'Blanco', 'YZC-4877', 'XXXXX8XXXXXX', 'Grupo Boxito', 'Particular', '99999999', '2008', '10', ''), ('285', 'Chrysler', 'Voyaguer', 'Plata', '714-PUK', '2C46P25R7R716666', 'FERNANDO ABOGADO', 'Particular', '9991111231', '2000', '12', ''), ('286', 'Volkswagen', 'Sedan', 'Gris', 'YZT1043\t', '11B0134903', 'LOURDES MAYANIN CASTRO ESPINOSA', 'Qualitas/ PT', '9992163288\t', '1981', '10', ''), ('287', 'Porsche', 'Panamera', 'Blanco', 'URT772A', 'WP0AE297CL030048', 'CARLOS BAEZA', 'Particular', '9999999', '2013', '10', null), ('288', 'Toyota', 'Hilux', 'Blanco', 'YP00677', '8AJEX329894016366', 'DR FRANCISCO JAVIER GUILLERMO GONZALEZ', 'Particular', '9999700642\t', '2009', '10', null), ('289', 'BMW', '530 I', 'AZUL', 'YZE5122\t', 'WBANU9049CT28835\t\t', 'VILLAS VACACIONALES S.A DE C.V', 'Qualitas', '9501031\t', '2009', '10', ''), ('290', 'Pontiac', 'Matiz', 'Rojo', 'YZZ5760\t', 'KL2MJ61089C666621\t\t', 'GUSTAVO PAREDES ELIAS', 'Mapfre', '9259240\t', '2009', '10', null), ('291', 'Nissan', 'Sentra', 'Gris', 'YZW-2119', '3N1CB51S51L017789', 'FABIO PARDENILLA', 'Particular', '9999035827\t', '2001', '10', null), ('292', 'Chevrolet', 'Aveo', 'Rojo', 'ZAH3492', '3G1TC5CF6CL100217', 'FRANCISCO CASTILLO / ELIAZAR ORTEGA', 'Particular', '9889662682\t', '2012', '10', null), ('293', 'Ford', 'Fiesta', 'Gris', 'ZAC8872\t', '9BFBP14N048045484\t\t', 'MIGUELINA CALDERON ZACARIAS', 'Mapfre/ GARANTIA MAPFRE', '9991994613\t', '2010', '10', ''), ('294', 'Chevrolet', 'Chevy', 'Gris', 'ZAE9349\t', '3G1SE51X8A5148743\t\t', 'ROSA ELENA LOPEZ GONZALEZ', 'Mapfre/ PENDIENTE PUERTA', '9997486167\t', '2010', '10', ''), ('295', 'Renault', 'Scenic', 'Azul', 'ZAJ7798', '3BNH017823K015301', 'ADAN ORTEGA LARA', 'Particular', '9991905444\t', '2003', '10', null), ('296', 'BMW', '530 I', 'Azul', 'YZE5122', 'WBANU91049CT28835', 'CARLOS EDUARDO PAREDES CAAMAL', 'Particular', '9501031\t', '2009', '10', null), ('297', 'Mazda', '3', 'Blanco', 'YZD9891\t', 'JM1BK12F461452448\t\t', 'JORGE ARTURO REJON SANTANA', 'Qualitas', '9992973693\t', '2006', '10', ''), ('298', 'Toyota', 'Yaris', 'Plata', 'YZL2235', 'JTDBT923194046678', 'JENNY LUNA PEREZ', 'Particular', '9999000407\t', '2009', '10', null), ('299', 'Chevrolet', 'Silverado', 'Blanca', 'Taller', 'Taller', 'Taller', 'Particular', '9202008', '2011', '10', null), ('300', 'Volkswagen', 'Jetta', 'Gris', 'YZJ7441\t', '1HRM606385\t\t', 'MARIA ELENA EUAN CANTO', 'Qualitas', '9992357192\t', '1994', '10', ''), ('301', 'Chevrolet', 'Equinox', 'Blanco', 'YZZ1551\t', '2CNDL63F466072374\t\t', 'JOSE FRANCISCO PUGA SOSA', 'Qualitas', '9991717049\t', '2006', '10', ''), ('302', 'Volkswagen', 'Transporter', 'Blanco', 'MLK8984\t', 'WV2LLB7HCH124905\t\t', 'CASANOVA VALLEJO S.A DE C.V', 'Mapfre', '9992584295\t', '2012', '10', ''), ('303', 'Toyota', 'Pick up', 'Gris', 'YP67816\t', 'JT4RN93P3K5008301\t\t', 'ANTONIO MONTERO CASANOVA', 'Qualitas', '9991548881\t', '1989', '10', ''), ('304', 'Dodge', 'Atos', 'Plata', 'ZAD2963\t', 'MALAB51H65M546573\t\t', 'MARICEL ISELA MUCIÑO HERNANDEZ', 'Mapfre', '9992355797\t', '2005', '10', ''), ('305', 'Mitsubishi', 'Outlander', 'Rojo', 'YZY3474\t', 'XXXXXXXXXX9XXXXX', 'Mitsubishi', 'Millenium Motors', '99999999', '2009', '10', ''), ('306', 'Dodge', 'Attitud', 'Rojo', 'YZB5723\t', 'KMHCM41C66U046849\t\t', 'PEDRO FERMIN POSAD SUBAJO', 'Qualitas/ NO REBASO SU DEDUCIBLE , NO SE QUED', '9257962\t', '2006', '10', ''), ('307', 'Seat', 'Ibiza', 'Verde', 'ZAJ1133\t', 'VSSMK464BR177644\t\t', 'MIGUEL ANGEL CANUL CATZIN', 'TALLER', '9251962/ 9202008', '2011', '10', null), ('308', 'Mazda', '3', 'Negro', 'ZAG2041\t', 'JM1BL1VF8B1427068\t\t', 'ALEJANDRO CORONADO ZAPATA', 'Mapfre/ P T', '9992325851\t', '2011', '10', ''), ('309', 'Honda', 'Cr-V', 'Rojo', 'ZAG-3065', 'XXXXX8XXXXXX1', 'ALAN DAVID OSLICK', 'Particular', '9992543347\t', '2008', '10', null), ('310', 'Chevrolet', 'Chevy', 'Verde', 'YZJ8074\t', '3G1SF2422W5121587\t\t', 'JULIA ARACELLY AGUILAR ROSADO', 'Mapfre/ SE VOLVIO PARTICULAR', '9991130547\t', '1998', '10', ''), ('311', 'mazda', 'CX-7', 'Blanco', 'ZAL-4191', 'jm3er2b55c0423779', 'DR JUAN ESPOSITO', 'Particular', '9991324289\t', '2012', '12', ''), ('312', 'BMW', '1351', 'Negro', 'UUX7686', 'WBAUC9109BVM03599', 'LUIS URIOSTE DENIA', 'Particular', '9991005051\t', '2011', '10', ''), ('313', 'Nissan', 'Platina', 'Rojo', 'MLJ6792', 'XXXXX6XXXXXXX', 'JOSE GABRIEL RUIZ JORGE', 'Particular/ TRANCITO', '9999569853\t', '2006', '10', ''), ('314', 'Toyota', 'Yaris', 'Gris', 'WPV1117\t', 'JTDKT923575066942\t\t', 'ROMUALDO DIAZ VAZQUEZ', 'Mapfre', '9991838471\t', '2007', '10', ''), ('315', 'Chrysler', 'H-100', 'Blanco', 'YP24230\t', 'KMH2B17H27U290428\t\t', 'AGREGADOS CONSTRUMEX S.A DE C.V', 'Qualitas', '9251962', '2007', '10', ''), ('316', 'Toyota', 'Avanza', 'Azul', 'XXXX', '00000000000', 'Memo', 'Talleres Memo', '9202008', '2005', '10', ''), ('317', 'Nissan', 'Tsuru', 'Rojo', 'YZJ-6736\t', '3J19B31595K355101\t\t', 'CARLOS RICARDO MEDINA CHABLE', 'Mapfre', '9992327523\t', '2005', '10', ''), ('318', 'Volkswagen', 'Lupo', 'Blanco', 'YZP-9467\t', '9BWKB057654032905\t\t', 'FRANCISCO ERNESTO MENDOZA POOT', 'Mapfre (Terceros)', '9999701837\t', '2005', '10', ''), ('319', 'Chevrolet', 'Malibu', 'Blanco', 'ZAN-7869', '1G1195SA5DU142963', 'ISRAEL CEBALLOS', 'Particular', '9992049452\t', '2013', '10', null), ('320', 'Mercedez Benz', '280', 'Amarillo', 'UUY-1451', 'Auto antiguo', 'JORGE MADERA', 'Particular', '3136045\t', '1975', '10', null), ('321', 'Ford', 'Ikon', 'Verde', 'YZA-9007', '3FABP04B46M105197', 'NOEMI AVILES', 'MAPFRE', '9991923802\t', '2006', '12', '[email protected]'), ('322', 'Toyota', 'Yaris', 'Plata', 'ZAJ-9600', 'JTDBT92381241428', 'ANGEL LEON GARCIA', 'Particular', '9992365364\t', '2008', '10', null), ('323', 'Mazda', 'CX-7', 'Blanco', 'UVR-2019\t', 'JM3ER293080172441\t\t', 'JOSE LUIS GONZALES PARRA', 'QUALITAS', '9991335990\t', '2008', '10', ''), ('324', 'Harley Davidson', 'IRON 883', 'Negro', 'Moto', 'Moto', 'GABRIEL XACUR', 'Particular', '9992049452\t', '2012', '10', null), ('325', 'Toyota', 'Yaris', 'Gris', 'WPV-1117', 'XXXXX7XXXXX', 'DIANA DIAZ', 'Particular', '9991838471\t', '2007', '10', null), ('326', 'Toyota', 'Yaris', 'Azul', 'Taller', 'TallerMemo', 'Pamela Canul', 'Talleres Memo/COSTO', '9999202008', '2007', '10', ''), ('327', 'Chevrolet', 'Aveo', 'Gris', 'ZAJ7911\t', '3G1A5AF7CM59462\t\t', 'RUFINA ROSARIO NEGRIN', 'MAPFRE TEPEYAC, S. A.', '9991545856\t', '2012', '10', ''), ('328', 'Chevrolet', 'Chevy monz', 'Plata', 'ZAG6286', '3G1SE51X4BS120021', 'DN ABEL CANTO', 'Particular', '9999202008', '2010', '10', null), ('329', 'Fiat', 'C-500', 'Rojo', 'ZAL7004', '3C3CFFBR9CT386276', 'IMELDA MALDONADO', 'Particular', '9991278457\t', '2012', '10', null), ('330', 'BMW', '325 I', 'Blanco', 'YZW3348', 'XXXXXAXXXXXX', 'MIGUEL ANGEL KUMUL SOBERANIS', 'Particular', '9993222254\t', '2010', '10', null), ('331', 'Chevrolet', 'Chevy Wagon', 'Verde', 'YZH1743\t', '8AG5M35N82R121350\t\t', 'MARIA TERESITA DE JESUS CANTO CARRILLO', 'Qualitas', '9991946118\t', '2002', '10', ''), ('332', 'Nissan', 'Almera', 'Blanco', 'YHD3794', 'SJNFBAN185A612928', 'Boxito', 'Particular', '9993222254\t', '2005', '10', null), ('333', 'BMW', '320 I', 'Negro', 'XXXXX', 'XXXXDXXXXXXXX', 'Dr. Otto', 'Particular', '9999700552\t', '2013', '10', null), ('334', 'Jaguar', 'X TIPE', 'Rojo', 'ZAJ6632', 'XXXXXX2XXXXXXX', 'JAVIER ANCONA', 'Particular', '9992182187\t', '2002', '10', ''), ('335', 'Nissan', 'Sentra', 'Blanco', 'DRF5489\t', '3N1AB6ADXBL606837\t\t', 'FINANCE MEXICO S.A DE C.V', 'MAPFRE/ P T', '1684497\t', '2011', '10', ''), ('336', 'Mazda', '3', 'Arena', 'YZJ1811\t', 'JM1BK12F971696369\t\t', 'SERVICIOS OTERO REJON FRANCISCO JAVIER', 'Qualitas/ P T', '9992928731\t', '2007', '10', ''), ('337', 'PONTIAC', 'MATIZ', 'NEGRO', 'ZAG1507', 'KL2MM61046C093915', 'JOSE FELIPE GARCIA VARGAS', 'MAPFRE', '9992898313', '2006', '12', ''), ('338', 'nissan', 'tiida', 'rojo', 'ZAL2546', '1GND8944N44409WHG', 'RAFAEL CADENA PEREZ', 'PARTICULAR', '9202008', '2012', '12', null), ('339', 'TOYOTA', 'CAMRY', 'DORADO', 'YZR6976', '4T1BF32KX3U561869', 'MANUEL MATA', 'PARTICULAR', '9202008', '2003', '12', null), ('340', 'TOYOTA', 'YARIS', 'BLANCO', 'YZM4811', 'JTDBT923594057134', 'LUIS HUMBERTO CASTAÑEDA VALLADO', 'MAPFRE', '9999100677', '2009', '12', ''), ('341', 'TOYOTA', 'YARIS', 'BLANCO', 'YZM4811', 'JTDBT923594057134', 'LUIS HUMBERTO CASTAÑEDA VALLADO', 'PARTICULAR', '9999100677', '2009', '12', ''), ('342', 'MAZDA', '5', 'BLANCO', 'YZN5861', '60123439', 'GABRIELA TRUJILLO DORANTES', 'QUALITAS', '9991270460', '2006', '12', ''), ('343', 'vw', 'gol', 'blanco', 'YZT2771', '9BWDB06U0AT016406', 'ENRIQUE TLALOLIN', 'particular', '9993222254', '2010', '12', null), ('344', 'chevrolet', 'aveo', 'negro', 'ZAC9292', '3G1TC5C6L62AL27900', 'cosorcio peredo s.a de c.v', 'mapfre', '9992713867', '2010', '12', ''), ('345', 'chevrolet', 'aveo', 'negro', 'ZAC9292', '3G1TC5C6L62AL27900', 'MARIA EUGENIA SARLAT ANCONA', 'particular', '9992713867', '2010', '12', null), ('346', 'pontiac', 'matiz', 'blanco', 'DG29518', 'KL1MJ6A08BC150009', 'JOSE MANUEL DE JESUS CARRETINA PADILLA', 'mapfre', '9997487562', '2011', '12', ''), ('347', 'vw', 'gol', 'blanco', 'DGN3840', '9BWAB05U9AP035127', 'FRANCISCO CARRILLO COLLADO', 'mapfre/ P T', '9999999999', '2010', '12', ''), ('348', 'nissan', 'almera', 'blanco', 'YHD3794', 'SJNFBAN185A612928*', 'CORPORRATIVO BOXITO', 'particular', '9993222254', '2005', '12', ''), ('349', 'nissan', 'tsuru', 'rojo', 'YZJ6736', '3J19B31595K355101', 'CARLOS RICARDO MEDINA CHABLE', 'particular', '9992327523', '2005', '12', null), ('350', 'chevrolet', 'spark', 'negro', 'ZAJ5383', '1GN572393TTSH184Y', 'ADRIAN ESPINOSA CORONA', 'particular', '9992179738', '2012', '12', null), ('351', 'mitsubishi', 'lancer', 'blanco', 'DGX6700', 'JE3AU26U58U043181', 'ING. RACIEL ARJONA', 'MILLENIUM ', '9202008', '2008', '12', ''), ('352', 'NISSAN', 'SENTRA', 'GRIS', 'YZF9790', '3GTR4R844905836\\'', 'ERICK CABRERA', 'particular/ NO SE QUEDO', '9992717706', '2001', '12', ''), ('353', 'MITSUBISHI', 'OUTLANDER', 'AZUL', 'YZC6565', 'JE4M541X882006382*', 'VICTOR HUGO CASTILLO MUÑIZ', 'PARTICULAR', '9999470752', '2008', '12', null), ('354', 'VW', 'JETTA', 'NEGRO', 'ZAF8867', '3VWLW2165BM353924', 'ALAN GOROCICA', 'PARTICULAR', '9992759703', '2011', '12', null), ('355', 'CRHYSLER', 'H-100', 'BLANCO', 'YZW3348', 'KMF2B17H78U381101', 'CORPORATIVO BOXITO', 'PARTICULAR', '9300550', '2008', '12', ''), ('356', 'MITSUBISHI', 'OUTLANDER', 'ROJO', 'ZAK6263', '0U011017', 'ING. RACIEL ARJONA', 'MILLENIUM MOTORS', '9202008', '2010', '12', ''), ('357', 'TOYOTA', 'YARIS', 'GRIS', 'WPV1117', 'JTDKT923575066942', 'DIANA DIAZ', 'PARTICULAR', '9991838471', '2007', '12', null), ('358', 'FORD', 'MUSTANG', 'BLANCO', 'YZS5649', '12FT80N575268368*', 'RAFAEL RAMOS', 'PARTICULAR', '9202008', '2007', '12', null), ('359', 'TOYOTA', 'RAV 4', 'PLATA', 'ZAF4071', 'jtmzd33v575070028', 'MARCICRUZ CONRADO', 'TALLER /COSTO', '9202008', '2007', '12', ''), ('360', 'HONDA', 'ODISSEY', 'GRIS', 'YZC4868', '5KBRL38800037', 'DN ABEL CANTO (GRUPO BOXITO)', 'PARTICULAR', '9202008', '2007', '12', null), ('361', 'FORD', 'GRAND MARQUIS', 'AZUL', 'YZH7605', 'AL54NP58905', 'DR ARTURO LARA', 'PARTICULAR', '9993222254', '2002', '12', null), ('362', 'DODGE', 'STRATUS', 'PLATA', 'YZT-2777', 'IB3DJ46X9IN6297II*', 'ALEJANDRO RUBIO', 'PARTICULAR/ PRESUPUESTO', '9992182905', '2001', '12', ''), ('363', 'CHEVROLET', 'AVEO', 'ROJO', 'ZAF5426', '3G1TV51689L105461', 'ROBERTO SALAZAR NAVARRETE', 'MAPFRE', '9991939024', '2009', '12', ''), ('364', 'FORD', 'WINSTAR', 'DORADO', 'YZE6893', 'ZFMDA584723A00013*', 'JORGE MARIO CORTES ZACARIA', 'PARTICULAR ', '9993222254', '2002', '12', ''), ('365', 'DODGE', 'JOURNEY', 'ROJO', 'ZAM1459', '0000000000004786', 'LIC GASPAR ESCALANTE', 'PARTICULAR', '9999008944', '2012', '12', null), ('366', 'FORD', 'COURIER', 'BLANCO', 'YP42730', '9BFBT32N287874370', 'ELMER WILLIAM CHABLE BENITEZ', 'MAPFRE/PAGO A TERCEROS', '9992970221', '2008', '12', ''), ('367', 'CHEVROLET', 'CHEVY', 'NEGRO', 'YZW6671', '0000***11555424527', 'TALLERES MEMO', 'MILO', '9202008', '2000', '12', ''), ('368', 'CHEVROLET', 'CHEVY CAMIONETA', 'BLANCO', 'YP80601', '1GNT34859489CFJC0', 'TALLLERES MEMO', 'PARTICULAR/NO SELE HIZO NADA', '9202008', '2001', '12', ''), ('369', 'TOYOTA', 'CAMRY', 'DORADO', 'YZR6976', '4T1BF32KX3U561869*', 'MANUEL MATA / TALLERES MEMO', 'PARTICULAR', '9202008', '2003', '12', null), ('370', 'HONDA', 'ACCORD', 'CAFE', 'UUX8553', '1HGCP2G378A904764', 'DELMY GONZALEZ ZAPATA', 'QUALITAS', '9993318479', '2008', '12', ''), ('371', 'FORD', 'F-450 SUPER DUTY', 'BLANCO', 'SZ29410', '3FDLF46PX6MA11757', 'CORPORATIVO BOXITO', 'PARTICULAR', '9999688025', '2006', '12', ''), ('372', 'ford', 'f-450', 'blanco', 'CP03717', '3FDLF46P06MA01416', 'corporativo boxito', 'particular', '9202008', '2006', '13', ''), ('373', 'honda', 'civic', 'rojo', 'ZAK4894', '19XFA1686BE900230', 'CARLOS MARTIN CORREA', 'mapfre', '9444624', '2011', '13', ''), ('374', 'ford', 'harley davidson', 'negro', '654XTU', '1FTRW12567FB21224', 'mikaela', 'particular', '999999999', '2007', '13', null), ('375', 'honda', 'civic', 'rojo', 'zaf7663', '2HGFG12889H900377', 'miguel canul', 'mapfre', '9202008', '2009', '12', '[email protected]'), ('376', 'nissan', 'tsuru', 'rojo', 'ZAN1663', '3BAMB1316154', 'pilar castillo', 'particular', '9991877199', '1993', '13', null), ('377', 'renault', 'duster', 'rojo', 'ZAM2659', '1ng38fnvdfl3405598', 'FELIX NOVELO COELLO', 'particular', '9992712105', '2013', '13', null), ('378', 'vw', 'safaris', '1976', 'zak8135', '1862053383', 'enrique jorge', 'particular', '999999999', '2007', '12', null), ('379', 'mitsubishi', 'lancer', 'plata', 's/p', 's/n', 'MITSUBISHI', 'MILLENIUN MOTORS', '9449797', '2006', '10', '[email protected]'), ('380', 'Volkwagen', 'Sedan', 'Negro', 'Vehículo antiguo', 'vochonegro', 'PARTICULAR', 'WILBERT OROSCO', '9993222254\t', '1960', '10', ''), ('381', 'Harley Davidson', 'Guardalodo trasero', 'Negro', 's/p', 'motocicleta', 'Dr. Otto', 'Particular', '9991878939\t', '2010', '10', null), ('382', 'Renault', 'STEPWAY', 'Rojo', 'ZAH4071\t', '93YB62JBZBJ076075\t\t', 'CONSORCIO PEREDO S.A DE C.V', 'Mapfre', '9999091524\t', '2011', '10', ''), ('383', 'TOYOTA', 'RAV 4', 'NEGRO', 'UUP2950\t', 'JTECD2C0V440035541\t\t', 'LETICIA VILLAFAÑA (GARANTIA)', 'MAPFRE/GARANTIA PENDIENTE', '9999032080\t', '2004', '10', ''), ('384', 'HUMMER', 'H3', 'NEGRO', 'YZY4139\t', '5GTDN13E578143577\t\t', 'ALEJANDRO RUEDA FERRER /MARIO WONG', 'MAPFRE', '9999683357\t', '2007', '10', ''), ('385', 'MAZDA', '3', 'BLANCO', 'YZD9891', 'XXXXXX6XXXXXX', 'JORGE REJON', 'PARTICULAR', '9993222254\t', '2006', '10', null), ('386', 'MITSUBHISHI', 'OUTLANDER', 'PLATA', '1YC055\t', 'JE4LS21W4DU021704', 'MITSUBISHI', 'MILLENIUM', '9993221495', '2013', '10', ''), ('387', 'VOLKWAGEN', 'GOL', 'BLANCO', 'YZS4040\t\t', 'PBWAB45U8AP004846\t\t\t', 'ROGER JAVIER CANTO KU', 'MAPFRE', '9971015894\t', '2010', '10', ''), ('388', 'MITSUBISHI', 'LANCER', 'PLATA', '1YC-055\t', 'JE3AU26U2DU023495', 'MITSUBISHI', 'MILLENIUM', '9993221495', '2013', '10', ''), ('389', 'CHEVROLET', 'EQUINOX', 'BLANCO', 'YZZ1551', 'OOOOOO6OOOOOOOO', 'GABRIELA ARAUJO', 'PARTICULAR', '9991717049\t', '2006', '10', null), ('390', 'CHEVROLET', 'CHEVY', 'BLANCO', 'YZK8032', '3G1SF21X99S130808', 'CORPORATIVO BOXITO', 'PARTICULAR', '9993385890\t', '2009', '10', null), ('391', 'FORD', 'RANGER', 'ROJO', 'YP35361\t', '8AFDT50D856373809\t\t\t', 'MARIA REYES SOSA OXTE', 'MAPFRE', '9293200\t', '2005', '10', ''), ('392', 'PEUGEOT', '206 CC', 'NEGRO', 'YZT8818', 'VF32DN6A641W013600', 'RAUL COB VAZQUEZ', 'PARTICULAR', '9993222254\t', '2004', '10', ''), ('393', 'SUSUKI', 'GRAND VITARA', 'PLATA', 'XXXX', 'XXXXXXAXXXXXX', 'CARLOS RIVERA URTADO', 'PARTICULAR', '9480244\t', '2010', '10', null), ('394', 'NISSAN', 'TSURU', 'ROJO', 'YZT4258\t', '3BAMB1372572\t\t\t', 'RICARDO JAVIER LOPEZ MANRIQUE', 'QUALITAS/SOLICITO PAGO DE DAÑOS NO SEQUEDO', '9993602197\t', '1993', '10', ''), ('395', 'FORD', 'LOBO', 'ROJO', 'SZ6082A\t', 'JFTPX04598KD78804\t\t\t', 'ENVIOS AMERICA EXPRESS S.A DE C.V', 'MAPFRE', '9999101205\t', '2008', '10', ''), ('396', 'MITSUBISHI', 'OUTLANDER', 'NEGRO', '421WRB', 'JE4MS31X99Z011103', 'PABLO ROCHA', 'PARTICULAR', '9997385968\t', '2009', '10', null), ('397', 'TOYOTA', 'YARIS', 'PLATA', 'ZAJ-9600', 'JTDBT923812414281', 'ANGEL LEON GARCIA', 'PARTICULAR', '9992365364\t', '2008', '10', null), ('398', 'CHEVROLET', 'AVEO', 'ROJO', 'ZAJ6053\t', '3GITX526596136043\t\t\t', 'LUIS ABLERTO GONZALEZ PECH', 'MAPFRE/PAGO DE DAÑOS', '9444624\t', '2009', '10', ''), ('399', 'CHEVROLET', 'AVEO', 'ROJO', 'YZZ7253', 'XXXXXX9XXXXX', 'LUIS ALBERTO GONZALEZ PECH', 'PARTICULAR', '9444624\t', '2009', '10', null), ('400', 'CHEVROLET', 'CHEVY', 'ROJO', 'YZZ7253\t', '3GISF21X37S428727\t\t\t', 'MANUEL AGUSTIN BARROSO CANUL', 'MAPFRE', '9993526791\t', '2007', '10', ''), ('401', 'NISSAN', 'ALMERA', 'PLATA', 'YZM1229\t', 'STNFBD192A313204\t\t\t', 'CRLOS FELIPE ARCILA GONZALEZ', 'MAPFRE', '9320145\t', '2002', '10', ''), ('402', 'VOLKSWAGEN', 'SEDAN', 'AZUL', 'YZW3348', 'XXXXXX64XXXXXX', 'MIGUEL ANGEL CANUL CATZIN', 'PARTICULAR/costo', '9999202008', '1964', '10', ''), ('403', 'TOYOTA', 'TACOMA', 'DORADA', 'ZW-90003', 'XXXXXX6XXXXXXX', 'MIGUEL ANGEL CANUL CATZIN', 'PARTICULAR/costo', '9202008\t', '2006', '10', ''), ('404', 'HONDA', 'CR-V', 'BLANCO', 'YZE3511', 'XXXXXX7XXXXXX', 'SILVIA BOBADILLA', 'PARTICULAR', '0000000', '2007', '10', null), ('405', 'Nissan', 'Tiida', 'Rojo', 'ZAE 7041', '3N1BC1AS5BL415605', 'OMAR DIAZ CETINA', 'PARTICULAR', 'x', '2011', '13', ''), ('406', 'NISSAN', 'TSURU', 'BLANCO', 'ZAC6389\t', '4BAYB1330291\t\t\t', 'CUAUHTEMOC RAMON MENDEZ OJEDA', 'QUALITAS/ NO SEQUEDO', '9992558387\t', '1994', '13', ''), ('407', 'MAZDA', '3', 'PLATA', 'YZL2140\t', '19XFA1686BE900230\t\t\t', 'JOSE ALEJANDRO CONDE SALOMON (PAGO DE DAÑOS)', 'MAPFRE TERCEROS/NO SEQUEDO', '9995935769\t', '2007', '13', ''), ('408', 'FORD', 'COURIER', 'BLANCO', 'YP78285\t', '9BFBP3VN5B7901312\t\t\t', 'MULTISERVICIOS TUN S.A DE C.V', 'MAPFRE/SOLICITO PAGO DE DAÑOS NO SEQUEDO', '9202018\t', '2011', '10', ''), ('409', 'CHEVROLET', 'Chevy', 'Plata', 'ZAG6286', '3G1SE51X4BS120021', 'DN ABEL CANTO', 'PARTICULAR', '9202008', '2010', '10', null), ('410', 'HONDA', 'CR-V ', 'AZUL', 'UUJ1959', 'JHLPD78804C606582', 'ELSA MARILES TORRES', 'PARTICULAR/GARANTIA', '9992242697\t', '2004', '10', ''), ('411', 'VOLKSWAGEN', 'BORA', 'BLANCO', 'YZL-2994', '3VWJG11KX8M003869', 'GRUPO BOXITO', 'PARTICULAR', '9202018\t', '2008', '10', null), ('412', 'FORD', 'ESCAPE', 'ARENA', 'YZZ7775\t', '1FMCU0C7XAKB74461\t\t\t', 'LUIS MANUEL IRIGOYEN AVILA', 'MAPFRE', '9991183575\t', '2010', '10', ''), ('413', 'TOYOTA', 'RAV4', 'PLATA', 'ZAF4071', 'JTMZD33V5750700281', 'MIGUEL ANGEL CANUL CATZIN', 'PARTICULAR/COSTO', '9202008', '2007', '10', ''), ('414', 'FORD', 'MUSTANG', 'NEGRO', 'YZT2621', 'VEHICULO ANTIGUO2', 'ROGER ORLANDO EROSA LOPEZ', 'PARTICULAR', '9999551952\t', '1965', '10', null), ('415', 'CHEVROLET', 'AVEO', 'PLATA', 'ZAM9705\t', '3G1TV51029L117702\t\t\t', 'CINTIA GUADALUPE SOSA GOMEZ', 'MAPFRE/PENDIENTE COMPLEMENTO', '9999933719\t', '2009', '10', ''), ('416', 'HONDA', 'CR-V', 'ARENA', 'YZM4426\t', 'JHLRD78796C407671\t\t\t', 'MAURICIO DURAND GRANIEL', 'QUALITAS', '9995753120\t', '2006', '10', ''), ('417', 'CHRYSLER', 'VOYAGUER', 'PLATA', '714-PUK', '2C46P25R7R7166661', 'FERNANDO ABOGADO', 'PARTICULAR', '9999912881\t', '2000', '10', null), ('418', 'MITSUBISHI', 'OUTLANDER', 'PLATA', 'ZAB-7259\t', 'JE4LS21W0AZ009578', 'MILLENIUM MOTORS', 'MITSUBILLI', '9449797', '2010', '12', ''), ('419', 'MIITSUBISHI', 'L200', 'PLATA', 'S/P', 'MMBMG45H3DD043906', 'MILLENIUM MOTORS', 'MILLENIUM', '9202008', '2013', '12', ''), ('420', 'HONDA', 'CR-V', 'ROJA', 'YZP9719', '3CZRE48778G000449', 'EDITH MARTINEZ', 'PARTICULAR', '9991271847\t', '2008', '10', null), ('421', 'CHEVROLET', 'AVEO', 'PLATA', 'ZAF4764', '3G1TC5CF1B1L123693', 'KATIA DIAZ', 'PARTICULAR', '9992787601\t', '2011', '10', null), ('422', 'FORD', 'ESCAPE', 'ARENA', 'YZZ7775', '1FMCU0C7XAKB74461', 'LUIS MANUEL IRIGOYEN AVILA', 'PARTICULAR', '9991183575\t', '2010', '10', ''), ('423', 'NISSAN', '300ZX', 'GRIS', 'S/P', '0000000000', 'ALVARO PEREZ', 'PARTICULAR', '9202008', '1990', '10', null), ('424', 'HARLEY DAVIDSON', 'IRON 883', 'NEGRO', 'MOTO', 'MOTOCICLETA2', 'GABRIEL XACUR', 'PARTICULAR', '9202008', '2012', '10', null), ('425', 'CHEVROLET', 'CHEVY PICK UP', 'GRIS', 'YP13710', '93CSK80NXYC202857', 'CORPORATIVO BOXITO', 'PARTICULAR', '9991224710\t', '2000', '12', ''), ('426', 'HONDA', 'CIVIC', 'BLANCO', 'YZ06455\t', '1HGFS15711L901598\t\t\t', 'JOSE BALTAZAR BAEZA VEGA', 'MAPFRE TERCEROS', '9225356\t', '2001', '10', null), ('427', 'MITSUBISHI', 'LANCER', 'PLATA', 'YZN5397', 'JE3AJ26E36U052928', 'RACIEL ARJONA', 'MITSUBISHI', '9993221495\t', '2006', '10', ''), ('428', 'VOLKSWAGEN', 'GOL', 'ROJO', '729XEV\t', '9BWAB0504BP027423\t\t\t', 'MAPFRE', 'MAPFRE', '9424000\t', '2011', '10', ''), ('429', 'MAZDA', '3', 'ROJO', 'ZAL5016\t', 'JM1BLVFLC1633536\t\t\t', 'MANUEL FRANCISCO NARVAEZ BRICEÑO', 'MAPFRE', '9444624\t', '2012', '10', ''), ('430', 'TOYOTA', 'YARIS', 'GRIS', 'WPV-1117', '0000007000000', 'DIANA DIAZ/PABLO RUIZ', 'PARTICULAR', '9991838471\t', '2007', '10', null), ('431', 'NISSAN', 'SENTRA', 'GRIS', 'YZW2119', '3N1CB51S51L0177891', 'FABIO PARDENILLA', 'PARTICULAR', '9999035827\t', '2001', '10', null), ('432', 'FORD', 'KA', 'GRIS', 'ZAB4679\t', '9BF13N8N747507522\t\t\t', 'ANTONIO ROMERO GUERRERO', 'MAPFRE/ PT', '9827890\t', '2004', '10', ''), ('433', 'PEUGEOUT', '206 CC', 'NEGRO', 'YZT8818', 'ASOCIADA A C-4686', 'RAUL COB VAZQUEZ ', 'PARTICULAR/SE HISO UNA SOLA CUENTA C/ ORDEN ', '9993222254\t', '2004', '10', ''), ('434', 'VOLKSWAGEN', 'SAFARIS', 'AMARILLO', 'ZAK8135', '18620533831', 'ENRIQUE JORGE', 'PARTICULAR', '9999202008', '1987', '10', null), ('435', 'CHEVROLET', 'CHEVY WAGOS', 'VERDE', 'YZH1743', '8AG5M35N82R121350', 'MANUEL ARGAEZ', 'MANUEL ARGAEZ', '9823182', '2002', '10', null), ('436', 'MITSUBISHI', 'LANCER', 'GRIS', 'YZC9166', 'JE3AJ26E06U019241', 'JUAN CARLOS', 'MILLENIUM MOTORS', '9999', '2006', '10', ''), ('437', 'TOYOITA', 'SIENNA', 'BLANCO', 'YZK9455', '5TDYK4CC4S298447', 'JULIA MARTIN', 'JULIA MARTIN', '9991525159', '2010', '10', null), ('438', 'NISSAN', 'SENTRA', 'GRIS', 'YZK9058', '3N1CB51S61L014433\t\t\t', 'QUALITAS CAMPAÑIA DE SEGUROS, S.A.B. DE C.V.', 'QUALITAS CAMPAÑIA DE SEGUROS, S.A.B. DE C.V.', '9991420511', '2001', '10', ''), ('439', 'HONDA', 'CR-V', 'DORADA', 'ZAG3406', 'JHLRD684X6C403726', 'GUILLERMO ALPUCHE', 'GUILLERMO ALPUCHE', '9999916469', '2006', '10', null), ('440', 'FORD', 'FOCUS', 'ROJO', 'ZAD8293', 'WF0LP3XH6A1127706\t\t\t', 'FELIPE DE JESUS SALAS DELGADO', 'MAPFRE TEPEYAC, S.A. \t\t', '99', '2011', '10', ''), ('441', 'CRHYSLER', 'H-100', 'BLANCA', 'YP13703', 'KMFZB17H78U381101', 'GABRIELA TUGORES', 'BOXITO', '9300500 ', '2008', '10', ''), ('442', 'Dodge', 'Journey', 'Plata', 'YZG1585', '3D4BG4FB9BT557373', 'SECRETARIA DE CONTRALORIA GENERAL', 'Particular', '9303800\t', '2011', '10', null), ('443', 'Honda', 'Civic', 'Cafe', 'YZC-4867', 'XXXXX8XXXXXXX', 'Abel Canto', 'Particular', '9202008', '2008', '10', null), ('444', 'Mazda', 'CX-7', 'Blanco', 'ZAA5786', 'JM3ER293480172443', 'RAMON NUÑEZ', 'Particular', '9999580208\t', '2008', '10', null), ('445', 'Toyota', 'Corolla', 'Plata', 'YZC4747', '2T1BR32E95C404744', 'JUAN MENA', 'Particular', '9993225801\t', '2005', '10', null), ('446', 'Ford', 'Freestar', 'Azul', 'YZL1981\t', 'A19166\t\t', 'ROGER MANUEL MEDINA GONZALEZ', 'Qualitas/ GARANTIA FORD', '9991347182\t', '2005', '10', ''), ('447', 'Honda', 'Civic', 'Blanco', 'YZJ2090', '2HGFG12867H901685', 'MONSERRAT PENICHE', 'Particular', '9991297928\t', '2007', '10', ''), ('448', 'Volkswagen', 'Bettle', 'Plata', 'YZH9302\t', '3VWCV41C43M429669\t\t\t', 'ZAID GABRIEL VALDIDVIEZO SOGBI', 'Qualitas', '9993227369\t', '2003', '10', ''), ('449', 'Honda ', 'Civic', 'Gris', 'YZH5412\t', '1HGFA16808L903190\t\t\t', 'MARIA LETICIA DE LOURDES ZUM CRUZ', 'Qualitas', '9993227369\t', '2008', '10', ''), ('450', 'Honda', 'Civic', 'Rojo', 'UUW2518', '2HGFG11836H901109', 'SHADY ORDOÑEZ', 'Particular', '9992603542\t', '2006', '10', null), ('451', 'Chevrolet', 'Corsa', 'Gris', 'YZH9011\t', '8AGXM19R25R109609\t\t\t', 'ELSY ANTONIA CRUZ LOPEZ', 'Mapfre', '9999916821\t', '2005', '10', ''), ('452', 'Volkswagen', 'Bora', 'Plata', 'YZD1491\t', '3VWJG11K08M098300\t\t\t', 'MANUEL GERARDO DOMINGUEZ RIVERO', 'Mapfre', '9992780014\t', '2008', '10', ''), ('453', 'Volkswagen', 'Bora', 'Plata', 'YZD1491', '3VWJG11K08M098300', 'MANUEL GERARDO DOMINGUEZ RIVERO', 'Particular', '9992780014\t', '2008', '10', null), ('454', 'Chevrolet', 'Chevy', 'Plata', 'MES5942\t', '3G1SF61X2AS109570\t\t\t', 'MARIANA GARCIA TREJO', 'Mapfre', '9991343499\t', '2010', '10', ''), ('455', 'Chevrolet', 'Chevy', 'Azul', 'YZA1133\t', '3G1SF2136ZS151375\t\t\t', 'JOSE RAMON FAJARDO GIL', 'Mapfre/PAGO DE DAÑOS NO SEQUEDO', '946-18-58\t', '2002', '10', ''), ('456', 'Ford', 'Escape', 'Azul', 'ZAE9764\t', '1FMCUOC78BKA01958\t\t\t', 'EMILIO SALAZAR CENTENO', 'Mapfre', '9997 387374\t', '2011', '10', ''), ('457', 'CHEVROLET', 'AVEO', 'PLATA', 'ZAA1412\t', '3G1TA5A61AL114693\t\t', 'LILIA CRISTINA PIÑA MONZON', 'MAPFRE TEPEYAC, S. A./NO PROCEDIO LA GARANTIA', '9991119141\t', '2010', '10', ''), ('458', 'DODGE', 'DAKOTA', 'BLANCO', 'YP87894', '01D7HG48K68S595671', 'FILIBERTO CAAMAL', 'FILIBERTO CAAMAL', '9992246695\t', '2008', '10', null), ('459', 'FORD', 'RANGER', 'BLANCO', 'YP88094', '8AFER5AD1C6458991', 'SRITA MIRIAM', 'SECRETARIA DE LA CONTRALORIA GENERAL', '9992202105\t', '2012', '10', ''), ('460', 'TOYOTA', 'SIENA', 'GRIS', 'YZC9166', '5TDZA22C75S361270', 'CARLOS ESCALANTE', 'CARLOS ESCALANTE', '9999', '2005', '10', null), ('461', 'HONDA', 'ACCORD', 'BLANCO', 'YZS8911\t', '3HGCM563536001615\t\t\t', 'LUIS HUMBERTO MANZANO CARVAJAL', 'MAPFRE', '9999', '2003', '10', ''), ('462', 'MERCURY', 'MILAN', 'GRIS', 'YZD7454\t', '3MEHM08198R649617\t\t\t', 'LUIS GONZALO BARRETA GAMBOA', 'MAPFRE', '924-74-18\t', '2008', '10', ''), ('463', 'FORD', 'SUNFIRE', 'ROJO', 'YZT7081', '3G2JB12F85S187174', 'JAVIER RICALDE', 'JAVIER RICALDE', '9992718271\t', '2005', '10', null), ('464', 'VW', 'GOL', 'CAFE', 'YZX4142', '1', 'LUIS GUILLERMO COCOM PEREZ', 'LUIS GUILLERMO COCOM PEREZ', '9999', '2009', '10', null), ('465', 'RENAULT', 'MEGAME', 'ROJO', 'ZAJ8883\t', 'VF1LM1J519RS81863\t\t\t', 'EDUARDO JOSE TELLLO MARTINEZ', 'MAPFRE TEPEYAC, S. A.', '295-09-24\t', '2009', '13', ''), ('466', 'Toyota', 'Hilux', 'Rojo', 'YP00608', '8AJEX32GF794017525', 'ING JOSE LABERTO KOH LOPEZ', 'Particular', '9992503887\t', '2009', '13', null), ('467', 'Chevrolet', 'Chevy', 'Dorado', 'YZR7184\t', '3G1SF24231S191754\t\t\t', 'NIDIA GUADALUPE GARCIA CERVANTES', 'Qualitas', '9995-757684\t', '2001', '13', ''), ('468', 'Honda', 'Civic', 'Rojo', 'YZL3826', '1hgem22945l900649', 'MINERVA FLORES', 'Particular', '9992161427\t', '2005', '12', ''), ('469', 'BMW', '335 I', 'Negro', 'ZAF6325', 'XXXXXX0XXXXXX', 'OSCAR RIVERA', 'Particular', '9992760617\t', '2010', '13', ''), ('470', 'Chevrolet', 'Aveo', 'Negro', '580WUF', '3G1TV52679L146742', 'JUAN DIAZ//KARLA PEREZ', 'Particular', '9999681099\t', '2009', '13', ''), ('471', 'Volkswagen', 'Jetta', 'Plata', 'ZAE9111\t', '3VW1V09M2BM018704\t\t\t', 'LUIS ALVARADO GAMBOA PACHECO', 'Mapfre', '99-068475 9991-993342\t', '2011', '13', ''), ('472', 'Ford', 'Winstar', 'Rojo', 'YZY5121', 'XXXXXAXXXXXXX', 'OSWALDO MOSNREAL (Garantia)', 'Particular', '9999494293\t', '2000', '13', null), ('473', 'Chevrolet', 'Aveo', 'Plata', 'ZAM9705', '3G1TV51029L117702', 'CINTHIA GUADALUPE SOSA GOMEZ', 'Particular', '9999933719\t', '2009', '13', null), ('474', 'HONDA', 'CIVIC', 'BALNCO', 'YZC9166', '2HGFG12867H901685', 'MONSERRAT PENICHE', 'MONSERRAT PENICHE', '9993221495\t', '2007', '13', ''), ('475', 'Renault', 'Clio', 'Gris', 'MGG2836\t', '3BNBB1J616L309752\t\t\t', 'FRANCISCO GUTIERREZ MONDRAGON', 'Mapfre/PAGO DE DAÑOS NO SEQUEDO', '240-01-63 52*1*8602\t', '2006', '13', ''), ('476', 'Nissan', '300 zx', 'Gris', 'XXXXX', '000000900000000', 'Álvaro Pérez', 'Particular/ASOCIO 4717', '9202008', '1990', '11', ''), ('477', 'Chevrolet', 'Chevy', 'Blanco', 'ZAC2940\t', '3G1SF21X8AS136085\t\t\t', 'LUIS HUMBERTO MANZANO CARVAJAL', 'Mapfre', '9993386437\t', '2010', '11', ''), ('478', 'Seat', 'Cordoba', 'Plata', 'YZK5842', 'VSSHM16L58R109784', 'ALBERTO VALENCIA', 'Particular', '9251962', '2008', '11', null), ('479', 'Nissan', 'Almera', 'Blanco', 'YHD3744', 'SJNFBAN185A612928', 'Corporativo Boxito', 'Particular/NO SEQUEDO', '0202008', '2005', '10', ''), ('480', 'Chevrolet', 'Chevy', 'Azul', 'Pablo', 'Pablo Martinez', 'Pablo Martines', 'TalleR/COSTO', '9202008', '2005', '10', ''), ('481', 'Nissan', 'Tiida', 'Negro', 'ZAG9682\t', '3N1BC1AS1BL474148\t\t\t', 'ELSA HERRERA SUAREZ', 'Mapfre / NO SEQUDO', '9992-716177 9999-580725 981-14-70\t', '2011', '10', '')\");\n\t\t$this->db->simple_query(\"INSERT INTO `vehiculo` VALUES ('482', 'Mazda', 'CX7', 'Gris', 'ZAK2330\t', 'JM3ER293270166039\t\t\t', 'ABRAHAM ALBERTO ZAPATA ORDOÑEZ', 'Qualitas', '9991 561607\t', '2007', '10', ''), ('483', 'Chevrolet', 'Aveo', 'Blanco', 'YZT1522\t', '3g1tu51619l141864\t\t\t', 'HECTOR GILBERTO SANSORES CARVAJAL', 'Mapfre', '943-34-57\t', '2009', '10', ''), ('484', 'Dodge', 'Attitud', 'Dorado', 'ZAB3641\t', 'KMHCM41C38U227569\t\t\t', 'ALDO FRANCISCO CHAN MONTERO', 'Mapfre', '9993-517802 9991-120203\t', '2008', '13', ''), ('485', 'Jeep', 'Patriot', 'Gris', 'ZAH8243\t', 'KMHCM41C38U227569\t\t\t', 'CARLOS LENIN QUINTAL CASTILLO', 'Mapfre', '9691030539 91-370916\t', '2011', '13', ''), ('486', 'Volkswagen', 'Pointer', 'Blanco', 'YP39254\t', '9BWEC05W75P044044\t\t\t', 'RENE LEON', 'Qualitas', '925-19-62 920-08-65\t', '2006', '13', ''), ('487', 'Dodge ', 'Avenger', 'Negro', 'ZAK6656\t', '1B3KC46K48N277945\t\t\t', 'CARLOS PAREDES', 'Qualitas', '9993-085781\t', '2008', '13', ''), ('488', 'Dodge', 'Caliber', 'Rojo', 'YZM6703', '1B3JB48C37D214635', 'MARIA COELLO AMBROSIO/ING CURA EDWIN', 'Particular', '9971141188 9971036396\t', '2007', '13', null), ('489', 'Ford', 'Fiesta', 'Azul', 'YZT143\t', '9BFBT09N538027222\t\t\t', 'JOSE DE JESUS CERVERA PINTO', 'Mapfre/SE VOLVIO PARTICULAR', '9991-192538 9991-419711\t', '2003', '10', ''), ('490', 'Pontiac', 'Matiz', 'Verde', 'DGX8012\t', '9BWEC05W75P0440441\t', 'SELENE BARJAU RIVERA', 'Qualitas', '93-388355\t', '2008', '10', ''), ('491', 'Toyota', 'Camry', 'Gris', 'ZAH4513', '4T1BK3EK3BU627023', 'ING RICARDO MAÑE LARA', 'Particular', '9992286231\t', '2011', '10', ''), ('492', 'Toyota', 'Yaris', 'Blanco', 'YZB3627\t', 'JTDBT923191316560\t\t\t', 'LILY GUADALUPE FLORES PECH', 'Mapfre', '9992-009706\t', '2007', '10', ''), ('493', 'Chevrolet', 'Spark', 'Negro', 'ZAL3652', 'KL1CM6CD9CC592771', 'ISRAEL CEBALLOS', 'Particular', '9992089452\t', '2012', '10', null), ('494', 'GM', 'UPLANDER', 'Dorada', 'UVR1743', '1GNDU23LX5D196060', 'REINA FRANCO', 'Particular', '9991400593\t', '2005', '10', ''), ('495', 'Ford', 'Escape', 'Azul', 'ZAE9764', '1fmcu0c78bka01958', 'EMILIO SALAZAR CENTENO', 'PARTICULAR', '9997387374\t', '2011', '12', ''), ('496', 'Jeep', 'Patriot', 'plata', 'ZAH8243', '1J4AT2GB4BD214008', 'CARLOS QUINTAL CASTILLO', 'Particular', '9691030539\t', '2011', '10', null), ('497', 'Honda', 'Civic', 'Plata', 'YZH5412', '1HGFA168082903190', 'LETICIA ZUM CRUZ', 'Particular', '9991897310\t', '2008', '10', null), ('498', 'Mazda ', 'CX-7', 'Gris', 'ZAK2330', 'JM3ER293270166039', 'ABRAHAM ZAPATA ORDOÑEZ', 'Particular', '9992710432\t', '2007', '10', null), ('499', 'Chevrolet', 'Venture', 'Verde', 'YZB7456', '1GNDX03E8VD213810', 'ILEANA ALPUCHE GAMBOA', 'Particular', '9992805116\t', '1997', '10', null), ('500', 'Honda', 'Moto C90', 'Azul', '6GPR7\t', 'JH2HA028X4K500235\t\t\t', 'JOSE SANCHEZ GOMEZ', 'Mapfrepago /PAGO DE DAÑOS NO SEQUEDO', '9992 201718\t', '2004', '10', ''), ('501', 'chrylser', 'attitude', 'blanco', 'ZAB7281', 'KMHCN4BA1BU515865', 'ENRIQUE CETZ QUIJANO', 'qualitas', '9992-308046', '2010', '12', ''), ('502', 'niisan', 'sentra', 'rojo', 'YZH9180', '3N1CB51S16L629799', 'JUAN MIGUEL VERA SANTOS', 'qualitas', '9991-385317 ', '2006', '12', ''), ('503', 'NISSAN', 'SENTRA', 'ROJO', 'YZH9180\t', '3N1CB51S16L629799\t\t\t', 'JUAN MIGUEL VERA SANTOS', 'QUALITAS CAMPAÑIA DE SEGUROS, S.A.B. DE C.V.', '9991-385317 988-954-0783\t', '2006', '12', ''), ('504', 'honda', 'civic', 'gris', 'ZAC1650', '1HGES16724L905601', 'CARLOS FERNANDO AZNAR DENIS', 'qualitas', '9999-473872', '2004', '12', ''), ('505', 'chevrolet', 'uplander', 'dorado', 'YZD2515', '1GNDU23L86D146842', 'GISELLE TERESA SOLIS MAGAÑA', 'mapfre/SE VOLVIO PARTICULAR', '9999-477759', '2006', '12', ''), ('506', 'vw', 'jetta', 'gris', 'ZAE9111', '3vw0102m2bm0187', 'LUIS ALVARADO GAMBOA PACHECO', 'particular', '9991993342', '2011', '12', null), ('507', 'chevrolet', 'optra', 'blanco', 'YZX8400', 'KL1JJ5CZ5AK566046', 'LILY GUADALUPE FLORES PECH', 'mapfre', '9992-009706', '2010', '12', ''), ('508', 'chervolet', 'CHEVY', 'ROJO', 'UUK5353', '3G1SE51X56S138369', 'EDUARDO BORGES', 'PARTICULAR', '9993356542', '2006', '12', ''), ('509', 'vw', 'jetta', 'plata', 'ZAF2130', '3VWRV09M54M053145', 'JUAN MANUEL ARCILA', 'particular', '9991846056', '2004', '10', ''), ('510', 'mitsubishi', 'lancer', 'negro', 's/p', 'JE3AU26U1DU023911', 'mitsubishi', 'MILLENIUM MOTORS', '9202008', '2013', '12', ''), ('511', 'vw', 'gol', 'blanco', 'YZR7399', '3VW1931HMSM111968', 'RAUL RODRIGUEZ CONTRERAS', 'mapfre/NO SEQUEDO', '9995-768226', '1995', '12', ''), ('512', 'vw', 'derby', 'gris', 'yzd5591', 'WVWUE06K42R500611', 'ANGEL RAUL VELAZQUEZ ECHEVERRIA', 'QUALITAS', '9992-397710', '2002', '12', ''), ('513', 'honda', 'fit', 'gris', 'zaf8201', '93HGD38826Z800530', 'ELSY NATIVIDAD KU EK', 'mapfre/PARTICULAR', '9992-740304', '2006', '10', ''), ('514', 'nissan', 'maxima', 'negro', 'zaf2493', '1N4AA5AP9BC801432', 'fernando medina', 'mapfre/PT', '225-44-92', '2011', '12', ''), ('515', 'chevrolet', 'aveo', 'plata', 'ZAM9705', '3G1TVS1029L117702', 'CINTHIA SOSA GOMEZ', 'particular', '9999933719', '2009', '12', null), ('516', 'ford', 'lobo', 'negro', 'yp68020', '1FTPW14514KD44942', 'ARQ ALDO ANDRADE', 'particular', '9991010408', '2004', '12', null), ('517', 'GM', 'AVEO', 'DORADO', 'ZAE8407', '3G1TC05CF38L100318\t\t', 'SILVIA SALAZAR BORGES', 'PARTICULAR/CANCELADO NO SE HIZO', '9992423966\t', '2011', '10', ''), ('518', 'nissan', 'sentra', 'dorado', 'YZS3948', '3N1AB1D47L475667', 'karla novelo', 'qualitas', '920-14-94', '2007', '12', ''), ('519', 'doge', 'journey', 'blanco', 'YZV4833', '3D4GG47B19T250018', 'LEOBARDO AMAURI CASTILLO', 'MAPFRE/ASOCIADA 4813', '9991-631465', '2009', '12', ''), ('520', 'vw', 'gol', 'rojo', 'ZAN5604', 'PBWAB05U7BP074994', 'FERNANDO ESTEBAN NOVELO CANO', 'mapfre', '9992-183544', '2011', '12', ''), ('521', 'nissan', 'tiida', 'negro', 'YZM4505', '3N1BC11GX8K192830', 'MARIA DE LOS ANGELES HERRERA HERNANDEZ', 'MAPFRE', '9991-431140', '2008', '12', '[email protected]'), ('522', 'gm', 'aveo', 'azul', 'ZAD6101', '3G1TA5A66AL141372', 'JOSE EDUARDO CARRILLO LARA', 'mapfre', ' 9992-125948', '2010', '12', ''), ('523', 'GM', 'CHEVY', 'BLANCO', 'YZS4269', 'JTDBT923191316560', 'ALEJANDRO ARTURO ESCOBAR COMPANAN', 'MAPFRE/SUSTITUYE A 4858', ' 930-29--00', '2009', '12', '[email protected]'), ('524', 'MAZDA', '3', 'NEGRO', 'YZS5087', 'JM1BL1S55A1181784', 'JORGE TORRE', 'PARTICULAR', '9991010408', '2010', '12', null), ('525', 'NISSAN', 'XTRAIL', 'DORADO', 'ZAG2219', 'JTDBT923191316560*', 'ZOEMY JANET VARGUEZ ZOZAYA', 'MAPFRE/SE VOLVIO PARTICULAR', '9991-437169', '2005', '12', ''), ('526', 'FORD', 'EXPLORER', 'PLATA', 'YZG7130', '1FMEU63E49UA03571', 'OSWALDO MOSNREAL', 'PARTICULAR', '9999494293', '2009', '12', ''), ('527', 'nissan', 'puerta de aprio', 'praimer', 'xsssxs', 'xkhfjdfhgsjkfgh', 'talleres memo', ' BODEGA /COSTO', '99999999', '2006', '12', ''), ('528', 'chevrolet', 'cargo van', 'blanco', 'sp', '1GCZG9CG9B1115516', 'cruz roja mexicana', 'mapfre/NO SEQUEDO', '9991-258957', '2011', '12', ''), ('529', 'gm', 'chevy', 'NEGRO', 'ZAF5296', '3GASF21XXBS115515', 'DN ABEL CANTO', 'PARTICULAR', '9999999999', '2011', '12', ''), ('530', 'VW', 'GOL', 'BLANCO', 'ZAF8815', 'JTDBT9231913165602', 'FATIMA FLANDES MENDOZA', 'MAPFRE/NO SEQUEDO', '9992-976135', '2011', '12', ''), ('531', 'NISSAN', 'TSURU', 'BLANCO', '206XCJ', '3N1EB31S7AK325632', 'ALEX ALBERTO VIRGILIO JIMENEZ', 'MAPFRE', '9992-715211', '2010', '12', ''), ('532', 'VW', 'GOLF', 'BLANCO', 'YZR7399', '3VW1931HMSM111968*', 'FREDY TUYUB VALDEZ', 'PARTICULAR/CANCELADA - ASOCIADA O/4805 PT', '9995768226', '1995', '12', ''), ('533', 'FORD', 'FOCUS', 'AZUL', 'ZAD8293', 'WFOL93XH6A1127706', 'ERNESTO SALAS', 'PARTICULAR', '9995768062', '2010', '12', null), ('534', 'NISSAN', 'TIIDA', 'BLANCO', 'ZAT1744', '3n1bc1as5bl481135', 'CARLOS CANALES HERNANDEZ', 'particular', '9991-865270', '2011', '12', ''), ('535', 'TOYOTA', 'CAMRY', 'ROJO', 'ZAK5515', '4F1BW46KX9U370643', 'LUIS FERNANDO ROMERO ELJURE', 'MAPFRE', '9992-757079', '2009', '12', null), ('536', 'FORD', 'F-450', 'BLANCO', 'CP03717', '3FDLF46P06MA01416*', 'GRUPO BOXITO CD DEL CARMEN', 'PARTICULAR', '9300554', '2006', '12', ''), ('537', 'NISSAN', 'SENTRA', 'GRIS', 'YZW-2119', '3N1CB51S51L017789*', 'FABIO PARDENILLA', 'PARTICULAR/COSTO PABLO MARTINEZ-ALVAREZ-MANU', '9999035827', '2001', '12', ''), ('538', 'RENAULT', 'MEGANE', 'ROJO', 'ZAJ8883', 'VF1LM1JS19RS81863', 'EDUARDO TELLO', 'PARTICULAR GARANTIA', '9992714049', '2009', '12', ''), ('539', 'TOYOTA', 'YARIS', 'BLANCO', 'YZU9370', 'JTDBT923171175910', 'MARIA FERNANDA CAMPOS BERNY', 'PARTICULAR', '9992922916', '2007', '12', null), ('540', 'SUSUKI', 'GRAND VITARA', 'DORADO', 'ZAL2364', 'JS3TE94V174100346', 'JOSE SATURNINO SOLIS BRICEÑO', 'QUALITAS/PENDIENTE FACTURAR', '9991-254218', '2007', '12', ''), ('541', 'VW', 'JETTA', 'BLANCO', 'YZT1666', '3VWRV09M27M652573', 'GABRIEL MARQUEZ', 'PARTICULAR', '9991296761', '2007', '12', null), ('542', 'mazda', 'cx 7', 'negro', 'ZAG6221', 'JM3ER2C53B0372120', 'PATRICIA MACARI JORGE', 'mapfre', '9999491304', '2011', '12', ''), ('543', 'mazda', 'cx 7', 'negro', 'ZAG6221', 'JM3ER2C53B0372120', 'PATRICIA MACARI JORGE', 'particular', '9999491304', '2011', '12', null), ('544', 'NISSAN', 'TSURU', 'ROJO', 'ZAL7604', 'No. JTDBT923191316560', 'MARCO ANTONIO HOIL GOMEZ', 'MARCO ANTONIO HOIL GOMEZ', '9467235\t', '2010', '10', null), ('545', 'CHRYSLER', 'VOYAGUER', 'PLATA', '714-PUK', '# 2C46P25R7R716666', 'FERNANDO ABOGADO', 'FERNANDO ABOGADO', '9999912881\t', '2000', '10', null), ('546', 'mitsubishi', 'outlander', 'gris', 's/p', 'JE4LS21W3DU025971', 'millenium motors', 'MITSUBISHI', '9202008', '2013', '12', ''), ('547', 'SEAT', 'TOLEDO', 'VERDE', 'YZK1676', 'VSSGE41M53R071821', 'JOAQUIN GABRIEL GONZALEZ CEBALLOS', 'MAPFRE', '9991-721989', '2003', '12', ''), ('548', 'CHEVROLET', 'OPTRA', 'PLATA', 'UUM2632', 'KL1JJ51Z57K633854', 'ROSENDO GABRIEL JIMENEZ GONZALEZ', 'MAPFRE/GLOBAL', '(997) 072452', '2007', '12', ''), ('549', 'FORD', 'FIESTA', 'AZUL', 'ZAL6611', '3FAFP4AJXDM108333', 'LUIS MONFORTE', 'MAPFRE/GLOBAL PARTICULAR', '9992-770405', '2013', '12', ''), ('550', 'MAZDA', '6', 'GRIS', '145WLN', '1YVHP82A895M50315', 'GUILLERMO NUÑEZ', 'MAPFRE/SE TERMINO EN OTRO TALLER', '9993.-515561', '2009', '12', ''), ('551', 'CHEVROLET', 'SSR', 'MORADO', 'YP2004', '1GCES14P44B110475', 'JAVIER AYSA', 'PARTICULAR', '9991380974', '2004', '12', ''), ('552', 'GM', 'AVEO', 'ROJO', '721YSB', '3G1TC5CF6DL130612', 'GARANTIA MAPFRE', 'MAPFRE/COSTO Y CORTESIA A GABRIEL TORRES', '9992073910', '2013', '12', ''), ('553', 'ford', 'escape', 'rojo', 'YZG8790', '1FMCU0EG7CKB24956', 'SIFIDEY / ANTONIO PUERTO', 'particular', '9203604', '2012', '12', ''), ('554', 'mitsubishi', 'montero', 'gris', 'YZJ9300', 'JE4LS31R35J001768', 'LUIS ALBERTO CANTO CHAY', 'qualitas', '9999700449', '2005', '13', ''), ('555', 'toyota', 'corolla', 'plata', 'ZAN5062', '2T1BU4EE4DC040246', 'raul marrufo', 'particular', '99992009027', '2013', '13', null), ('556', 'mitsubishi', 'lancer', 'gris', 'ZAL4995', 'JE3AU26U7CU026133', 'millenium motors', 'MITSUBISHI', 'JE3AU26U7CU026133', '2013', '12', ''), ('557', 'ford', 'fiesta', 'rojo', 'asdasd', '54634545', 'asndahsd', 'asljkdas', '465465', '2007', '12', '[email protected]'), ('558', 'chevrolet', 'aveo', 'dorado', 'uuk4496', '3G1TC5C63AL131499', 'EMILIO ZOLA ALUR', 'mapfre', '9991481115', '2010', '12', '[email protected]'), ('559', 'NISSAN', 'SENTRA', 'VERDE', 'YZK1926', '3N1B0AB14VK007023', 'ANA DAVILA TERON', 'MAPFRE/PARTICULAR', '99-090797', '1997', '12', '[email protected]'), ('560', 'CHEVROLET', 'MATIZ', 'VERDE', 'ZAH6013', 'KL1MJ6A0XBC144955', 'GABRIEL EZQUEDA', 'MAPFRE', '9991-162523', '2011', '12', '[email protected]'), ('561', 'SEAT', 'CORDOBA', 'ROJO', 'ZAD4611', 'VSSHM16257R016326', 'RAMON FRANCISCO OSORIO CENTENO', 'MAPFRE', '9992-604514', '2007', '12', '[email protected]'), ('562', 'CHEVROLET', 'CHEVY', 'NARANJA', 'YZL7065', '3G1SF21X24S186467', 'MARIA JOSE FLOTA', 'QUALITAS', '9991-714012', '2004', '12', '[email protected]'), ('563', 'VW', 'JETTA', 'ROJO', 'ZAF3992', '3VWRV09M77M639009', 'ANGEL MANUEL PATRON PEREZ', 'QUALITAS', '9997-390086', '2007', '12', '[email protected]'), ('564', 'VW', 'SEDAN', 'VERDE', 'YZA2302', '11B0124556', 'MELCHOR HUGO CRUZ DIAZ', 'MAPFRE/PARTICULAR', '9991-418097', '1981', '12', '[email protected]'), ('565', 'Seat', 'Ibiza', 'Azul', 'DGU5799\t', 'VSSXK46J3AR180618\t\t\t', 'JOSE ALBERTO JIMENEZ ESCOBAR\t\t\t\t\t', 'Mapfre ', '9991-418097\t', '2010', '11', ''), ('566', 'Chrysler', 'TOWN COUNTRY', 'BLANCO', 'YHH2548', '2A8KR54X18R625787', 'ANTONIO MORENO / LORENA RAMIREZ', 'Particular', '9991894278\t', '2008', '12', ''), ('567', 'Susuki', 'Gran Vitara', 'Blanco', 'PXJ4941', 'JS3TE04V8B4611797', 'EMANUEL LOPEZ', 'Particular', '9991010408\t', '2011', '11', ''), ('568', 'Mazda', 'CX7', 'Rojo', 'ZAG2421', 'JM3ER293280173283', 'JESUS PEREZ VEGA', 'Particular', '9992363117\t', '2008', '11', ''), ('572', 'Chevrolet', 'Chevy', 'Blanco', 'YZS4269\t', '3G1SF21X09S146072\t\t\t', 'ALEJANDRO ARTURO ESCOBAR CONPARAM', 'Mapfre', '9992-227073 9302900\t', '2009', '10', ''), ('573', 'VW', 'Polo', 'Azul', 'YZL4824\t', '9BWHB09N65P029244\t\t', 'ALFONZO PALMA GAMBOA', 'Mapfre (complemento) O/4333', '9992613032\t', '2005', '10', ''), ('574', 'Renault', 'Kangoo', 'Rojo', 'ZAH1662\t', '8A1KC3J787L012708\t\t\t', 'ERNESTO MOLLINEDO PECH', 'Qualitas', '305-14-79\t', '2007', '10', ''), ('575', 'Toyota', 'Corolla', 'Plata', 'MDP1818\t', '9BRBA42E895046657\t\t\t', 'CARLOS SAMUEL ENCISO GALINA', 'Mapfre', '981-8182739 981-1412544\t', '2007', '10', ''), ('576', 'CHEVROLET', 'TORNADO', 'BLANCO', 'YZ85616', '93CCM8006CB117256', 'MAPFRE TEPEYAC', 'MAPFRE', '0', '2012', '12', ''), ('577', 'renault', 'kangoo', 'rojo', 'ZAH1662', '8A1KC3J787L012708', 'ernesto mollinedo', 'PARTICULAR / GARANTIA', '3051479', '2007', '12', ''), ('578', 'bmw', 'x 5', 'dorado', 'URX964A', '5UXFA53572LV70525', 'ALBERTO ALCOCER', 'MAPFRE/GARANTIA DE OTRO TALLER/PENDIENTE VAL', '9997- 387429 ', '2002', '12', ''), ('579', 'FORD', 'IKON', 'PLATA', 'YP68020', '3FABP04B64M111306', 'ARQ RAFAEL ARREDONDO FERRAEZ', 'PARTICULAR', '9991289042', '2004', '12', ''), ('580', 'VW', 'POINTER', 'GRIS', 'YZX4313', '9BWCC05W67T002955', 'LIGIA ESTHER GUZMAN PREN', 'MAPFRE', '9995-934431', '2007', '12', ''), ('581', 'GM', 'OPTRA', 'AZUL', 'YZC6955', 'KL1JJ51Z57K725417', 'GEORGINA TERESA BORGES VILLANUEVA', 'MAPFRE/ PARTICULAR ESTA ES LA ORDEN VALIDA', '9991-177782 ', '2007', '12', ''), ('582', 'GM', 'TORNADO', 'S/P', 'SDHF', '', 'MAPFRE/', 'MAPFRE/CANCELADO SE DUPOLICO', '9991010408', '2007', '12', ''), ('583', 'RENAULT', 'CLIO', 'NEGRO', 'YZV6986', '3BNBB1J6X7L307550', 'MARIA DEL ROSARIO BARRADAS', 'QUALITAS/PENDIENTE FACTURA', '9997386383', '2007', '12', ''), ('584', 'GM', 'AVEO', 'NEGRO', 'ZAD2185', '3G1TB5A62AL107068', 'NANCY LIZAMA ECHEVERRIA', 'MAPFRE/SE TERMINO EN OTRO TALLER', '9991-180627', '2010', '12', ''), ('585', 'MITSUBISHI', 'MONTERO', 'CAFE', 'ZAM8373', 'JE4LS21W0AZ009578', 'MILLENIUM MOTORS', 'MITSUBISHI', '9202008', '2013', '12', ''), ('586', 'MAZDA', 'CX 9', 'GRIS', 'ZAE8526', 'JM3TB2BA5B0301348', 'CINTHIA GONZALEZ', 'PARTICULAR', '9991632617', '2011', '12', ''), ('587', 'VW', 'JETTA', 'NEGRO', 'ZAE2778', '3VWRV09M74M004576', 'RAUL MARRUFO', 'PARTICULAR', '9992009027', '2004', '12', ''), ('588', 'mazda', '3', 'blanco', 'zaj5068', 'jm1bl1w59c1541877', 'alfonso falcon', 'particular', '9202008', '2012', '12', ''), ('589', 'nissan', 'tiida', 'arena', 'yzt2971', '3N1bc11s49l455524', 'raul flores ricalde y / o alejandro flores ce', 'mapfre', '9991 807181 / 986 04 62', '2009', '15', '[email protected]'), ('590', 'dodge', 'atos', 'arena', 'yzt2971', '3N1bc11s49l455524', 'raul flores ricalde y / o alejandro flores ce', 'QUALITAS', '9991 807181 / 986 04 62', '2009', '15', '[email protected]'), ('591', 'toyota', 'camry', 'dorado', 'yzr6976', '', 'manuel mata', 'particular', '9999999', '2003', '12', ''), ('592', 'nissan', 'estacas', 'blanco', 'yp82446', '3N6Cd15s53k113714', 'corporativo boxito', 'particular', '9991224710', '2003', '12', ''), ('593', 'NISSAN', 'SENTRA', 'BLANCO', 'YZV9464', '3n1ab6ad4al642215', 'JORGE ENRIQUE DE JESUS DOMINGO CAMELO', 'MAPFRE', '986-65-81', '2010', '15', ''), ('594', 'TOYOTA', 'COROLLA', 'PLATA', 'YZB3586', '9BRBA42E995042925', 'LUIS MANUEL ALCOCER MARTINEZ', 'PARTICULAR', '252 12 67 9991 277659', '2009', '12', '[email protected]'), ('595', 'CHEVROLET', 'CHEVY', 'BLANCO', 'ZAD4005', '3G1SF21X7AS150737', 'OSVALDO MACIAS GARCIA', 'MAPFRE', '9999 900588 9252700', '2010', '15', '[email protected]'), ('596', 'AUDI', 'A 4', 'NEGRO', 'YZZ8643', 'WAUAC28D21A148609', 'DAVID VELOZ MARTINEZ', 'PARTICULAR', '9992989269', '2001', '12', ''), ('597', 'TOYOTA', 'HILUX', 'VERDE', 'YP15303', '8AJEX32G984011644', 'RAUL MARRUFO', 'PARTICULAR', '9992009027', '2009', '12', ''), ('598', 'CHEVROLET', 'OPTRA', 'NEGRO', 'YZS1040', 'KL1JJ51237K613392', 'ROCIO BOLIOCERVERA', 'MAPFRE/PENDIENTE VALE ', '9861263 9993 382708 9992178815 ruben gar', '2007', '15', '[email protected]'), ('599', 'NISSAN', 'TSURU', 'ROJO', 'ZAL7604\t', 'JTDBT923191316560\t\t\t', 'MARCO ANTONIO HOIL GOMEZ', 'MAPFRE /SUSTITUYE C-4718', '9991-169386 946-72-35\t', '2010', '10', ''), ('600', 'mitsubishi', 'outlander', 'rojo', 'yza8142', 'je4lx41f55u031074', 'millenium MOTORS', 'MITSUBISHI', '9438787', '2005', '12', ''), ('601', 'dodge', 'journey', 'rojo', 'zam1459', '3c4bdcab5ct372388', 'gaspar escalante', 'particular', '999999999', '2012', '12', ''), ('602', 'VW', 'SEDAN', 'AZUL MARINO', 'YZL4991', '11J0009624', 'FRANCISCO JOSE CERVERA NUNEZ', 'MAPFRE/PARTICULAR PAGO DE DAÑOS', '925 44 18. 9992 714159', '1988', '15', '[email protected]'), ('603', 'ford', 'escape', 'rojo', 'zaf1919', '1fmcu0eg7bka11247', 'sergio gonzalez', 'particular', '999999', '2011', '12', ''), ('604', 'grand cherrokee', 'jeep', 'blanco', '258tfn', 'gdgfgdfgfdtfdg', 'gerardo razo', 'parti', '9993155610', '2004', '12', ''), ('605', 'honda', 'accord', 'cafe', 'zae9002', '1hgcp2688ba900807', 'jorge talavera', 'particular', '9991572779', '2011', '12', ''), ('606', 'NISSAN', 'ALTIMA', 'NEGRO', 'ZAG2134', '1n4al2a97bn404851', 'GRUPO BOXITO', 'PARTICULAR', '9991224710', '2011', '12', ''), ('607', 'gm', 'chevy', 'rojo', 'yzz2253', '', 'manuel barroso', 'particular', '999999', '2007', '12', ''), ('608', 'CHRYSLER', 'TOWN & COUNTRY', 'BLANCO', 'YHH2548', '', 'ANTONIO MORENO/LORENA RAMIREZ', 'PARTICULAR', '00', '2010', '13', ''), ('609', 'renault', 'clio', 'negro', 'yzl5804', 'wqsdf67iht5b6882w', 'GABRIELA TUGORES', 'corporativo boxito', '9991224710', '2009', '12', '[email protected]'), ('611', 'gm', 'chevy', 'dorado', 'yzv5438', '3g1se51x27s138153', 'abel canto', 'particular', '9999688025', '2007', '12', ''), ('610', 'chevrolet', 'matiz', 'blanco', 'zag6071', 'kl2mj610x8c470629', 'grupo boxito', 'particular', '9991224710', '2008', '12', ''), ('612', 'honda', 'crv', 'arena', 'yzm4426', 'jhlrd78796c407671', 'guillermo', 'garantia qualitas', '9995753120', '2006', '12', ''), ('613', 'mitsubishi', 'lancer', 'plata', '1yc055', 'je3au16u6eu006565', 'millenium', 'parficular', '9202008', '2014', '12', ''), ('614', 'mercedez benz', '280', 'amarillo', 'uuy1451', '11406012119696', 'carlos mena/jorgeMadera', 'particular', '9993389999', '1975', '12', '[email protected]'), ('615', 'FORD', 'ECOSPORT', 'rojo', 'YZM 79 97', '9BFUT35F678814081', 'RAFAEL AUGUSTO ALPUCHE CRUZ', 'PARTICULAR', '9200491', '2007', '12', '[email protected]'), ('616', 'VOLKSWAGEN', 'GOL', 'cafe', 'YZK 89 62', '9BWDB05U49T188935', 'ISRAEL CEBALLOS', 'PARTICULAR', '9992049452', '2009', '12', '[email protected]'), ('617', 'chrysler', 'attitude', 'plata', 'zal6503', 'kmhcu4bd8du260293', 'francisco evia', 'particular', '9992770163', '2013', '12', ''), ('618', 'mitsubishi', 'outlander', 'gris', 'yzd5658', 'je4ls21w18z018574', 'jose cuervo', 'particgular', '9889676613', '2008', '12', ''), ('619', 'mercdez benz', 'e 200', 'plata', 'zan8688', 'wddhf3eb3ea838575', 'alfredo castilla', 'particular', '9444999 / 9999476517', '2014', '12', '[email protected]'), ('620', 'DODGE', 'VERNA', 'ROJO', 'UUV3366', 'KMHGC41954057014500', 'JOSEFINA JANET CASTILLO GONZALEZ', 'MAPFRE/ SE VOLVIO PARTICULAR', '9999 472618. 9993 228593', '2004', '15', '[email protected]'), ('621', 'nissan', 'xtrail', 'gris', 'wpa2113', 'jn1bt05a55w761874', 'isidro gamas', 'particular', '9202008', '2005', '12', ''), ('622', 'toyota', 'corolla', 'dorado', 'yzb8000', '2t1br32ex8c877749', 'william torres', 'particular', '9258448/ 9991269186', '2008', '12', ''), ('623', 'ford', 'escape', 'arena', 'yzk4612', '1fmcu04198ka325557', 'lisa spiliman', 'particular', '9995754003', '2008', '12', ''), ('624', 'mitsubishi', 'outlander', 'blanco', 'yzu8971', 'je4ls21w79z016362', 'millenium motors', 'mitsubishi', '9449797', '2009', '12', ''), ('625', 'chrysler', 'verna', 'rojo', 'uuv3356', 'kmhcg41g540570145', 'jose munoz/josefina castillo', 'PARTICULAR', '9999472618', '2004', '15', ''), ('626', 'jeep', 'compass', 'plata', 'dgx9112', '1j4ft47w87d265670', 'jorge caceres', 'particular', '9999472524', '2007', '12', ''), ('627', 'mitsubishi', 'lancer', 'negro', 'zag5318', 'je3aj26e26u047848', 'manue herrera', 'particular', '9810513/ 9991211873', '2006', '12', ''), ('628', 'jeep', 'liberty', 'plata', 'zam8652', '1j4gk48kx6w237276', 'lic jose habib', 'particular', '9991213179', '2006', '12', ''), ('629', 'mitsubishi', 'montero', 'negro', 'yzk2929', 'je4ne51t08j000525', 'millenium motors', 'mitsubishi', '9202008', '2007', '12', ''), ('630', 'gmc', 'sierra', 'GRIS', 'yp85900', '2gtek638381148485', 'javier ayza', 'particular', '9202008', '2008', '12', ''), ('631', 'chrysler', 'h 100', 'blanco', 'yp83917', 'kmfzb17h78u381079', 'grupo boxito', 'particular', '9991224710', '2008', '12', ''), ('632', 'mitsubishi', 'outlander', 'rojo', 'zar2960', 'je4ls21w7du025066', 'millenium', 'mitsubishi', '9202008', '2014', '12', ''), ('633', 'chrysler', 'attitude', 'azul', '1yc055', 'kmhct4nd2cu171333', 'mitsubishi', 'millenium', '9202008', '2013', '12', ''), ('634', 'bmw', 'x 5', 'gris', 'yzt1241', 'wbafa51003lt45287', 'ing rolando may//jeymi baeza', 'particular', '9992773698 // 9991373341', '2003', '12', '[email protected]'), ('635', 'mercedez benz', 'e 350', 'gris', 'yzl5813', 'wdbuf56x48b172533', 'grupo boxito', 'particular', '9991224710', '2008', '12', ''), ('636', 'mazda', '6', 'gris', 'zan8955', 'jm1gj1w37e1121998', 'julia martin', 'particular', '999999999', '2014', '12', ''), ('637', 'herrajes', 'herrajes', 'negro', '5wvsy2', 'khbkhgjhfnhvygy45', 'jose freides', 'particular', '9999999999', '2010', '12', ''), ('638', 'nissan', 'tiida', 'blanco', 'yzd8377', '3n1bc13g47l364081', 'talleres memo/COSTO', 'particular', '9202008', '2007', '12', ''), ('639', 'ford', 'ranger', 'blanco', 'yp', '8afdt50d256400907', 'cinvestav// miguel valencia', 'particular', '9991695270', '2005', '12', ''), ('642', 'ford', 'econoline', 'azul', 'yp36609', '', 'luis cordova//universal chemical', 'qualitas', '9281330', '2006', '12', ''), ('640', 'toyota', 'rav 4', 'azul', 'yzc9347', 'jtmzd31v366003553', 'lic antonio canto trujillo', 'particular', '1010306//9473492', '2006', '12', ''), ('641', 'mitsubishi', 'lancer', 'plata', 'yzh8064', 'je3au26u49u027829', 'veselin dechev', 'particular', '9252822///9991257626', '2009', '12', ''), ('643', 'gm', 'chevy', 'plata', 'yzv3037', '3g1sf243xws172117', 'gerardo hernandez marquez', 'particular', '9993388600', '1998', '12', ''), ('644', 'honda', 'civic', 'arena', 'yzf9455', '1hges16554l901766', 'fernando franco', 'particular', '9480056', '2004', '12', ''), ('645', 'ford', 'lobo', 'blanco', 'yr01923', '1ftfw1ef9dkf40064', 'jose freyre', 'parricular', '9230085//9991222170', '2013', '12', ''), ('646', 'nissan', 'sentra', 'rojo', 'yzx7665', '3n1cb51s76l464650', 'yanin arzapalo', 'qualitas', '9992923150', '2006', '12', ''), ('647', 'AUDI', 'A 4', 'VINO', 'ZAN7837', 'wauacc8k8da250330', 'AGENCIA VOLSWAGEN', 'MAPFRE', '9202008', '2013', '12', ''), ('648', 'chrysler', 'h 100', 'blanco', 'yp13703', 'kmfzb17h78u381101', 'grupo boxito', 'particular', '9991224710', '2008', '12', ''), ('649', 'gm', 'chevy', 'blanco', 'yzc4849', '3g1sf21x05s162525', 'silpro', 'particular', '9991224710', '2005', '12', ''), ('650', 'mitsubishi', 'l 200', 'negro', 'yp43109', 'mmbng45k68d089963', 'mitsubishi', 'millenium', '9449797', '2008', '12', ''), ('651', 'chrysler', 'h 100', 'blanco', 'cn59712', 'kmfzb17h78u381891', 'grupo boxito', 'particular', '9991224710', '2008', '12', ''), ('652', 'chrysler', 'town country', 'rojo', 'yzy5025', '2a4rr5dx9ar194143', 'dn alvaro perez', 'particular', '9202008', '2010', '12', ''), ('653', 'cadillac', 'deville', 'rojo', 'zae8811', '1g6kd54y51u174430', 'enrique casares', 'particular', '9999490376', '2001', '12', ''), ('654', 'gm', 'cheyenne', 'verde', 'yp44568', '1gcec34r9xz209797', 'antonio puerto', 'particular', '9992711743///9203604', '1999', '12', ''), ('655', 'nissan', 'sentra', 'azul', 'yzv3208', '3n1cb51s86l631257', 'jorge massa', 'particular', '9202318', '2006', '12', ''), ('656', 'ford', 'ka', 'gris', 'yzs3331', '9bfbt18n537807847', 'roberto medina nic', 'qualitas', '9991445356', '2003', '12', '[email protected]'), ('657', 'mitsubishi', 'eclipse', 'gris', 'yzh6338', '4a3ak44tx8e015918', 'millenium motors', 'mitsubishi', '9449797', '2008', '12', ''), ('658', 'mitsubishi', 'l 200', 'blanco', 'splacas', 'mmbmg45h8dd046218', 'millenium motors', 'mitsubishi', '9449797', '2013', '12', ''), ('659', 'mitsubishi', 'l 200', 'blanco', 's/P', 'mmbmg45h1dd043757', 'MILLENIUM MOTORS', 'mitsubishi', '9449797', '2013', '12', ''), ('660', 'honda', 'accord', 'gris', 'yzn6705', '1hgcp26748a900223', 'jorge carrillo', 'particular', '9992421870', '2008', '12', ''), ('661', 'GM', 'CHEVY PICKUP', 'BLANCO', 'YP80601', '93CSK80N81C161649', 'TALLERES MEMO', 'PARTICULAR', '9202008', '2001', '12', ''), ('662', 'ESTRUCTURA (ARBOL)', 'JK', 'CAFE', '42452', 'FDSHGERHJBLFKXGJBVC', 'ALAN OSLICK', 'PARTICULAR', '9992543347', '2013', '12', ''), ('663', 'cadillac', 'escalade', 'negro', 'yza', '1gys48ef6dr152112', 'carlos baeza//david ambrosio', 'particular', '9992331603', '2013', '12', ''), ('664', 'gm', 'chevy', 'naranja', 'zaa1374', '3g1sf61x04s192470', 'pablo de llano', 'particular', '9999470912', '2004', '12', ''), ('665', 'VW', 'SEDAN', 'BLANCO', 'YZG4039', '3VWS1A1B82M923092', 'SEGOGEY', 'PARTICULAR', '9999999', '2002', '12', ''), ('666', 'ford', 'fiesta', 'rojo', 'yzn8746', '9bfbt10n868477471', 'gabriela tugores', 'particular', '9991224710', '2006', '12', ''), ('667', 'audi', 'a 4', 'blanco', 'zaj3349', 'waudf58e08a055581', 'diego alberto salazar touche', 'qualitas', '9992420414', '2008', '12', ''), ('668', 'seat', 'ibiza', 'verde', 'ZAJ1133', 'VSSMK464BR177644', 'talleres memo', 'particular', '9202008', '2011', '12', ''), ('669', 'FORD', 'LOBO', 'NEGRO', 'YP29659', '1FTRF12W09KA71987', 'PIEZAS VARIAS', 'PARTICULAR', '9303800', '2009', '12', ''), ('670', 'HONDA', 'CIVIC', 'AZUL', 'ZAC5284', '1HGES16743L902567', 'JUAN CABALLERO', 'PARTICULAR', '9202008', '2003', '12', ''), ('671', 'TOYOTA', 'RAV 4', 'PLATA', 'ZAF4444', 'JTMZD35V575054943', 'MANUEL MATA', 'PARTICULAR', '999999', '2007', '12', ''), ('672', 'chevrolet', 'astra', 'azul', 'yzy4631', 'woltg223815036974', 'salvador trejo almeida', 'mapfre', '9992716841', '2001', '12', ''), ('673', 'lincoln', 'navigator', 'blanco', 'zal8053', '5lmjj3h51cel05395', 'julia martin', 'particular', '9999999', '2012', '12', ''), ('674', 'chevrolet', 'zafira', 'blanco', 'yze9385', 'WOLTG923342093755', 'josefina del carmen ojeda pinzon', 'PARTICULAR', '9992453607///9257959', '2004', '12', ''), ('675', 'mitsubishi', 'endeavor', 'gris', 'yzh7135', '4a4mm41s48e037170', 'mitsubishi', 'milleniummotors//ASOC 4986', '9449797', '2008', '12', ''), ('676', 'MERCURY', 'MOUNTAINEER', 'NEGRO', 'YZN4784', '4M2ZU55P8WUJ35706', 'LETICIA DEL SOCORRO CHUC GONZALEZ', 'QUALITAS', '9992543118', '1998', '12', ''), ('677', 'jeep', 'laredo', 'azul', 'zam2384', '1c4rjeag4cc237056', 'miguel angel// gustavo pasos', 'particular', '9993471049', '2013', '12', ''), ('678', 'nissan', 'sentra', 'rojo', 'yzm3341', '3n1cb51522k217231', 'ricardo espinosa ceh', 'qualitas', '9991145033', '2002', '12', ''), ('679', 'GM', 'CAPTIVA', 'PLATA', 'YZS1908', '3GNCL13P29S6117447', 'DR JUAN ESPOSITOS', 'PARTICULAR', '9202008', '2009', '12', ''), ('680', 'NISSAN', 'TSURU', 'ROJO', 'YZJ4401', '3N1EB31S33K513194', 'AMELY MONSREAL ORTEGA', 'QUALITAS', '9992711760', '2003', '12', ''), ('681', 'jeep', 'patriot', 'gris', 'zah1087', '1j4at2gbxbd180639', 'victor manuel camara viera', 'mapfre', '9992716693', '2011', '12', ''), ('682', 'peugeot', '207', 'blanco', 'zaj8707', 'vf3wc5fs6ct017899', 'millenium', 'mitsubishi', '9449797', '2012', '12', ''), ('683', 'honda', 'accord', 'blanco', 'zam9054', '1hgcr2687da902772', 'felix molina', 'particular', '99999999', '2013', '12', ''), ('684', 'SUZUKI', 'GRAND VITARA', 'CAFE', 'ZAN5350', 'JS3TE04V5D4203504', 'BLANCA DUARTE', 'PARTICULAR', '9992423193', '2013', '12', ''), ('685', 'gm', 'chevy', 'arena', 'yzg4338', '3g1sf242xys176968', 'control de mantenimiento de vehiculos//gustav', 'particular', '9992301033', '2000', '12', '[email protected]'), ('686', 'mitsubishi', 'montero', 'plata', 'zak9424', 'je4ne51t0cj000324', 'millenium', 'mitsubishi', '9449797', '2012', '12', ''), ('687', 'mitsubishi', 'lancer', 'rojo', 'zap6596', 'je3au26u5eu008927', 'millenium', 'particular', '9449797', '2014', '12', ''), ('688', 'renault', 'clio', 'gris', 'yzj3134', '3bnj011352li0043', 'magaly almeida//salvador trejo', 'particular', '99999999', '2002', '12', ''), ('689', 'honda', 'civic', 'gris', 'zan5124', '19xfb2689de604852', 'guillermo chong////guillermo chon', 'particular', '9993353676//9993353121', '2013', '12', ''), ('690', 'audi', 'a 4', 'gris', 'zak4964', 'wauacc8k2ca086247', 'ing jorge espadas', 'particular', '9999478990', '2012', '12', ''), ('691', 'toyota', 'corolla', 'rojo', 'zap2076', '2t1bu4ee7dc015373', 'silvia salas', 'particular', '9992383718', '2013', '12', ''), ('692', 'nisaan', 'sentra', 'blanco', 'zaj3097', '3n1cb51512l077105', 'atalia macias lopez', 'mapfre ', '9870741', '2002', '12', '[email protected]'), ('693', 'gm', 'aveo', 'gris', 'zaf4764', '3g1tc5cf1bl123693', 'katia diaz', 'particular', '9992787601', '2011', '12', ''), ('694', 'HONDA', 'ACCORD', 'BLANCO', 'ZAP1743', '1HGCP2631AA900117', 'MANUEL MATA', 'PARTICULAR', '999999999', '2010', '12', ''), ('695', 'TOYOTA', 'YARIS', 'AZUL', 'YZS7351', '1TDBT923871039998', 'TALLERES MEMO', 'PARTICULAR', '9202008', '2007', '12', ''), ('696', 'CHEVROLET', 'CORSA', 'DORADO', 'YZS1133', '93CXM19277C168293', 'LUIS DURAN CARDENAS', 'PARTICULAR', '9810346', '2007', '12', ''), ('697', 'AUDI', 'A 1', 'NEGRO', 'YZS3331', 'WAYAC28D21A148609', 'DAVID VELOZ', 'PARTICULAR', '9992989269', '2001', '12', ''), ('698', 'mazda', '3', 'azul', 'uuj7677', 'jm1bl1u52b1464397', 'ximena escalantte barrueta', 'qualitas', '9991336299', '2011', '12', ''), ('699', 'nissan', 'sentra', 'negro', 'yzd1420', '3n1cb51552l060708', 'selene abigahil carrillo nahuat', 'qualitas', '9993572961', '2002', '12', ''), ('700', 'HARLEY DAVIDSON', 'MOTO', 'NEGRO MATE', 'GKFDJL', 'KNVCXNVXC MVNCFJK ', 'ROMEL PEDRERA//ALEX PEREZ', 'PARTICULAR', '9992005580//9991650914', '2011', '12', ''), ('701', 'FORD', 'FOCUS', 'BLANCO', 'YZM2102', '1FABP34301W101911', 'LIC HUGO BALCAZAR', 'PARTICULAR', '9993266966', '2001', '12', ''), ('702', 'VW', 'SEDAN', 'BLANCO', 'YZC6075', '11N0074956', 'EDUARDO VILLAMIL', 'PARTICULAR', '9991374624', '1992', '12', ''), ('703', 'FORD', 'FIESTA', 'PLATA', 'YZB3085', '9BFBT08N938062170', 'NANCY TERESITA ROSADO CARDENAS', 'MAPFRE', '9991427144//9991384614', '2003', '12', ''), ('704', 'chevrolet', 'tornado', 'blanco', 'yp77465', '93cxm8021bc133151', 'grupo porcicola mexicano s.a de c.v', 'mapfre', '9992618118', '2011', '12', ''), ('705', 'honda', 'civic', 'arena', 'yzl5138', '1hges16754l905947', 'alio sabido', 'particular', '9991716289', '2004', '12', ''), ('706', 'dodge', 'avenger', 'azul', 'yzg4389', '1b3kc56b09n510307', 'ayuntamiento de merida', 'particular', '9202008', '2009', '12', ''), ('707', 'ford', 'courier', 'blanco', 'yp33726', '9bfbt32n377999134', 'ayuntamiento de merida', 'particular', '9202008', '2007', '12', ''), ('708', 'gm', 'luv', 'blanco', 'yp22513', '8ggtfr6fhwa068109', 'ayuntamiento de merida', 'particular', '9202008', '1998', '12', ''), ('709', 'gm', 'tracker', 'gris', 'zan1507', '8ag116ej28r201352', 'javier aiza', 'particular', '9991000000', '2008', '12', ''), ('710', 'NISSAN', 'TSURU', 'BLANCO', '4542YSB', '3N1EB31S39K344822', 'ENRIQUE ALBERTO CRESPO PECH', 'MAPFRE', '9991292716', '2009', '12', ''), ('711', 'VW', 'SEDAN', 'AZUL', 'YZW3348', 'DFBDVB', 'TALLERES MEMO', 'PARTICULA', '9202008', '1965', '12', '')\");\n\n\t\t//table subcategorias\n\t\t$fields = array(\n\t\t\t\t\t\"`idSubcategorias` int(11) NOT NULL AUTO_INCREMENT\",\n\t\t\t\t\t\"`idCategoria` varchar(45) DEFAULT NULL\",\n\t\t\t\t\t\"`nombre` varchar(45) DEFAULT NULL\",\n\t\t\t\t\t\"`visible` int(1) DEFAULT '1'\",\n\t\t\t\t);\n\n\t\t$this->dbforge->add_field($fields);\n\t\t$this->dbforge->add_key('idSubcategorias', TRUE);\n\t\t$this->dbforge->create_table('subcategorias', TRUE);\n\t\t$this->db->simple_query('ALTER TABLE `usuarios` AUTO_INCREMENT=59 DEFAULT CHARSET=utf8');\n\t\t$this->db->simple_query(\"INSERT INTO `subcategorias` VALUES ('7', '6', 'Mano de obra', '1'), ('8', '7', 'Mano de obra', '1'), ('9', '7', 'Pintura', '1'), ('10', '7', 'Color', '1'), ('11', '8', 'Mano de obra', '1'), ('12', '8', 'Material', '1'), ('13', '9', 'Mano de obra', '1'), ('14', '9', 'Refacciones', '1'), ('15', '11', 'Piezas', '1'), ('16', '11', 'T.O.T', '1'), ('53', '7', 'Detallado', '1')\");\n\t}",
"public function relacionamento()\n {\n Schema::create('carrinho', function (Blueprint $table) {\n $table->integer('id_produto')->unsigned();\n\n $table->foreign('id_produto')\n ->references('id')->on('produtos')\n ->onDelete('cascade');\n });\n }",
"public function up()\n\t{\n\t\tSchema::create('work', function($table) {\n\t\t\t$table->increments('id');\n\t\t\t$table->integer('user_id');\n\t\t\t$table->string('salary')->nullable();\n\t\t\t$table->string('company');\n\t\t\t$table->string('city');\n\t\t\t$table->string('position');\n\t\t\t$table->string('started');\n\t\t\t$table->string('ended');\n\t\t\t$table->timestamps();\n\t\t});\n\t}",
"public function up() {\n \n Schema::create('lembretes', function (Blueprint $table) {\n $table->id();\n $table->string('usuario');\n $table->string('titulo');\n $table->string('descricao');\n $table->integer('repetir');\n $table->softDeletes();\n $table->timestamps();\n $table->dateTime('data_evento');\n $table->boolean('cerrar_evento');\n });\n }",
"public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n $this->addSql('CREATE TABLE cargos (id INT AUTO_INCREMENT NOT NULL, nombre VARCHAR(255) NOT NULL, telefono VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE cargos_proyecto (id INT AUTO_INCREMENT NOT NULL, proyecto_id INT NOT NULL, cargo_id INT NOT NULL, INDEX IDX_6A690178F625D1BA (proyecto_id), INDEX IDX_6A690178813AC380 (cargo_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE osc (id INT AUTO_INCREMENT NOT NULL, usuario_id INT DEFAULT NULL, nombre VARCHAR(255) NOT NULL, direccion VARCHAR(255) NOT NULL, ciudad VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, telefono VARCHAR(255) NOT NULL, ruc VARCHAR(255) NOT NULL, estatutos VARCHAR(255) NOT NULL, cta_bancaria VARCHAR(255) NOT NULL, ci_representante VARCHAR(255) NOT NULL, ci_uafe VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_6C634FD8DB38439E (usuario_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE proyecto (id INT AUTO_INCREMENT NOT NULL, osc_id INT NOT NULL, nombre VARCHAR(255) NOT NULL, tematica VARCHAR(255) NOT NULL, presupuesto_total DOUBLE PRECISION NOT NULL, gastos DOUBLE PRECISION NOT NULL, inversiones DOUBLE PRECISION NOT NULL, INDEX IDX_6FD202B94681C2FC (osc_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('ALTER TABLE cargos_proyecto ADD CONSTRAINT FK_6A690178F625D1BA FOREIGN KEY (proyecto_id) REFERENCES proyecto (id)');\n $this->addSql('ALTER TABLE cargos_proyecto ADD CONSTRAINT FK_6A690178813AC380 FOREIGN KEY (cargo_id) REFERENCES cargos (id)');\n $this->addSql('ALTER TABLE osc ADD CONSTRAINT FK_6C634FD8DB38439E FOREIGN KEY (usuario_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE proyecto ADD CONSTRAINT FK_6FD202B94681C2FC FOREIGN KEY (osc_id) REFERENCES osc (id)');\n }",
"public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n $this->addSql('CREATE TABLE cargos (id INT AUTO_INCREMENT NOT NULL, nombre VARCHAR(255) NOT NULL, telefono VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE cargos_proyecto (id INT AUTO_INCREMENT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE cargos_proyecto_proyecto (cargos_proyecto_id INT NOT NULL, proyecto_id INT NOT NULL, INDEX IDX_7182038011D6140F (cargos_proyecto_id), INDEX IDX_71820380F625D1BA (proyecto_id), PRIMARY KEY(cargos_proyecto_id, proyecto_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE cargos_proyecto_cargos (cargos_proyecto_id INT NOT NULL, cargos_id INT NOT NULL, INDEX IDX_1166C8C711D6140F (cargos_proyecto_id), INDEX IDX_1166C8C7A4804C6 (cargos_id), PRIMARY KEY(cargos_proyecto_id, cargos_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE osc (id INT AUTO_INCREMENT NOT NULL, id_usuario_id INT NOT NULL, nombre VARCHAR(255) NOT NULL, direccion VARCHAR(255) NOT NULL, ciudad VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, telefono VARCHAR(255) NOT NULL, ruc VARCHAR(255) NOT NULL, estatuto VARCHAR(255) NOT NULL, cta_bancaria VARCHAR(255) NOT NULL, ci_representate VARCHAR(255) NOT NULL, ci_uafe VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_6C634FD87EB2C349 (id_usuario_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE proyecto (id INT AUTO_INCREMENT NOT NULL, id_osc_id INT NOT NULL, nombre VARCHAR(255) NOT NULL, tematica VARCHAR(255) NOT NULL, presupuesto_total DOUBLE PRECISION NOT NULL, gastos DOUBLE PRECISION NOT NULL, inversiones DOUBLE PRECISION NOT NULL, INDEX IDX_6FD202B960B67711 (id_osc_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('ALTER TABLE cargos_proyecto_proyecto ADD CONSTRAINT FK_7182038011D6140F FOREIGN KEY (cargos_proyecto_id) REFERENCES cargos_proyecto (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE cargos_proyecto_proyecto ADD CONSTRAINT FK_71820380F625D1BA FOREIGN KEY (proyecto_id) REFERENCES proyecto (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE cargos_proyecto_cargos ADD CONSTRAINT FK_1166C8C711D6140F FOREIGN KEY (cargos_proyecto_id) REFERENCES cargos_proyecto (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE cargos_proyecto_cargos ADD CONSTRAINT FK_1166C8C7A4804C6 FOREIGN KEY (cargos_id) REFERENCES cargos (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE osc ADD CONSTRAINT FK_6C634FD87EB2C349 FOREIGN KEY (id_usuario_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE proyecto ADD CONSTRAINT FK_6FD202B960B67711 FOREIGN KEY (id_osc_id) REFERENCES osc (id)');\n }",
"public function up()\n\t{\n\t\t// código para crear la tabla estudio\n\t\tSchema::create('estudio', function ($tabla){\n\t\t\t$tabla->increments('id_estudio')->onDelete('cascade');\n\t\t\t$tabla->text('nombre')->onDelete('cascade'); // Nombre del estudio, obvio\n\t\t\t$tabla->string('descripcion', 255)->onDelete('cascade'); // Describa brevemente qué hizo\n\t\t\t$tabla->date('fecha_inicio')->onDelete('cascade'); //\n\t\t\t$tabla->boolean('situacion')->onDelete('cascade'); // falso como cursando\n\t\t\t$tabla->string('ubicacion')->onDelete('cascade'); // Dónde lo hizo\n\t\t\t//$table->foreign('id_usuario')->references('id')->on('usuario');\n\t\t});\n\t}",
"public function up()\n {\n $tableOptions = null;\n if ($this->db->driverName === 'mysql') {\n // http://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci\n $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';\n }\n\n $this->createTable('{{%gol_pns}}', [\n 'id' => $this->primaryKey(2),\n 'gol' => $this->string(5)->notNull()->unique(),\n 'pangkat' => $this->string(32)->notNull(),\n ], $tableOptions);\n\n $this->batchInsert('{{%gol_pns}}',['id', 'gol', 'pangkat'], [\n ['11', 'I/a', 'Juru Muda'],\n ['12', 'I/b', 'Juru Muda Tingkat I'],\n ['13', 'I/c', 'Juru'],\n ['14', 'I/d', 'Juru Tingkat I'],\n ['21', 'II/a', 'Pengatur Muda'],\n ['22', 'II/b', 'Pengatur Muda Tingkat I'],\n ['23', 'II/c', 'Pengatur'],\n ['24', 'II/d', 'Pengatur Tingkat I'],\n ['31', 'III/a', 'Penata Muda'],\n ['32', 'III/b', 'Penata Muda Tingkat I'],\n ['33', 'III/c', 'Penata'],\n ['34', 'III/d', 'Penata Tingkat I'],\n ['41', 'IV/a', 'Pembina'],\n ['42', 'IV/b', 'Pembina Tingkat I'],\n ['43', 'IV/c', 'Pembina Utama Muda'],\n ['44', 'IV/d', 'Pembina Utama Madya'],\n ['45', 'IV/e', 'Pembina Utama'],\n ]);\n }",
"public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n $this->addSql('CREATE TABLE compte (id INT AUTO_INCREMENT NOT NULL, super_admin_id INT DEFAULT NULL, nom VARCHAR(255) NOT NULL, code_banque INT NOT NULL, num_compte VARCHAR(255) NOT NULL, iban VARCHAR(255) NOT NULL, bic VARCHAR(255) NOT NULL, montant DOUBLE PRECISION NOT NULL, INDEX IDX_CFF65260BBF91D3B (super_admin_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE partenaire (id INT AUTO_INCREMENT NOT NULL, id_compte_id INT DEFAULT NULL, super_admin_id INT DEFAULT NULL, id_profil_id INT NOT NULL, reg_com VARCHAR(255) NOT NULL, ninea DOUBLE PRECISION NOT NULL, localisation VARCHAR(255) NOT NULL, domaine VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_32FFA37372F0DA07 (id_compte_id), INDEX IDX_32FFA373BBF91D3B (super_admin_id), INDEX IDX_32FFA373A76B6C5F (id_profil_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE caissier (id INT AUTO_INCREMENT NOT NULL, id_profil_id INT NOT NULL, id_admin_part_id INT NOT NULL, compte_id INT DEFAULT NULL, nom VARCHAR(255) NOT NULL, prenom VARCHAR(255) NOT NULL, adresse VARCHAR(255) NOT NULL, INDEX IDX_1F038BC2A76B6C5F (id_profil_id), INDEX IDX_1F038BC236F71800 (id_admin_part_id), INDEX IDX_1F038BC2F2C56620 (compte_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE admin_partenaire (id INT AUTO_INCREMENT NOT NULL, super_admin_id INT DEFAULT NULL, id_profil_id INT NOT NULL, id_part_id INT NOT NULL, nom VARCHAR(255) NOT NULL, prenom VARCHAR(255) NOT NULL, INDEX IDX_FAC105F6BBF91D3B (super_admin_id), INDEX IDX_FAC105F6A76B6C5F (id_profil_id), INDEX IDX_FAC105F6927EE29C (id_part_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE profil (id INT AUTO_INCREMENT NOT NULL, libelle VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE super_admin (id INT AUTO_INCREMENT NOT NULL, id_profil_id INT NOT NULL, nom VARCHAR(255) NOT NULL, prenom VARCHAR(255) NOT NULL, INDEX IDX_BC8C2783A76B6C5F (id_profil_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('ALTER TABLE compte ADD CONSTRAINT FK_CFF65260BBF91D3B FOREIGN KEY (super_admin_id) REFERENCES super_admin (id)');\n $this->addSql('ALTER TABLE partenaire ADD CONSTRAINT FK_32FFA37372F0DA07 FOREIGN KEY (id_compte_id) REFERENCES compte (id)');\n $this->addSql('ALTER TABLE partenaire ADD CONSTRAINT FK_32FFA373BBF91D3B FOREIGN KEY (super_admin_id) REFERENCES super_admin (id)');\n $this->addSql('ALTER TABLE partenaire ADD CONSTRAINT FK_32FFA373A76B6C5F FOREIGN KEY (id_profil_id) REFERENCES profil (id)');\n $this->addSql('ALTER TABLE caissier ADD CONSTRAINT FK_1F038BC2A76B6C5F FOREIGN KEY (id_profil_id) REFERENCES profil (id)');\n $this->addSql('ALTER TABLE caissier ADD CONSTRAINT FK_1F038BC236F71800 FOREIGN KEY (id_admin_part_id) REFERENCES admin_partenaire (id)');\n $this->addSql('ALTER TABLE caissier ADD CONSTRAINT FK_1F038BC2F2C56620 FOREIGN KEY (compte_id) REFERENCES compte (id)');\n $this->addSql('ALTER TABLE admin_partenaire ADD CONSTRAINT FK_FAC105F6BBF91D3B FOREIGN KEY (super_admin_id) REFERENCES super_admin (id)');\n $this->addSql('ALTER TABLE admin_partenaire ADD CONSTRAINT FK_FAC105F6A76B6C5F FOREIGN KEY (id_profil_id) REFERENCES profil (id)');\n $this->addSql('ALTER TABLE admin_partenaire ADD CONSTRAINT FK_FAC105F6927EE29C FOREIGN KEY (id_part_id) REFERENCES partenaire (id)');\n $this->addSql('ALTER TABLE super_admin ADD CONSTRAINT FK_BC8C2783A76B6C5F FOREIGN KEY (id_profil_id) REFERENCES profil (id)');\n }",
"public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n $this->addSql('CREATE TABLE affectaion (id INT AUTO_INCREMENT NOT NULL, comptes_id INT NOT NULL, user_con_id INT DEFAULT NULL, users_id INT NOT NULL, date_afect DATETIME NOT NULL, date_fin DATETIME NOT NULL, INDEX IDX_331D556DDCED588B (comptes_id), INDEX IDX_331D556D36BBBE4 (user_con_id), INDEX IDX_331D556D67B3B43D (users_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE compte (id INT AUTO_INCREMENT NOT NULL, usercreate_id INT NOT NULL, partenaire_id INT NOT NULL, numero VARCHAR(255) NOT NULL, solde INT NOT NULL, datecreate DATETIME NOT NULL, INDEX IDX_CFF6526020537CE3 (usercreate_id), INDEX IDX_CFF6526098DE13AC (partenaire_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE contrat (id INT AUTO_INCREMENT NOT NULL, numero_contrat VARCHAR(255) NOT NULL, libelle LONGTEXT NOT NULL, therme LONGTEXT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE depot (id INT AUTO_INCREMENT NOT NULL, comptes_id INT NOT NULL, user_id INT NOT NULL, montant INT NOT NULL, datedepot DATETIME NOT NULL, INDEX IDX_47948BBCDCED588B (comptes_id), INDEX IDX_47948BBCA76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE part (id INT AUTO_INCREMENT NOT NULL, etat DOUBLE PRECISION NOT NULL, systeme DOUBLE PRECISION NOT NULL, dep DOUBLE PRECISION NOT NULL, ret DOUBLE PRECISION NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE partenaire (id INT AUTO_INCREMENT NOT NULL, contrats_id INT NOT NULL, ninea LONGTEXT NOT NULL, register LONGTEXT NOT NULL, adresse VARCHAR(255) NOT NULL, tel INT NOT NULL, description VARCHAR(255) NOT NULL, localite VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_32FFA3736A6193D6 (contrats_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE role (id INT AUTO_INCREMENT NOT NULL, libelle VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE tarif (id INT AUTO_INCREMENT NOT NULL, bon_inf INT NOT NULL, born_sup INT NOT NULL, frais INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE transaction (id INT AUTO_INCREMENT NOT NULL, comptes_dep_id INT DEFAULT NULL, compte_retraits_id INT DEFAULT NULL, retait_use_id INT DEFAULT NULL, depot_use_id INT DEFAULT NULL, nomdep VARCHAR(255) DEFAULT NULL, teldep VARCHAR(255) DEFAULT NULL, montant INT DEFAULT NULL, datetransaction DATETIME DEFAULT NULL, tarifs INT DEFAULT NULL, telrep VARCHAR(255) DEFAULT NULL, code VARCHAR(255) DEFAULT NULL, piece VARCHAR(255) DEFAULT NULL, part_etat DOUBLE PRECISION DEFAULT NULL, part_systeme DOUBLE PRECISION DEFAULT NULL, part_dep DOUBLE PRECISION DEFAULT NULL, part_ret DOUBLE PRECISION DEFAULT NULL, date_ret DATETIME DEFAULT NULL, nom_recepteur VARCHAR(255) DEFAULT NULL, status TINYINT(1) DEFAULT NULL, INDEX IDX_723705D16EC704A0 (comptes_dep_id), INDEX IDX_723705D17BCE5716 (compte_retraits_id), INDEX IDX_723705D168D1F6DF (retait_use_id), INDEX IDX_723705D189737BC5 (depot_use_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, profil_id INT NOT NULL, partenaire_id INT DEFAULT NULL, username VARCHAR(180) NOT NULL, roles JSON NOT NULL, password VARCHAR(255) NOT NULL, nom_complet VARCHAR(255) NOT NULL, is_active TINYINT(1) NOT NULL, photo LONGBLOB DEFAULT NULL, UNIQUE INDEX UNIQ_8D93D649F85E0677 (username), INDEX IDX_8D93D649275ED078 (profil_id), INDEX IDX_8D93D64998DE13AC (partenaire_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('ALTER TABLE affectaion ADD CONSTRAINT FK_331D556DDCED588B FOREIGN KEY (comptes_id) REFERENCES compte (id)');\n $this->addSql('ALTER TABLE affectaion ADD CONSTRAINT FK_331D556D36BBBE4 FOREIGN KEY (user_con_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE affectaion ADD CONSTRAINT FK_331D556D67B3B43D FOREIGN KEY (users_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE compte ADD CONSTRAINT FK_CFF6526020537CE3 FOREIGN KEY (usercreate_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE compte ADD CONSTRAINT FK_CFF6526098DE13AC FOREIGN KEY (partenaire_id) REFERENCES partenaire (id)');\n $this->addSql('ALTER TABLE depot ADD CONSTRAINT FK_47948BBCDCED588B FOREIGN KEY (comptes_id) REFERENCES compte (id)');\n $this->addSql('ALTER TABLE depot ADD CONSTRAINT FK_47948BBCA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE partenaire ADD CONSTRAINT FK_32FFA3736A6193D6 FOREIGN KEY (contrats_id) REFERENCES contrat (id)');\n $this->addSql('ALTER TABLE transaction ADD CONSTRAINT FK_723705D16EC704A0 FOREIGN KEY (comptes_dep_id) REFERENCES compte (id)');\n $this->addSql('ALTER TABLE transaction ADD CONSTRAINT FK_723705D17BCE5716 FOREIGN KEY (compte_retraits_id) REFERENCES compte (id)');\n $this->addSql('ALTER TABLE transaction ADD CONSTRAINT FK_723705D168D1F6DF FOREIGN KEY (retait_use_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE transaction ADD CONSTRAINT FK_723705D189737BC5 FOREIGN KEY (depot_use_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE user ADD CONSTRAINT FK_8D93D649275ED078 FOREIGN KEY (profil_id) REFERENCES role (id)');\n $this->addSql('ALTER TABLE user ADD CONSTRAINT FK_8D93D64998DE13AC FOREIGN KEY (partenaire_id) REFERENCES partenaire (id)');\n }",
"public function up()\n\t{\n\t\t$this->execute(\"\n ALTER TABLE `vvoy_voyage` \n ADD COLUMN `vvoy_fuel_tank_start` SMALLINT UNSIGNED NULL COMMENT 'fuel in tank at start voyage' AFTER `vvoy_notes`,\n ADD COLUMN `vvoy_fuel_tank_end` SMALLINT UNSIGNED NULL COMMENT 'fuel in tank at end voyage' AFTER `vvoy_fuel_tank_start`,\n ADD COLUMN `vvoy_fuel_tank_start_amt` DECIMAL(10,2) NULL AFTER `vvoy_fuel_tank_end`,\n ADD COLUMN `vvoy_fuel_tank_end_amt` DECIMAL(10,2) NULL AFTER `vvoy_fuel_tank_start_amt`, \n ADD COLUMN `vvoy_odo_start` INT NULL AFTER `vvoy_fuel_tank_end_amt`,\n ADD COLUMN `vvoy_odo_end` INT NULL AFTER `vvoy_odo_start`,\n ADD COLUMN `vvoy_fuel` SMALLINT UNSIGNED NULL AFTER `vvoy_fuel_tank_end_amt`,\n ADD COLUMN `vvoy_fuel_amt` DECIMAL(10,2) NULL AFTER `vvoy_fuel`, \n ADD COLUMN `vvoy_abs_odo_start` INT NULL AFTER `vvoy_fuel_amt`,\n ADD COLUMN `vvoy_abs_odo_end` INT NULL AFTER `vvoy_abs_odo_start`,\n ADD COLUMN `vvoy_mileage` SMALLINT NULL AFTER `vvoy_abs_odo_end`;\n \");\n\t}",
"public function up()\n {\n Schema::create('etiquetas_servicio', function (Blueprint $table) {\n $table->id();\n $table->bigInteger('servicios_id')->unsigned();\n $table->bigInteger('etiquetas_id')->unsigned();\n\n $table->foreign('servicios_id')->references('id')->on('servicios');\n $table->foreign('etiquetas_id')->references('id')->on('etiquetas');\n });\n }",
"public function up(Schema $schema): void\n {\n $this->addSql('CREATE TABLE annonce (id INT AUTO_INCREMENT NOT NULL, modele_id INT NOT NULL, carburant_id INT NOT NULL, garage_id INT NOT NULL, reference INT NOT NULL, titre VARCHAR(255) NOT NULL, kilometrage INT NOT NULL, prix NUMERIC(9, 2) NOT NULL, annee INT NOT NULL, description LONGTEXT DEFAULT NULL, date_creation DATE NOT NULL, est_manuelle TINYINT(1) DEFAULT NULL, INDEX IDX_F65593E5AC14B70A (modele_id), INDEX IDX_F65593E532DAAD24 (carburant_id), INDEX IDX_F65593E5C4FFF555 (garage_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE annonce_categorie_voiture (annonce_id INT NOT NULL, categorie_voiture_id INT NOT NULL, INDEX IDX_F1F834FD8805AB2F (annonce_id), INDEX IDX_F1F834FD9F486216 (categorie_voiture_id), PRIMARY KEY(annonce_id, categorie_voiture_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE carburant (id INT AUTO_INCREMENT NOT NULL, type VARCHAR(50) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE categorie_voiture (id INT AUTO_INCREMENT NOT NULL, nom VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE garage (id INT AUTO_INCREMENT NOT NULL, professionnel_id INT NOT NULL, nom VARCHAR(255) NOT NULL, telephone VARCHAR(10) NOT NULL, siret VARCHAR(14) NOT NULL, adresse_ligne1 VARCHAR(50) NOT NULL, adresse_ligne2 VARCHAR(50) DEFAULT NULL, adresse_ligne3 VARCHAR(50) DEFAULT NULL, ville VARCHAR(50) NOT NULL, code_postal VARCHAR(50) NOT NULL, INDEX IDX_9F26610B8A49CC82 (professionnel_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE image (id INT AUTO_INCREMENT NOT NULL, annonce_id INT DEFAULT NULL, libelle VARCHAR(50) DEFAULT NULL, path VARCHAR(255) NOT NULL, description VARCHAR(255) DEFAULT NULL, taille DOUBLE PRECISION NOT NULL, type VARCHAR(50) NOT NULL, INDEX IDX_C53D045F8805AB2F (annonce_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE marque (id INT AUTO_INCREMENT NOT NULL, nom VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE modele (id INT AUTO_INCREMENT NOT NULL, marque_id INT NOT NULL, nom VARCHAR(255) NOT NULL, INDEX IDX_100285584827B9B2 (marque_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE professionnel (id INT AUTO_INCREMENT NOT NULL, login VARCHAR(180) NOT NULL, roles JSON NOT NULL, password VARCHAR(255) NOT NULL, nom VARCHAR(50) NOT NULL, prenom VARCHAR(50) NOT NULL, adresse_mail VARCHAR(50) NOT NULL, telephone VARCHAR(10) NOT NULL, siren VARCHAR(14) NOT NULL, garages VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_7A28C10FAA08CB10 (login), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('ALTER TABLE annonce ADD CONSTRAINT FK_F65593E5AC14B70A FOREIGN KEY (modele_id) REFERENCES modele (id)');\n $this->addSql('ALTER TABLE annonce ADD CONSTRAINT FK_F65593E532DAAD24 FOREIGN KEY (carburant_id) REFERENCES carburant (id)');\n $this->addSql('ALTER TABLE annonce ADD CONSTRAINT FK_F65593E5C4FFF555 FOREIGN KEY (garage_id) REFERENCES garage (id)');\n $this->addSql('ALTER TABLE annonce_categorie_voiture ADD CONSTRAINT FK_F1F834FD8805AB2F FOREIGN KEY (annonce_id) REFERENCES annonce (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE annonce_categorie_voiture ADD CONSTRAINT FK_F1F834FD9F486216 FOREIGN KEY (categorie_voiture_id) REFERENCES categorie_voiture (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE garage ADD CONSTRAINT FK_9F26610B8A49CC82 FOREIGN KEY (professionnel_id) REFERENCES professionnel (id)');\n $this->addSql('ALTER TABLE image ADD CONSTRAINT FK_C53D045F8805AB2F FOREIGN KEY (annonce_id) REFERENCES annonce (id)');\n $this->addSql('ALTER TABLE modele ADD CONSTRAINT FK_100285584827B9B2 FOREIGN KEY (marque_id) REFERENCES marque (id)');\n }",
"public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n $this->addSql('CREATE TABLE reglement (id INT AUTO_INCREMENT NOT NULL, client_id INT DEFAULT NULL, facture_id INT DEFAULT NULL, modereg VARCHAR(50) NOT NULL, montant VARCHAR(50) NOT NULL, numpiece VARCHAR(50) NOT NULL, echeance VARCHAR(50) NOT NULL, INDEX IDX_EBE4C14C19EB6921 (client_id), INDEX IDX_EBE4C14C7F2DEE08 (facture_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('ALTER TABLE reglement ADD CONSTRAINT FK_EBE4C14C19EB6921 FOREIGN KEY (client_id) REFERENCES client (id)');\n $this->addSql('ALTER TABLE reglement ADD CONSTRAINT FK_EBE4C14C7F2DEE08 FOREIGN KEY (facture_id) REFERENCES facture (id)');\n $this->addSql('ALTER TABLE commande CHANGE totht totht DOUBLE PRECISION NOT NULL, CHANGE tottva tottva DOUBLE PRECISION NOT NULL, CHANGE totttc totttc VARCHAR(50) NOT NULL, CHANGE numc numc VARCHAR(50) NOT NULL');\n $this->addSql('ALTER TABLE compteur CHANGE numcom numcom INT NOT NULL');\n $this->addSql('ALTER TABLE lcommande DROP FOREIGN KEY FK_57961F0AF347EFB');\n $this->addSql('DROP INDEX IDX_57961F0AF347EFB ON lcommande');\n $this->addSql('ALTER TABLE lcommande ADD produit_id INT DEFAULT NULL, DROP produit');\n $this->addSql('ALTER TABLE lcommande ADD CONSTRAINT FK_57961F0AF347EFB FOREIGN KEY (produit_id) REFERENCES produit (id)');\n $this->addSql('CREATE INDEX IDX_57961F0AF347EFB ON lcommande (produit_id)');\n }",
"public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n $this->addSql('ALTER TABLE actividad CHANGE fin fin DATE DEFAULT NULL, CHANGE deleted_at deleted_at DATETIME DEFAULT NULL');\n $this->addSql('ALTER TABLE coordinador_materia ADD materia_id INT DEFAULT NULL');\n $this->addSql('ALTER TABLE coordinador_materia ADD CONSTRAINT FK_21C2D087B54DBBCB FOREIGN KEY (materia_id) REFERENCES materia (id)');\n $this->addSql('CREATE UNIQUE INDEX UNIQ_21C2D087B54DBBCB ON coordinador_materia (materia_id)');\n $this->addSql('ALTER TABLE materia DROP FOREIGN KEY FK_6DF05284E4517BDD');\n $this->addSql('DROP INDEX IDX_6DF05284E4517BDD ON materia');\n $this->addSql('ALTER TABLE materia DROP coordinador_id');\n $this->addSql('ALTER TABLE rol_proyecto CHANGE proyecto_id proyecto_id VARCHAR(255) DEFAULT NULL');\n $this->addSql('ALTER TABLE miembro_proyecto CHANGE proyecto_id proyecto_id VARCHAR(255) DEFAULT NULL, CHANGE rol_id rol_id VARCHAR(255) DEFAULT NULL');\n $this->addSql('ALTER TABLE fos_user_user CHANGE salt salt VARCHAR(255) DEFAULT NULL, CHANGE last_login last_login DATETIME DEFAULT NULL, CHANGE confirmation_token confirmation_token VARCHAR(180) DEFAULT NULL, CHANGE password_requested_at password_requested_at DATETIME DEFAULT NULL, CHANGE date_of_birth date_of_birth DATETIME DEFAULT NULL, CHANGE firstname firstname VARCHAR(64) DEFAULT NULL, CHANGE lastname lastname VARCHAR(64) DEFAULT NULL, CHANGE website website VARCHAR(64) DEFAULT NULL, CHANGE biography biography VARCHAR(1000) DEFAULT NULL, CHANGE gender gender VARCHAR(1) DEFAULT NULL, CHANGE locale locale VARCHAR(8) DEFAULT NULL, CHANGE timezone timezone VARCHAR(64) DEFAULT NULL, CHANGE phone phone VARCHAR(64) DEFAULT NULL, CHANGE facebook_uid facebook_uid VARCHAR(255) DEFAULT NULL, CHANGE facebook_name facebook_name VARCHAR(255) DEFAULT NULL, CHANGE facebook_data facebook_data JSON DEFAULT NULL, CHANGE twitter_uid twitter_uid VARCHAR(255) DEFAULT NULL, CHANGE twitter_name twitter_name VARCHAR(255) DEFAULT NULL, CHANGE twitter_data twitter_data JSON DEFAULT NULL, CHANGE gplus_uid gplus_uid VARCHAR(255) DEFAULT NULL, CHANGE gplus_name gplus_name VARCHAR(255) DEFAULT NULL, CHANGE gplus_data gplus_data JSON DEFAULT NULL, CHANGE token token VARCHAR(255) DEFAULT NULL, CHANGE two_step_code two_step_code VARCHAR(255) DEFAULT NULL');\n }",
"public function up()\n\t{\n\t\tSchema::create('clinics', function($table){\n\t\t\t$table->increments('id');\n\t\t\t\n\t\t\t$table->string('name');\n\t\t\t$table->string('address');\n\t\t\t$table->string('room');\n\t\t\t$table->string('site');\n\n\t\t\t$table->integer('modified_by')->unsigned()->nullable();\n\t\t\t$table->foreign('modified_by')->references('id')->on('users');\n\t\t\t$table->integer('created_by')->unsigned()->nullable();\n\t\t\t$table->foreign('created_by')->references('id')->on('users');\n\t\t\t$table->timestamps();\n\t\t});\n\t}",
"public function up()\n {\n\t\t$this->insert('verre', [\n 'id_verre'=>1,\n\t\t\t'id_boisson' => 10,\n 'nombre' => 5,\n 'prix' => 1500,\n 'capacite' =>30,\n ]\n );\n $this->insert('verre', [\n 'id_verre'=>2,\n\t\t\t'id_boisson' => 11,\n 'nombre' => 5,\n 'prix' => 1500,\n 'capacite' =>30,\n ]\n );\n $this->insert('verre', [\n 'id_verre'=>3,\n\t\t\t'id_boisson' => 12,\n 'nombre' => 5,\n 'prix' => 1500,\n 'capacite' =>30,\n ]\n );\n $this->insert('verre', [\n 'id_verre'=>4,\n\t\t\t'id_boisson' => 13,\n 'nombre' => 5,\n 'prix' => 1500,\n 'capacite' =>30,\n ]\n );\n $this->insert('verre', [\n 'id_verre'=>5,\n\t\t\t'id_boisson' => 14,\n 'nombre' => 5,\n 'prix' => 1500,\n 'capacite' =>30,\n ]\n );\n $this->insert('verre', [\n 'id_verre'=>6,\n\t\t\t'id_boisson' => 15,\n 'nombre' => 5,\n 'prix' => 1500,\n 'capacite' =>30,\n ]\n );\n\t\t$this->insert('verre', [\n 'id_verre'=>7,\n\t\t\t'id_boisson' => 17,\n 'nombre' => 5,\n 'prix' => 1500,\n 'capacite' =>30,\n ]\n );\n $this->insert('verre', [\n 'id_verre'=>8,\n\t\t\t'id_boisson' => 18,\n 'nombre' => 5,\n 'prix' => 1500,\n 'capacite' =>30,\n ]\n );\n\t\t$this->insert('verre', [\n 'id_verre'=>9,\n\t\t\t'id_boisson' => 19,\n 'nombre' => 50,\n 'prix' => 1500,\n 'capacite' =>30,\n ]\n );\n $this->insert('verre', [\n 'id_verre'=>10,\n\t\t\t'id_boisson' => 20,\n 'nombre' => 50,\n 'prix' => 1500,\n 'capacite' =>30,\n ]\n );\n\t\t$this->insert('verre', [\n 'id_verre'=>11,\n\t\t\t'id_boisson' => 92,\n 'nombre' => 5,\n 'prix' => 3500,\n 'capacite' =>15,\n ]\n );\n\t\t$this->insert('verre', [\n 'id_verre'=>12,\n\t\t\t'id_boisson' => 96,\n 'nombre' => 5,\n 'prix' => 3500,\n 'capacite' =>15,\n ]\n );\n\t\t$this->insert('verre', [\n 'id_verre'=>13,\n\t\t\t'id_boisson' => 126,\n 'nombre' => 5,\n 'prix' => 1500,\n 'capacite' =>30,\n ]\n );\n }",
"public function up() {\n Schema::create('enderecos', function (Blueprint $table) {\n $table->increments('id');\n $table->string('cep', 45);\n $table->string('logradouro', 45);\n $table->string('bairro', 45);\n $table->string('numero', 5);\n $table->integer('cidade_id')->unsigned();\n $table->foreign('cidade_id')->references('id')->on('cidades');\n \n });\n }",
"public function up()\n {\n if (!$this->getDb()->schema()->hasTable('company')) {\n $this->getDb()->schema()->create('company', function ($table) {\n $table->increments('id');\n $table->string('name', 255);\n $table->string('short_name', 255);\n $table->string('street', 255);\n $table->string('streetno', 255);\n $table->string('flatno', 12);\n $table->string('postcode', 12);\n $table->string('province', 255);\n $table->string('city', 255);\n $table->string('country', 12);\n $table->timestamps();\n });\n }\n }",
"public function up()\n {\n $tableOptions = null;\n if ($this->db->driverName === 'mysql') {\n // http://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci\n $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';\n }\n\n $this->createTable('{{%bds}}', [\n 'id' => $this->primaryKey(),\n 'tieude' => $this->string()->notNull(),\n 'gioithieu' => $this->text()->notNull(),\n 'dientich' => $this->float(),\n 'lat' => $this->float(),\n 'long' => $this->float(),\n 'diachi' => $this->string(),\n 'xa' => $this->integer(),\n 'huyen' => $this->integer(),\n 'tinh' => $this->integer(),\n 'giaban' => $this->integer(),\n 'giathue' => $this->integer(),\n 'sotang' => $this->integer(),\n 'sophongngu' => $this->integer(),\n 'sophongtam' => $this->integer(),\n 'cachcho' => $this->integer(),\n 'cachsieuthi' => $this->integer(),\n 'cachbenhvien' => $this->integer(),\n 'cachtruonghoc' => $this->integer(),\n 'namxay' => $this->integer(),\n 'loai_id' => $this->integer(),\n 'user_id' => $this->integer(),\n 'status' => $this->smallInteger()->notNull()->defaultValue(0),\n 'anh1' => $this->string(),\n 'anh2' => $this->string(),\n 'anh3' => $this->string(),\n 'anh4' => $this->string(),\n 'anh5' => $this->string(),\n 'anh6' => $this->string(),\n 'anh7' => $this->string(),\n 'anh8' => $this->string(),\n 'anh9' => $this->string(),\n 'anh10' => $this->string(),\n 'ngaytao' => $this->dateTime(),\n 'ngaysua' => $this->dateTime(),\n ], $tableOptions);\n $this->addForeignKey('fk_bds_loai', 'bds', 'loai_id', 'loaibds', 'id');\n $this->addForeignKey('fk_bds_user', 'bds', 'user_id', 'user', 'id');\n }",
"public function up(Schema $schema) : void\n {\n $this->addSql('CREATE TABLE comptemor (id INT AUTO_INCREMENT NOT NULL, client_id INT DEFAULT NULL, agence_id INT DEFAULT NULL, solde VARCHAR(60) NOT NULL, frais VARCHAR(60) NOT NULL, date DATE NOT NULL, INDEX IDX_77A4450919EB6921 (client_id), INDEX IDX_77A44509D725330D (agence_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE compteph (id INT AUTO_INCREMENT NOT NULL, clientphysique_id INT DEFAULT NULL, typecompte_id INT DEFAULT NULL, agence_id INT DEFAULT NULL, numerocompte VARCHAR(60) NOT NULL, solde VARCHAR(60) NOT NULL, clerib VARCHAR(60) NOT NULL, agios VARCHAR(60) NOT NULL, INDEX IDX_CD1716EAA0CF2AA1 (clientphysique_id), INDEX IDX_CD1716EA11FA04BC (typecompte_id), INDEX IDX_CD1716EAD725330D (agence_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('ALTER TABLE comptemor ADD CONSTRAINT FK_77A4450919EB6921 FOREIGN KEY (client_id) REFERENCES client_moral (id)');\n $this->addSql('ALTER TABLE comptemor ADD CONSTRAINT FK_77A44509D725330D FOREIGN KEY (agence_id) REFERENCES agence (id)');\n $this->addSql('ALTER TABLE compteph ADD CONSTRAINT FK_CD1716EAA0CF2AA1 FOREIGN KEY (clientphysique_id) REFERENCES client_physique (id)');\n $this->addSql('ALTER TABLE compteph ADD CONSTRAINT FK_CD1716EA11FA04BC FOREIGN KEY (typecompte_id) REFERENCES type_compte (id)');\n $this->addSql('ALTER TABLE compteph ADD CONSTRAINT FK_CD1716EAD725330D FOREIGN KEY (agence_id) REFERENCES agence (id)');\n }",
"public function run()\n {\n DB::table('car_interiors')->insert([[\n 'car_interior'=> 'Cuero',\n ],[\n 'car_interior'=> 'Semi-Cuero',\n ],[\n 'car_interior'=> 'Sintetico',\n ] ]);\n }"
] | [
"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.6050643",
"0.6050169",
"0.60433966",
"0.60406977",
"0.60302377",
"0.6028701",
"0.60223836",
"0.60222834",
"0.60067207",
"0.6000467"
] | 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 ['nav_order' => (int)$value],\n ['id' => (int)$id]\n );\n }\n Pi::registry('nav', $this->getModule())->flush();\n\n return $this->jump(\n ['action' => 'index'],\n _a('Page navigation menu updated successfully.')\n );\n }",
"function _manage_menu()\n\t{\n\t\t$this->EE->cp->set_right_nav(array(\n\t\t\t'low_variables_module_name' => $this->base_url,\n\t\t\t'manage_variables' => $this->base_url.AMP.'method=manage',\n\t\t\t'create_new' => $this->base_url.AMP.'method=manage&id=new',\n\t\t\t'create_new_group' => $this->base_url.AMP.'method=groups&id=new',\n\t\t\t'low_variables_docs' => LOW_VAR_DOCS,\n\t\t));\n\t}",
"public function menuForGrid(){\n\n $user = $this->Aa->user_for_token($this);\n if(!$user){ //If not a valid user\n return;\n }\n\n $timezone_id = 316; //London by default \n $e_user = $this->{'Users'}->find()->where(['Users.id' => $user['id']])->first();\n if($e_user->timezone_id){\n $timezone_id = $e_user->timezone_id;\n } \n\n $scale = 'large';\n\n //Empty by default\n $menu = [];\n\n //Admin => all power\n if($user['group_name'] == Configure::read('group.admin')){ //Admin\n\n $menu = [\n ['xtype' => 'buttongroup','title' => null, 'items' => [\n ['xtype' => 'splitbutton', 'glyph' => Configure::read('icnReload'), 'scale' => $scale, 'itemId' => 'reload', 'tooltip' => __('Reload'),\n 'menu' => [\n 'items' => [\n '<b class=\"menu-title\">'.__('Reload every').':</b>',\n // array( 'text' => _('Cancel auto reload'), 'itemId' => 'mnuRefreshCancel', 'group' => 'refresh', 'checked' => true ),\n ['text' => __('30 seconds'), 'itemId' => 'mnuRefresh30s', 'group' => 'refresh','checked' => false ],\n ['text' => __('1 minute'), 'itemId' => 'mnuRefresh1m', 'group' => 'refresh' ,'checked' => false],\n ['text' => __('5 minutes'), 'itemId' => 'mnuRefresh5m', 'group' => 'refresh', 'checked' => false ],\n ['text' => __('Stop auto reload'),'itemId' => 'mnuRefreshCancel', 'group' => 'refresh', 'checked' => true]\n ]\n ]\n ],\n [\n 'xtype' => 'tbseparator'\n ],\n [\n 'xtype' => 'button',\n \n //To list all\n 'glyph' => Configure::read('icnWatch'),\n 'pressed' => false,\n \n //To list only active\n //'glyph' => Configure::read('icnLight'),\n //'pressed' => true,\n \n 'scale' => $scale,\n 'itemId' => 'connected',\n 'enableToggle' => true,\n \n 'ui' => 'button-green', \n 'tooltip' => __('Show only currently connected')\n ],\n [\n 'xtype' => 'tbseparator'\n ],\n [\n 'xtype' => 'cmbTimezones', \n 'width' => 300, \n 'itemId' => 'cmbTimezone',\n 'name' => 'timezone_id', \n 'labelClsExtra' => 'lblRdReq',\n 'labelWidth' => 75, \n 'padding' => '7 0 0 0',\n 'margin' => 0,\n 'value' => $timezone_id\n ]\n ]],\n ['xtype' => 'buttongroup','title' => null, 'items' => [\n ['xtype' => 'button', 'glyph' => Configure::read('icnCsv'), 'scale' => $scale, 'itemId' => 'csv', 'tooltip'=> __('Export CSV')],\n ['xtype' => 'button', 'glyph' => Configure::read('icnGraph'), 'scale' => $scale, 'itemId' => 'graph', 'tooltip'=> __('Usage graph')],\n ]],\n ['xtype' => 'buttongroup','title' => null, 'items' => [\n ['xtype' => 'button', 'glyph' => Configure::read('icnKick'),'scale' => $scale, 'itemId' => 'kick', 'tooltip'=> __('Kick user off')],\n ['xtype' => 'button', 'glyph' => Configure::read('icnClose'),'scale' => $scale, 'itemId' => 'close','tooltip'=> __('Close session')],\n ]]\n \n ];\n }\n\n //AP depend on rights\n if($user['group_name'] == Configure::read('group.ap')){ //AP (with overrides)\n\n $id = $user['id'];\n $action_group = [];\n $document_group = [];\n $specific_group = [];\n //Reload\n array_push($action_group,[\n 'xtype' => 'splitbutton', \n 'glyph' => Configure::read('icnReload'), \n 'scale' => $scale, \n 'itemId' => 'reload', \n 'tooltip' => __('Reload'),\n 'menu' => [\n 'items' => [\n '<b class=\"menu-title\">'.__('Reload every').':</b>', \n ['text' => __('30 seconds'), 'itemId' => 'mnuRefresh30s', 'group' => 'refresh','checked' => false ],\n ['text' => __('1 minute'), 'itemId' => 'mnuRefresh1m', 'group' => 'refresh' ,'checked' => false],\n ['text' => __('5 minutes'), 'itemId' => 'mnuRefresh5m', 'group' => 'refresh', 'checked' => false ],\n ['text' => __('Stop auto reload'),'itemId' => 'mnuRefreshCancel', 'group' => 'refresh', 'checked' => true ]\n ]]]);\n\n array_push($action_group, [\n 'xtype' => 'button', \n 'glyph' => Configure::read('icnWatch'), \n 'scale' => $scale,\n 'itemId' => 'connected',\n 'enableToggle' => true,\n 'pressed' => false, \n 'ui' => 'button-green', \n 'tooltip' => __('Show only currently connected')\n ]);\n\n\n if($this->Acl->check(['model' => 'Users', 'foreign_key' => $id], $this->base.'export_csv')){\n array_push($document_group,[\n 'xtype' => 'button', \n 'glyph' => Configure::read('icnCsv'), \n 'scale' => $scale, \n 'itemId' => 'csv', \n 'tooltip' => __('Export CSV')]);\n }\n\n array_push($document_group, [\n 'xtype' => 'button', \n 'glyph' => Configure::read('icnGraph'), \n 'scale' => $scale, \n 'itemId' => 'graph', \n 'tooltip' => __('Usage graph')]);\n\n\n if($this->Acl->check(['model' => 'Users', 'foreign_key' => $id], $this->base.'kick_active')){\n array_push($specific_group, [\n 'xtype' => 'button', \n 'glyph' => Configure::read('icnKick'), \n 'scale' => $scale, \n 'itemId' => 'kick', \n 'tooltip' => __('Kick user off')]);\n }\n\n if($this->Acl->check(['model' => 'Users', 'foreign_key' => $id], $this->base.'close_open')){\n array_push($specific_group, [\n 'xtype' => 'button', \n 'glyph' => Configure::read('icnClose'), \n 'scale' => $scale, \n 'itemId' => 'close', \n 'tooltip' => __('Close session')]);\n }\n\n\n $menu = [\n ['xtype' => 'buttongroup','title' => null, 'items' => $action_group],\n ['xtype' => 'buttongroup','title' => null, 'items' => $document_group],\n ['xtype' => 'buttongroup','title' => null, 'items' => $specific_group]\n ];\n }\n $this->set([\n 'items' => $menu,\n 'success' => true,\n '_serialize' => ['items','success']\n ]);\n }",
"public function menuAction()\n\t{\n\t\t$assignValues = [];\n\t\t\n\t\t$this->nj_settings = \\N1coode\\NjCollection\\Utility\\General::getActionVersion($this->settings, $this->getExtSettings());\n\t\t$assignValues['ext'] = $this->nj_settings;\n\t\t\n\t\t$categories = $this->categoryRepository->findAll();\n\t\tif(count($categories) > 0)\n\t\t{\n\t\t\t$assignValues['categories'] = $categories;\n\t\t}\n\t\t$this->view->assignMultiple($assignValues);\n\t}",
"public function actionDisplay() {\n global $mainframe, $user;\n if (!$user->isSuperAdmin()) {\n YiiMessage::raseNotice(\"Your account not have permission to view menu item\");\n $this->redirect(Router::buildLink(\"menus\", array(\"view\" => 'menutype')));\n }\n\n $this->pageTitle = \"Menu item\";\n $model = MenuItem::getInstance();\n $menuID = Request::getInt('menu', \"\");\n if ($menuID <= 0) {\n YiiMessage::raseWarning(\"Invalid menu id\");\n $this->redirect($this->createUrl('menus/menutypes'));\n }\n\n $task = Request::getVar('task', \"\");\n if ($task == \"hidden\" OR $task == 'publish' OR $task == \"unpublish\") {\n $cids = Request::getVar('cid');\n $obj_menu = YiiMenu::getInstance();\n for ($i = 0; $i < count($cids); $i++) {\n $cid = $cids[$i];\n if ($task == \"publish\")\n $this->changeStatus($cid, 1);\n else if ($task == \"hidden\")\n $this->changeStatus($cid, 2);\n else\n $this->changeStatus($cid, 0);\n }\n YiiMessage::raseSuccess(\"Successfully saved changes status for menu item\");\n }\n\n $this->addIconToolbar(\"Creat\", Router::buildLink('menus', array(\"view\" => \"menuitem\", 'menu' => $menuID, 'layout' => 'new')), \"new\");\n $this->addIconToolbar(\"Edit\", Router::buildLink('menus', array(\"view\" => \"menuitem\", 'menu' => $menuID, 'layout' => 'edit')), \"edit\", 1, 1, \"Please select a item from the list to edit\");\n $this->addIconToolbar(\"Publish\", Router::buildLink('menus', array(\"view\" => \"menuitem\", 'menu' => $menuID, 'layout' => 'publish')), \"publish\");\n $this->addIconToolbar(\"Unpublish\", Router::buildLink('menus', array(\"view\" => \"menuitem\", 'menu' => $menuID, 'layout' => 'unpublish')), \"unpublish\");\n //$this->addIconToolbar(\"Move\", Router::buildLink('menus', array(\"view\" => \"menuitem\", 'menu' => $menuID, 'layout' => 'moveItem')), \"move\");\n $this->addIconToolbar(\"Delete\", Router::buildLink('menus', array(\"view\" => \"menuitem\", 'menu' => $menuID, 'layout' => 'remove')), \"trash\", 1, 1, \"Please select a item from the list to Remove\");\n $this->addBarTitle(\"Menu items <small>[manager]</small>\", \"user\");\n \n $model = MenuItem::getInstance(); \n $items = $model->loadItems();\n $pagination = $model->getPagination();\n $lists = $model->getList();\n\n $this->render('default', array(\"items\" => $items, \"lists\" => $lists,'pagination'=>$pagination));\n }",
"public function admin_menu()\n {\n global $menu, $submenu;\n $labels = $this->get_labels();\n\n foreach ($menu as &$item) {\n if (isset($item[0]) && 'Posts' === $item[0]) {\n $item[0] = $labels['name'];\n break;\n }\n }\n\n $submenu['edit.php'][5][0] = $labels['all_items'];\n $submenu['edit.php'][10][0] = $labels['add_new'];\n }",
"private function activate_nav_items(){\n\t\t\t//access globals\n\t\t\tglobal $wpdb;\n\t\t\tglobal $hmenu_helper;\n\t\t\t$contraint_uid = date('Hidmy');\t\t\n\t\t\t//sql\n\t\t\t$sql_create = \"\n\t\t\t\tCREATE TABLE IF NOT EXISTS `\". $wpdb->base_prefix .\"hmenu_nav_items` (\n\t\t\t\t `navItemId` int(11) NOT NULL AUTO_INCREMENT,\n\t\t\t\t `menuId` int(11) NOT NULL,\n\t\t\t\t `parentNavId` int(11) NOT NULL DEFAULT '0',\n\t\t\t\t `postId` int(11) NOT NULL DEFAULT '0',\n\t\t\t\t `name` varchar(150) NOT NULL DEFAULT 'item',\n\t\t\t\t `title` varchar(150) NOT NULL DEFAULT 'item',\n\t\t\t\t `active` tinyint(1) DEFAULT NULL,\n\t\t\t\t `activeMobile` tinyint(1) DEFAULT NULL,\n\t\t\t\t `icon` tinyint(1) DEFAULT NULL,\n\t\t\t\t `iconContent` varchar(100) DEFAULT NULL,\n\t\t\t\t `iconSize` varchar(11) DEFAULT NULL,\n\t\t\t\t `iconColor` varchar(20) DEFAULT NULL,\n\t\t\t\t `link` varchar(255) DEFAULT NULL,\n\t\t\t\t `order` int(11) NOT NULL DEFAULT '0',\n\t\t\t\t `target` varchar(10) DEFAULT NULL,\n\t\t\t\t `type` varchar(255) DEFAULT NULL,\n\t\t\t\t `level` varchar(10) DEFAULT NULL,\n\t\t\t\t `method` tinyint(1) NOT NULL DEFAULT '0',\n\t\t\t\t `methodReference` varchar(255) NOT NULL DEFAULT 'functionName',\n\t\t\t\t `role` tinyint(1) DEFAULT NULL,\n\t\t\t\t `roles` blob DEFAULT NULL,\n\t\t\t\t `cssClass` varchar(255) NOT NULL DEFAULT '',\n\t\t\t\t `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n\t\t\t\t `lastModified` datetime DEFAULT NULL,\n\t\t\t\t `deleted` tinyint(1) NOT NULL DEFAULT '0',\n\t\t\t\t PRIMARY KEY (`navItemId`),\n\t\t\t\t KEY `hmenu_nav_items_menuId_\".$contraint_uid.\"_FK_idx` (`menuId`),\n\t\t\t\t CONSTRAINT `hmenu_nav_items_menuId_\".$contraint_uid.\"_FK` FOREIGN KEY (`menuId`) REFERENCES `\". $wpdb->base_prefix .\"hmenu_menu` (`menuId`) ON DELETE NO ACTION ON UPDATE NO ACTION\n\t\t\t\t) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;\n\t\t\t\";\t\t\t\n\t\t\tdbDelta($sql_create);\n\t\t\t$sql_drop = \"\n\t\t\t\tDROP TRIGGER IF EXISTS `\". $wpdb->base_prefix .\"hmenu_nav_items`;\n\t\t\t\";\n\t\t\t$wpdb->query($sql_drop);\n\t\t\t$sql_create = \"\n\t\t\t\tCREATE TRIGGER `\". $wpdb->base_prefix .\"hmenu_nav_items`\n\t\t\t\tBEFORE UPDATE ON `\". $wpdb->base_prefix .\"hmenu_nav_items`\n\t\t\t\tFOR EACH ROW SET NEW.lastModified = NOW();\t\n\t\t\t\";\t\n\t\t\tdbDelta($sql_create);\n\t\t}",
"public function setmenuNav(){\r\n //set the menu item data\r\n if($this->loggedin){//these page options are only available to logged in users\r\n if($this->session->getUserAuthorisation()==1){ //authorisation level = 1 - Administrator\r\n switch ($this->pageID) {\r\n case \"home\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[1]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=planes\">Planes</a>';\r\n $this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=enthusiasts\">Enthusiasts</a>';\r\n $this->menuNav[4]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=messages\">My Messages</a>';\r\n // $this->menuNav[5]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=gallery\">Gallery</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break;\r\n //PLANES MENU ITEMS\r\n case \"planes\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=list_all_planes\">List all planes</a>';\r\n $this->menuNav[3]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=new_plane\">Add a plane</a>';\r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break;\r\n case \"list_all_planes\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n // $this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=list_all_planes\">List all planes</a>';\r\n $this->menuNav[3]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=new_plane\">Add a plane</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break;\r\n case \"new_plane\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=list_all_planes\">List all planes</a>';\r\n //$this->menuNav[3]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=new_plane\">Add a plane</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break;\r\n //ENTHUSIAST MENU ITEMS\r\n case \"enthusiasts\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=enthusiasts\">Enthusiasts</a>';\r\n $this->menuNav[4]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=enthusiast_query\">Enthusiast Query</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break;\r\n case \"enthusiast_query\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[4]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=enthusiast_query\">Enthusiast Query</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break;\r\n case \"enthusiast_query_result\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[4]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=enthusiast_query\">Enthusiast Query</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break;\r\n case \"enthusiast_account_result\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break; \r\n //Default Menu\r\n default:\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[1]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=planes\">Planes</a>';\r\n $this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=enthusiasts\">Enthusiasts</a>';\r\n $this->menuNav[4]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=messages\">My Messages</a>';\r\n // $this->menuNav[5]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=gallery\">Gallery</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break; \r\n } \r\n }\r\n else if($this->session->getUserAuthorisation()==2){ //authorisation level = 2 - Moderator\r\n switch ($this->pageID) { \r\n //HOME Menu items\r\n case \"home\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[1]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=planes\">Planes</a>';\r\n $this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=enthusiasts\">Enthusiasts</a>';\r\n $this->menuNav[4]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=messages\">My Messages</a>';\r\n //$this->menuNav[5]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=gallery\">Gallery</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break;\r\n //PLANES MENU ITEMS\r\n case \"planes\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=list_all_planes\">List all planes</a>';\r\n $this->menuNav[3]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=new_plane\">Add a plane</a>';\r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break;\r\n case \"list_all_planes\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=list_all_planes\">List all planes</a>';\r\n $this->menuNav[3]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=new_plane\">Add a plane</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break;\r\n case \"new_plane\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=list_all_planes\">List all planes</a>';\r\n $this->menuNav[3]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=new_plane\">Add a plane</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break;\r\n //ENTHUSIAST MENU ITEMS\r\n case \"enthusiasts\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=enthusiasts\">Enthusiasts</a>';\r\n $this->menuNav[4]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=enthusiast_query\">Enthusiast Query</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break;\r\n case \"enthusiast_query\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[4]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=enthusiast_query\">Enthusiast Query</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break;\r\n case \"enthusiast_query_result\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[4]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=enthusiast_query\">Enthusiast Query</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break;\r\n case \"enthusiast_account_result\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break; \r\n //Default Menu\r\n default:\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[1]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=planes\">Planes</a>';\r\n $this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=enthusiasts\">Enthusiasts</a>';\r\n $this->menuNav[4]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=messages\">My Messages</a>';\r\n // $this->menuNav[5]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=gallery\">Gallery</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break; \r\n } \r\n }\r\n else if($this->session->getUserAuthorisation()==3){//authorisation level = 3 - registerd user\r\n switch ($this->pageID) { \r\n //HOME Menu items\r\n case \"home\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[1]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=planes\">Planes</a>';\r\n $this->menuNav[4]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=messages\">My Messages</a>';\r\n //$this->menuNav[5]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=gallery\">Gallery</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break; \r\n //PLANES menu items\r\n case \"planes\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[1]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=list_all_planes\">View Planes</a>';\r\n //$this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=plane_query\">Plane Query</a>';\r\n $this->menuNav[3]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=new_plane\">Add Plane</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break;\r\n case \"new_plane\";\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[1]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=list_all_planes\">View Planes</a>';\r\n //$this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=plane_query\">Plane Query</a>';\r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break;\r\n case \"process_new_plane\";\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[1]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=list_all_planes\">View Planes</a>';\r\n //$this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=plane_query\">Plane Query</a>';\r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break;\r\n case \"list_all_planes\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n // $this->menuNav[1]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=list_all_planes\">View Planes</a>';\r\n //$this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=plane_query\">Plane Query</a>';\r\n $this->menuNav[3]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=new_plane\">Add Plane</a>';\r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break;\r\n /* case \"plane_query //not used\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[1]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=list_all_planes\">View Planes</a>';\r\n $this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=new_plane\">Add Plane</a>';\r\n //$this->menuNav[5]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=account\">My Account</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break;\r\n case \"plane_query_result\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[1]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=plane_query\">Plane Query</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>'; \r\n break;\r\n case \"plane_transcript_result\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>'; \r\n break; */\r\n case \"messages\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[4]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=messages\">My Messages</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break; \r\n case \"message_submit\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[4]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=messages\">My Messages</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break; \r\n //Default Menu\r\n default:\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[1]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=planes\">Planes</a>';\r\n $this->menuNav[4]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=messages\">My Messages</a>'; \r\n $this->menuNav[6]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=logout\">Log Out</a>';\r\n break; \r\n } \r\n }\r\n else{ //no authorisation to view pages\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[1]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=register\">Register</a>';\r\n $this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=login\">Login</a>';\r\n } \r\n }\r\n else{ //not logged in menu items\r\n switch ($this->pageID) {\r\n //Not logged in Menu items\r\n case \"home\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[1]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=register\">Register</a>';\r\n //$this->menuNav[3]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=register_admin\">Moderator Register</a>'; --Not allowed to register as staff\r\n $this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=login\">Login</a>';\r\n break;\r\n case \"register\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[1]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=register\">Register</a>';\r\n //$this->menuNav[3]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=register_admin\">Moderator Register</a>';\r\n $this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=login\">Login</a>';\r\n break;\r\n /*case \"register_admin\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[1]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=register\">Register</a>';\r\n // $this->menuNav[3]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=register_admin\">Admin Register</a>';\r\n $this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=login\">Login</a>';\r\n break;*/\r\n case \"login\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[3]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=login_enthusiast\">Enthusiast Login</a>';\r\n $this->menuNav[4]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=login_admin\">Staff Login</a>';\r\n break;\r\n case \"logout\":\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[1]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=register\">Register</a>';\r\n $this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=login\">Login</a>';\r\n break; \r\n default:\r\n $this->menuNav[0]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=home\">Home</a>';\r\n $this->menuNav[1]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=register\">Register</a>';\r\n $this->menuNav[2]='<a href=\"'.$_SERVER['PHP_SELF'].'?pageID=login\">Login</a>';\r\n break;\r\n }\r\n }\r\n }",
"function menu_management_script()\n{\n if (!has_actual_page_access(get_member(), 'admin_menus')) {\n access_denied('I_ERROR');\n }\n\n $id = get_param_integer('id');\n $to_menu = get_param_string('menu');\n $changes = array('i_menu' => $to_menu);\n\n $rows = $GLOBALS['SITE_DB']->query_select('menu_items', array('*'), array('id' => $id), '', 1);\n if (array_key_exists(0, $rows)) {\n $row = $rows[0];\n } else {\n $row = null;\n }\n\n $test = false;\n\n foreach (array_keys($test ? $_GET : $_POST) as $key) {\n $val = $test ? get_param_string($key) : post_param_string($key);\n $key = preg_replace('#\\_\\d+$#', '', $key);\n if (($key == 'caption') || ($key == 'caption_long')) {\n if (is_null($row)) {\n $changes += insert_lang('i_' . $key, $val, 2);\n } else {\n $changes += lang_remap('i_' . $key, $row['i_' . $key], $val);\n }\n } elseif (($key == 'url') || ($key == 'theme_img_code')) {\n $changes['i_' . $key] = $val;\n } elseif ($key == 'page_only') {\n $changes['i_page_only'] = $val;\n }\n }\n $changes['i_order'] = post_param_integer('order_' . strval($id), 0);\n $changes['i_new_window'] = post_param_integer('new_window_' . strval($id), 0);\n $changes['i_check_permissions'] = post_param_integer('check_perms_' . strval($id), 0);\n $changes['i_include_sitemap'] = post_param_integer('include_sitemap_' . strval($id), 0);\n $changes['i_expanded'] = 0;\n $changes['i_parent'] = null;\n\n if (is_null($row)) {\n $GLOBALS['SITE_DB']->query_insert('menu_items', $changes);\n } else {\n $GLOBALS['SITE_DB']->query_update('menu_items', $changes, array('id' => $id), '', 1);\n }\n}",
"function updateNavigationMenu($args, $request) {\n\t\t// Identify the NavigationMenu id.\n\t\t$navigationMenuId = $request->getUserVar('navigationMenuId');\n\t\t$context = $request->getContext();\n\t\t$contextId = CONTEXT_ID_NONE;\n\t\tif ($context) {\n\t\t\t$contextId = $context->getId();\n\t\t}\n\n\t\t// Form handling.\n\t\t$navigationMenusForm = new NavigationMenuForm($contextId, $navigationMenuId);\n\t\t$navigationMenusForm->readInputData();\n\n\t\tif ($navigationMenusForm->validate()) {\n\t\t\t$navigationMenusForm->execute($request);\n\n\t\t\tif ($navigationMenuId) {\n\t\t\t\t// Successful edit of an existing NavigationMenu.\n\t\t\t\t$notificationLocaleKey = 'notification.editedNavigationMenu';\n\t\t\t} else {\n\t\t\t\t// Successful added a new NavigationMenu.\n\t\t\t\t$notificationLocaleKey = 'notification.addedNavigationMenu';\n\t\t\t}\n\n\t\t\t// Record the notification to user.\n\t\t\t$notificationManager = new NotificationManager();\n\t\t\t$user = $request->getUser();\n\t\t\t$notificationManager->createTrivialNotification($user->getId(), NOTIFICATION_TYPE_SUCCESS, array('contents' => __($notificationLocaleKey)));\n\n\t\t\t// Prepare the grid row data.\n\t\t\treturn DAO::getDataChangedEvent($navigationMenuId);\n\t\t} else {\n\t\t\treturn new JSONMessage(false);\n\t\t}\n\t}",
"public function update_nav_menu_items() {\n\t\t$menu_locations = get_nav_menu_locations();\n\n\t\tforeach ( $menu_locations as $location => $menu_id ) {\n\n\t\t\tif ( is_nav_menu( $menu_id ) ) {\n\t\t\t\t$menu_items = wp_get_nav_menu_items( $menu_id, array( 'post_status' => 'any' ) );\n\n\t\t\t\tif ( ! empty( $menu_items ) ) {\n\t\t\t\t\tforeach ( $menu_items as $menu_item ) {\n\t\t\t\t\t\tif ( isset( $menu_item->url ) && isset( $menu_item->db_id ) && 'custom' == $menu_item->type ) {\n\t\t\t\t\t\t\t$site_parts = parse_url( home_url( '/' ) );\n\t\t\t\t\t\t\t$menu_parts = parse_url( $menu_item->url );\n\n\t\t\t\t\t\t\t// Update existing custom nav menu item URL.\n\t\t\t\t\t\t\tif ( isset( $menu_parts['path'] ) && isset( $menu_parts['host'] ) && apply_filters( 'themegrill_demo_importer_nav_menu_item_url_hosts', in_array( $menu_parts['host'], array( 'demo.themegrill.com', 'zakrademos.com' ) ) ) ) {\n\t\t\t\t\t\t\t\t$menu_item->url = str_replace( array( $menu_parts['scheme'], $menu_parts['host'], $menu_parts['path'] ), array( $site_parts['scheme'], $site_parts['host'], trailingslashit( $site_parts['path'] ) ), $menu_item->url );\n\t\t\t\t\t\t\t\tupdate_post_meta( $menu_item->db_id, '_menu_item_url', esc_url_raw( $menu_item->url ) );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public function admin_menus()\n {\n }",
"public static function admin_menu()\n\t{\n\t}",
"public function action_menu()\n {\n $sys_name = $this->request->param('id');\n \n $menu_model = ORM::factory('menu')->where('sys_name', '=', $sys_name)->find();\n \n $menu = new Menu($sys_name);\n\n foreach ($menu_model->get_top_items() as $item) {\n $menu_item = $menu->add($item->name, $item->get_link(), array (), $item->get_links_for_active());\n \n if ($children = $item->get_children())\n $this->_generate_submenu($menu, $menu_item, $children);\n }\n \n if (strlen(trim(Request::initial()->uri(), '/')))\n $menu->set_actives(Request::initial()->url(TRUE));\n else {\n $homepage = ORM::factory('page')->get_page_by_type('homepage');\n $menu->set_actives(URL::site($homepage->rew_id, TRUE));\n }\n \n if (Kohana::find_file('views', 'blocks/' . $this->_folder . '/' . $sys_name)) {\n $this->_view = View::factory('blocks/' . $this->_folder . '/' . $sys_name);\n }\n \n $this->_view->menu = $menu;\n }",
"protected function updateMenu()\n {\n Event::listen(BuildingMenu::class, function(BuildingMenu $event){\n $event->menu->remove('perjadin');\n $event->menu->addBefore('laporan', [\n 'text' => 'Perjalanan Dinas',\n 'url' => '#',\n 'icon' => 'fa fa-fw fa-subway',\n 'label' => '10',\n 'label_color' => 'success',\n 'submenu' => [\n [\n 'text' => 'Surat Perintah Tugas',\n 'url' => '#',\n 'icon' => 'fa fa-fw fa-tv',\n 'label' => '10',\n 'label_color' => 'info',\n ],\n [\n 'text' => 'SPPD',\n 'url' => '#',\n 'icon' => 'fa fa-fw fa-suitcase-rolling',\n 'label' => '10',\n 'label_color' => 'warning',\n ],\n [\n 'text' => 'Kwitansi',\n 'url' => '#',\n 'icon' => 'fa fa-fw fa-receipt',\n 'label' => '10',\n 'label_color' => 'danger',\n ],\n ]\n ]);\n });\n }",
"public function admin_menus(){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\n\t\t}",
"function data_modifymenu(){\n add_menu_page('data', \n 'data',\n 'manage_options',\n 'data_list',\n data_list)\n ;\n\n add_submenu_page('data_list',\n 'Add New data',\n 'Add New',\n 'manage_options',\n 'data_create',\n 'data_create'\n );\n\n add_submenu_page(null,\n 'Update data',\n 'Update',\n 'manage_options',\n 'data_update',\n 'data_update'\n );\n}",
"public function set_menu(){\n \t$this->_main_menu = array();\n \n $this->_main_menu['index'] = new Model_Ui_Menuitem(\n \t \"View My Entries\" ,\n \t \"/user/\");\n $this->_main_menu['create'] = new Model_Ui_Menuitem(\n \t\"Upload Content\",\n \t\"/user/create\");\n $this->_main_menu['drafts'] = new Model_Ui_Menuitem(\n \t\"My Drafts\" ,\n \t\"/user/drafts\");\n $this->_main_menu['trash'] = new Model_Ui_Menuitem(\n \t\"Trash\" ,\t\n \t\"/user/trash\");\n $this->_main_menu['edit'] = new Model_Ui_Menuitem(\n \t\"Edit Profile\" ,\n \t\"/user/edit\");\n /*\n $this->_main_menu['my_files'] = new Model_Ui_Menuitem(\n \t\"My Files\" ,\n \t\"/user/my_files\");\n */\n \n $action = $this->request->action();\n $this->_main_menu[$action]->active = true;\n\t\n }",
"public function generate_navigationAction()\n {\n\n\n }",
"function crm_backup_init_menu_items(){\n $CI = &get_instance();\n\n if (has_permission('crm_backup', '', 'view')) {\n $CI->app_menu->add_sidebar_menu_item('crm_backup', [\n 'name' => _l('crm_backup'), // The name if the item\n 'collapse' => true, // Indicates that this item will have submitems\n 'position' => 57, // The menu position\n 'icon' => 'fa fa-history', // Font awesome icon\n ]);\n\n $CI->app_menu->add_sidebar_children_item('crm_backup', [\n 'slug' => 'crm-backups', // Required ID/slug UNIQUE for the child menu\n 'name' => _l('crm_backups'), // The name if the item\n 'href' => admin_url('crm_backup'), // URL of the item\n 'position' => 1, // The menu position\n 'icon' => '', // Font awesome icon\n ]);\n\n $CI->app_menu->add_sidebar_children_item('crm_backup', [\n 'slug' => 'crm-backup-settings', // Required ID/slug UNIQUE for the child menu\n 'name' => _l('crm_backup_settings'), // The name if the item\n 'href' => admin_url('crm_backup/setting'), // URL of the item\n 'position' => 2, // The menu position\n 'icon' => '', // Font awesome icon\n ]);\n }\n}",
"public function network_admin_menus()\n {\n }",
"public function gutterNavigationCreate() {\n\n//GET DATABASE\n $db = Zend_Db_Table_Abstract::getDefaultAdapter();\n\n//GET CORE MENUITEMS TABLE\n $menuItemsTable = Engine_Api::_()->getDbTable('MenuItems', 'core');\n $menuItemsTableName = $menuItemsTable->info('name');\n\n $menuItemsId = $menuItemsTable->select()\n ->from($menuItemsTableName, array('id'))\n ->where('name = ? ', \"sitestoreproduct_gutter_wishlist\")\n ->query()\n ->fetchColumn();\n\n if (empty($menuItemsId)) {\n $menuItemsTable->insert(array(\n 'name' => \"sitestoreproduct_gutter_wishlist\",\n 'module' => 'sitestoreproduct',\n 'label' => \"Add to Wishlist\",\n 'plugin' => 'Sitestoreproduct_Plugin_Menus::sitestoreproductGutterWishlist',\n 'menu' => \"sitestoreproduct_gutter\",\n 'submenu' => '',\n 'order' => 1,\n 'enabled' => 0,\n ));\n }\n\n $menuItemsId = $menuItemsTable->select()\n ->from($menuItemsTableName, array('id'))\n ->where('name = ? ', \"sitestoreproduct_gutter_messageowner\")\n ->query()\n ->fetchColumn();\n\n if (empty($menuItemsId)) {\n $menuItemsTable->insert(array(\n 'name' => \"sitestoreproduct_gutter_messageowner\",\n 'module' => 'sitestoreproduct',\n 'label' => \"Message Owner\",\n 'plugin' => 'Sitestoreproduct_Plugin_Menus::sitestoreproductGutterMessageowner',\n 'menu' => \"sitestoreproduct_gutter\",\n 'submenu' => '',\n 'order' => 2,\n ));\n }\n\n $menuItemsId = $menuItemsTable->select()\n ->from($menuItemsTableName, array('id'))\n ->where('name = ? ', \"sitestoreproduct_gutter_print\")\n ->query()\n ->fetchColumn();\n\n if (empty($menuItemsId)) {\n $menuItemsTable->insert(array(\n 'name' => \"sitestoreproduct_gutter_print\",\n 'module' => 'sitestoreproduct',\n 'label' => \"Print\",\n 'plugin' => 'Sitestoreproduct_Plugin_Menus::sitestoreproductGutterPrint',\n 'menu' => \"sitestoreproduct_gutter\",\n 'submenu' => '',\n 'order' => 3,\n ));\n }\n\n\n $menuItemsId = $menuItemsTable->select()\n ->from($menuItemsTableName, array('id'))\n ->where('name = ? ', \"sitestoreproduct_gutter_share\")\n ->query()\n ->fetchColumn();\n\n if (empty($menuItemsId)) {\n $menuItemsTable->insert(array(\n 'name' => \"sitestoreproduct_gutter_share\",\n 'module' => 'sitestoreproduct',\n 'label' => \"Share\",\n 'plugin' => 'Sitestoreproduct_Plugin_Menus::sitestoreproductGutterShare',\n 'menu' => \"sitestoreproduct_gutter\",\n 'submenu' => '',\n 'order' => 4,\n ));\n }\n\n $menuItemsId = $menuItemsTable->select()\n ->from($menuItemsTableName, array('id'))\n ->where('name = ? ', \"sitestoreproduct_gutter_tfriend\")\n ->query()\n ->fetchColumn();\n\n if (empty($menuItemsId)) {\n $menuItemsTable->insert(array(\n 'name' => \"sitestoreproduct_gutter_tfriend\",\n 'module' => 'sitestoreproduct',\n 'label' => \"Tell a Friend\",\n 'plugin' => 'Sitestoreproduct_Plugin_Menus::sitestoreproductGutterTfriend',\n 'menu' => \"sitestoreproduct_gutter\",\n 'submenu' => '',\n 'order' => 5,\n ));\n }\n\n $menuItemsId = $menuItemsTable->select()\n ->from($menuItemsTableName, array('id'))\n ->where('name = ? ', \"sitestoreproduct_gutter_report\")\n ->query()\n ->fetchColumn();\n\n if (empty($menuItemsId)) {\n $menuItemsTable->insert(array(\n 'name' => \"sitestoreproduct_gutter_report\",\n 'module' => 'sitestoreproduct',\n 'label' => \"Report\",\n 'plugin' => 'Sitestoreproduct_Plugin_Menus::sitestoreproductGutterReport',\n 'menu' => \"sitestoreproduct_gutter\",\n 'submenu' => '',\n 'order' => 6,\n ));\n }\n $menuItemsId = $menuItemsTable->select()\n ->from($menuItemsTableName, array('id'))\n ->where('name = ? ', \"sitestoreproduct_gutter_edit\")\n ->query()\n ->fetchColumn();\n\n if (empty($menuItemsId)) {\n $menuItemsTable->insert(array(\n 'name' => \"sitestoreproduct_gutter_edit\",\n 'module' => 'sitestoreproduct',\n 'label' => \"Edit Details\",\n 'plugin' => 'Sitestoreproduct_Plugin_Menus::sitestoreproductGutterEdit',\n 'menu' => \"sitestoreproduct_gutter\",\n 'submenu' => '',\n 'order' => 7,\n ));\n }\n\n $menuItemsId = $menuItemsTable->select()\n ->from($menuItemsTableName, array('id'))\n ->where('name = ? ', \"sitestoreproduct_gutter_editoverview\")\n ->query()\n ->fetchColumn();\n\n if (empty($menuItemsId)) {\n $menuItemsTable->insert(array(\n 'name' => \"sitestoreproduct_gutter_editoverview\",\n 'module' => 'sitestoreproduct',\n 'label' => 'Edit Overview',\n 'plugin' => 'Sitestoreproduct_Plugin_Menus::sitestoreproductGutterEditoverview',\n 'menu' => \"sitestoreproduct_gutter\",\n 'submenu' => '',\n 'enabled' => 0,\n 'order' => 8,\n ));\n }\n\n $menuItemsId = $menuItemsTable->select()\n ->from($menuItemsTableName, array('id'))\n ->where('name = ? ', \"sitestoreproduct_gutter_editstyle\")\n ->query()\n ->fetchColumn();\n\n if (empty($menuItemsId)) {\n $menuItemsTable->insert(array(\n 'name' => \"sitestoreproduct_gutter_editstyle\",\n 'module' => 'sitestoreproduct',\n 'label' => \"Edit Style\",\n 'plugin' => 'Sitestoreproduct_Plugin_Menus::sitestoreproductGutterEditstyle',\n 'menu' => \"sitestoreproduct_gutter\",\n 'submenu' => '',\n 'enabled' => 0,\n 'order' => 9,\n ));\n }\n\n $menuItemsId = $menuItemsTable->select()\n ->from($menuItemsTableName, array('id'))\n ->where('name = ? ', \"sitestoreproduct_gutter_close\")\n ->query()\n ->fetchColumn();\n\n if (empty($menuItemsId)) {\n $menuItemsTable->insert(array(\n 'name' => \"sitestoreproduct_gutter_close\",\n 'module' => 'sitestoreproduct',\n 'label' => \"Open / Close\",\n 'plugin' => 'Sitestoreproduct_Plugin_Menus::sitestoreproductGutterClose',\n 'menu' => \"sitestoreproduct_gutter\",\n 'submenu' => '',\n 'order' => 10,\n ));\n }\n $menuItemsId = $menuItemsTable->select()\n ->from($menuItemsTableName, array('id'))\n ->where('name = ? ', \"sitestoreproduct_gutter_publish\")\n ->query()\n ->fetchColumn();\n\n if (empty($menuItemsId)) {\n $menuItemsTable->insert(array(\n 'name' => \"sitestoreproduct_gutter_publish\",\n 'module' => 'sitestoreproduct',\n 'label' => \"Publish\",\n 'plugin' => 'Sitestoreproduct_Plugin_Menus::sitestoreproductGutterPublish',\n 'menu' => \"sitestoreproduct_gutter\",\n 'submenu' => '',\n 'order' => 11,\n ));\n }\n\n $menuItemsId = $menuItemsTable->select()\n ->from($menuItemsTableName, array('id'))\n ->where('name = ? ', \"sitestoreproduct_gutter_delete\")\n ->query()\n ->fetchColumn();\n\n if (empty($menuItemsId)) {\n $menuItemsTable->insert(array(\n 'name' => \"sitestoreproduct_gutter_delete\",\n 'module' => 'sitestoreproduct',\n 'label' => \"Delete\",\n 'plugin' => 'Sitestoreproduct_Plugin_Menus::sitestoreproductGutterDelete',\n 'menu' => \"sitestoreproduct_gutter\",\n 'submenu' => '',\n 'order' => 12,\n ));\n }\n $menuItemsId = $menuItemsTable->select()\n ->from($menuItemsTableName, array('id'))\n ->where('name = ? ', \"sitestoreproduct_gutter_editorpick\")\n ->query()\n ->fetchColumn();\n\n if (empty($menuItemsId)) {\n $menuItemsTable->insert(array(\n 'name' => \"sitestoreproduct_gutter_editorpick\",\n 'module' => 'sitestoreproduct',\n 'label' => 'Add Best Alternatives',\n 'plugin' => 'Sitestoreproduct_Plugin_Menus::sitestoreproductGutterEditorPick',\n 'menu' => \"sitestoreproduct_gutter\",\n 'submenu' => '',\n 'order' => 13,\n ));\n }\n\n $menuItemsId = $menuItemsTable->select()\n ->from($menuItemsTableName, array('id'))\n ->where('name = ? ', \"sitestoreproduct_gutter_review\")\n ->query()\n ->fetchColumn();\n\n if (empty($menuItemsId)) {\n $menuItemsTable->insert(array(\n 'name' => \"sitestoreproduct_gutter_review\",\n 'module' => 'sitestoreproduct',\n 'label' => \"Write / Edit a Editor Review\",\n 'plugin' => 'Sitestoreproduct_Plugin_Menus::sitestoreproductGutterReview',\n 'menu' => \"sitestoreproduct_gutter\",\n 'submenu' => '',\n 'order' => 14,\n ));\n }\n }",
"public function updateFromMenuItem($data)\n\t{\n\t\t$updated_post = [\n\t\t\t'ID' => sanitize_text_field($data['post_id']),\n\t\t\t'menu_order' => sanitize_text_field($data['menu_order']),\n\t\t\t'post_parent' => sanitize_text_field($data['post_parent'])\n\t\t];\n\t\tif ( isset($data['content']) ){\n\t\t\t$updated_post['post_content'] = $data['content'];\n\t\t\t$updated_post['post_title'] = $data['np_nav_title'];\n\t\t}\n\t\twp_update_post($updated_post);\n\n\t\t// Menu Options\n\t\t$this->updateLinkTarget($data);\n\t\t$this->updateNavTitle($data);\n\t\t$this->updateTitleAttribute($data);\n\n\t\tif ( $data['np_nav_css_classes'][0] !== \"\" ){\n\t\t\t$data['np_nav_css_classes'] = implode(' ', $data['np_nav_css_classes']);\n\t\t\t$this->updateNavCSS($data);\n\t\t}\n\t}",
"function bbp_admin_menu()\n{\n}",
"protected function setMenu()\n {\n// $this->app->make('admix-menu')\n// ->push((object)[\n// 'view' => 'agenciafmd/leads::partials.menus.item',\n// 'ord' => config('admix-leads.sort', 1),\n// ]);\n }",
"private function updateMenuMeta($data)\n\t{\n\t\t$id = ( isset($data['post_id']) ) ? $data['post_id'] : $this->new_id;\n\t\t$link_target = ( isset($data['linkTarget']) ) ? \"_blank\" : \"\";\n\t\tupdate_post_meta($id, '_np_link_target', $link_target);\n\t\tupdate_post_meta($id, '_np_nav_menu_item_type', sanitize_text_field($data['menuType']));\n\t\tupdate_post_meta($id, '_np_nav_menu_item_object', sanitize_text_field($data['objectType']));\n\t\tupdate_post_meta($id, '_np_nav_menu_item_object_id', sanitize_text_field($data['objectId']));\n\t\tif ( isset($data['cssClasses']) ){\n\t\t\tupdate_post_meta($id, '_np_nav_css_classes', sanitize_text_field($data['cssClasses']));\n\t\t}\n\t\tif ( isset($data['titleAttribute']) ){\n\t\t\t$title_attr = sanitize_text_field($data['titleAttribute']);\n\t\t\tupdate_post_meta($id, '_np_title_attribute', $title_attr);\n\t\t}\n\t\tif ( isset($data['navigationLabel']) ){\n\t\t\t$title = sanitize_text_field($data['navigationLabel']);\n\t\t\tupdate_post_meta($id, '_np_nav_title', $title);\n\t\t}\n\t\t$this->updateNavStatus($data);\n\t}",
"public function menu_page() {\n\t}",
"function menuConfig()\t{\n\t\t\t\t\tglobal $LANG;\n\t\t\t\t\t$this->MOD_MENU = Array (\n\t\t\t\t\t\t'function' => Array (\n\t\t\t\t\t\t\t'1' => $LANG->getLL('check'),\n \t\t\t\t\t\t\t'2' => $LANG->getLL('update'),\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\tparent::menuConfig();\n\t\t\t\t}",
"public function hook_menu() {\n \n $items = array();\n $id_count = count(explode('/', $this->path));\n $wildcard = isset($this->entityInfo['admin ui']['menu wildcard']) ? $this->entityInfo['admin ui']['menu wildcard'] : '%' . $this->entityType;\n $items[$this->path] = array(\n 'title' => 'Advertisings',\n 'description' => 'Add edit and update advertisings.',\n 'page callback' => 'system_admin_menu_block_page',\n 'access arguments' => array('access administration pages'),\n 'file path' => drupal_get_path('module', 'system'),\n 'file' => 'system.admin.inc',\n );\n \n // Change the overview menu type for the list of advertisings.\n $items[$this->path]['type'] = MENU_LOCAL_TASK;\n \n // Change the add page menu to multiple types of entities\n $items[$this->path . '/add'] = array(\n 'title' => 'Add a advertising',\n 'description' => 'Add a new advertising',\n 'page callback' => 'advertising_add_page',\n 'access callback' => 'advertising_access',\n 'access arguments' => array('edit'),\n 'type' => MENU_NORMAL_ITEM,\n 'weight' => 20,\n 'file' => 'advertising.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n\n );\n \n // Add menu items to add each different type of entity.\n foreach (advertising_get_types() as $type) {\n $items[$this->path . '/add/' . $type->type] = array(\n 'title' => 'Add ' . $type->label,\n 'page callback' => 'advertising_form_wrapper',\n 'page arguments' => array(advertising_create(array('type' => $type->type))),\n 'access callback' => 'advertising_access',\n 'access arguments' => array('edit', 'edit ' . $type->type),\n 'file' => 'advertising.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n );\n }\n\n // Loading and editing advertising entities\n $items[$this->path . '/advertising/' . $wildcard] = array(\n 'page callback' => 'advertising_form_wrapper',\n 'page arguments' => array($id_count + 1),\n 'access callback' => 'advertising_access',\n 'access arguments' => array('edit', $id_count + 1),\n 'weight' => 0,\n 'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,\n 'file' => 'advertising.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n );\n $items[$this->path . '/advertising/' . $wildcard . '/edit'] = array(\n 'title' => 'Edit',\n 'type' => MENU_DEFAULT_LOCAL_TASK,\n 'weight' => -10,\n 'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,\n );\n \n $items[$this->path . '/advertising/' . $wildcard . '/delete'] = array(\n 'title' => 'Delete',\n 'page callback' => 'advertising_delete_form_wrapper',\n 'page arguments' => array($id_count + 1),\n 'access callback' => 'advertising_access',\n 'access arguments' => array('edit', $id_count + 1),\n 'type' => MENU_LOCAL_TASK,\n 'context' => MENU_CONTEXT_INLINE,\n 'weight' => 10,\n 'file' => 'advertising.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n );\n \n // Menu item for viewing advertisings\n $items['advertising/' . $wildcard] = array(\n //'title' => 'Title',\n 'title callback' => 'advertising_page_title',\n 'title arguments' => array(1),\n 'page callback' => 'advertising_page_view',\n 'page arguments' => array(1),\n 'access callback' => 'advertising_access',\n 'access arguments' => array('view', 1),\n 'type' => MENU_CALLBACK,\n );\n return $items;\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.6005179",
"0.5999279",
"0.59833294",
"0.59734374",
"0.5926444",
"0.58727723",
"0.58565617",
"0.58338803",
"0.58251286",
"0.5823926"
] | 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()\n {\n return $this->hasMany('App\\Pricing');\n }",
"public function prices(): Prices\n {\n $query = $this->newRelatedInstance(Price::class)->newQuery();\n\n [$type, $id] = $this->getMorphs('metable', null, null);\n\n return new Prices($query, $this, $query->qualifyColumn($type), $query->qualifyColumn($id), $this->getKeyName());\n }",
"protected function newQuery()\n {\n $this->query = $this->model->newQuery();\n\n return $this;\n }",
"public function pricing()\n {\n return $this->belongsTo('App\\Pricing');\n }",
"public function getProductPricing()\n {\n $pulseSiteId = 2;\n $pricingData = $this->join('order_core.product as p', 'p.id', '=', 'product_price.product_id')\n ->join('order_core.product_print as pp2', 'pp2.id', '=', 'p.product_print_id')\n ->where('site_id', '=', $pulseSiteId)\n ->whereRaw(\n '((order_core.product_price.date_start <= curdate() AND order_core.product_price.date_end >= curdate()) \n OR (order_core.product_price.date_start <= curdate() AND order_core.product_price.date_end IS NULL))'\n )\n ->distinct()\n ->select('p.*')\n ->get();\n\n return $pricingData;\n }",
"public function newPivotQuery()\n {\n $query = $this->newPivotStatement();\n\n foreach ($this->pivotWheres as $arguments) {\n call_user_func_array([$query, 'where'], $arguments);\n }\n\n foreach ($this->pivotWhereIns as $arguments) {\n call_user_func_array([$query, 'whereIn'], $arguments);\n }\n\n return $query->where($this->foreignPivotKey, $this->getParentKeyValue());\n }",
"public function newQuery()\n {\n return new Builder(new static());\n }",
"public function newQuery()\n {\n return new static($this->client, $this->grammar, $this->processor);\n }",
"protected function baseQuery()\n {\n return $this->classMapper->createInstance($this->name)->newQuery();\n }",
"public function pricingGroup()\n {\n return $this->belongsTo(PricingGroup::class);\n }",
"public function newQuery()\n {\n return $this->registerGlobalScopes($this->newQueryWithoutScopes());\n }",
"public function getInvoicePricing();",
"protected function baseQuery()\n {\n $query = new Operation();\n\n // Alternatively, if you have defined a class mapping, you can use the classMapper:\n // $query = $this->classMapper->createInstance('owl');\n\n return $query;\n }",
"function subSelect() {\r\n\t\treturn new TmSubSelectQuery($this->parent);\r\n\t}",
"protected function _buildQuery()\r\n {\r\n \t\r\n $db = JFactory::getDBO();\r\n $query = $db->getQuery(TRUE);\r\n\r\n $query->select('p.*');\r\n $query->from('#__ddc_payments as p');\r\n\r\n return $query;\r\n \r\n }",
"protected function getBaseQuery()\n\t{\n\t\treturn $this->db\n\t\t\t->select([\n\t\t\t\t'quotations.*',\n\t\t\t\t'(margin_percent/100 * quotations.base_amount) AS total_margin',\n\t\t\t\t'quotations.base_amount + (margin_percent/100 * quotations.base_amount) AS total_price',\n\t\t\t\t'tax_percent/100 * (quotations.base_amount + (margin_percent/100 * quotations.base_amount)) AS total_tax',\n\t\t\t\t'(tax_percent/100 * (quotations.base_amount + (margin_percent/100 * quotations.base_amount))) + quotations.base_amount + (margin_percent/100 * quotations.base_amount) AS total_price_after_tax',\n\t\t\t\t'payment_percent/100 * ((tax_percent/100 * (quotations.base_amount + (margin_percent/100 * quotations.base_amount))) + quotations.base_amount + (margin_percent/100 * quotations.base_amount)) AS total_payment',\n\t\t\t])\n\t\t\t->from(\"(\n\t\t\t\tSELECT \n\t\t\t\t\tquotations.*,\n\t\t\t\t\tIFNULL(SUM(quotation_components.total_sub_component_price), 0) AS total_sub_component,\n\t\t\t\t\tIFNULL(SUM(quotation_components.total_component_price), 0) AS total_component,\n\t\t\t\t\tIFNULL(SUM(quotation_packaging.price), 0) AS total_packaging,\n\t\t\t\t\tIFNULL(SUM(quotation_surcharges.price), 0) AS total_surcharge,\n\t\t\t\t\tIFNULL(SUM(quotation_components.total_component_price), 0) \n\t\t\t\t\t\t+ IFNULL(SUM(quotation_packaging.price), 0) \n\t\t\t\t\t\t+ IFNULL(SUM(quotation_surcharges.price), 0) \n\t\t\t\t\t\t+ IFNULL(insurance, 0) AS base_amount\n\t\t\t\tFROM quotations\n\t\t\t\tLEFT JOIN (\n\t\t\t\t\tSELECT \n\t\t\t\t\t\tid_quotation,\n\t\t\t\t\t\tSUM(total_sub_component_price) AS total_sub_component_price,\n\t\t\t\t\t\tSUM(total_component_price) AS total_component_price\n\t\t\t\t\tFROM (\n\t\t\t\t\t\tSELECT \n\t\t\t\t\t\t\tquotation_components.id,\n\t\t\t\t\t\t\tquotation_components.id_quotation,\n\t\t\t\t\t\t\tSUM(quotation_sub_components.price) AS total_sub_component_price,\n\t\t\t\t\t\t\tSUM(quotation_sub_components.price) + (duration_charge_percent/100 * SUM(quotation_sub_components.price)) AS total_component_price\n\t\t\t\t\t\tFROM quotation_components\n\t\t\t\t\t\tLEFT JOIN quotation_sub_components ON quotation_sub_components.id_quotation_component = quotation_components.id\n\t\t\t\t\t\tGROUP BY quotation_components.id\n\t\t\t\t\t) AS components\n\t\t\t\t\tGROUP BY id_quotation\n\t\t\t\t) AS quotation_components ON quotation_components.id_quotation = quotations.id\n\t\t\t\tLEFT JOIN (\n\t\t\t\t\tSELECT id_quotation, SUM(price) AS price \n\t\t\t\t\tFROM quotation_packaging\n\t\t\t\t\tGROUP BY id_quotation\n\t\t\t\t) AS quotation_packaging ON quotation_packaging.id_quotation = quotations.id\n\t\t\t\tLEFT JOIN (\n\t\t\t\t\tSELECT id_quotation, SUM(price) AS price \n\t\t\t\t\tFROM quotation_surcharges\n\t\t\t\t\tGROUP BY id_quotation\n\t\t\t\t) AS quotation_surcharges ON quotation_surcharges.id_quotation = quotations.id\n\t\t\t\tGROUP BY quotations.id\n\t\t\t) AS quotations\");\n\t}",
"public function get_pricing(): Learndash_Pricing_DTO {\n\t\t$pricing = array();\n\n\t\tif ( $this->hasAttribute( self::$meta_key_pricing_info ) ) {\n\t\t\t$pricing = (array) $this->getAttribute( self::$meta_key_pricing_info );\n\t\t} elseif (\n\t\t\tis_array( $this->getAttribute( LEARNDASH_TRANSACTION_COUPON_META_KEY ) ) &&\n\t\t\tisset( $this->getAttribute( LEARNDASH_TRANSACTION_COUPON_META_KEY )['price'] )\n\t\t) { // Legacy coupon.\n\t\t\t/**\n\t\t\t * Legacy coupon meta.\n\t\t\t *\n\t\t\t * @var array{\n\t\t\t * currency?: string,\n\t\t\t * price?: float,\n\t\t\t * discount?: float,\n\t\t\t * discounted_price?: float,\n\t\t\t * } $coupon_meta\n\t\t\t */\n\t\t\t$coupon_meta = $this->getAttribute( LEARNDASH_TRANSACTION_COUPON_META_KEY );\n\n\t\t\t$pricing['currency'] = $coupon_meta['currency'] ?? '';\n\t\t\t$pricing['price'] = $coupon_meta['price'] ?? 0;\n\t\t\t$pricing['discount'] = $coupon_meta['discount'] ?? 0;\n\t\t\t$pricing['discounted_price'] = $coupon_meta['discounted_price'] ?? 0;\n\t\t} else {\n\t\t\t$gateway_name = $this->get_gateway_name();\n\n\t\t\tif ( 'stripe' === $gateway_name ) { // Legacy Stripe.\n\t\t\t\t$pricing['currency'] = mb_strtoupper(\n\t\t\t\t\tstrval( $this->getAttribute( 'stripe_currency', '' ) )\n\t\t\t\t);\n\t\t\t\t$pricing['price'] = $this->getAttribute( 'stripe_price' );\n\n\t\t\t\tif ( $this->is_subscription() ) {\n\t\t\t\t\t$duration_hash = array(\n\t\t\t\t\t\t'day' => 'D',\n\t\t\t\t\t\t'week' => 'W',\n\t\t\t\t\t\t'month' => 'M',\n\t\t\t\t\t\t'year' => 'Y',\n\t\t\t\t\t);\n\n\t\t\t\t\t$pricing['price'] = $this->getAttribute( 'subscribe_price', 0 );\n\t\t\t\t\t$pricing['recurring_times'] = $this->getAttribute( 'no_of_cycles', 0 );\n\t\t\t\t\t$pricing['duration_value'] = $this->getAttribute( 'pricing_billing_p3', 0 );\n\t\t\t\t\t$pricing['duration_length'] = $duration_hash[ $this->getAttribute( 'pricing_billing_t3', '' ) ] ?? '';\n\t\t\t\t\t$pricing['trial_price'] = $this->getAttribute( 'trial_price', 0 );\n\t\t\t\t\t$pricing['trial_duration_value'] = $this->getAttribute( 'trial_duration_p1', 0 );\n\t\t\t\t\t$pricing['trial_duration_length'] = $duration_hash[ $this->getAttribute( 'trial_duration_t1', '' ) ] ?? '';\n\t\t\t\t}\n\t\t\t} elseif ( Learndash_Paypal_IPN_Gateway::get_name() === $gateway_name ) { // Legacy PayPal.\n\t\t\t\t$pricing['currency'] = $this->getAttribute( 'mc_currency' );\n\t\t\t\t$pricing['price'] = $this->getAttribute( 'mc_gross', 0 );\n\n\t\t\t\tif ( $this->is_subscription() ) {\n\t\t\t\t\t$duration = explode(\n\t\t\t\t\t\t' ',\n\t\t\t\t\t\tstrval( $this->getAttribute( 'period3', '' ) )\n\t\t\t\t\t);\n\t\t\t\t\t$trial_duration = explode(\n\t\t\t\t\t\t' ',\n\t\t\t\t\t\tstrval( $this->getAttribute( 'period1', '' ) )\n\t\t\t\t\t);\n\n\t\t\t\t\tif ( empty( $pricing['price'] ) ) {\n\t\t\t\t\t\t$pricing['price'] = $this->getAttribute( 'mc_amount3', 0 );\n\t\t\t\t\t}\n\n\t\t\t\t\t$pricing['recurring_times'] = $this->getAttribute( 'recur_times', 0 );\n\t\t\t\t\t$pricing['duration_value'] = $duration[0] ?? 0;\n\t\t\t\t\t$pricing['duration_length'] = $duration[1] ?? '';\n\t\t\t\t\t$pricing['trial_price'] = $this->getAttribute( 'amount1' );\n\t\t\t\t\t$pricing['trial_duration_value'] = $trial_duration[0] ?? 0;\n\t\t\t\t\t$pricing['trial_duration_length'] = $trial_duration[1] ?? '';\n\t\t\t\t}\n\t\t\t} elseif ( Learndash_Razorpay_Gateway::get_name() === $gateway_name ) { // Legacy Razorpay.\n\t\t\t\t$pricing_legacy = $this->getAttribute( 'pricing', array() );\n\n\t\t\t\tif ( ! empty( $pricing_legacy ) ) {\n\t\t\t\t\t/**\n\t\t\t\t\t * Legacy pricing.\n\t\t\t\t\t *\n\t\t\t\t\t * @var array{\n\t\t\t\t\t * currency: string,\n\t\t\t\t\t * price: float,\n\t\t\t\t\t * no_of_cycles?: int,\n\t\t\t\t\t * pricing_billing_p3?: int,\n\t\t\t\t\t * pricing_billing_t3?: string,\n\t\t\t\t\t * trial_price?: float,\n\t\t\t\t\t * trial_duration_p1?: int,\n\t\t\t\t\t * trial_duration_t1?: string,\n\t\t\t\t\t * } $pricing_legacy\n\t\t\t\t\t */\n\t\t\t\t\t$pricing['currency'] = $pricing_legacy['currency'];\n\t\t\t\t\t$pricing['price'] = $pricing_legacy['price'];\n\n\t\t\t\t\tif ( $this->is_subscription() ) {\n\t\t\t\t\t\t$pricing['recurring_times'] = $pricing_legacy['no_of_cycles'] ?? 0;\n\t\t\t\t\t\t$pricing['duration_value'] = $pricing_legacy['pricing_billing_p3'] ?? 0;\n\t\t\t\t\t\t$pricing['duration_length'] = $pricing_legacy['pricing_billing_t3'] ?? '';\n\t\t\t\t\t\t$pricing['trial_price'] = $pricing_legacy['trial_price'] ?? 0;\n\t\t\t\t\t\t$pricing['trial_duration_value'] = $pricing_legacy['trial_duration_p1'] ?? 0;\n\t\t\t\t\t\t$pricing['trial_duration_length'] = $pricing_legacy['trial_duration_t1'] ?? '';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/**\n\t\t * Filters transaction product pricing.\n\t\t *\n\t\t * @since 4.5.0\n\t\t *\n\t\t * @param Learndash_Pricing_DTO $pricing_dto Transaction pricing DTO.\n\t\t * @param Transaction $transaction Transaction model.\n\t\t *\n\t\t * @return Learndash_Pricing_DTO Transaction pricing DTO.\n\t\t */\n\t\treturn apply_filters(\n\t\t\t'learndash_model_transaction_pricing',\n\t\t\tLearndash_Pricing_DTO::create( $pricing ),\n\t\t\t$this\n\t\t);\n\t}",
"public function newQuery(): Builder\n {\n return $this->model->newQuery();\n }",
"public function build(): CatalogQueryRange\n {\n return CoreHelper::clone($this->instance);\n }",
"public function newPivotQuery()\n {\n return parent::newPivotQuery()->where($this->morphType, $this->morphClass);\n }",
"public function childQuery(){\n return ImportCargamasivadet::find()->\n where(['cargamasiva_id' =>$this->id]);\n }",
"public function newQuery($excludeDeleted = true)\n {\n $builder = new Builder($this->newBaseQueryBuilder());\n // Once we have the query builders, we will set the model instances so the\n // builder can easily access any information it may need from the model\n // while it is constructing and executing various queries against it.\n $builder->setModel($this)->with($this->with);\n if ($excludeDeleted and $this->softDelete) {\n $builder->whereNull($this->getQualifiedDeletedAtColumn());\n }\n return $builder;\n }",
"public function newQuery($excludeDeleted = true)\n {\n $query = parent::newQuery($excludeDeleted);\n $query->where('taxonomy', '=', 'post_format');\n\n return $query;\n }",
"public function createQuery(): Query\n {\n return new Query($this->measurementManager, $this->className);\n }",
"public function newQuery() : QueryBuilder;",
"public function newQuery()\n {\n $builder = $this->newQueryWithoutScopes();\n\n foreach ($this->getGlobalScopes() as $identifier => $scope) {\n $builder->withGlobalScope($identifier, $scope);\n }\n\n return $builder;\n }",
"public function subSelect()\n {\n return new ezcQuerySubSelect( $this->outerQuery );\n }",
"public function query(): Query\n {\n return new Query($this);\n }"
] | [
"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.49386147",
"0.49368915",
"0.49227142",
"0.4906617",
"0.48891765",
"0.48695835",
"0.48582304",
"0.48491248",
"0.48213685"
] | 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 = true;\n }\n if (isset($recno['max'])) {\n $this->addUsingAlias(OrdrhedTableMap::COL_RECNO, $recno['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(OrdrhedTableMap::COL_RECNO, $recno, $comparison);\n }",
"function filterInt($field, $value) {\n if (($value = ltrim($value, '=')) !== '') {\n switch ($value[0]) {\n case '>': $this->where($field, '>', (int) substr($value, 1)); break;\n case '<': $this->where($field, '<', (int) substr($value, 1)); break;\n case '!': $this->where($field, '<>', (int) substr($value, 1)); break;\n default: $this->where($field, '=', (int) $value); break;\n }\n }\n }",
"public function filterByRefno($refno = null, $comparison = null)\n {\n if (is_array($refno)) {\n $useMinMax = false;\n if (isset($refno['min'])) {\n $this->addUsingAlias(SalesPeer::REFNO, $refno['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($refno['max'])) {\n $this->addUsingAlias(SalesPeer::REFNO, $refno['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(SalesPeer::REFNO, $refno, $comparison);\n }",
"public function getFiltered($year, $month, $number);",
"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 filter($st_results, $param, $minVal, $maxVal)\n{\n\tforeach ($st_results as $key=>$row)\n\t{\n\t\t$col = $row[$param];\t\n\t\tif ($col < $minVal || $col > $maxVal)\n\t\t\tunset($st_results[$key]); \t// delete row from array\n\t}\n\n\treturn $st_results;\n}",
"public function search()\n\t{\n\t\t$criteria=new CDbCriteria;\n\t\t$criteria->compare('rec_id',$this->rec_id);\n\t\t$criteria->compare('queue_id',$this->queue_id);\n\t\t$criteria->addSearchCondition(\"mobile_number\" , doubleval($this->mobile_number));\n\t\t$criteria->compare('ip_address',$this->ip_address);\n\t\t$criteria->compare('date_created',$this->date_created,true);\n\t\t$criteria->compare('date_updated',$this->date_updated,true);\n\t\t$criteria->group = \"mobile_number\";\n\t\t$criteria->order = \"date_created DESC\";\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"function filterByCatalogNbr($course, $catalogNbr)\n {\n\n if (!isset($catalogNbr) || $catalogNbr == \"\" || stripos($catalogNbr, \"all\") !== false)\n return true;\n\n // course number input is like min'-'max\n $values = explode(\"-\", $catalogNbr);\n if ($values[1] == \"above\") {\n\n if ($course[\"course_catalog_nbr\"] >= $values[0])\n return true;\n } else {\n\n if ($course[\"course_catalog_nbr\"] >= $values[0] &&\n $course[\"course_catalog_nbr\"] < $values[1]\n )\n return true;\n }\n\n return false;\n }",
"protected function filter($numberArr) {\n return array_filter($numberArr, function($number) {\n return $number && $number <= 1000;\n });\n }",
"protected function filter($c)\n {\n //FROM UNTIL SET (SERIAL_TYPE -> SERIAL)\n if ($this->hasRequestParameter('from')){ //ver que es YYYY-mm-dd\n $criterion = $c->getNewCriterion(MmPeer::PUBLICDATE, $this->getRequestParameter('from'), Criteria::GREATER_EQUAL);\n }\n \n if ($this->hasRequestParameter('until')){ //ver que es YYYY-mm-dd\n if (isset($criterion)){\n\t$criterion->addAnd($c->getNewCriterion(MmPeer::PUBLICDATE, $this->getRequestParameter('until'), Criteria::LESS_EQUAL));\n }else{\n\t$criterion = $c->getNewCriterion(MmPeer::PUBLICDATE, $this->getRequestParameter('until'), Criteria::LESS_EQUAL);\n }\n }\n \n if (isset($criterion)){\n $c->add($criterion);\n }\n\n if($this->hasRequestParameter('set')&&(is_int($this->getRequestParameter('set')))){\n $c->addJoin(MmPeer::SERIAL_ID, SerialPeer::ID);\n $c->add(SerialPeer::SERIAL_TYPE_ID, intval($this->getRequestParameter('set')));\n }\n\n\n if(($this->hasRequestParameter('set'))&&($ret = strstr($this->getRequestParameter('set'), ':('))){\n $c->addJoin(MmPeer::SERIAL_ID, SerialPeer::ID);\n $c->add(SerialPeer::SERIAL_TYPE_ID, intval($this->getRequestParameter('set')));\n\n $c->add(MmPeer::SERIAL_ID, intval(substr($ret, 2))); \n }\n\n }",
"function filter_getwhere($segments=array(),$sufix='where_',$fields_reg=array()){\n $request_where=array();\n $values=array();\n $link='';\n foreach($segments as $val)\n {\n if(preg_match(\"/^$sufix/\",$val))\n {\n $val=str_replace($sufix,'',$val);\n $px=explode('__',$val);\n if(count($px)==3&&$px[2]!==''&&in_array($px[0],$fields_reg))\n {\n //dieu kien cho trich loc ngay\n //fromdate\n if($px[1]=='isnot')\n {\n $request_where[$px[0].' <>']=$px[2];\n }\n elseif($px[1]=='is')\n {\n $request_where[$px[0]]=$px[2];\n }\n elseif($px[1]=='from')\n {\n $request_where[$px[0].' >=']=$px[2];\n }\n elseif($px[1]=='to')\n {\n $request_where[$px[0].' <=']=$px[2];\n }\n $link.=$val.'/';\n if(isset($values[$px[0]]))\n {\n $values[$px[0].'__2']=$px[2];\n }\n else\n $values[$px[0]]=$px[2];\n }\n \n }\n }\n return array('wheres'=>$request_where,'link'=>$link,'values'=>$values);\n }",
"public function filterBySerial($serial)\n {\n $this->filter[] = $this->field('serial').' = '.$this->quote($serial);\n return $this;\n }",
"public function filterByRecordnumber($recordnumber = null, $comparison = null)\n {\n if (is_array($recordnumber)) {\n $useMinMax = false;\n if (isset($recordnumber['min'])) {\n $this->addUsingAlias(WhseitempackTableMap::COL_RECORDNUMBER, $recordnumber['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($recordnumber['max'])) {\n $this->addUsingAlias(WhseitempackTableMap::COL_RECORDNUMBER, $recordnumber['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(WhseitempackTableMap::COL_RECORDNUMBER, $recordnumber, $comparison);\n }",
"public function Filter($filter=null){\n $results = $this->where(function($query) use ($filter){\n if($filter){\n $query->where('cliente','LIKE',\"%{$filter}%\" or 'vendedor','LIKE',\"%{$filter}%\" or 'data','LIKE',\"%{$filter}%\")->orderBy(\"%{$filter}%\", 'desc')->get() ;\n }\n });\n return $results;\n }",
"public function filterByPotdqtyrec($potdqtyrec = null, $comparison = null)\n {\n if (is_array($potdqtyrec)) {\n $useMinMax = false;\n if (isset($potdqtyrec['min'])) {\n $this->addUsingAlias(PurchaseOrderDetailReceivingTableMap::COL_POTDQTYREC, $potdqtyrec['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($potdqtyrec['max'])) {\n $this->addUsingAlias(PurchaseOrderDetailReceivingTableMap::COL_POTDQTYREC, $potdqtyrec['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PurchaseOrderDetailReceivingTableMap::COL_POTDQTYREC, $potdqtyrec, $comparison);\n }",
"function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'periodebayar': return \"tglbayar BETWEEN '$key-01-01' AND '$key-12-31'\";\n\t\t\t}\n\t\t}",
"function Query_Filter()\r\n {\r\n $sql = \"select cod_materia , descricao_materia from materia where 1=1 \";\r\n if ( $this->getcod_materia() != \"\" ) \r\n $sql = $sql . \" and cod_materia = \".$this->getcod_materia();\r\n if ( $this->getdescrica_materia() != \"\" ) \r\n $sql = $sql . \" and descrica_materia like '%\".$this->getdescrica_materia().\"%' \";\r\n\r\n $result = mysql_query( $sql );\r\n return $result;\r\n }",
"public function filterByValor($valor = null, $comparison = null)\n\t{\n\t\tif (is_array($valor)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($valor['min'])) {\n\t\t\t\t$this->addUsingAlias(TicketPeer::VALOR, $valor['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($valor['max'])) {\n\t\t\t\t$this->addUsingAlias(TicketPeer::VALOR, $valor['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(TicketPeer::VALOR, $valor, $comparison);\n\t}",
"public function filter()\n {\n $limit = $this->_limit?$this->_limit:'';\n $page = $this->_page?$this->_page:1;\n $select_field = $this->_select_field?$this->_select_field:'*';\n $sort = $this->_sort?$this->_sort:'id';\n $filter = $this->selectPage($this->_main_table,$this->_data_filter,$select_field,$limit,$page,$sort);\n $this->afterFilter();\n if($filter){\n return $limit==1?$filter[0]:$filter;\n }\n return false;\n }",
"function filter_vouchers($status,$payee_type,$payee,$from,$to){\n $query = \"SELECT * FROM vouchers WHERE (status = '$status' AND payee_type = '$payee_type' AND payee LIKE '%$payee%' AND date_released >= '$from' AND date_released <= '$to') AND (status = 'for_claim/for_or' AND warrant_num != '') ORDER BY v_num DESC;\";\n\n $result = mysqli_query($this->con,$query);\n\n if($result) return $result;\n else return FALSE;\n exit;\n }",
"public function filterByOrdernumber($ordn, $comparison = null) {\n\t\treturn $this->filterByOehhnbr($ordn, $comparison);\n\t}",
"public function getListRecordCond() {\n $where = func_get_args();\n $this->setWhereValues($where);\n return $this->getListRecord();\n }",
"protected function MakeFilt_val($iNum,$idCust=NULL) {\n throw new exception('2016-07-31 This is only called by MakeFilt_val_strip(), and needs updating.');\n\t$sqlFilt = '(CardNum='.SQLValue((string)$iNum).')';\n\tif (!is_null($idCust)) {\n\t $sqlFilt .= \" AND (ID_Cust=$idCust)\";\n\t}\n\treturn $sqlFilt;\n }",
"function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once($conf['gate_dir'].'model/m_unit.php');\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periodebobot' :\n\t\t\t\t\treturn \"f.kodeperiodebobot='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periode' :\n\t\t\t\t\treturn \"n.kodeperiode='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periodetim' :\n\t\t\t\t\treturn \"kodeperiode='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'penilai' :\n\t\t\t\t\treturn \"idpenilai='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"function fetch_reciept_items($reciept_no){\n \t\t$reciept_no=str_replace('R', '', $reciept_no);\n \t\t$this->db->distinct();\n \t\t$this->db->select('invoice_order.SERVICE, invoice_order.DESCRIPTION, customer.NAME, invoice_order.AMOUNT, customer.ACCOUNT_NO');\n \t\t$this->db->from('invoice_order');\n \t\t$this->db->join('customer', 'invoice_order.CUSTOMER_ID=customer.CUSTOMER_ID', 'left');\n \t\t$this->db->where('invoice_order.REF_NO', $reciept_no);\n \t\t$query=$this->db->get();\n \t\treturn $query->result();\n \t}",
"public function filterByLinenumber($linenumber = null, $comparison = null)\n {\n if (is_array($linenumber)) {\n $useMinMax = false;\n if (isset($linenumber['min'])) {\n $this->addUsingAlias(WhseitempackTableMap::COL_LINENUMBER, $linenumber['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($linenumber['max'])) {\n $this->addUsingAlias(WhseitempackTableMap::COL_LINENUMBER, $linenumber['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(WhseitempackTableMap::COL_LINENUMBER, $linenumber, $comparison);\n }",
"public function buscaCuentaNiff($param,$limit=20){\n $crit=new CDbCriteria();\n $crit->addCondition(\"(trim(\\\"cuentacontableniff\\\") LIKE :parametro or trim(\\\"nombrecuenta\\\") LIKE :parametro)\");\n $crit->addCondition('\"tipocuenta\" =:x');\n $crit->params=array(':parametro' =>\"%$param%\",':x'=>false);\n $crit->limit=$limit;\n return $crit;\n\n }",
"public function filterQuery(callable $callable, $flag = Collection::FILTER_USE_VALUE);",
"public function where($column, $operator = '', $value = '');",
"public function selectFilterToWhere($filter = null, $prefix = \"e.\")\n\t{\n\t\t$where = \" 0 = 0 \";\n\t\tif (is_array($filter)) {\n\t\t\tfor ($i=0;$i<count($filter);$i++){\n\t\t\t\tswitch($filter[$i]['data']['type']){\n\t\t\t\t\tcase 'string' : $qs .= \" AND {$prefix}\".$filter[$i]['field'].\" LIKE '%\".$filter[$i]['data']['value'].\"%'\"; break;\n\t\t\t\t\tcase 'list' :\n\t\t\t\t\t\tif (strstr($filter[$i]['data']['value'],',')){\n\t\t\t\t\t\t\t$fi = explode(',',$filter[$i]['data']['value']);\n\t\t\t\t\t\t\tfor ($q=0;$q<count($fi);$q++){\n\t\t\t\t\t\t\t\t$fi[$q] = \"'\".$fi[$q].\"'\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$filter[$i]['data']['value'] = implode(',',$fi);\n\t\t\t\t\t\t\t$qs .= \" AND {$prefix}\".$filter[$i]['field'].\" IN (\".$filter[$i]['data']['value'].\")\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$qs .= \" AND {$prefix}\".$filter[$i]['field'].\" = '\".$filter[$i]['data']['value'].\"'\";\n\t\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'boolean' : $qs .= \" AND {$prefix}\".$filter[$i]['field'].\" = \".($filter[$i]['data']['value']); break;\n\t\t\t\t\tcase 'numeric' :\n\t\t\t\t\t\tswitch ($filter[$i]['data']['comparison']) {\n\t\t\t\t\t\t\tcase 'eq' : $qs .= \" AND {$prefix}\".$filter[$i]['field'].\" = \".$filter[$i]['data']['value']; break;\n\t\t\t\t\t\t\tcase 'neq' : $qs .= \" AND {$prefix}\".$filter[$i]['field'].\" <> \".$filter[$i]['data']['value']; break;\n\t\t\t\t\t\t\tcase 'lt' : $qs .= \" AND {$prefix}\".$filter[$i]['field'].\" < \".$filter[$i]['data']['value']; break;\n\t\t\t\t\t\t\tcase 'gt' : $qs .= \" AND {$prefix}\".$filter[$i]['field'].\" > \".$filter[$i]['data']['value']; break;\n\t\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'date' :\n\t\t\t\t\t\tswitch ($filter[$i]['data']['comparison']) {\n\t\t\t\t\t\t\tcase 'eq' : $qs .= \" AND {$prefix}\".$filter[$i]['field'].\" = '\".date('Y-m-d',strtotime($filter[$i]['data']['value'])).\"'\"; break;\n\t\t\t\t\t\t\tcase 'lt' : $qs .= \" AND {$prefix}\".$filter[$i]['field'].\" < '\".date('Y-m-d',strtotime($filter[$i]['data']['value'])).\"'\"; break;\n\t\t\t\t\t\t\tcase 'gt' : $qs .= \" AND {$prefix}\".$filter[$i]['field'].\" > '\".date('Y-m-d',strtotime($filter[$i]['data']['value'])).\"'\"; break;\n\t\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$where .= $qs;\n\t\t}\n\n\t\treturn $where;\n\t}"
] | [
"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.45469078",
"0.4531422",
"0.45150632",
"0.44861293",
"0.44824192",
"0.44576657",
"0.44537464",
"0.44526276",
"0.443858",
"0.44352853"
] | 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_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceprice1['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE1, $priceprice1['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE1, $priceprice1, $comparison);\n }",
"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 = $collection->getConnection( );\n\t\t\t\t$sql = $adapter->prepareSqlCondition( 'at_' . $field . '.qty', $condition );\n\t\t\t\t$collection->getSelect( )->where( $sql );\n\t\t\t}\n\n\t\t\treturn $this;\n\t\t}",
"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 ->join('categories', 'subcategories.category_id', '=', 'categories.id')\n ->select('products.*', 'categories.categories_name')\n ->where('products.price','>=', $min_price)\n ->where('products.price','<=', $max_price)\n ->Paginate(12);\n return json_encode($products);\n }",
"protected function minimum($value)\n {\n if ($value) {\n return $this->builder->where('price1' ,\">=\", $value);\n }\n\n return $this->builder;\n }",
"public function filterByQty($qty = null, $comparison = null)\n {\n if (is_array($qty)) {\n $useMinMax = false;\n if (isset($qty['min'])) {\n $this->addUsingAlias(AliProductTableMap::COL_QTY, $qty['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($qty['max'])) {\n $this->addUsingAlias(AliProductTableMap::COL_QTY, $qty['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliProductTableMap::COL_QTY, $qty, $comparison);\n }",
"public function filterByMinprice($minprice = null, $comparison = null)\n {\n if (is_array($minprice)) {\n $useMinMax = false;\n if (isset($minprice['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($minprice['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice, $comparison);\n }",
"public function filterByQty($qty = null, $comparison = null)\n {\n if (is_array($qty)) {\n $useMinMax = false;\n if (isset($qty['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_QTY, $qty['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($qty['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_QTY, $qty['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_QTY, $qty, $comparison);\n }",
"public function filterByQty($qty = null, $comparison = null)\n {\n if (is_array($qty)) {\n $useMinMax = false;\n if (isset($qty['min'])) {\n $this->addUsingAlias(WhseitempackTableMap::COL_QTY, $qty['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($qty['max'])) {\n $this->addUsingAlias(WhseitempackTableMap::COL_QTY, $qty['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(WhseitempackTableMap::COL_QTY, $qty, $comparison);\n }",
"function addColumnQtyFilterToCollection($collection, $column) {\n\t\t\t$helper = $this->getWarehouseHelper( );\n\t\t\t$config = $helper->getConfig( );\n\n\t\t\tif (!$config->isCatalogBackendGridQtyVisible( )) {\n\t\t\t\treturn $this;\n\t\t\t}\n\n\t\t\t$adapter = $collection->getConnection( );\n\t\t\t$condition = $column->getFilter( )->getCondition( );\n\t\t\t$select = $collection->getSelect( );\n\t\t\t$qtys = 'SUM(si.qty)';\n\t\t\t$table = $collection->getTable( 'cataloginventory/stock_item' );\n\t\t\t$select->joinInner( array( 'si' => $table ), '(e.entity_id = si.product_id)', array( 'qtys' => $qtys ) );\n\t\t\t$select->group( array( 'e.entity_id' ) );\n\t\t\t$conditionPieces = array( );\n\n\t\t\tif (isset( $condition['from'] )) {\n\t\t\t\tarray_push( $conditionPieces, $qtys . ' >= ' . $adapter->quote( $condition['from'] ) );\n\t\t\t}\n\n\n\t\t\tif (isset( $condition['to'] )) {\n\t\t\t\tarray_push( $conditionPieces, $qtys . ' <= ' . $adapter->quote( $condition['to'] ) );\n\t\t\t}\n\n\n\t\t\tif (count( $conditionPieces )) {\n\t\t\t\t$select->having( implode( ' AND ', $conditionPieces ) );\n\t\t\t}\n\n\t\t\treturn $this;\n\t\t}",
"public function getMinimalPrice($qty = null)\n {\n /* method is calling many time so using variable */\n $tablePrefix = DB::getTablePrefix();\n\n $result = ProductFlat::join('products', 'product_flat.product_id', '=', 'products.id')\n ->distinct()\n ->where('products.parent_id', $this->product->id)\n ->selectRaw(\"IF( {$tablePrefix}product_flat.special_price_from IS NOT NULL\n AND {$tablePrefix}product_flat.special_price_to IS NOT NULL , IF( NOW( ) >= {$tablePrefix}product_flat.special_price_from\n AND NOW( ) <= {$tablePrefix}product_flat.special_price_to, IF( {$tablePrefix}product_flat.special_price IS NULL OR {$tablePrefix}product_flat.special_price = 0 , {$tablePrefix}product_flat.price, LEAST( {$tablePrefix}product_flat.special_price, {$tablePrefix}product_flat.price ) ) , {$tablePrefix}product_flat.price ) , IF( {$tablePrefix}product_flat.special_price_from IS NULL , IF( {$tablePrefix}product_flat.special_price_to IS NULL , IF( {$tablePrefix}product_flat.special_price IS NULL OR {$tablePrefix}product_flat.special_price = 0 , {$tablePrefix}product_flat.price, LEAST( {$tablePrefix}product_flat.special_price, {$tablePrefix}product_flat.price ) ) , IF( NOW( ) <= {$tablePrefix}product_flat.special_price_to, IF( {$tablePrefix}product_flat.special_price IS NULL OR {$tablePrefix}product_flat.special_price = 0 , {$tablePrefix}product_flat.price, LEAST( {$tablePrefix}product_flat.special_price, {$tablePrefix}product_flat.price ) ) , {$tablePrefix}product_flat.price ) ) , IF( {$tablePrefix}product_flat.special_price_to IS NULL , IF( NOW( ) >= {$tablePrefix}product_flat.special_price_from, IF( {$tablePrefix}product_flat.special_price IS NULL OR {$tablePrefix}product_flat.special_price = 0 , {$tablePrefix}product_flat.price, LEAST( {$tablePrefix}product_flat.special_price, {$tablePrefix}product_flat.price ) ) , {$tablePrefix}product_flat.price ) , {$tablePrefix}product_flat.price ) ) ) AS min_price\")\n ->where('product_flat.channel', core()->getCurrentChannelCode())\n ->get();\n\n\n $minPrices = [];\n\n foreach ($result as $price) {\n $minPrices[] = $price->min_price;\n }\n\n if (empty($minPrices)) {\n return 0;\n }\n\n return min($minPrices);\n }",
"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 $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price, $comparison);\n }",
"public function GetMinimumPrice($customer_id, $value1, $value2) {\r\n\r\n \t$query = $this->_hotelPDO->prepare(\"SELECT * FROM `master_hotel_price` WHERE `customer_id` = '$customer_id' AND ((`rack_epi` BETWEEN '$value1' AND '$value2') OR (`rack_cpi` BETWEEN '$value1' AND '$value2') OR (`rack_mapi` BETWEEN '$value1' AND '$value2') OR (`rack_apai` BETWEEN '$value1' AND '$value2') OR (`btb_epi` BETWEEN '$value1' AND '$value2') OR (`btb_cpi` BETWEEN '$value1' AND '$value2') OR (`btb_mapi` BETWEEN '$value1' AND '$value2') OR (`sea_epi` BETWEEN '$value1' AND '$value2') OR (`sea_cpi` BETWEEN '$value1' AND '$value2') OR (`sea_mapi` BETWEEN '$value1' AND '$value2') OR (`sea_apai` BETWEEN '$value1' AND '$value2') OR (`prom_epi` BETWEEN '$value1' AND '$value2') OR (`prom_cpi` BETWEEN '$value1' AND '$value2') OR (`prom_mapi` BETWEEN '$value1' AND '$value2') OR (`prom_apai` BETWEEN '$value1' AND '$value2'))\");\r\n \t$query->execute() or die($this->_hotelPDO->error);\r\n \t$rows = $query->fetchAll(PDO::FETCH_ASSOC);\r\n\r\n \treturn $rows;\r\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price))\n {\n $useMinMax = false;\n if (isset($price['min']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax)\n {\n return $this;\n }\n if (null === $comparison)\n {\n $comparison = Criteria::IN;\n }\n }\n return $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price, $comparison);\n }",
"public function minPrice(){\n //$prices=\\DB::table('min_price')->get();\n\n $prices= \\DB::table('pricedata')\n ->select('fuelTypeID',\\DB::raw('min(fuelPrice) as min_price'))\n -> groupBy ('fuelTypeID')\n ->get();\n\n return response()->json( $prices);\n }",
"public function filterByName1($name1 = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($name1)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_NAME1, $name1, $comparison);\n }",
"public function getProductsSQL($section,$skipPrice=false){\n $sql = ' FROM sr_shop_product AS p LEFT OUTER JOIN sr_shop_product AS m ON p.`id`=m.`parent_id`';\n $conditions = array();\n foreach($section['filterOptions'] as $optionId){\n $filter = $_REQUEST['filters'][$optionId];\n if(!is_array($filter) || !count($filter)) continue;\n foreach($filter as &$f){\n $f = \"'\".Helpers::mysql_escape($f).\"'\";\n }\n $tableAlias = 'o'.(int)$optionId;\n $sql .=\"INNER JOIN sr_shop_option_value AS \".$tableAlias.\"\n ON p.`id`=\".$tableAlias.\".`main_product_id` \";\n array_push($conditions,\n $tableAlias.'.option_id='.(int)$optionId.' AND '.$tableAlias.\".`value` in (\".implode(',',$filter).\")\"\n );\n }\n $conditions = count($conditions) ? ' AND '.implode(' AND ',$conditions) : '';\n $priceFilter = '';\n if(!$skipPrice){\n $price_from = (float)$_REQUEST['price_from'];\n $price_to = (float)$_REQUEST['price_to'];\n if($price_from>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price>='.$price_from.') ||\n (m.sale_price=0 AND m.price>0 AND m.price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price>='.$price_from.'))';\n }\n if($price_to>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price<='.$price_to.') ||\n (m.sale_price=0 AND m.price>0 AND m.price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price<='.$price_to.'))';\n }\n }\n $sql .= 'WHERE p.`parent_id`=0 and p.`active`=1 and p.`section_id` in ('.$section['cat_ids'].')'.$conditions.$priceFilter.' ORDER BY p.`instock` desc, p.`order` asc';\n return $sql;\n }",
"function beforeLoadProductLowstockCollection($collection) {\n\t\t\t$helper = $this->getWarehouseHelper( );\n\t\t\t$inventoryHelper = $helper->getCatalogInventoryHelper( );\n\t\t\t$select = $collection->getSelect( );\n\t\t\t$stockIds = $helper->getStockIds( );\n\t\t\tforeach ($stockIds as $stockId) {\n\t\t\t\t$qtyFieldName = 'qty_' . $stockId;\n\t\t\t\t$collection->joinField( $qtyFieldName, 'cataloginventory/stock_item', 'qty', 'product_id=entity_id', ( '{{table}}.stock_id = \\'' . $stockId . '\\'' ), 'left' );\n\t\t\t}\n\n\t\t\t$queryPieces = array( );\n\t\t\tforeach ($stockIds as $stockId) {\n\t\t\t\t$stockItemTableAlias = 'at_qty_' . $stockId;\n\t\t\t\tarray_push( $queryPieces, sprintf( '(IF(%s, %d, %s)=1)', $stockItemTableAlias . '.use_config_manage_stock', $inventoryHelper->getManageStock( ), $stockItemTableAlias . '.manage_stock' ) );\n\t\t\t}\n\n\n\t\t\tif (count( $queryPieces )) {\n\t\t\t\t$select->where( implode( ' OR ', $queryPieces ) );\n\t\t\t}\n\n\t\t\t$queryPieces = array( );\n\t\t\tforeach ($stockIds as $stockId) {\n\t\t\t\t$stockItemTableAlias = 'at_qty_' . $stockId;\n\t\t\t\tarray_push( $queryPieces, sprintf( '(%s < IF(%s, %d, %s))', $stockItemTableAlias . '.qty', $stockItemTableAlias . '.use_config_notify_stock_qty', $inventoryHelper->getNotifyStockQty( ), $stockItemTableAlias . '.notify_stock_qty' ) );\n\t\t\t}\n\n\n\t\t\tif (count( $queryPieces )) {\n\t\t\t\t$select->where( implode( ' OR ', $queryPieces ) );\n\t\t\t}\n\n\t\t\t$collection->setOrder( 'sku', 'asc' );\n\t\t\treturn $this;\n\t\t}",
"public function sortPriceMan(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','muska']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function setMinPrice()\n {\n if (\n (isset($_GET['q']) && !isset($_GET['min'])) ||\n ! isset($_GET['q'])\n ) {\n if (Mage::getVersion() < '1.7.0.2') {\n $this->_productCollection->getSelect()->reset('order');\n $this->_productCollection->getSelect()->order('final_price','asc');\n $this->_minPrice = round($this->_productCollection->getFirstItem()->getFinalPrice());\n } else {\n $this->_minPrice = floor($this->_productCollection->getMinPrice());\n }\n\n $this->_searchSession->setMinPrice($this->_minPrice);\n } else {\n $this->_minPrice = $this->_searchSession->getMinPrice();\n }\n }",
"function getItemsByPrice($dbh, $min, $max)\r\n{\r\n \r\n $stmt = $dbh->prepare ( \"SELECT * FROM items WHERE items.price >= ? and items.price <= ?\"); \r\n\r\n $stmt->bindParam(1,$min);\r\n $stmt->bindParam(2,$max);\r\n\r\n if ($stmt->execute()) \r\n {\r\n $data = array();\r\n \r\n while ($row = $stmt->fetch()) \r\n { \r\n array_push($data, $row['name'], $row['price'], $row['quantity'],$row['quality']);\r\n }\r\n echo json_encode($data);\r\n \r\n }\r\n}",
"public function filterByPriceqty2($priceqty2 = null, $comparison = null)\n {\n if (is_array($priceqty2)) {\n $useMinMax = false;\n if (isset($priceqty2['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY2, $priceqty2['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceqty2['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY2, $priceqty2['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY2, $priceqty2, $comparison);\n }",
"public function sortPriceKids(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','decija']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function filterByPriceqty5($priceqty5 = null, $comparison = null)\n {\n if (is_array($priceqty5)) {\n $useMinMax = false;\n if (isset($priceqty5['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY5, $priceqty5['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceqty5['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY5, $priceqty5['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY5, $priceqty5, $comparison);\n }",
"public function filterByQuantity($quantity = null, $comparison = null)\n {\n if (is_array($quantity)) {\n $useMinMax = false;\n if (isset($quantity['min'])) {\n $this->addUsingAlias(OrdersLinesPeer::QUANTITY, $quantity['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($quantity['max'])) {\n $this->addUsingAlias(OrdersLinesPeer::QUANTITY, $quantity['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(OrdersLinesPeer::QUANTITY, $quantity, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(OrdersLinesPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(OrdersLinesPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(OrdersLinesPeer::PRICE, $price, $comparison);\n }",
"function filterInt($field, $value) {\n if (($value = ltrim($value, '=')) !== '') {\n switch ($value[0]) {\n case '>': $this->where($field, '>', (int) substr($value, 1)); break;\n case '<': $this->where($field, '<', (int) substr($value, 1)); break;\n case '!': $this->where($field, '<>', (int) substr($value, 1)); break;\n default: $this->where($field, '=', (int) $value); break;\n }\n }\n }",
"public function filter(Request $request){ \n \n if($request->priceMin!=null and $request->priceMax!=null and $request->year!=null){\n $produit=Stock::where('stockName',$request->name)\n ->whereBetween('stockPrice', array($request->priceMin, $request->priceMax))\n ->where('stockYear',$request->year)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();}\n elseif($request->priceMin!=null and $request->priceMax!=null and $request->year==null){\n $produit=Stock::where('stockName',$request->name)\n ->whereBetween('stockPrice', array($request->priceMin, $request->priceMax))\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n elseif ($request->priceMin!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockPrice','>=',$request->priceMin)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n elseif ($request->priceMax!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockPrice','<=',$request->priceMax)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n \n elseif($request->priceMin==null and $request->priceMax==null and $request->year!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockYear',$request->year)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n \n else{\n $produit=Stock::where('stockName',$request->name)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n return response()->json($produit);\n }",
"public function sortPriceWomen(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','zenska']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"static function getSearchDataPlusFilters($name, $page, $filters){\n $pager = self::numberOfProductsByPage() * $page;\n \n $stock = 0;\n \n $filte = explode(\"/\", $filters);\n \n $ids = join(\"','\",$filte); \n\n \n $inVariable = \"\";\n \n foreach($filte as $value) {\n if($value != \"stock\")\n $inVariable = $inVariable . \"'\" . $value . \"'\" . \",\";\n else\n $stock = 1;\n \n }\n $inVariable = rtrim($inVariable, ',');\n\n////////////////////////////////////////////////////////////////////////////////\n////////// SQL INJECTION PROBABLE VULNERABILITY, CHECK\n\n if($stock == 0)\n \n $results = \\DB::select(\"\n SELECT *\n FROM \" . self::$productTableName . \" \n WHERE LOWER(TITULO) like '%\" . $name .\"%' \n and NOMFABRICANTE in ($inVariable) \n LIMIT \". $pager .\", \" . self::numberOfProductsByPage()); \n \n \n if($stock == 1){ \n if($inVariable==\"\")\n \n \n $results = \\DB::select(\"\n SELECT *\n FROM \" . self::$productTableName . \" \n WHERE LOWER(TITULO) like '%\" . $name .\"%' \n \n and STOCK > '0' \n LIMIT \". $pager .\", \" . self::numberOfProductsByPage()); \n \n \n \n else\n\n $results = \\DB::select(\"\n SELECT *\n FROM \" . self::$productTableName . \" \n WHERE LOWER(TITULO) like '%\" . $name .\"%' \n and NOMFABRICANTE in ($inVariable)\n and STOCK > '0' \n \n LIMIT \". $pager .\", \" . self::numberOfProductsByPage()); \n \n \n \n \n }\n return $results;\n }",
"public function filterByInQty($inQty = null, $comparison = null)\n {\n if (is_array($inQty)) {\n $useMinMax = false;\n if (isset($inQty['min'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_IN_QTY, $inQty['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($inQty['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_IN_QTY, $inQty['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_IN_QTY, $inQty, $comparison);\n }"
] | [
"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.4924151",
"0.4905647",
"0.49008223",
"0.48967642",
"0.48635414",
"0.48616832",
"0.48612663",
"0.48345318",
"0.48266065"
] | 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 $useMinMax = true;\n }\n if (isset($priceqty1['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY1, $priceqty1['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY1, $priceqty1, $comparison);\n }",
"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 ->join('categories', 'subcategories.category_id', '=', 'categories.id')\n ->select('products.*', 'categories.categories_name')\n ->where('products.price','>=', $min_price)\n ->where('products.price','<=', $max_price)\n ->Paginate(12);\n return json_encode($products);\n }",
"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 $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price, $comparison);\n }",
"public function filterByPriceprice2($priceprice2 = null, $comparison = null)\n {\n if (is_array($priceprice2)) {\n $useMinMax = false;\n if (isset($priceprice2['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE2, $priceprice2['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceprice2['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE2, $priceprice2['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE2, $priceprice2, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price))\n {\n $useMinMax = false;\n if (isset($price['min']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax)\n {\n return $this;\n }\n if (null === $comparison)\n {\n $comparison = Criteria::IN;\n }\n }\n return $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price, $comparison);\n }",
"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_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceprice1['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE1, $priceprice1['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE1, $priceprice1, $comparison);\n }",
"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 = $collection->getConnection( );\n\t\t\t\t$sql = $adapter->prepareSqlCondition( 'at_' . $field . '.qty', $condition );\n\t\t\t\t$collection->getSelect( )->where( $sql );\n\t\t\t}\n\n\t\t\treturn $this;\n\t\t}",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(OrdersLinesPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(OrdersLinesPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(OrdersLinesPeer::PRICE, $price, $comparison);\n }",
"public function filterByQty($qty = null, $comparison = null)\n {\n if (is_array($qty)) {\n $useMinMax = false;\n if (isset($qty['min'])) {\n $this->addUsingAlias(AliProductTableMap::COL_QTY, $qty['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($qty['max'])) {\n $this->addUsingAlias(AliProductTableMap::COL_QTY, $qty['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliProductTableMap::COL_QTY, $qty, $comparison);\n }",
"public function filterAvailableProductsByPrice($minPrice, $maxPrice) {\n\n if ($this->PriceList && $this->nr_products_available) {\n\n //verificam daca preturile produselor salvate in priceList se incadreaza in intervalul min si max\n $nr_available = 0;\n foreach ($this->PriceList as $price) {\n //echo \"Pret:\".$price.' MinPrice:'.$minPrice.' Maxprice:'.$maxPrice;\n if ($minPrice <= $price && $price <= $maxPrice) {\n $nr_available++;\n //exit(\"Incrementez\");\n }\n }\n //updatam numarul de produse disponibile\n $this->nr_products_available = $nr_available;\n }\n }",
"public function getProductsSQL($section,$skipPrice=false){\n $sql = ' FROM sr_shop_product AS p LEFT OUTER JOIN sr_shop_product AS m ON p.`id`=m.`parent_id`';\n $conditions = array();\n foreach($section['filterOptions'] as $optionId){\n $filter = $_REQUEST['filters'][$optionId];\n if(!is_array($filter) || !count($filter)) continue;\n foreach($filter as &$f){\n $f = \"'\".Helpers::mysql_escape($f).\"'\";\n }\n $tableAlias = 'o'.(int)$optionId;\n $sql .=\"INNER JOIN sr_shop_option_value AS \".$tableAlias.\"\n ON p.`id`=\".$tableAlias.\".`main_product_id` \";\n array_push($conditions,\n $tableAlias.'.option_id='.(int)$optionId.' AND '.$tableAlias.\".`value` in (\".implode(',',$filter).\")\"\n );\n }\n $conditions = count($conditions) ? ' AND '.implode(' AND ',$conditions) : '';\n $priceFilter = '';\n if(!$skipPrice){\n $price_from = (float)$_REQUEST['price_from'];\n $price_to = (float)$_REQUEST['price_to'];\n if($price_from>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price>='.$price_from.') ||\n (m.sale_price=0 AND m.price>0 AND m.price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price>='.$price_from.'))';\n }\n if($price_to>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price<='.$price_to.') ||\n (m.sale_price=0 AND m.price>0 AND m.price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price<='.$price_to.'))';\n }\n }\n $sql .= 'WHERE p.`parent_id`=0 and p.`active`=1 and p.`section_id` in ('.$section['cat_ids'].')'.$conditions.$priceFilter.' ORDER BY p.`instock` desc, p.`order` asc';\n return $sql;\n }",
"public function filterByQty($qty = null, $comparison = null)\n {\n if (is_array($qty)) {\n $useMinMax = false;\n if (isset($qty['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_QTY, $qty['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($qty['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_QTY, $qty['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_QTY, $qty, $comparison);\n }",
"public function GetMinimumPrice($customer_id, $value1, $value2) {\r\n\r\n \t$query = $this->_hotelPDO->prepare(\"SELECT * FROM `master_hotel_price` WHERE `customer_id` = '$customer_id' AND ((`rack_epi` BETWEEN '$value1' AND '$value2') OR (`rack_cpi` BETWEEN '$value1' AND '$value2') OR (`rack_mapi` BETWEEN '$value1' AND '$value2') OR (`rack_apai` BETWEEN '$value1' AND '$value2') OR (`btb_epi` BETWEEN '$value1' AND '$value2') OR (`btb_cpi` BETWEEN '$value1' AND '$value2') OR (`btb_mapi` BETWEEN '$value1' AND '$value2') OR (`sea_epi` BETWEEN '$value1' AND '$value2') OR (`sea_cpi` BETWEEN '$value1' AND '$value2') OR (`sea_mapi` BETWEEN '$value1' AND '$value2') OR (`sea_apai` BETWEEN '$value1' AND '$value2') OR (`prom_epi` BETWEEN '$value1' AND '$value2') OR (`prom_cpi` BETWEEN '$value1' AND '$value2') OR (`prom_mapi` BETWEEN '$value1' AND '$value2') OR (`prom_apai` BETWEEN '$value1' AND '$value2'))\");\r\n \t$query->execute() or die($this->_hotelPDO->error);\r\n \t$rows = $query->fetchAll(PDO::FETCH_ASSOC);\r\n\r\n \treturn $rows;\r\n }",
"function addColumnQtyFilterToCollection($collection, $column) {\n\t\t\t$helper = $this->getWarehouseHelper( );\n\t\t\t$config = $helper->getConfig( );\n\n\t\t\tif (!$config->isCatalogBackendGridQtyVisible( )) {\n\t\t\t\treturn $this;\n\t\t\t}\n\n\t\t\t$adapter = $collection->getConnection( );\n\t\t\t$condition = $column->getFilter( )->getCondition( );\n\t\t\t$select = $collection->getSelect( );\n\t\t\t$qtys = 'SUM(si.qty)';\n\t\t\t$table = $collection->getTable( 'cataloginventory/stock_item' );\n\t\t\t$select->joinInner( array( 'si' => $table ), '(e.entity_id = si.product_id)', array( 'qtys' => $qtys ) );\n\t\t\t$select->group( array( 'e.entity_id' ) );\n\t\t\t$conditionPieces = array( );\n\n\t\t\tif (isset( $condition['from'] )) {\n\t\t\t\tarray_push( $conditionPieces, $qtys . ' >= ' . $adapter->quote( $condition['from'] ) );\n\t\t\t}\n\n\n\t\t\tif (isset( $condition['to'] )) {\n\t\t\t\tarray_push( $conditionPieces, $qtys . ' <= ' . $adapter->quote( $condition['to'] ) );\n\t\t\t}\n\n\n\t\t\tif (count( $conditionPieces )) {\n\t\t\t\t$select->having( implode( ' AND ', $conditionPieces ) );\n\t\t\t}\n\n\t\t\treturn $this;\n\t\t}",
"public function filterByName2($name2 = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($name2)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_NAME2, $name2, $comparison);\n }",
"public function filterByQty($qty = null, $comparison = null)\n {\n if (is_array($qty)) {\n $useMinMax = false;\n if (isset($qty['min'])) {\n $this->addUsingAlias(WhseitempackTableMap::COL_QTY, $qty['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($qty['max'])) {\n $this->addUsingAlias(WhseitempackTableMap::COL_QTY, $qty['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(WhseitempackTableMap::COL_QTY, $qty, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price, $comparison);\n }",
"public function scopePrice($query, $min = null, $max = null)\n {\n if($min)\n $query->where('internet_price', '>=', $min);\n if($max)\n $query->where('internet_price', '<=', $max)->where('internet_price', '!=', 0);\n return $query;\n }",
"public function filterByQcnokey2($qcnokey2 = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($qcnokey2)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(ItemInspectNoteTableMap::COL_QCNOKEY2, $qcnokey2, $comparison);\n }",
"public function scopeWhenMinAndMaxPrice($query, $data)\n {\n if (isset($data['min_price']) and !__isEmpty($data['min_price'])) {\n $query->where('price', '>=', calculateBaseCurrency($data['min_price']));\n }\n\n if (isset($data['max_price']) and !__isEmpty($data['max_price'])) {\n $query->where('price', '<=', calculateBaseCurrency($data['max_price']));\n }\n\n return $query;\n }",
"public function filterByMinprice($minprice = null, $comparison = null)\n {\n if (is_array($minprice)) {\n $useMinMax = false;\n if (isset($minprice['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($minprice['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice, $comparison);\n }",
"function getItemsByPrice($dbh, $min, $max)\r\n{\r\n \r\n $stmt = $dbh->prepare ( \"SELECT * FROM items WHERE items.price >= ? and items.price <= ?\"); \r\n\r\n $stmt->bindParam(1,$min);\r\n $stmt->bindParam(2,$max);\r\n\r\n if ($stmt->execute()) \r\n {\r\n $data = array();\r\n \r\n while ($row = $stmt->fetch()) \r\n { \r\n array_push($data, $row['name'], $row['price'], $row['quantity'],$row['quality']);\r\n }\r\n echo json_encode($data);\r\n \r\n }\r\n}",
"public function sortPriceMan(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','muska']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function sortPriceWomen(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','zenska']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function sortPriceKids(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','decija']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(SaleTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(SaleTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(SaleTableMap::COL_PRICE, $price, $comparison);\n }",
"public function filterByPriceqty3($priceqty3 = null, $comparison = null)\n {\n if (is_array($priceqty3)) {\n $useMinMax = false;\n if (isset($priceqty3['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY3, $priceqty3['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceqty3['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY3, $priceqty3['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY3, $priceqty3, $comparison);\n }",
"public function scopeSelectMinAndMaxPrice($query)\n {\n return $query->select(DB::raw('MAX(price) as max_price'), DB::raw('MIN(price) as min_price'));\n }",
"function getPriceFilter($price)\n {\n $products = product::whereBetween('sale_price', [0, $price])->get();\n return view('products')->with('products', $products);\n }",
"public function filterByQuantity($quantity = null, $comparison = null)\n {\n if (is_array($quantity)) {\n $useMinMax = false;\n if (isset($quantity['min'])) {\n $this->addUsingAlias(OrdersLinesPeer::QUANTITY, $quantity['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($quantity['max'])) {\n $this->addUsingAlias(OrdersLinesPeer::QUANTITY, $quantity['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(OrdersLinesPeer::QUANTITY, $quantity, $comparison);\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.4928765",
"0.49185088",
"0.4900005",
"0.48904723",
"0.48897967",
"0.48502633",
"0.4834989",
"0.48342633",
"0.4826399",
"0.48076487"
] | 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 = $collection->getConnection( );\n\t\t\t\t$sql = $adapter->prepareSqlCondition( 'at_' . $field . '.qty', $condition );\n\t\t\t\t$collection->getSelect( )->where( $sql );\n\t\t\t}\n\n\t\t\treturn $this;\n\t\t}",
"public function filterByPriceprice3($priceprice3 = null, $comparison = null)\n {\n if (is_array($priceprice3)) {\n $useMinMax = false;\n if (isset($priceprice3['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE3, $priceprice3['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceprice3['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE3, $priceprice3['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE3, $priceprice3, $comparison);\n }",
"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 ->join('categories', 'subcategories.category_id', '=', 'categories.id')\n ->select('products.*', 'categories.categories_name')\n ->where('products.price','>=', $min_price)\n ->where('products.price','<=', $max_price)\n ->Paginate(12);\n return json_encode($products);\n }",
"public function filterByQty($qty = null, $comparison = null)\n {\n if (is_array($qty)) {\n $useMinMax = false;\n if (isset($qty['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_QTY, $qty['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($qty['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_QTY, $qty['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_QTY, $qty, $comparison);\n }",
"public function filterByQty($qty = null, $comparison = null)\n {\n if (is_array($qty)) {\n $useMinMax = false;\n if (isset($qty['min'])) {\n $this->addUsingAlias(AliProductTableMap::COL_QTY, $qty['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($qty['max'])) {\n $this->addUsingAlias(AliProductTableMap::COL_QTY, $qty['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliProductTableMap::COL_QTY, $qty, $comparison);\n }",
"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 $useMinMax = true;\n }\n if (isset($priceqty1['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY1, $priceqty1['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY1, $priceqty1, $comparison);\n }",
"public function filterByQty($qty = null, $comparison = null)\n {\n if (is_array($qty)) {\n $useMinMax = false;\n if (isset($qty['min'])) {\n $this->addUsingAlias(WhseitempackTableMap::COL_QTY, $qty['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($qty['max'])) {\n $this->addUsingAlias(WhseitempackTableMap::COL_QTY, $qty['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(WhseitempackTableMap::COL_QTY, $qty, $comparison);\n }",
"public function getProductsSQL($section,$skipPrice=false){\n $sql = ' FROM sr_shop_product AS p LEFT OUTER JOIN sr_shop_product AS m ON p.`id`=m.`parent_id`';\n $conditions = array();\n foreach($section['filterOptions'] as $optionId){\n $filter = $_REQUEST['filters'][$optionId];\n if(!is_array($filter) || !count($filter)) continue;\n foreach($filter as &$f){\n $f = \"'\".Helpers::mysql_escape($f).\"'\";\n }\n $tableAlias = 'o'.(int)$optionId;\n $sql .=\"INNER JOIN sr_shop_option_value AS \".$tableAlias.\"\n ON p.`id`=\".$tableAlias.\".`main_product_id` \";\n array_push($conditions,\n $tableAlias.'.option_id='.(int)$optionId.' AND '.$tableAlias.\".`value` in (\".implode(',',$filter).\")\"\n );\n }\n $conditions = count($conditions) ? ' AND '.implode(' AND ',$conditions) : '';\n $priceFilter = '';\n if(!$skipPrice){\n $price_from = (float)$_REQUEST['price_from'];\n $price_to = (float)$_REQUEST['price_to'];\n if($price_from>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price>='.$price_from.') ||\n (m.sale_price=0 AND m.price>0 AND m.price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price>='.$price_from.'))';\n }\n if($price_to>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price<='.$price_to.') ||\n (m.sale_price=0 AND m.price>0 AND m.price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price<='.$price_to.'))';\n }\n }\n $sql .= 'WHERE p.`parent_id`=0 and p.`active`=1 and p.`section_id` in ('.$section['cat_ids'].')'.$conditions.$priceFilter.' ORDER BY p.`instock` desc, p.`order` asc';\n return $sql;\n }",
"function addColumnQtyFilterToCollection($collection, $column) {\n\t\t\t$helper = $this->getWarehouseHelper( );\n\t\t\t$config = $helper->getConfig( );\n\n\t\t\tif (!$config->isCatalogBackendGridQtyVisible( )) {\n\t\t\t\treturn $this;\n\t\t\t}\n\n\t\t\t$adapter = $collection->getConnection( );\n\t\t\t$condition = $column->getFilter( )->getCondition( );\n\t\t\t$select = $collection->getSelect( );\n\t\t\t$qtys = 'SUM(si.qty)';\n\t\t\t$table = $collection->getTable( 'cataloginventory/stock_item' );\n\t\t\t$select->joinInner( array( 'si' => $table ), '(e.entity_id = si.product_id)', array( 'qtys' => $qtys ) );\n\t\t\t$select->group( array( 'e.entity_id' ) );\n\t\t\t$conditionPieces = array( );\n\n\t\t\tif (isset( $condition['from'] )) {\n\t\t\t\tarray_push( $conditionPieces, $qtys . ' >= ' . $adapter->quote( $condition['from'] ) );\n\t\t\t}\n\n\n\t\t\tif (isset( $condition['to'] )) {\n\t\t\t\tarray_push( $conditionPieces, $qtys . ' <= ' . $adapter->quote( $condition['to'] ) );\n\t\t\t}\n\n\n\t\t\tif (count( $conditionPieces )) {\n\t\t\t\t$select->having( implode( ' AND ', $conditionPieces ) );\n\t\t\t}\n\n\t\t\treturn $this;\n\t\t}",
"public function firstThreePricePanel(){\n $price = self::having('id' , '<=' , 3)->get();\n\n return $price;\n }",
"public function getMinimalPrice($qty = null)\n {\n /* method is calling many time so using variable */\n $tablePrefix = DB::getTablePrefix();\n\n $result = ProductFlat::join('products', 'product_flat.product_id', '=', 'products.id')\n ->distinct()\n ->where('products.parent_id', $this->product->id)\n ->selectRaw(\"IF( {$tablePrefix}product_flat.special_price_from IS NOT NULL\n AND {$tablePrefix}product_flat.special_price_to IS NOT NULL , IF( NOW( ) >= {$tablePrefix}product_flat.special_price_from\n AND NOW( ) <= {$tablePrefix}product_flat.special_price_to, IF( {$tablePrefix}product_flat.special_price IS NULL OR {$tablePrefix}product_flat.special_price = 0 , {$tablePrefix}product_flat.price, LEAST( {$tablePrefix}product_flat.special_price, {$tablePrefix}product_flat.price ) ) , {$tablePrefix}product_flat.price ) , IF( {$tablePrefix}product_flat.special_price_from IS NULL , IF( {$tablePrefix}product_flat.special_price_to IS NULL , IF( {$tablePrefix}product_flat.special_price IS NULL OR {$tablePrefix}product_flat.special_price = 0 , {$tablePrefix}product_flat.price, LEAST( {$tablePrefix}product_flat.special_price, {$tablePrefix}product_flat.price ) ) , IF( NOW( ) <= {$tablePrefix}product_flat.special_price_to, IF( {$tablePrefix}product_flat.special_price IS NULL OR {$tablePrefix}product_flat.special_price = 0 , {$tablePrefix}product_flat.price, LEAST( {$tablePrefix}product_flat.special_price, {$tablePrefix}product_flat.price ) ) , {$tablePrefix}product_flat.price ) ) , IF( {$tablePrefix}product_flat.special_price_to IS NULL , IF( NOW( ) >= {$tablePrefix}product_flat.special_price_from, IF( {$tablePrefix}product_flat.special_price IS NULL OR {$tablePrefix}product_flat.special_price = 0 , {$tablePrefix}product_flat.price, LEAST( {$tablePrefix}product_flat.special_price, {$tablePrefix}product_flat.price ) ) , {$tablePrefix}product_flat.price ) , {$tablePrefix}product_flat.price ) ) ) AS min_price\")\n ->where('product_flat.channel', core()->getCurrentChannelCode())\n ->get();\n\n\n $minPrices = [];\n\n foreach ($result as $price) {\n $minPrices[] = $price->min_price;\n }\n\n if (empty($minPrices)) {\n return 0;\n }\n\n return min($minPrices);\n }",
"public function filterByName3($name3 = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($name3)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_NAME3, $name3, $comparison);\n }",
"public function filterByMinprice($minprice = null, $comparison = null)\n {\n if (is_array($minprice)) {\n $useMinMax = false;\n if (isset($minprice['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($minprice['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice, $comparison);\n }",
"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 $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price, $comparison);\n }",
"public function filterByQuantity($quantity = null, $comparison = null)\n {\n if (is_array($quantity)) {\n $useMinMax = false;\n if (isset($quantity['min'])) {\n $this->addUsingAlias(OrdersLinesPeer::QUANTITY, $quantity['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($quantity['max'])) {\n $this->addUsingAlias(OrdersLinesPeer::QUANTITY, $quantity['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(OrdersLinesPeer::QUANTITY, $quantity, $comparison);\n }",
"function beforeLoadProductLowstockCollection($collection) {\n\t\t\t$helper = $this->getWarehouseHelper( );\n\t\t\t$inventoryHelper = $helper->getCatalogInventoryHelper( );\n\t\t\t$select = $collection->getSelect( );\n\t\t\t$stockIds = $helper->getStockIds( );\n\t\t\tforeach ($stockIds as $stockId) {\n\t\t\t\t$qtyFieldName = 'qty_' . $stockId;\n\t\t\t\t$collection->joinField( $qtyFieldName, 'cataloginventory/stock_item', 'qty', 'product_id=entity_id', ( '{{table}}.stock_id = \\'' . $stockId . '\\'' ), 'left' );\n\t\t\t}\n\n\t\t\t$queryPieces = array( );\n\t\t\tforeach ($stockIds as $stockId) {\n\t\t\t\t$stockItemTableAlias = 'at_qty_' . $stockId;\n\t\t\t\tarray_push( $queryPieces, sprintf( '(IF(%s, %d, %s)=1)', $stockItemTableAlias . '.use_config_manage_stock', $inventoryHelper->getManageStock( ), $stockItemTableAlias . '.manage_stock' ) );\n\t\t\t}\n\n\n\t\t\tif (count( $queryPieces )) {\n\t\t\t\t$select->where( implode( ' OR ', $queryPieces ) );\n\t\t\t}\n\n\t\t\t$queryPieces = array( );\n\t\t\tforeach ($stockIds as $stockId) {\n\t\t\t\t$stockItemTableAlias = 'at_qty_' . $stockId;\n\t\t\t\tarray_push( $queryPieces, sprintf( '(%s < IF(%s, %d, %s))', $stockItemTableAlias . '.qty', $stockItemTableAlias . '.use_config_notify_stock_qty', $inventoryHelper->getNotifyStockQty( ), $stockItemTableAlias . '.notify_stock_qty' ) );\n\t\t\t}\n\n\n\t\t\tif (count( $queryPieces )) {\n\t\t\t\t$select->where( implode( ' OR ', $queryPieces ) );\n\t\t\t}\n\n\t\t\t$collection->setOrder( 'sku', 'asc' );\n\t\t\treturn $this;\n\t\t}",
"public function sortPriceMan(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','muska']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function filterByQuantity($quantity = null, $comparison = null)\n {\n if (is_array($quantity)) {\n $useMinMax = false;\n if (isset($quantity['min'])) {\n $this->addUsingAlias(ItemInCartTableMap::COL_QUANTITY, $quantity['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($quantity['max'])) {\n $this->addUsingAlias(ItemInCartTableMap::COL_QUANTITY, $quantity['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(ItemInCartTableMap::COL_QUANTITY, $quantity, $comparison);\n }",
"function PriceQuery() {\n\t\t$csvilog = JRequest::getVar('csvilog');\n\t\t\n\t\t/* Check if the price is including or excluding tax */\n\t\tif ($this->product_tax && $this->price_with_tax && is_null($this->product_price)) {\n\t\t\tif (strlen($this->price_with_tax) == 0) $this->product_price = null;\n\t\t\telse $this->product_price = $this->price_with_tax / (1+($this->product_tax/100));\n\t\t}\n\t\telse if (strlen($this->product_price) == 0) $this->product_price = null;\n\t\t\n\t\t/* Bind the data */\n\t\t$this->_vm_product_price->bind($this);\n\t\t\n\t\t/* Calculate the new price */\n\t\t$this->_vm_product_price->CalculatePrice();\n\t\t\n\t\tif (is_null($this->product_price)) {\n\t\t\t/* Delete the price */\n\t\t\t$this->_vm_product_price->delete();\n\t\t}\n\t\telse {\n\t\t\t/* Store the price*/\n\t\t\t/* Add some variables if needed */\n\t\t\t/* Set the modified date if the user has not done so */\n\t\t\tif (!$this->_vm_product_price->getValue('mdate')) $this->_vm_product_price->setValue('mdate', time());\n\t\t\t\n\t\t\t/* Set the create date if the user has not done so and there is no product_price_id */\n\t\t\tif (!$this->_vm_product_price->getValue('mdate') && !$this->_vm_product_price->getValue('product_price_id')) {\n\t\t\t\t$this->_vm_product_price->setValue('cdate', time());\n\t\t\t}\n\t\t\t\n\t\t\t/* Store the price */\n\t\t\t$this->_vm_product_price->store();\n\t\t}\n\t\t$csvilog->AddMessage('debug', JText::_('DEBUG_PRICE_QUERY'), true);\n\t}",
"public function filterByPriceqty5($priceqty5 = null, $comparison = null)\n {\n if (is_array($priceqty5)) {\n $useMinMax = false;\n if (isset($priceqty5['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY5, $priceqty5['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceqty5['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY5, $priceqty5['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY5, $priceqty5, $comparison);\n }",
"public function filterByPriceqty6($priceqty6 = null, $comparison = null)\n {\n if (is_array($priceqty6)) {\n $useMinMax = false;\n if (isset($priceqty6['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY6, $priceqty6['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceqty6['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY6, $priceqty6['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY6, $priceqty6, $comparison);\n }",
"public function sortPriceKids(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','decija']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"function getItemsByPrice($dbh, $min, $max)\r\n{\r\n \r\n $stmt = $dbh->prepare ( \"SELECT * FROM items WHERE items.price >= ? and items.price <= ?\"); \r\n\r\n $stmt->bindParam(1,$min);\r\n $stmt->bindParam(2,$max);\r\n\r\n if ($stmt->execute()) \r\n {\r\n $data = array();\r\n \r\n while ($row = $stmt->fetch()) \r\n { \r\n array_push($data, $row['name'], $row['price'], $row['quantity'],$row['quality']);\r\n }\r\n echo json_encode($data);\r\n \r\n }\r\n}",
"public function scopePrice($query, $min = null, $max = null)\n {\n if($min)\n $query->where('internet_price', '>=', $min);\n if($max)\n $query->where('internet_price', '<=', $max)->where('internet_price', '!=', 0);\n return $query;\n }",
"public function scopeWhenMinAndMaxPrice($query, $data)\n {\n if (isset($data['min_price']) and !__isEmpty($data['min_price'])) {\n $query->where('price', '>=', calculateBaseCurrency($data['min_price']));\n }\n\n if (isset($data['max_price']) and !__isEmpty($data['max_price'])) {\n $query->where('price', '<=', calculateBaseCurrency($data['max_price']));\n }\n\n return $query;\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price))\n {\n $useMinMax = false;\n if (isset($price['min']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax)\n {\n return $this;\n }\n if (null === $comparison)\n {\n $comparison = Criteria::IN;\n }\n }\n return $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price, $comparison);\n }",
"public function sortPriceWomen(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','zenska']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function setMinPrice()\n {\n if (\n (isset($_GET['q']) && !isset($_GET['min'])) ||\n ! isset($_GET['q'])\n ) {\n if (Mage::getVersion() < '1.7.0.2') {\n $this->_productCollection->getSelect()->reset('order');\n $this->_productCollection->getSelect()->order('final_price','asc');\n $this->_minPrice = round($this->_productCollection->getFirstItem()->getFinalPrice());\n } else {\n $this->_minPrice = floor($this->_productCollection->getMinPrice());\n }\n\n $this->_searchSession->setMinPrice($this->_minPrice);\n } else {\n $this->_minPrice = $this->_searchSession->getMinPrice();\n }\n }",
"protected function minimum($value)\n {\n if ($value) {\n return $this->builder->where('price1' ,\">=\", $value);\n }\n\n return $this->builder;\n }",
"public function price_filter( $filtered_posts = array() ) {\n\t global $wpdb;\n\n\t if ( isset( $_GET['max_price'] ) || isset( $_GET['min_price'] ) ) {\n\n\t\t\t$matched_products = array();\n\t\t\t$min = isset( $_GET['min_price'] ) ? floatval( $_GET['min_price'] ) : 0;\n\t\t\t$max = isset( $_GET['max_price'] ) ? floatval( $_GET['max_price'] ) : 9999999999;\n\n\t $matched_products_query = apply_filters( 'estimategadget_price_filter_results', $wpdb->get_results( $wpdb->prepare( '\n\t \tSELECT DISTINCT ID, post_parent, post_type FROM %1$s\n\t\t\t\tINNER JOIN %2$s ON ID = post_id\n\t\t\t\tWHERE post_type IN ( \"product\", \"product_variation\" )\n\t\t\t\tAND post_status = \"publish\"\n\t\t\t\tAND meta_key IN (\"' . implode( '\",\"', apply_filters( 'estimategadget_price_filter_meta_keys', array( '_price' ) ) ) . '\")\n\t\t\t\tAND meta_value BETWEEN %3$d AND %4$d\n\t\t\t', $wpdb->posts, $wpdb->postmeta, $min, $max ), OBJECT_K ), $min, $max );\n\n\t if ( $matched_products_query ) {\n\t foreach ( $matched_products_query as $product ) {\n\t if ( $product->post_type == 'product' ) {\n\t $matched_products[] = $product->ID;\n\t }\n\t if ( $product->post_parent > 0 && ! in_array( $product->post_parent, $matched_products ) ) {\n\t $matched_products[] = $product->post_parent;\n\t }\n\t }\n\t }\n\n\t // Filter the id's\n\t if ( 0 === sizeof( $filtered_posts ) ) {\n\t\t\t\t$filtered_posts = $matched_products;\n\t } else {\n\t\t\t\t$filtered_posts = array_intersect( $filtered_posts, $matched_products );\n\n\t }\n\t $filtered_posts[] = 0;\n\t }\n\n\t return (array) $filtered_posts;\n\t}"
] | [
"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.49589905",
"0.4957549",
"0.49495444",
"0.49327978",
"0.49301428",
"0.49234766",
"0.4920598",
"0.4917509",
"0.4865016",
"0.48168907"
] | 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_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceprice4['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE4, $priceprice4['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE4, $priceprice4, $comparison);\n }",
"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 ->join('categories', 'subcategories.category_id', '=', 'categories.id')\n ->select('products.*', 'categories.categories_name')\n ->where('products.price','>=', $min_price)\n ->where('products.price','<=', $max_price)\n ->Paginate(12);\n return json_encode($products);\n }",
"public function filterAvailableProductsByPrice($minPrice, $maxPrice) {\n\n if ($this->PriceList && $this->nr_products_available) {\n\n //verificam daca preturile produselor salvate in priceList se incadreaza in intervalul min si max\n $nr_available = 0;\n foreach ($this->PriceList as $price) {\n //echo \"Pret:\".$price.' MinPrice:'.$minPrice.' Maxprice:'.$maxPrice;\n if ($minPrice <= $price && $price <= $maxPrice) {\n $nr_available++;\n //exit(\"Incrementez\");\n }\n }\n //updatam numarul de produse disponibile\n $this->nr_products_available = $nr_available;\n }\n }",
"public function getProductsSQL($section,$skipPrice=false){\n $sql = ' FROM sr_shop_product AS p LEFT OUTER JOIN sr_shop_product AS m ON p.`id`=m.`parent_id`';\n $conditions = array();\n foreach($section['filterOptions'] as $optionId){\n $filter = $_REQUEST['filters'][$optionId];\n if(!is_array($filter) || !count($filter)) continue;\n foreach($filter as &$f){\n $f = \"'\".Helpers::mysql_escape($f).\"'\";\n }\n $tableAlias = 'o'.(int)$optionId;\n $sql .=\"INNER JOIN sr_shop_option_value AS \".$tableAlias.\"\n ON p.`id`=\".$tableAlias.\".`main_product_id` \";\n array_push($conditions,\n $tableAlias.'.option_id='.(int)$optionId.' AND '.$tableAlias.\".`value` in (\".implode(',',$filter).\")\"\n );\n }\n $conditions = count($conditions) ? ' AND '.implode(' AND ',$conditions) : '';\n $priceFilter = '';\n if(!$skipPrice){\n $price_from = (float)$_REQUEST['price_from'];\n $price_to = (float)$_REQUEST['price_to'];\n if($price_from>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price>='.$price_from.') ||\n (m.sale_price=0 AND m.price>0 AND m.price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price>='.$price_from.'))';\n }\n if($price_to>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price<='.$price_to.') ||\n (m.sale_price=0 AND m.price>0 AND m.price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price<='.$price_to.'))';\n }\n }\n $sql .= 'WHERE p.`parent_id`=0 and p.`active`=1 and p.`section_id` in ('.$section['cat_ids'].')'.$conditions.$priceFilter.' ORDER BY p.`instock` desc, p.`order` asc';\n return $sql;\n }",
"public function getMinimalPrice($qty = null)\n {\n /* method is calling many time so using variable */\n $tablePrefix = DB::getTablePrefix();\n\n $result = ProductFlat::join('products', 'product_flat.product_id', '=', 'products.id')\n ->distinct()\n ->where('products.parent_id', $this->product->id)\n ->selectRaw(\"IF( {$tablePrefix}product_flat.special_price_from IS NOT NULL\n AND {$tablePrefix}product_flat.special_price_to IS NOT NULL , IF( NOW( ) >= {$tablePrefix}product_flat.special_price_from\n AND NOW( ) <= {$tablePrefix}product_flat.special_price_to, IF( {$tablePrefix}product_flat.special_price IS NULL OR {$tablePrefix}product_flat.special_price = 0 , {$tablePrefix}product_flat.price, LEAST( {$tablePrefix}product_flat.special_price, {$tablePrefix}product_flat.price ) ) , {$tablePrefix}product_flat.price ) , IF( {$tablePrefix}product_flat.special_price_from IS NULL , IF( {$tablePrefix}product_flat.special_price_to IS NULL , IF( {$tablePrefix}product_flat.special_price IS NULL OR {$tablePrefix}product_flat.special_price = 0 , {$tablePrefix}product_flat.price, LEAST( {$tablePrefix}product_flat.special_price, {$tablePrefix}product_flat.price ) ) , IF( NOW( ) <= {$tablePrefix}product_flat.special_price_to, IF( {$tablePrefix}product_flat.special_price IS NULL OR {$tablePrefix}product_flat.special_price = 0 , {$tablePrefix}product_flat.price, LEAST( {$tablePrefix}product_flat.special_price, {$tablePrefix}product_flat.price ) ) , {$tablePrefix}product_flat.price ) ) , IF( {$tablePrefix}product_flat.special_price_to IS NULL , IF( NOW( ) >= {$tablePrefix}product_flat.special_price_from, IF( {$tablePrefix}product_flat.special_price IS NULL OR {$tablePrefix}product_flat.special_price = 0 , {$tablePrefix}product_flat.price, LEAST( {$tablePrefix}product_flat.special_price, {$tablePrefix}product_flat.price ) ) , {$tablePrefix}product_flat.price ) , {$tablePrefix}product_flat.price ) ) ) AS min_price\")\n ->where('product_flat.channel', core()->getCurrentChannelCode())\n ->get();\n\n\n $minPrices = [];\n\n foreach ($result as $price) {\n $minPrices[] = $price->min_price;\n }\n\n if (empty($minPrices)) {\n return 0;\n }\n\n return min($minPrices);\n }",
"public function filterByName4($name4 = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($name4)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_NAME4, $name4, $comparison);\n }",
"protected function minimum($value)\n {\n if ($value) {\n return $this->builder->where('price1' ,\">=\", $value);\n }\n\n return $this->builder;\n }",
"public function setMinPrice()\n {\n if (\n (isset($_GET['q']) && !isset($_GET['min'])) ||\n ! isset($_GET['q'])\n ) {\n if (Mage::getVersion() < '1.7.0.2') {\n $this->_productCollection->getSelect()->reset('order');\n $this->_productCollection->getSelect()->order('final_price','asc');\n $this->_minPrice = round($this->_productCollection->getFirstItem()->getFinalPrice());\n } else {\n $this->_minPrice = floor($this->_productCollection->getMinPrice());\n }\n\n $this->_searchSession->setMinPrice($this->_minPrice);\n } else {\n $this->_minPrice = $this->_searchSession->getMinPrice();\n }\n }",
"public function filterByMinprice($minprice = null, $comparison = null)\n {\n if (is_array($minprice)) {\n $useMinMax = false;\n if (isset($minprice['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($minprice['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice, $comparison);\n }",
"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 = $collection->getConnection( );\n\t\t\t\t$sql = $adapter->prepareSqlCondition( 'at_' . $field . '.qty', $condition );\n\t\t\t\t$collection->getSelect( )->where( $sql );\n\t\t\t}\n\n\t\t\treturn $this;\n\t\t}",
"public function filterByProductId($value) {\n $this->_filter->equalTo($this->_nameMapping['product'], $value);\n }",
"function getPriceFilter($price)\n {\n $products = product::whereBetween('sale_price', [0, $price])->get();\n return view('products')->with('products', $products);\n }",
"public function filter(Request $request){ \n \n if($request->priceMin!=null and $request->priceMax!=null and $request->year!=null){\n $produit=Stock::where('stockName',$request->name)\n ->whereBetween('stockPrice', array($request->priceMin, $request->priceMax))\n ->where('stockYear',$request->year)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();}\n elseif($request->priceMin!=null and $request->priceMax!=null and $request->year==null){\n $produit=Stock::where('stockName',$request->name)\n ->whereBetween('stockPrice', array($request->priceMin, $request->priceMax))\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n elseif ($request->priceMin!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockPrice','>=',$request->priceMin)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n elseif ($request->priceMax!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockPrice','<=',$request->priceMax)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n \n elseif($request->priceMin==null and $request->priceMax==null and $request->year!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockYear',$request->year)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n \n else{\n $produit=Stock::where('stockName',$request->name)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n return response()->json($produit);\n }",
"function getItemsByPrice($dbh, $min, $max)\r\n{\r\n \r\n $stmt = $dbh->prepare ( \"SELECT * FROM items WHERE items.price >= ? and items.price <= ?\"); \r\n\r\n $stmt->bindParam(1,$min);\r\n $stmt->bindParam(2,$max);\r\n\r\n if ($stmt->execute()) \r\n {\r\n $data = array();\r\n \r\n while ($row = $stmt->fetch()) \r\n { \r\n array_push($data, $row['name'], $row['price'], $row['quantity'],$row['quality']);\r\n }\r\n echo json_encode($data);\r\n \r\n }\r\n}",
"public function filterByQty($qty = null, $comparison = null)\n {\n if (is_array($qty)) {\n $useMinMax = false;\n if (isset($qty['min'])) {\n $this->addUsingAlias(AliProductTableMap::COL_QTY, $qty['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($qty['max'])) {\n $this->addUsingAlias(AliProductTableMap::COL_QTY, $qty['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliProductTableMap::COL_QTY, $qty, $comparison);\n }",
"public function scopePrice($query, $min = null, $max = null)\n {\n if($min)\n $query->where('internet_price', '>=', $min);\n if($max)\n $query->where('internet_price', '<=', $max)->where('internet_price', '!=', 0);\n return $query;\n }",
"public function minPrice(){\n //$prices=\\DB::table('min_price')->get();\n\n $prices= \\DB::table('pricedata')\n ->select('fuelTypeID',\\DB::raw('min(fuelPrice) as min_price'))\n -> groupBy ('fuelTypeID')\n ->get();\n\n return response()->json( $prices);\n }",
"public function filterByQty($qty = null, $comparison = null)\n {\n if (is_array($qty)) {\n $useMinMax = false;\n if (isset($qty['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_QTY, $qty['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($qty['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_QTY, $qty['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_QTY, $qty, $comparison);\n }",
"function filterInt($field, $value) {\n if (($value = ltrim($value, '=')) !== '') {\n switch ($value[0]) {\n case '>': $this->where($field, '>', (int) substr($value, 1)); break;\n case '<': $this->where($field, '<', (int) substr($value, 1)); break;\n case '!': $this->where($field, '<>', (int) substr($value, 1)); break;\n default: $this->where($field, '=', (int) $value); break;\n }\n }\n }",
"function PriceQuery() {\n\t\t$csvilog = JRequest::getVar('csvilog');\n\t\t\n\t\t/* Check if the price is including or excluding tax */\n\t\tif ($this->product_tax && $this->price_with_tax && is_null($this->product_price)) {\n\t\t\tif (strlen($this->price_with_tax) == 0) $this->product_price = null;\n\t\t\telse $this->product_price = $this->price_with_tax / (1+($this->product_tax/100));\n\t\t}\n\t\telse if (strlen($this->product_price) == 0) $this->product_price = null;\n\t\t\n\t\t/* Bind the data */\n\t\t$this->_vm_product_price->bind($this);\n\t\t\n\t\t/* Calculate the new price */\n\t\t$this->_vm_product_price->CalculatePrice();\n\t\t\n\t\tif (is_null($this->product_price)) {\n\t\t\t/* Delete the price */\n\t\t\t$this->_vm_product_price->delete();\n\t\t}\n\t\telse {\n\t\t\t/* Store the price*/\n\t\t\t/* Add some variables if needed */\n\t\t\t/* Set the modified date if the user has not done so */\n\t\t\tif (!$this->_vm_product_price->getValue('mdate')) $this->_vm_product_price->setValue('mdate', time());\n\t\t\t\n\t\t\t/* Set the create date if the user has not done so and there is no product_price_id */\n\t\t\tif (!$this->_vm_product_price->getValue('mdate') && !$this->_vm_product_price->getValue('product_price_id')) {\n\t\t\t\t$this->_vm_product_price->setValue('cdate', time());\n\t\t\t}\n\t\t\t\n\t\t\t/* Store the price */\n\t\t\t$this->_vm_product_price->store();\n\t\t}\n\t\t$csvilog->AddMessage('debug', JText::_('DEBUG_PRICE_QUERY'), true);\n\t}",
"public function sortPriceKids(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','decija']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function filterBySmProdPriceId($smProdPriceId = null, $comparison = null)\n {\n if (is_array($smProdPriceId)) {\n $useMinMax = false;\n if (isset($smProdPriceId['min'])) {\n $this->addUsingAlias(TblProdSmallerTableMap::COL_SM_PROD_PRICE_ID, $smProdPriceId['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($smProdPriceId['max'])) {\n $this->addUsingAlias(TblProdSmallerTableMap::COL_SM_PROD_PRICE_ID, $smProdPriceId['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(TblProdSmallerTableMap::COL_SM_PROD_PRICE_ID, $smProdPriceId, $comparison);\n }",
"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 $useMinMax = true;\n }\n if (isset($priceqty1['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY1, $priceqty1['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY1, $priceqty1, $comparison);\n }",
"function beforeLoadProductLowstockCollection($collection) {\n\t\t\t$helper = $this->getWarehouseHelper( );\n\t\t\t$inventoryHelper = $helper->getCatalogInventoryHelper( );\n\t\t\t$select = $collection->getSelect( );\n\t\t\t$stockIds = $helper->getStockIds( );\n\t\t\tforeach ($stockIds as $stockId) {\n\t\t\t\t$qtyFieldName = 'qty_' . $stockId;\n\t\t\t\t$collection->joinField( $qtyFieldName, 'cataloginventory/stock_item', 'qty', 'product_id=entity_id', ( '{{table}}.stock_id = \\'' . $stockId . '\\'' ), 'left' );\n\t\t\t}\n\n\t\t\t$queryPieces = array( );\n\t\t\tforeach ($stockIds as $stockId) {\n\t\t\t\t$stockItemTableAlias = 'at_qty_' . $stockId;\n\t\t\t\tarray_push( $queryPieces, sprintf( '(IF(%s, %d, %s)=1)', $stockItemTableAlias . '.use_config_manage_stock', $inventoryHelper->getManageStock( ), $stockItemTableAlias . '.manage_stock' ) );\n\t\t\t}\n\n\n\t\t\tif (count( $queryPieces )) {\n\t\t\t\t$select->where( implode( ' OR ', $queryPieces ) );\n\t\t\t}\n\n\t\t\t$queryPieces = array( );\n\t\t\tforeach ($stockIds as $stockId) {\n\t\t\t\t$stockItemTableAlias = 'at_qty_' . $stockId;\n\t\t\t\tarray_push( $queryPieces, sprintf( '(%s < IF(%s, %d, %s))', $stockItemTableAlias . '.qty', $stockItemTableAlias . '.use_config_notify_stock_qty', $inventoryHelper->getNotifyStockQty( ), $stockItemTableAlias . '.notify_stock_qty' ) );\n\t\t\t}\n\n\n\t\t\tif (count( $queryPieces )) {\n\t\t\t\t$select->where( implode( ' OR ', $queryPieces ) );\n\t\t\t}\n\n\t\t\t$collection->setOrder( 'sku', 'asc' );\n\t\t\treturn $this;\n\t\t}",
"public function price_filter( $filtered_posts = array() ) {\n\t global $wpdb;\n\n\t if ( isset( $_GET['max_price'] ) || isset( $_GET['min_price'] ) ) {\n\n\t\t\t$matched_products = array();\n\t\t\t$min = isset( $_GET['min_price'] ) ? floatval( $_GET['min_price'] ) : 0;\n\t\t\t$max = isset( $_GET['max_price'] ) ? floatval( $_GET['max_price'] ) : 9999999999;\n\n\t $matched_products_query = apply_filters( 'estimategadget_price_filter_results', $wpdb->get_results( $wpdb->prepare( '\n\t \tSELECT DISTINCT ID, post_parent, post_type FROM %1$s\n\t\t\t\tINNER JOIN %2$s ON ID = post_id\n\t\t\t\tWHERE post_type IN ( \"product\", \"product_variation\" )\n\t\t\t\tAND post_status = \"publish\"\n\t\t\t\tAND meta_key IN (\"' . implode( '\",\"', apply_filters( 'estimategadget_price_filter_meta_keys', array( '_price' ) ) ) . '\")\n\t\t\t\tAND meta_value BETWEEN %3$d AND %4$d\n\t\t\t', $wpdb->posts, $wpdb->postmeta, $min, $max ), OBJECT_K ), $min, $max );\n\n\t if ( $matched_products_query ) {\n\t foreach ( $matched_products_query as $product ) {\n\t if ( $product->post_type == 'product' ) {\n\t $matched_products[] = $product->ID;\n\t }\n\t if ( $product->post_parent > 0 && ! in_array( $product->post_parent, $matched_products ) ) {\n\t $matched_products[] = $product->post_parent;\n\t }\n\t }\n\t }\n\n\t // Filter the id's\n\t if ( 0 === sizeof( $filtered_posts ) ) {\n\t\t\t\t$filtered_posts = $matched_products;\n\t } else {\n\t\t\t\t$filtered_posts = array_intersect( $filtered_posts, $matched_products );\n\n\t }\n\t $filtered_posts[] = 0;\n\t }\n\n\t return (array) $filtered_posts;\n\t}",
"public function filterRows()\n {\n if (!empty($this->request->query())) {\n $columns = $this->getGrid()->getColumns();\n $tableColumns = $this->getValidGridColumns();\n\n foreach ($columns as $columnName => $columnData) {\n // skip rows that are not to be filtered\n if (!$this->canFilter($columnName, $columnData)) {\n continue;\n }\n // user input check\n if (!$this->canUseProvidedUserInput($this->getRequest()->get($columnName))) {\n continue;\n }\n // column check. Since the column data is coming from a user query\n if (!$this->canUseProvidedColumn($columnName, $tableColumns)) {\n continue;\n }\n $operator = $this->extractFilterOperator($columnName, $columnData)['operator'];\n\n $this->doFilter($columnName, $columnData, $operator, $this->getRequest()->get($columnName));\n }\n }\n }",
"public function filterByPriceqty5($priceqty5 = null, $comparison = null)\n {\n if (is_array($priceqty5)) {\n $useMinMax = false;\n if (isset($priceqty5['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY5, $priceqty5['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceqty5['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY5, $priceqty5['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY5, $priceqty5, $comparison);\n }",
"public function sortPriceMan(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','muska']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"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 $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price, $comparison);\n }",
"public function complexFilter(){\n $mainoffers = Offer::get();\n $offersArr = collect($mainoffers);\n $resultOfFilter = $offersArr->filter(function($key, $value){\n return $key['id'] >= 42;\n });\n return array_values($resultOfFilter->all()); //get only values of array\n }"
] | [
"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.48656574",
"0.48493305",
"0.48447323",
"0.48438114",
"0.48118982",
"0.47915986",
"0.4785005",
"0.47844362",
"0.47814217",
"0.4757058"
] | 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_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceprice5['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE5, $priceprice5['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE5, $priceprice5, $comparison);\n }",
"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 = $collection->getConnection( );\n\t\t\t\t$sql = $adapter->prepareSqlCondition( 'at_' . $field . '.qty', $condition );\n\t\t\t\t$collection->getSelect( )->where( $sql );\n\t\t\t}\n\n\t\t\treturn $this;\n\t\t}",
"public function filterByQty($qty = null, $comparison = null)\n {\n if (is_array($qty)) {\n $useMinMax = false;\n if (isset($qty['min'])) {\n $this->addUsingAlias(AliProductTableMap::COL_QTY, $qty['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($qty['max'])) {\n $this->addUsingAlias(AliProductTableMap::COL_QTY, $qty['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliProductTableMap::COL_QTY, $qty, $comparison);\n }",
"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 $useMinMax = true;\n }\n if (isset($priceqty1['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY1, $priceqty1['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY1, $priceqty1, $comparison);\n }",
"public function filterByQty($qty = null, $comparison = null)\n {\n if (is_array($qty)) {\n $useMinMax = false;\n if (isset($qty['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_QTY, $qty['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($qty['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_QTY, $qty['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_QTY, $qty, $comparison);\n }",
"public function filterByQty($qty = null, $comparison = null)\n {\n if (is_array($qty)) {\n $useMinMax = false;\n if (isset($qty['min'])) {\n $this->addUsingAlias(WhseitempackTableMap::COL_QTY, $qty['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($qty['max'])) {\n $this->addUsingAlias(WhseitempackTableMap::COL_QTY, $qty['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(WhseitempackTableMap::COL_QTY, $qty, $comparison);\n }",
"function addColumnQtyFilterToCollection($collection, $column) {\n\t\t\t$helper = $this->getWarehouseHelper( );\n\t\t\t$config = $helper->getConfig( );\n\n\t\t\tif (!$config->isCatalogBackendGridQtyVisible( )) {\n\t\t\t\treturn $this;\n\t\t\t}\n\n\t\t\t$adapter = $collection->getConnection( );\n\t\t\t$condition = $column->getFilter( )->getCondition( );\n\t\t\t$select = $collection->getSelect( );\n\t\t\t$qtys = 'SUM(si.qty)';\n\t\t\t$table = $collection->getTable( 'cataloginventory/stock_item' );\n\t\t\t$select->joinInner( array( 'si' => $table ), '(e.entity_id = si.product_id)', array( 'qtys' => $qtys ) );\n\t\t\t$select->group( array( 'e.entity_id' ) );\n\t\t\t$conditionPieces = array( );\n\n\t\t\tif (isset( $condition['from'] )) {\n\t\t\t\tarray_push( $conditionPieces, $qtys . ' >= ' . $adapter->quote( $condition['from'] ) );\n\t\t\t}\n\n\n\t\t\tif (isset( $condition['to'] )) {\n\t\t\t\tarray_push( $conditionPieces, $qtys . ' <= ' . $adapter->quote( $condition['to'] ) );\n\t\t\t}\n\n\n\t\t\tif (count( $conditionPieces )) {\n\t\t\t\t$select->having( implode( ' AND ', $conditionPieces ) );\n\t\t\t}\n\n\t\t\treturn $this;\n\t\t}",
"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 ->join('categories', 'subcategories.category_id', '=', 'categories.id')\n ->select('products.*', 'categories.categories_name')\n ->where('products.price','>=', $min_price)\n ->where('products.price','<=', $max_price)\n ->Paginate(12);\n return json_encode($products);\n }",
"protected function minimum($value)\n {\n if ($value) {\n return $this->builder->where('price1' ,\">=\", $value);\n }\n\n return $this->builder;\n }",
"public function filterByPriceqty6($priceqty6 = null, $comparison = null)\n {\n if (is_array($priceqty6)) {\n $useMinMax = false;\n if (isset($priceqty6['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY6, $priceqty6['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceqty6['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY6, $priceqty6['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY6, $priceqty6, $comparison);\n }",
"public function filterByInQty($inQty = null, $comparison = null)\n {\n if (is_array($inQty)) {\n $useMinMax = false;\n if (isset($inQty['min'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_IN_QTY, $inQty['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($inQty['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_IN_QTY, $inQty['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_IN_QTY, $inQty, $comparison);\n }",
"function filterInt($field, $value) {\n if (($value = ltrim($value, '=')) !== '') {\n switch ($value[0]) {\n case '>': $this->where($field, '>', (int) substr($value, 1)); break;\n case '<': $this->where($field, '<', (int) substr($value, 1)); break;\n case '!': $this->where($field, '<>', (int) substr($value, 1)); break;\n default: $this->where($field, '=', (int) $value); break;\n }\n }\n }",
"public function filterByMinprice($minprice = null, $comparison = null)\n {\n if (is_array($minprice)) {\n $useMinMax = false;\n if (isset($minprice['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($minprice['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice, $comparison);\n }",
"public function topFiveProductSales($data){\n \n $get = $this->DB_ReadOnly->query(\"SELECT product.cproductdescription as service_description,\n product.cproductcode as service_code,\n ROUND(SUM(nprice * nquantity),2) as TOTAL_PRICE \n FROM \".MILL_PRODUCT_SALES.\" as product \n WHERE product.account_no = '\".$data['salonAccountNo'].\"'\n AND product.tdatetime >= '\".$data['startDate'].\"'\n AND product.tdatetime <= '\".$data['endDate'].\"'\n GROUP BY product.cproductcode\n ORDER BY TOTAL_PRICE DESC LIMIT 0,5\"); \n if($get===FALSE){\n $errors = $this->DB_ReadOnly->error();\n $errors['tablename'] = 'mill_product_sales';\n send_mail_database_error($errors);\n }\n return $get;\n\n \n }",
"public function sortPriceMan(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','muska']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function filterable($limit = 5);",
"public function sortPriceSneakers(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['type','=','patike']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function filterRows()\n {\n if (!empty($this->request->query())) {\n $columns = $this->getGrid()->getColumns();\n $tableColumns = $this->getValidGridColumns();\n\n foreach ($columns as $columnName => $columnData) {\n // skip rows that are not to be filtered\n if (!$this->canFilter($columnName, $columnData)) {\n continue;\n }\n // user input check\n if (!$this->canUseProvidedUserInput($this->getRequest()->get($columnName))) {\n continue;\n }\n // column check. Since the column data is coming from a user query\n if (!$this->canUseProvidedColumn($columnName, $tableColumns)) {\n continue;\n }\n $operator = $this->extractFilterOperator($columnName, $columnData)['operator'];\n\n $this->doFilter($columnName, $columnData, $operator, $this->getRequest()->get($columnName));\n }\n }\n }",
"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 $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price))\n {\n $useMinMax = false;\n if (isset($price['min']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax)\n {\n return $this;\n }\n if (null === $comparison)\n {\n $comparison = Criteria::IN;\n }\n }\n return $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price, $comparison);\n }",
"public function sortPriceKids(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','decija']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function getProductsSQL($section,$skipPrice=false){\n $sql = ' FROM sr_shop_product AS p LEFT OUTER JOIN sr_shop_product AS m ON p.`id`=m.`parent_id`';\n $conditions = array();\n foreach($section['filterOptions'] as $optionId){\n $filter = $_REQUEST['filters'][$optionId];\n if(!is_array($filter) || !count($filter)) continue;\n foreach($filter as &$f){\n $f = \"'\".Helpers::mysql_escape($f).\"'\";\n }\n $tableAlias = 'o'.(int)$optionId;\n $sql .=\"INNER JOIN sr_shop_option_value AS \".$tableAlias.\"\n ON p.`id`=\".$tableAlias.\".`main_product_id` \";\n array_push($conditions,\n $tableAlias.'.option_id='.(int)$optionId.' AND '.$tableAlias.\".`value` in (\".implode(',',$filter).\")\"\n );\n }\n $conditions = count($conditions) ? ' AND '.implode(' AND ',$conditions) : '';\n $priceFilter = '';\n if(!$skipPrice){\n $price_from = (float)$_REQUEST['price_from'];\n $price_to = (float)$_REQUEST['price_to'];\n if($price_from>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price>='.$price_from.') ||\n (m.sale_price=0 AND m.price>0 AND m.price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price>='.$price_from.'))';\n }\n if($price_to>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price<='.$price_to.') ||\n (m.sale_price=0 AND m.price>0 AND m.price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price<='.$price_to.'))';\n }\n }\n $sql .= 'WHERE p.`parent_id`=0 and p.`active`=1 and p.`section_id` in ('.$section['cat_ids'].')'.$conditions.$priceFilter.' ORDER BY p.`instock` desc, p.`order` asc';\n return $sql;\n }",
"public function getMinimalPrice($qty = null)\n {\n /* method is calling many time so using variable */\n $tablePrefix = DB::getTablePrefix();\n\n $result = ProductFlat::join('products', 'product_flat.product_id', '=', 'products.id')\n ->distinct()\n ->where('products.parent_id', $this->product->id)\n ->selectRaw(\"IF( {$tablePrefix}product_flat.special_price_from IS NOT NULL\n AND {$tablePrefix}product_flat.special_price_to IS NOT NULL , IF( NOW( ) >= {$tablePrefix}product_flat.special_price_from\n AND NOW( ) <= {$tablePrefix}product_flat.special_price_to, IF( {$tablePrefix}product_flat.special_price IS NULL OR {$tablePrefix}product_flat.special_price = 0 , {$tablePrefix}product_flat.price, LEAST( {$tablePrefix}product_flat.special_price, {$tablePrefix}product_flat.price ) ) , {$tablePrefix}product_flat.price ) , IF( {$tablePrefix}product_flat.special_price_from IS NULL , IF( {$tablePrefix}product_flat.special_price_to IS NULL , IF( {$tablePrefix}product_flat.special_price IS NULL OR {$tablePrefix}product_flat.special_price = 0 , {$tablePrefix}product_flat.price, LEAST( {$tablePrefix}product_flat.special_price, {$tablePrefix}product_flat.price ) ) , IF( NOW( ) <= {$tablePrefix}product_flat.special_price_to, IF( {$tablePrefix}product_flat.special_price IS NULL OR {$tablePrefix}product_flat.special_price = 0 , {$tablePrefix}product_flat.price, LEAST( {$tablePrefix}product_flat.special_price, {$tablePrefix}product_flat.price ) ) , {$tablePrefix}product_flat.price ) ) , IF( {$tablePrefix}product_flat.special_price_to IS NULL , IF( NOW( ) >= {$tablePrefix}product_flat.special_price_from, IF( {$tablePrefix}product_flat.special_price IS NULL OR {$tablePrefix}product_flat.special_price = 0 , {$tablePrefix}product_flat.price, LEAST( {$tablePrefix}product_flat.special_price, {$tablePrefix}product_flat.price ) ) , {$tablePrefix}product_flat.price ) , {$tablePrefix}product_flat.price ) ) ) AS min_price\")\n ->where('product_flat.channel', core()->getCurrentChannelCode())\n ->get();\n\n\n $minPrices = [];\n\n foreach ($result as $price) {\n $minPrices[] = $price->min_price;\n }\n\n if (empty($minPrices)) {\n return 0;\n }\n\n return min($minPrices);\n }",
"public function filterByAbility5($ability5 = null, $comparison = null)\n {\n if (is_array($ability5)) {\n $useMinMax = false;\n if (isset($ability5['min'])) {\n $this->addUsingAlias(CharacterTableMap::COL_ABILITY_5, $ability5['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($ability5['max'])) {\n $this->addUsingAlias(CharacterTableMap::COL_ABILITY_5, $ability5['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(CharacterTableMap::COL_ABILITY_5, $ability5, $comparison);\n }",
"public function setMinPrice()\n {\n if (\n (isset($_GET['q']) && !isset($_GET['min'])) ||\n ! isset($_GET['q'])\n ) {\n if (Mage::getVersion() < '1.7.0.2') {\n $this->_productCollection->getSelect()->reset('order');\n $this->_productCollection->getSelect()->order('final_price','asc');\n $this->_minPrice = round($this->_productCollection->getFirstItem()->getFinalPrice());\n } else {\n $this->_minPrice = floor($this->_productCollection->getMinPrice());\n }\n\n $this->_searchSession->setMinPrice($this->_minPrice);\n } else {\n $this->_minPrice = $this->_searchSession->getMinPrice();\n }\n }",
"function beforeLoadProductLowstockCollection($collection) {\n\t\t\t$helper = $this->getWarehouseHelper( );\n\t\t\t$inventoryHelper = $helper->getCatalogInventoryHelper( );\n\t\t\t$select = $collection->getSelect( );\n\t\t\t$stockIds = $helper->getStockIds( );\n\t\t\tforeach ($stockIds as $stockId) {\n\t\t\t\t$qtyFieldName = 'qty_' . $stockId;\n\t\t\t\t$collection->joinField( $qtyFieldName, 'cataloginventory/stock_item', 'qty', 'product_id=entity_id', ( '{{table}}.stock_id = \\'' . $stockId . '\\'' ), 'left' );\n\t\t\t}\n\n\t\t\t$queryPieces = array( );\n\t\t\tforeach ($stockIds as $stockId) {\n\t\t\t\t$stockItemTableAlias = 'at_qty_' . $stockId;\n\t\t\t\tarray_push( $queryPieces, sprintf( '(IF(%s, %d, %s)=1)', $stockItemTableAlias . '.use_config_manage_stock', $inventoryHelper->getManageStock( ), $stockItemTableAlias . '.manage_stock' ) );\n\t\t\t}\n\n\n\t\t\tif (count( $queryPieces )) {\n\t\t\t\t$select->where( implode( ' OR ', $queryPieces ) );\n\t\t\t}\n\n\t\t\t$queryPieces = array( );\n\t\t\tforeach ($stockIds as $stockId) {\n\t\t\t\t$stockItemTableAlias = 'at_qty_' . $stockId;\n\t\t\t\tarray_push( $queryPieces, sprintf( '(%s < IF(%s, %d, %s))', $stockItemTableAlias . '.qty', $stockItemTableAlias . '.use_config_notify_stock_qty', $inventoryHelper->getNotifyStockQty( ), $stockItemTableAlias . '.notify_stock_qty' ) );\n\t\t\t}\n\n\n\t\t\tif (count( $queryPieces )) {\n\t\t\t\t$select->where( implode( ' OR ', $queryPieces ) );\n\t\t\t}\n\n\t\t\t$collection->setOrder( 'sku', 'asc' );\n\t\t\treturn $this;\n\t\t}",
"public function sortPriceWomen(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','zenska']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function price_filter( $filtered_posts = array() ) {\n\t global $wpdb;\n\n\t if ( isset( $_GET['max_price'] ) || isset( $_GET['min_price'] ) ) {\n\n\t\t\t$matched_products = array();\n\t\t\t$min = isset( $_GET['min_price'] ) ? floatval( $_GET['min_price'] ) : 0;\n\t\t\t$max = isset( $_GET['max_price'] ) ? floatval( $_GET['max_price'] ) : 9999999999;\n\n\t $matched_products_query = apply_filters( 'estimategadget_price_filter_results', $wpdb->get_results( $wpdb->prepare( '\n\t \tSELECT DISTINCT ID, post_parent, post_type FROM %1$s\n\t\t\t\tINNER JOIN %2$s ON ID = post_id\n\t\t\t\tWHERE post_type IN ( \"product\", \"product_variation\" )\n\t\t\t\tAND post_status = \"publish\"\n\t\t\t\tAND meta_key IN (\"' . implode( '\",\"', apply_filters( 'estimategadget_price_filter_meta_keys', array( '_price' ) ) ) . '\")\n\t\t\t\tAND meta_value BETWEEN %3$d AND %4$d\n\t\t\t', $wpdb->posts, $wpdb->postmeta, $min, $max ), OBJECT_K ), $min, $max );\n\n\t if ( $matched_products_query ) {\n\t foreach ( $matched_products_query as $product ) {\n\t if ( $product->post_type == 'product' ) {\n\t $matched_products[] = $product->ID;\n\t }\n\t if ( $product->post_parent > 0 && ! in_array( $product->post_parent, $matched_products ) ) {\n\t $matched_products[] = $product->post_parent;\n\t }\n\t }\n\t }\n\n\t // Filter the id's\n\t if ( 0 === sizeof( $filtered_posts ) ) {\n\t\t\t\t$filtered_posts = $matched_products;\n\t } else {\n\t\t\t\t$filtered_posts = array_intersect( $filtered_posts, $matched_products );\n\n\t }\n\t $filtered_posts[] = 0;\n\t }\n\n\t return (array) $filtered_posts;\n\t}",
"public function scopeWhenMinAndMaxPrice($query, $data)\n {\n if (isset($data['min_price']) and !__isEmpty($data['min_price'])) {\n $query->where('price', '>=', calculateBaseCurrency($data['min_price']));\n }\n\n if (isset($data['max_price']) and !__isEmpty($data['max_price'])) {\n $query->where('price', '<=', calculateBaseCurrency($data['max_price']));\n }\n\n return $query;\n }",
"public function scopeSelectMinAndMaxPrice($query)\n {\n return $query->select(DB::raw('MAX(price) as max_price'), DB::raw('MIN(price) as min_price'));\n }"
] | [
"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.49321896",
"0.4929837",
"0.49219707",
"0.48915052",
"0.48648274",
"0.4858193",
"0.48229545",
"0.48197412",
"0.4818011",
"0.47761637"
] | 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_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceprice6['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE6, $priceprice6['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE6, $priceprice6, $comparison);\n }",
"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 = $collection->getConnection( );\n\t\t\t\t$sql = $adapter->prepareSqlCondition( 'at_' . $field . '.qty', $condition );\n\t\t\t\t$collection->getSelect( )->where( $sql );\n\t\t\t}\n\n\t\t\treturn $this;\n\t\t}",
"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 ->join('categories', 'subcategories.category_id', '=', 'categories.id')\n ->select('products.*', 'categories.categories_name')\n ->where('products.price','>=', $min_price)\n ->where('products.price','<=', $max_price)\n ->Paginate(12);\n return json_encode($products);\n }",
"public function filterByQty($qty = null, $comparison = null)\n {\n if (is_array($qty)) {\n $useMinMax = false;\n if (isset($qty['min'])) {\n $this->addUsingAlias(AliProductTableMap::COL_QTY, $qty['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($qty['max'])) {\n $this->addUsingAlias(AliProductTableMap::COL_QTY, $qty['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliProductTableMap::COL_QTY, $qty, $comparison);\n }",
"public function filterByPriceqty5($priceqty5 = null, $comparison = null)\n {\n if (is_array($priceqty5)) {\n $useMinMax = false;\n if (isset($priceqty5['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY5, $priceqty5['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceqty5['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY5, $priceqty5['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY5, $priceqty5, $comparison);\n }",
"public function filterByQty($qty = null, $comparison = null)\n {\n if (is_array($qty)) {\n $useMinMax = false;\n if (isset($qty['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_QTY, $qty['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($qty['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_QTY, $qty['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_QTY, $qty, $comparison);\n }",
"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 $useMinMax = true;\n }\n if (isset($priceqty1['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY1, $priceqty1['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY1, $priceqty1, $comparison);\n }",
"public function getProductsSQL($section,$skipPrice=false){\n $sql = ' FROM sr_shop_product AS p LEFT OUTER JOIN sr_shop_product AS m ON p.`id`=m.`parent_id`';\n $conditions = array();\n foreach($section['filterOptions'] as $optionId){\n $filter = $_REQUEST['filters'][$optionId];\n if(!is_array($filter) || !count($filter)) continue;\n foreach($filter as &$f){\n $f = \"'\".Helpers::mysql_escape($f).\"'\";\n }\n $tableAlias = 'o'.(int)$optionId;\n $sql .=\"INNER JOIN sr_shop_option_value AS \".$tableAlias.\"\n ON p.`id`=\".$tableAlias.\".`main_product_id` \";\n array_push($conditions,\n $tableAlias.'.option_id='.(int)$optionId.' AND '.$tableAlias.\".`value` in (\".implode(',',$filter).\")\"\n );\n }\n $conditions = count($conditions) ? ' AND '.implode(' AND ',$conditions) : '';\n $priceFilter = '';\n if(!$skipPrice){\n $price_from = (float)$_REQUEST['price_from'];\n $price_to = (float)$_REQUEST['price_to'];\n if($price_from>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price>='.$price_from.') ||\n (m.sale_price=0 AND m.price>0 AND m.price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price>='.$price_from.'))';\n }\n if($price_to>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price<='.$price_to.') ||\n (m.sale_price=0 AND m.price>0 AND m.price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price<='.$price_to.'))';\n }\n }\n $sql .= 'WHERE p.`parent_id`=0 and p.`active`=1 and p.`section_id` in ('.$section['cat_ids'].')'.$conditions.$priceFilter.' ORDER BY p.`instock` desc, p.`order` asc';\n return $sql;\n }",
"public function filterByQty($qty = null, $comparison = null)\n {\n if (is_array($qty)) {\n $useMinMax = false;\n if (isset($qty['min'])) {\n $this->addUsingAlias(WhseitempackTableMap::COL_QTY, $qty['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($qty['max'])) {\n $this->addUsingAlias(WhseitempackTableMap::COL_QTY, $qty['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(WhseitempackTableMap::COL_QTY, $qty, $comparison);\n }",
"function addColumnQtyFilterToCollection($collection, $column) {\n\t\t\t$helper = $this->getWarehouseHelper( );\n\t\t\t$config = $helper->getConfig( );\n\n\t\t\tif (!$config->isCatalogBackendGridQtyVisible( )) {\n\t\t\t\treturn $this;\n\t\t\t}\n\n\t\t\t$adapter = $collection->getConnection( );\n\t\t\t$condition = $column->getFilter( )->getCondition( );\n\t\t\t$select = $collection->getSelect( );\n\t\t\t$qtys = 'SUM(si.qty)';\n\t\t\t$table = $collection->getTable( 'cataloginventory/stock_item' );\n\t\t\t$select->joinInner( array( 'si' => $table ), '(e.entity_id = si.product_id)', array( 'qtys' => $qtys ) );\n\t\t\t$select->group( array( 'e.entity_id' ) );\n\t\t\t$conditionPieces = array( );\n\n\t\t\tif (isset( $condition['from'] )) {\n\t\t\t\tarray_push( $conditionPieces, $qtys . ' >= ' . $adapter->quote( $condition['from'] ) );\n\t\t\t}\n\n\n\t\t\tif (isset( $condition['to'] )) {\n\t\t\t\tarray_push( $conditionPieces, $qtys . ' <= ' . $adapter->quote( $condition['to'] ) );\n\t\t\t}\n\n\n\t\t\tif (count( $conditionPieces )) {\n\t\t\t\t$select->having( implode( ' AND ', $conditionPieces ) );\n\t\t\t}\n\n\t\t\treturn $this;\n\t\t}",
"public function getMinimalPrice($qty = null)\n {\n /* method is calling many time so using variable */\n $tablePrefix = DB::getTablePrefix();\n\n $result = ProductFlat::join('products', 'product_flat.product_id', '=', 'products.id')\n ->distinct()\n ->where('products.parent_id', $this->product->id)\n ->selectRaw(\"IF( {$tablePrefix}product_flat.special_price_from IS NOT NULL\n AND {$tablePrefix}product_flat.special_price_to IS NOT NULL , IF( NOW( ) >= {$tablePrefix}product_flat.special_price_from\n AND NOW( ) <= {$tablePrefix}product_flat.special_price_to, IF( {$tablePrefix}product_flat.special_price IS NULL OR {$tablePrefix}product_flat.special_price = 0 , {$tablePrefix}product_flat.price, LEAST( {$tablePrefix}product_flat.special_price, {$tablePrefix}product_flat.price ) ) , {$tablePrefix}product_flat.price ) , IF( {$tablePrefix}product_flat.special_price_from IS NULL , IF( {$tablePrefix}product_flat.special_price_to IS NULL , IF( {$tablePrefix}product_flat.special_price IS NULL OR {$tablePrefix}product_flat.special_price = 0 , {$tablePrefix}product_flat.price, LEAST( {$tablePrefix}product_flat.special_price, {$tablePrefix}product_flat.price ) ) , IF( NOW( ) <= {$tablePrefix}product_flat.special_price_to, IF( {$tablePrefix}product_flat.special_price IS NULL OR {$tablePrefix}product_flat.special_price = 0 , {$tablePrefix}product_flat.price, LEAST( {$tablePrefix}product_flat.special_price, {$tablePrefix}product_flat.price ) ) , {$tablePrefix}product_flat.price ) ) , IF( {$tablePrefix}product_flat.special_price_to IS NULL , IF( NOW( ) >= {$tablePrefix}product_flat.special_price_from, IF( {$tablePrefix}product_flat.special_price IS NULL OR {$tablePrefix}product_flat.special_price = 0 , {$tablePrefix}product_flat.price, LEAST( {$tablePrefix}product_flat.special_price, {$tablePrefix}product_flat.price ) ) , {$tablePrefix}product_flat.price ) , {$tablePrefix}product_flat.price ) ) ) AS min_price\")\n ->where('product_flat.channel', core()->getCurrentChannelCode())\n ->get();\n\n\n $minPrices = [];\n\n foreach ($result as $price) {\n $minPrices[] = $price->min_price;\n }\n\n if (empty($minPrices)) {\n return 0;\n }\n\n return min($minPrices);\n }",
"public function filterRows()\n {\n if (!empty($this->request->query())) {\n $columns = $this->getGrid()->getColumns();\n $tableColumns = $this->getValidGridColumns();\n\n foreach ($columns as $columnName => $columnData) {\n // skip rows that are not to be filtered\n if (!$this->canFilter($columnName, $columnData)) {\n continue;\n }\n // user input check\n if (!$this->canUseProvidedUserInput($this->getRequest()->get($columnName))) {\n continue;\n }\n // column check. Since the column data is coming from a user query\n if (!$this->canUseProvidedColumn($columnName, $tableColumns)) {\n continue;\n }\n $operator = $this->extractFilterOperator($columnName, $columnData)['operator'];\n\n $this->doFilter($columnName, $columnData, $operator, $this->getRequest()->get($columnName));\n }\n }\n }",
"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 $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price, $comparison);\n }",
"public function filterAvailableProductsByPrice($minPrice, $maxPrice) {\n\n if ($this->PriceList && $this->nr_products_available) {\n\n //verificam daca preturile produselor salvate in priceList se incadreaza in intervalul min si max\n $nr_available = 0;\n foreach ($this->PriceList as $price) {\n //echo \"Pret:\".$price.' MinPrice:'.$minPrice.' Maxprice:'.$maxPrice;\n if ($minPrice <= $price && $price <= $maxPrice) {\n $nr_available++;\n //exit(\"Incrementez\");\n }\n }\n //updatam numarul de produse disponibile\n $this->nr_products_available = $nr_available;\n }\n }",
"protected function minimum($value)\n {\n if ($value) {\n return $this->builder->where('price1' ,\">=\", $value);\n }\n\n return $this->builder;\n }",
"public function setMinPrice()\n {\n if (\n (isset($_GET['q']) && !isset($_GET['min'])) ||\n ! isset($_GET['q'])\n ) {\n if (Mage::getVersion() < '1.7.0.2') {\n $this->_productCollection->getSelect()->reset('order');\n $this->_productCollection->getSelect()->order('final_price','asc');\n $this->_minPrice = round($this->_productCollection->getFirstItem()->getFinalPrice());\n } else {\n $this->_minPrice = floor($this->_productCollection->getMinPrice());\n }\n\n $this->_searchSession->setMinPrice($this->_minPrice);\n } else {\n $this->_minPrice = $this->_searchSession->getMinPrice();\n }\n }",
"public function filterByMinprice($minprice = null, $comparison = null)\n {\n if (is_array($minprice)) {\n $useMinMax = false;\n if (isset($minprice['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($minprice['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice, $comparison);\n }",
"public function filterByMinTime($min_time) : self\n {\n if (is_string($min_time)){\n $min_time = strtotime($min_time);\n }\n $this->buffer = array_filter($this->buffer, function(LogMessage $msg) use($min_time){\n return $msg->getTime()->getTimestamp() >= $min_time;\n });\n\n return $this;\n }",
"public function sortPriceKids(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','decija']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"function filterHouses($start, $end, $guests, $minPrice, $maxPrice) {\r\n\t\tglobal $conn;\r\n\r\n\t\t$stmt = $conn->prepare('SELECT Houses.* , (Houses.SingleBeds + 2*Houses.DoubleBeds) AS Guests, Reservation.StartDate, Reservation.EndDate FROM Houses\r\n\t\t\t\t\t\t\t\tLEFT JOIN Reservation ON Reservation.HouseID = Houses.ID\r\n\t\t\t\t\t\t\t\tWHERE ((Reservation.StartDate > \"11-6-2019\" OR Reservation.EndDate < \"13-7-2019\"))\r\n\t\t\t\t\t\t\t\tAND Guests > ? \r\n\t\t\t\t\t\t\t\tAND DailyCost > \"50\"' );\r\n\t\t\r\n\t\t// $stmt->execute();\r\n\t\t// $guests=2;\r\n\t\t// $stmt->execute(array($guests));\r\n\t\t\r\n\t\t// $stmt->execute([$start, $end, $guests, $minPrice]);\r\n\t\treturn $stmt->fetchAll();\r\n\t}",
"public function sortPriceMan(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','muska']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function price_filter( $filtered_posts = array() ) {\n\t global $wpdb;\n\n\t if ( isset( $_GET['max_price'] ) || isset( $_GET['min_price'] ) ) {\n\n\t\t\t$matched_products = array();\n\t\t\t$min = isset( $_GET['min_price'] ) ? floatval( $_GET['min_price'] ) : 0;\n\t\t\t$max = isset( $_GET['max_price'] ) ? floatval( $_GET['max_price'] ) : 9999999999;\n\n\t $matched_products_query = apply_filters( 'estimategadget_price_filter_results', $wpdb->get_results( $wpdb->prepare( '\n\t \tSELECT DISTINCT ID, post_parent, post_type FROM %1$s\n\t\t\t\tINNER JOIN %2$s ON ID = post_id\n\t\t\t\tWHERE post_type IN ( \"product\", \"product_variation\" )\n\t\t\t\tAND post_status = \"publish\"\n\t\t\t\tAND meta_key IN (\"' . implode( '\",\"', apply_filters( 'estimategadget_price_filter_meta_keys', array( '_price' ) ) ) . '\")\n\t\t\t\tAND meta_value BETWEEN %3$d AND %4$d\n\t\t\t', $wpdb->posts, $wpdb->postmeta, $min, $max ), OBJECT_K ), $min, $max );\n\n\t if ( $matched_products_query ) {\n\t foreach ( $matched_products_query as $product ) {\n\t if ( $product->post_type == 'product' ) {\n\t $matched_products[] = $product->ID;\n\t }\n\t if ( $product->post_parent > 0 && ! in_array( $product->post_parent, $matched_products ) ) {\n\t $matched_products[] = $product->post_parent;\n\t }\n\t }\n\t }\n\n\t // Filter the id's\n\t if ( 0 === sizeof( $filtered_posts ) ) {\n\t\t\t\t$filtered_posts = $matched_products;\n\t } else {\n\t\t\t\t$filtered_posts = array_intersect( $filtered_posts, $matched_products );\n\n\t }\n\t $filtered_posts[] = 0;\n\t }\n\n\t return (array) $filtered_posts;\n\t}",
"function beforeLoadProductLowstockCollection($collection) {\n\t\t\t$helper = $this->getWarehouseHelper( );\n\t\t\t$inventoryHelper = $helper->getCatalogInventoryHelper( );\n\t\t\t$select = $collection->getSelect( );\n\t\t\t$stockIds = $helper->getStockIds( );\n\t\t\tforeach ($stockIds as $stockId) {\n\t\t\t\t$qtyFieldName = 'qty_' . $stockId;\n\t\t\t\t$collection->joinField( $qtyFieldName, 'cataloginventory/stock_item', 'qty', 'product_id=entity_id', ( '{{table}}.stock_id = \\'' . $stockId . '\\'' ), 'left' );\n\t\t\t}\n\n\t\t\t$queryPieces = array( );\n\t\t\tforeach ($stockIds as $stockId) {\n\t\t\t\t$stockItemTableAlias = 'at_qty_' . $stockId;\n\t\t\t\tarray_push( $queryPieces, sprintf( '(IF(%s, %d, %s)=1)', $stockItemTableAlias . '.use_config_manage_stock', $inventoryHelper->getManageStock( ), $stockItemTableAlias . '.manage_stock' ) );\n\t\t\t}\n\n\n\t\t\tif (count( $queryPieces )) {\n\t\t\t\t$select->where( implode( ' OR ', $queryPieces ) );\n\t\t\t}\n\n\t\t\t$queryPieces = array( );\n\t\t\tforeach ($stockIds as $stockId) {\n\t\t\t\t$stockItemTableAlias = 'at_qty_' . $stockId;\n\t\t\t\tarray_push( $queryPieces, sprintf( '(%s < IF(%s, %d, %s))', $stockItemTableAlias . '.qty', $stockItemTableAlias . '.use_config_notify_stock_qty', $inventoryHelper->getNotifyStockQty( ), $stockItemTableAlias . '.notify_stock_qty' ) );\n\t\t\t}\n\n\n\t\t\tif (count( $queryPieces )) {\n\t\t\t\t$select->where( implode( ' OR ', $queryPieces ) );\n\t\t\t}\n\n\t\t\t$collection->setOrder( 'sku', 'asc' );\n\t\t\treturn $this;\n\t\t}",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price))\n {\n $useMinMax = false;\n if (isset($price['min']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax)\n {\n return $this;\n }\n if (null === $comparison)\n {\n $comparison = Criteria::IN;\n }\n }\n return $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price, $comparison);\n }",
"public function filterByInQty($inQty = null, $comparison = null)\n {\n if (is_array($inQty)) {\n $useMinMax = false;\n if (isset($inQty['min'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_IN_QTY, $inQty['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($inQty['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_IN_QTY, $inQty['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_IN_QTY, $inQty, $comparison);\n }",
"public function sortPriceSneakers(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['type','=','patike']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"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_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceprice5['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE5, $priceprice5['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE5, $priceprice5, $comparison);\n }",
"public function sortPriceWomen(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','zenska']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function filterByQuantity($quantity = null, $comparison = null)\n {\n if (is_array($quantity)) {\n $useMinMax = false;\n if (isset($quantity['min'])) {\n $this->addUsingAlias(OrdersLinesPeer::QUANTITY, $quantity['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($quantity['max'])) {\n $this->addUsingAlias(OrdersLinesPeer::QUANTITY, $quantity['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(OrdersLinesPeer::QUANTITY, $quantity, $comparison);\n }",
"public function filterByPriceqty3($priceqty3 = null, $comparison = null)\n {\n if (is_array($priceqty3)) {\n $useMinMax = false;\n if (isset($priceqty3['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY3, $priceqty3['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceqty3['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY3, $priceqty3['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY3, $priceqty3, $comparison);\n }"
] | [
"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.48789257",
"0.4850459",
"0.48467785",
"0.48440334",
"0.48425654",
"0.480699",
"0.48007402",
"0.47823936",
"0.47752458",
"0.47414312"
] | 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 $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price))\n {\n $useMinMax = false;\n if (isset($price['min']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax)\n {\n return $this;\n }\n if (null === $comparison)\n {\n $comparison = Criteria::IN;\n }\n }\n return $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price, $comparison);\n }",
"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 ->join('categories', 'subcategories.category_id', '=', 'categories.id')\n ->select('products.*', 'categories.categories_name')\n ->where('products.price','>=', $min_price)\n ->where('products.price','<=', $max_price)\n ->Paginate(12);\n return json_encode($products);\n }",
"public function filterByMinprice($minprice = null, $comparison = null)\n {\n if (is_array($minprice)) {\n $useMinMax = false;\n if (isset($minprice['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($minprice['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice, $comparison);\n }",
"function getPriceFilter($price)\n {\n $products = product::whereBetween('sale_price', [0, $price])->get();\n return view('products')->with('products', $products);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(OrdersLinesPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(OrdersLinesPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(OrdersLinesPeer::PRICE, $price, $comparison);\n }",
"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 $useMinMax = true;\n }\n if (isset($priceqty1['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY1, $priceqty1['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY1, $priceqty1, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price, $comparison);\n }",
"public function getProductsSQL($section,$skipPrice=false){\n $sql = ' FROM sr_shop_product AS p LEFT OUTER JOIN sr_shop_product AS m ON p.`id`=m.`parent_id`';\n $conditions = array();\n foreach($section['filterOptions'] as $optionId){\n $filter = $_REQUEST['filters'][$optionId];\n if(!is_array($filter) || !count($filter)) continue;\n foreach($filter as &$f){\n $f = \"'\".Helpers::mysql_escape($f).\"'\";\n }\n $tableAlias = 'o'.(int)$optionId;\n $sql .=\"INNER JOIN sr_shop_option_value AS \".$tableAlias.\"\n ON p.`id`=\".$tableAlias.\".`main_product_id` \";\n array_push($conditions,\n $tableAlias.'.option_id='.(int)$optionId.' AND '.$tableAlias.\".`value` in (\".implode(',',$filter).\")\"\n );\n }\n $conditions = count($conditions) ? ' AND '.implode(' AND ',$conditions) : '';\n $priceFilter = '';\n if(!$skipPrice){\n $price_from = (float)$_REQUEST['price_from'];\n $price_to = (float)$_REQUEST['price_to'];\n if($price_from>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price>='.$price_from.') ||\n (m.sale_price=0 AND m.price>0 AND m.price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price>='.$price_from.'))';\n }\n if($price_to>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price<='.$price_to.') ||\n (m.sale_price=0 AND m.price>0 AND m.price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price<='.$price_to.'))';\n }\n }\n $sql .= 'WHERE p.`parent_id`=0 and p.`active`=1 and p.`section_id` in ('.$section['cat_ids'].')'.$conditions.$priceFilter.' ORDER BY p.`instock` desc, p.`order` asc';\n return $sql;\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICE, $price, $comparison);\n }",
"public function GetMinimumPrice($customer_id, $value1, $value2) {\r\n\r\n \t$query = $this->_hotelPDO->prepare(\"SELECT * FROM `master_hotel_price` WHERE `customer_id` = '$customer_id' AND ((`rack_epi` BETWEEN '$value1' AND '$value2') OR (`rack_cpi` BETWEEN '$value1' AND '$value2') OR (`rack_mapi` BETWEEN '$value1' AND '$value2') OR (`rack_apai` BETWEEN '$value1' AND '$value2') OR (`btb_epi` BETWEEN '$value1' AND '$value2') OR (`btb_cpi` BETWEEN '$value1' AND '$value2') OR (`btb_mapi` BETWEEN '$value1' AND '$value2') OR (`sea_epi` BETWEEN '$value1' AND '$value2') OR (`sea_cpi` BETWEEN '$value1' AND '$value2') OR (`sea_mapi` BETWEEN '$value1' AND '$value2') OR (`sea_apai` BETWEEN '$value1' AND '$value2') OR (`prom_epi` BETWEEN '$value1' AND '$value2') OR (`prom_cpi` BETWEEN '$value1' AND '$value2') OR (`prom_mapi` BETWEEN '$value1' AND '$value2') OR (`prom_apai` BETWEEN '$value1' AND '$value2'))\");\r\n \t$query->execute() or die($this->_hotelPDO->error);\r\n \t$rows = $query->fetchAll(PDO::FETCH_ASSOC);\r\n\r\n \treturn $rows;\r\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(SaleTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(SaleTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(SaleTableMap::COL_PRICE, $price, $comparison);\n }",
"function PriceQuery() {\n\t\t$csvilog = JRequest::getVar('csvilog');\n\t\t\n\t\t/* Check if the price is including or excluding tax */\n\t\tif ($this->product_tax && $this->price_with_tax && is_null($this->product_price)) {\n\t\t\tif (strlen($this->price_with_tax) == 0) $this->product_price = null;\n\t\t\telse $this->product_price = $this->price_with_tax / (1+($this->product_tax/100));\n\t\t}\n\t\telse if (strlen($this->product_price) == 0) $this->product_price = null;\n\t\t\n\t\t/* Bind the data */\n\t\t$this->_vm_product_price->bind($this);\n\t\t\n\t\t/* Calculate the new price */\n\t\t$this->_vm_product_price->CalculatePrice();\n\t\t\n\t\tif (is_null($this->product_price)) {\n\t\t\t/* Delete the price */\n\t\t\t$this->_vm_product_price->delete();\n\t\t}\n\t\telse {\n\t\t\t/* Store the price*/\n\t\t\t/* Add some variables if needed */\n\t\t\t/* Set the modified date if the user has not done so */\n\t\t\tif (!$this->_vm_product_price->getValue('mdate')) $this->_vm_product_price->setValue('mdate', time());\n\t\t\t\n\t\t\t/* Set the create date if the user has not done so and there is no product_price_id */\n\t\t\tif (!$this->_vm_product_price->getValue('mdate') && !$this->_vm_product_price->getValue('product_price_id')) {\n\t\t\t\t$this->_vm_product_price->setValue('cdate', time());\n\t\t\t}\n\t\t\t\n\t\t\t/* Store the price */\n\t\t\t$this->_vm_product_price->store();\n\t\t}\n\t\t$csvilog->AddMessage('debug', JText::_('DEBUG_PRICE_QUERY'), true);\n\t}",
"public function filterByName1($name1 = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($name1)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_NAME1, $name1, $comparison);\n }",
"public function validate_filter_price($price)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n if (! in_array($price, $this->filter_price))\n return lang('marketplace_filter_invalid');\n }",
"public function filterByPriceprice2($priceprice2 = null, $comparison = null)\n {\n if (is_array($priceprice2)) {\n $useMinMax = false;\n if (isset($priceprice2['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE2, $priceprice2['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceprice2['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE2, $priceprice2['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE2, $priceprice2, $comparison);\n }",
"function getItemsByPrice($dbh, $min, $max)\r\n{\r\n \r\n $stmt = $dbh->prepare ( \"SELECT * FROM items WHERE items.price >= ? and items.price <= ?\"); \r\n\r\n $stmt->bindParam(1,$min);\r\n $stmt->bindParam(2,$max);\r\n\r\n if ($stmt->execute()) \r\n {\r\n $data = array();\r\n \r\n while ($row = $stmt->fetch()) \r\n { \r\n array_push($data, $row['name'], $row['price'], $row['quantity'],$row['quality']);\r\n }\r\n echo json_encode($data);\r\n \r\n }\r\n}",
"public function filterAvailableProductsByPrice($minPrice, $maxPrice) {\n\n if ($this->PriceList && $this->nr_products_available) {\n\n //verificam daca preturile produselor salvate in priceList se incadreaza in intervalul min si max\n $nr_available = 0;\n foreach ($this->PriceList as $price) {\n //echo \"Pret:\".$price.' MinPrice:'.$minPrice.' Maxprice:'.$maxPrice;\n if ($minPrice <= $price && $price <= $maxPrice) {\n $nr_available++;\n //exit(\"Incrementez\");\n }\n }\n //updatam numarul de produse disponibile\n $this->nr_products_available = $nr_available;\n }\n }",
"protected function minimum($value)\n {\n if ($value) {\n return $this->builder->where('price1' ,\">=\", $value);\n }\n\n return $this->builder;\n }",
"public function filter(Request $request){ \n \n if($request->priceMin!=null and $request->priceMax!=null and $request->year!=null){\n $produit=Stock::where('stockName',$request->name)\n ->whereBetween('stockPrice', array($request->priceMin, $request->priceMax))\n ->where('stockYear',$request->year)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();}\n elseif($request->priceMin!=null and $request->priceMax!=null and $request->year==null){\n $produit=Stock::where('stockName',$request->name)\n ->whereBetween('stockPrice', array($request->priceMin, $request->priceMax))\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n elseif ($request->priceMin!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockPrice','>=',$request->priceMin)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n elseif ($request->priceMax!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockPrice','<=',$request->priceMax)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n \n elseif($request->priceMin==null and $request->priceMax==null and $request->year!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockYear',$request->year)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n \n else{\n $produit=Stock::where('stockName',$request->name)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n return response()->json($produit);\n }",
"public function price_filter( $filtered_posts = array() ) {\n\t global $wpdb;\n\n\t if ( isset( $_GET['max_price'] ) || isset( $_GET['min_price'] ) ) {\n\n\t\t\t$matched_products = array();\n\t\t\t$min = isset( $_GET['min_price'] ) ? floatval( $_GET['min_price'] ) : 0;\n\t\t\t$max = isset( $_GET['max_price'] ) ? floatval( $_GET['max_price'] ) : 9999999999;\n\n\t $matched_products_query = apply_filters( 'estimategadget_price_filter_results', $wpdb->get_results( $wpdb->prepare( '\n\t \tSELECT DISTINCT ID, post_parent, post_type FROM %1$s\n\t\t\t\tINNER JOIN %2$s ON ID = post_id\n\t\t\t\tWHERE post_type IN ( \"product\", \"product_variation\" )\n\t\t\t\tAND post_status = \"publish\"\n\t\t\t\tAND meta_key IN (\"' . implode( '\",\"', apply_filters( 'estimategadget_price_filter_meta_keys', array( '_price' ) ) ) . '\")\n\t\t\t\tAND meta_value BETWEEN %3$d AND %4$d\n\t\t\t', $wpdb->posts, $wpdb->postmeta, $min, $max ), OBJECT_K ), $min, $max );\n\n\t if ( $matched_products_query ) {\n\t foreach ( $matched_products_query as $product ) {\n\t if ( $product->post_type == 'product' ) {\n\t $matched_products[] = $product->ID;\n\t }\n\t if ( $product->post_parent > 0 && ! in_array( $product->post_parent, $matched_products ) ) {\n\t $matched_products[] = $product->post_parent;\n\t }\n\t }\n\t }\n\n\t // Filter the id's\n\t if ( 0 === sizeof( $filtered_posts ) ) {\n\t\t\t\t$filtered_posts = $matched_products;\n\t } else {\n\t\t\t\t$filtered_posts = array_intersect( $filtered_posts, $matched_products );\n\n\t }\n\t $filtered_posts[] = 0;\n\t }\n\n\t return (array) $filtered_posts;\n\t}",
"public function minPrice(){\n //$prices=\\DB::table('min_price')->get();\n\n $prices= \\DB::table('pricedata')\n ->select('fuelTypeID',\\DB::raw('min(fuelPrice) as min_price'))\n -> groupBy ('fuelTypeID')\n ->get();\n\n return response()->json( $prices);\n }",
"public function filterByInPrice($inPrice = null, $comparison = null)\n {\n if (is_array($inPrice)) {\n $useMinMax = false;\n if (isset($inPrice['min'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_IN_PRICE, $inPrice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($inPrice['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_IN_PRICE, $inPrice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_IN_PRICE, $inPrice, $comparison);\n }",
"public function scopeSelectMinAndMaxPrice($query)\n {\n return $query->select(DB::raw('MAX(price) as max_price'), DB::raw('MIN(price) as min_price'));\n }",
"function filterHouses($start, $end, $guests, $minPrice, $maxPrice) {\r\n\t\tglobal $conn;\r\n\r\n\t\t$stmt = $conn->prepare('SELECT Houses.* , (Houses.SingleBeds + 2*Houses.DoubleBeds) AS Guests, Reservation.StartDate, Reservation.EndDate FROM Houses\r\n\t\t\t\t\t\t\t\tLEFT JOIN Reservation ON Reservation.HouseID = Houses.ID\r\n\t\t\t\t\t\t\t\tWHERE ((Reservation.StartDate > \"11-6-2019\" OR Reservation.EndDate < \"13-7-2019\"))\r\n\t\t\t\t\t\t\t\tAND Guests > ? \r\n\t\t\t\t\t\t\t\tAND DailyCost > \"50\"' );\r\n\t\t\r\n\t\t// $stmt->execute();\r\n\t\t// $guests=2;\r\n\t\t// $stmt->execute(array($guests));\r\n\t\t\r\n\t\t// $stmt->execute([$start, $end, $guests, $minPrice]);\r\n\t\treturn $stmt->fetchAll();\r\n\t}",
"public function scopeWhenMinAndMaxPrice($query, $data)\n {\n if (isset($data['min_price']) and !__isEmpty($data['min_price'])) {\n $query->where('price', '>=', calculateBaseCurrency($data['min_price']));\n }\n\n if (isset($data['max_price']) and !__isEmpty($data['max_price'])) {\n $query->where('price', '<=', calculateBaseCurrency($data['max_price']));\n }\n\n return $query;\n }",
"public function sortPriceMan(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','muska']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function modelFilter($category_id,$recordPerPage){\n\t\t\t$p = isset($_GET[\"p\"]) && is_numeric($_GET[\"p\"]) && $_GET[\"p\"] > 0 ? ($_GET[\"p\"]-1) : 0;\t\t\t\n\t\t\t//lay tu ban ghi nao\n\t\t\t$from = $p * $recordPerPage;\n\t\t\t//---\n\t\t\t//lay bien ket noi csdl\n\t\t\t$conn = Connection::getInstance();\n //\n\t\t\t//sap xep cac ban ghi theo thu tu\n\t\t $orderBy = \"order by id desc\";\n\t\t\t$order = isset($_GET[\"order\"]) ? $_GET[\"order\"] : \"\";\n\t\t\tswitch($order){\n\t\t\t\tcase \"priceAsc\":\n\t\t\t\t\t$orderBy = \" order by giamoi asc \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"priceDesc\":\n\t\t\t\t\t$orderBy = \" order by giamoi desc \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"priceRandom\":\n\t\t\t\t\t$orderBy = \" order by id desc \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"giaRe\":\n\t\t\t\t\t$orderBy = \"and giamoi > 0 and giamoi < 250000 order by giamoi asc \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"giaTb\":\n\t\t\t\t\t$orderBy = \"and giamoi > 250000 and giamoi < 700000 order by giamoi asc \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"giaKha\":\n\t\t\t\t\t$orderBy = \"and giamoi > 700000 and giamoi < 1500000 order by giamoi asc \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"giaLon\":\n\t\t\t\t\t$orderBy = \"and giamoi > 1500000 order by giamoi asc \";\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\t//thuc hien truy van\n\t\t\t$query = $conn->query(\"select * from products where category_id=$category_id $orderBy limit $from,$recordPerPage\");\n\t\t\t//lay toan bo ket qua tra ve\n\t\t\t$result = $query->fetchAll();\t\t\t\n\t\t\t//---\n\t\t\treturn $result;\n\t\t}",
"public function filterByOriginalPrice($originalPrice = null, $comparison = null)\n {\n if (is_array($originalPrice)) {\n $useMinMax = false;\n if (isset($originalPrice['min'])) {\n $this->addUsingAlias(OrdersLinesPeer::ORIGINAL_PRICE, $originalPrice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($originalPrice['max'])) {\n $this->addUsingAlias(OrdersLinesPeer::ORIGINAL_PRICE, $originalPrice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(OrdersLinesPeer::ORIGINAL_PRICE, $originalPrice, $comparison);\n }",
"public function findByPrice($price) {\n return $this->findBy(array('price' => $price));\n }"
] | [
"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.5198968",
"0.51929927",
"0.5191988",
"0.51510084",
"0.5117622",
"0.51148075",
"0.51074994",
"0.51041853",
"0.5086781",
"0.50762457"
] | 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 $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price, $comparison);\n }",
"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_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceprice1['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE1, $priceprice1['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE1, $priceprice1, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price))\n {\n $useMinMax = false;\n if (isset($price['min']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax)\n {\n return $this;\n }\n if (null === $comparison)\n {\n $comparison = Criteria::IN;\n }\n }\n return $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(OrdersLinesPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(OrdersLinesPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(OrdersLinesPeer::PRICE, $price, $comparison);\n }",
"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 ->join('categories', 'subcategories.category_id', '=', 'categories.id')\n ->select('products.*', 'categories.categories_name')\n ->where('products.price','>=', $min_price)\n ->where('products.price','<=', $max_price)\n ->Paginate(12);\n return json_encode($products);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price, $comparison);\n }",
"function getPriceFilter($price)\n {\n $products = product::whereBetween('sale_price', [0, $price])->get();\n return view('products')->with('products', $products);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICE, $price, $comparison);\n }",
"public function validate_filter_price($price)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n if (! in_array($price, $this->filter_price))\n return lang('marketplace_filter_invalid');\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(SaleTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(SaleTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(SaleTableMap::COL_PRICE, $price, $comparison);\n }",
"public function getProductsSQL($section,$skipPrice=false){\n $sql = ' FROM sr_shop_product AS p LEFT OUTER JOIN sr_shop_product AS m ON p.`id`=m.`parent_id`';\n $conditions = array();\n foreach($section['filterOptions'] as $optionId){\n $filter = $_REQUEST['filters'][$optionId];\n if(!is_array($filter) || !count($filter)) continue;\n foreach($filter as &$f){\n $f = \"'\".Helpers::mysql_escape($f).\"'\";\n }\n $tableAlias = 'o'.(int)$optionId;\n $sql .=\"INNER JOIN sr_shop_option_value AS \".$tableAlias.\"\n ON p.`id`=\".$tableAlias.\".`main_product_id` \";\n array_push($conditions,\n $tableAlias.'.option_id='.(int)$optionId.' AND '.$tableAlias.\".`value` in (\".implode(',',$filter).\")\"\n );\n }\n $conditions = count($conditions) ? ' AND '.implode(' AND ',$conditions) : '';\n $priceFilter = '';\n if(!$skipPrice){\n $price_from = (float)$_REQUEST['price_from'];\n $price_to = (float)$_REQUEST['price_to'];\n if($price_from>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price>='.$price_from.') ||\n (m.sale_price=0 AND m.price>0 AND m.price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price>='.$price_from.'))';\n }\n if($price_to>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price<='.$price_to.') ||\n (m.sale_price=0 AND m.price>0 AND m.price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price<='.$price_to.'))';\n }\n }\n $sql .= 'WHERE p.`parent_id`=0 and p.`active`=1 and p.`section_id` in ('.$section['cat_ids'].')'.$conditions.$priceFilter.' ORDER BY p.`instock` desc, p.`order` asc';\n return $sql;\n }",
"public function filterByPriceqty2($priceqty2 = null, $comparison = null)\n {\n if (is_array($priceqty2)) {\n $useMinMax = false;\n if (isset($priceqty2['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY2, $priceqty2['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceqty2['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY2, $priceqty2['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY2, $priceqty2, $comparison);\n }",
"public function filterAvailableProductsByPrice($minPrice, $maxPrice) {\n\n if ($this->PriceList && $this->nr_products_available) {\n\n //verificam daca preturile produselor salvate in priceList se incadreaza in intervalul min si max\n $nr_available = 0;\n foreach ($this->PriceList as $price) {\n //echo \"Pret:\".$price.' MinPrice:'.$minPrice.' Maxprice:'.$maxPrice;\n if ($minPrice <= $price && $price <= $maxPrice) {\n $nr_available++;\n //exit(\"Incrementez\");\n }\n }\n //updatam numarul de produse disponibile\n $this->nr_products_available = $nr_available;\n }\n }",
"public function GetMinimumPrice($customer_id, $value1, $value2) {\r\n\r\n \t$query = $this->_hotelPDO->prepare(\"SELECT * FROM `master_hotel_price` WHERE `customer_id` = '$customer_id' AND ((`rack_epi` BETWEEN '$value1' AND '$value2') OR (`rack_cpi` BETWEEN '$value1' AND '$value2') OR (`rack_mapi` BETWEEN '$value1' AND '$value2') OR (`rack_apai` BETWEEN '$value1' AND '$value2') OR (`btb_epi` BETWEEN '$value1' AND '$value2') OR (`btb_cpi` BETWEEN '$value1' AND '$value2') OR (`btb_mapi` BETWEEN '$value1' AND '$value2') OR (`sea_epi` BETWEEN '$value1' AND '$value2') OR (`sea_cpi` BETWEEN '$value1' AND '$value2') OR (`sea_mapi` BETWEEN '$value1' AND '$value2') OR (`sea_apai` BETWEEN '$value1' AND '$value2') OR (`prom_epi` BETWEEN '$value1' AND '$value2') OR (`prom_cpi` BETWEEN '$value1' AND '$value2') OR (`prom_mapi` BETWEEN '$value1' AND '$value2') OR (`prom_apai` BETWEEN '$value1' AND '$value2'))\");\r\n \t$query->execute() or die($this->_hotelPDO->error);\r\n \t$rows = $query->fetchAll(PDO::FETCH_ASSOC);\r\n\r\n \treturn $rows;\r\n }",
"public function filterByMinprice($minprice = null, $comparison = null)\n {\n if (is_array($minprice)) {\n $useMinMax = false;\n if (isset($minprice['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($minprice['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice, $comparison);\n }",
"function PriceQuery() {\n\t\t$csvilog = JRequest::getVar('csvilog');\n\t\t\n\t\t/* Check if the price is including or excluding tax */\n\t\tif ($this->product_tax && $this->price_with_tax && is_null($this->product_price)) {\n\t\t\tif (strlen($this->price_with_tax) == 0) $this->product_price = null;\n\t\t\telse $this->product_price = $this->price_with_tax / (1+($this->product_tax/100));\n\t\t}\n\t\telse if (strlen($this->product_price) == 0) $this->product_price = null;\n\t\t\n\t\t/* Bind the data */\n\t\t$this->_vm_product_price->bind($this);\n\t\t\n\t\t/* Calculate the new price */\n\t\t$this->_vm_product_price->CalculatePrice();\n\t\t\n\t\tif (is_null($this->product_price)) {\n\t\t\t/* Delete the price */\n\t\t\t$this->_vm_product_price->delete();\n\t\t}\n\t\telse {\n\t\t\t/* Store the price*/\n\t\t\t/* Add some variables if needed */\n\t\t\t/* Set the modified date if the user has not done so */\n\t\t\tif (!$this->_vm_product_price->getValue('mdate')) $this->_vm_product_price->setValue('mdate', time());\n\t\t\t\n\t\t\t/* Set the create date if the user has not done so and there is no product_price_id */\n\t\t\tif (!$this->_vm_product_price->getValue('mdate') && !$this->_vm_product_price->getValue('product_price_id')) {\n\t\t\t\t$this->_vm_product_price->setValue('cdate', time());\n\t\t\t}\n\t\t\t\n\t\t\t/* Store the price */\n\t\t\t$this->_vm_product_price->store();\n\t\t}\n\t\t$csvilog->AddMessage('debug', JText::_('DEBUG_PRICE_QUERY'), true);\n\t}",
"public function filterByName2($name2 = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($name2)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_NAME2, $name2, $comparison);\n }",
"public function price_filter( $filtered_posts = array() ) {\n\t global $wpdb;\n\n\t if ( isset( $_GET['max_price'] ) || isset( $_GET['min_price'] ) ) {\n\n\t\t\t$matched_products = array();\n\t\t\t$min = isset( $_GET['min_price'] ) ? floatval( $_GET['min_price'] ) : 0;\n\t\t\t$max = isset( $_GET['max_price'] ) ? floatval( $_GET['max_price'] ) : 9999999999;\n\n\t $matched_products_query = apply_filters( 'estimategadget_price_filter_results', $wpdb->get_results( $wpdb->prepare( '\n\t \tSELECT DISTINCT ID, post_parent, post_type FROM %1$s\n\t\t\t\tINNER JOIN %2$s ON ID = post_id\n\t\t\t\tWHERE post_type IN ( \"product\", \"product_variation\" )\n\t\t\t\tAND post_status = \"publish\"\n\t\t\t\tAND meta_key IN (\"' . implode( '\",\"', apply_filters( 'estimategadget_price_filter_meta_keys', array( '_price' ) ) ) . '\")\n\t\t\t\tAND meta_value BETWEEN %3$d AND %4$d\n\t\t\t', $wpdb->posts, $wpdb->postmeta, $min, $max ), OBJECT_K ), $min, $max );\n\n\t if ( $matched_products_query ) {\n\t foreach ( $matched_products_query as $product ) {\n\t if ( $product->post_type == 'product' ) {\n\t $matched_products[] = $product->ID;\n\t }\n\t if ( $product->post_parent > 0 && ! in_array( $product->post_parent, $matched_products ) ) {\n\t $matched_products[] = $product->post_parent;\n\t }\n\t }\n\t }\n\n\t // Filter the id's\n\t if ( 0 === sizeof( $filtered_posts ) ) {\n\t\t\t\t$filtered_posts = $matched_products;\n\t } else {\n\t\t\t\t$filtered_posts = array_intersect( $filtered_posts, $matched_products );\n\n\t }\n\t $filtered_posts[] = 0;\n\t }\n\n\t return (array) $filtered_posts;\n\t}",
"function filterHouses($start, $end, $guests, $minPrice, $maxPrice) {\r\n\t\tglobal $conn;\r\n\r\n\t\t$stmt = $conn->prepare('SELECT Houses.* , (Houses.SingleBeds + 2*Houses.DoubleBeds) AS Guests, Reservation.StartDate, Reservation.EndDate FROM Houses\r\n\t\t\t\t\t\t\t\tLEFT JOIN Reservation ON Reservation.HouseID = Houses.ID\r\n\t\t\t\t\t\t\t\tWHERE ((Reservation.StartDate > \"11-6-2019\" OR Reservation.EndDate < \"13-7-2019\"))\r\n\t\t\t\t\t\t\t\tAND Guests > ? \r\n\t\t\t\t\t\t\t\tAND DailyCost > \"50\"' );\r\n\t\t\r\n\t\t// $stmt->execute();\r\n\t\t// $guests=2;\r\n\t\t// $stmt->execute(array($guests));\r\n\t\t\r\n\t\t// $stmt->execute([$start, $end, $guests, $minPrice]);\r\n\t\treturn $stmt->fetchAll();\r\n\t}",
"public function filterByOriginalPrice($originalPrice = null, $comparison = null)\n {\n if (is_array($originalPrice)) {\n $useMinMax = false;\n if (isset($originalPrice['min'])) {\n $this->addUsingAlias(OrdersLinesPeer::ORIGINAL_PRICE, $originalPrice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($originalPrice['max'])) {\n $this->addUsingAlias(OrdersLinesPeer::ORIGINAL_PRICE, $originalPrice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(OrdersLinesPeer::ORIGINAL_PRICE, $originalPrice, $comparison);\n }",
"public function filterByInPrice($inPrice = null, $comparison = null)\n {\n if (is_array($inPrice)) {\n $useMinMax = false;\n if (isset($inPrice['min'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_IN_PRICE, $inPrice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($inPrice['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_IN_PRICE, $inPrice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_IN_PRICE, $inPrice, $comparison);\n }",
"public function filterByBprice($bprice = null, $comparison = null)\n {\n if (is_array($bprice)) {\n $useMinMax = false;\n if (isset($bprice['min'])) {\n $this->addUsingAlias(AliProductTableMap::COL_BPRICE, $bprice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($bprice['max'])) {\n $this->addUsingAlias(AliProductTableMap::COL_BPRICE, $bprice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliProductTableMap::COL_BPRICE, $bprice, $comparison);\n }",
"public function scopeWhenMinAndMaxPrice($query, $data)\n {\n if (isset($data['min_price']) and !__isEmpty($data['min_price'])) {\n $query->where('price', '>=', calculateBaseCurrency($data['min_price']));\n }\n\n if (isset($data['max_price']) and !__isEmpty($data['max_price'])) {\n $query->where('price', '<=', calculateBaseCurrency($data['max_price']));\n }\n\n return $query;\n }",
"function getItemsByPrice($dbh, $min, $max)\r\n{\r\n \r\n $stmt = $dbh->prepare ( \"SELECT * FROM items WHERE items.price >= ? and items.price <= ?\"); \r\n\r\n $stmt->bindParam(1,$min);\r\n $stmt->bindParam(2,$max);\r\n\r\n if ($stmt->execute()) \r\n {\r\n $data = array();\r\n \r\n while ($row = $stmt->fetch()) \r\n { \r\n array_push($data, $row['name'], $row['price'], $row['quantity'],$row['quality']);\r\n }\r\n echo json_encode($data);\r\n \r\n }\r\n}",
"public function filterByBprice($bprice = null, $comparison = null)\n {\n if (is_array($bprice)) {\n $useMinMax = false;\n if (isset($bprice['min'])) {\n $this->addUsingAlias(AliTsalehTableMap::COL_BPRICE, $bprice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($bprice['max'])) {\n $this->addUsingAlias(AliTsalehTableMap::COL_BPRICE, $bprice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliTsalehTableMap::COL_BPRICE, $bprice, $comparison);\n }",
"public function scopeSelectMinAndMaxPrice($query)\n {\n return $query->select(DB::raw('MAX(price) as max_price'), DB::raw('MIN(price) as min_price'));\n }",
"public function scopePrice($query, $min = null, $max = null)\n {\n if($min)\n $query->where('internet_price', '>=', $min);\n if($max)\n $query->where('internet_price', '<=', $max)->where('internet_price', '!=', 0);\n return $query;\n }",
"public function findProctBetweenPrice($minPrice,$maxPrice)\n {\n $query = $this->createQueryBuilder('prod')\n ->where(\"prod.price > :min AND prod.price < :max\")\n ->setParameters([\"min\"=>$minPrice,\"max\"=>$maxPrice]);\n\n return $query->getQuery()->getResult();\n\n }",
"public function findByPrice($price) {\n return $this->findBy(array('price' => $price));\n }",
"public function addPriceFilter ($index, $range, $rate)\n {\n $from = $range * ($index - 1);\n $to = $range * $index;\n $this->getSelect()->where('price:[' . $from . ' TO ' . $to . ']');\n }"
] | [
"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.5224616",
"0.5221999",
"0.5214624",
"0.52091146",
"0.5167195",
"0.5148451",
"0.514358",
"0.51291376",
"0.5123868",
"0.5061276"
] | 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 $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price, $comparison);\n }",
"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 ->join('categories', 'subcategories.category_id', '=', 'categories.id')\n ->select('products.*', 'categories.categories_name')\n ->where('products.price','>=', $min_price)\n ->where('products.price','<=', $max_price)\n ->Paginate(12);\n return json_encode($products);\n }",
"public function getProductsSQL($section,$skipPrice=false){\n $sql = ' FROM sr_shop_product AS p LEFT OUTER JOIN sr_shop_product AS m ON p.`id`=m.`parent_id`';\n $conditions = array();\n foreach($section['filterOptions'] as $optionId){\n $filter = $_REQUEST['filters'][$optionId];\n if(!is_array($filter) || !count($filter)) continue;\n foreach($filter as &$f){\n $f = \"'\".Helpers::mysql_escape($f).\"'\";\n }\n $tableAlias = 'o'.(int)$optionId;\n $sql .=\"INNER JOIN sr_shop_option_value AS \".$tableAlias.\"\n ON p.`id`=\".$tableAlias.\".`main_product_id` \";\n array_push($conditions,\n $tableAlias.'.option_id='.(int)$optionId.' AND '.$tableAlias.\".`value` in (\".implode(',',$filter).\")\"\n );\n }\n $conditions = count($conditions) ? ' AND '.implode(' AND ',$conditions) : '';\n $priceFilter = '';\n if(!$skipPrice){\n $price_from = (float)$_REQUEST['price_from'];\n $price_to = (float)$_REQUEST['price_to'];\n if($price_from>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price>='.$price_from.') ||\n (m.sale_price=0 AND m.price>0 AND m.price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price>='.$price_from.'))';\n }\n if($price_to>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price<='.$price_to.') ||\n (m.sale_price=0 AND m.price>0 AND m.price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price<='.$price_to.'))';\n }\n }\n $sql .= 'WHERE p.`parent_id`=0 and p.`active`=1 and p.`section_id` in ('.$section['cat_ids'].')'.$conditions.$priceFilter.' ORDER BY p.`instock` desc, p.`order` asc';\n return $sql;\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price))\n {\n $useMinMax = false;\n if (isset($price['min']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax)\n {\n return $this;\n }\n if (null === $comparison)\n {\n $comparison = Criteria::IN;\n }\n }\n return $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price, $comparison);\n }",
"public function firstThreePricePanel(){\n $price = self::having('id' , '<=' , 3)->get();\n\n return $price;\n }",
"function getPriceFilter($price)\n {\n $products = product::whereBetween('sale_price', [0, $price])->get();\n return view('products')->with('products', $products);\n }",
"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_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceprice1['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE1, $priceprice1['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE1, $priceprice1, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(OrdersLinesPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(OrdersLinesPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(OrdersLinesPeer::PRICE, $price, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price, $comparison);\n }",
"public function filterByMinprice($minprice = null, $comparison = null)\n {\n if (is_array($minprice)) {\n $useMinMax = false;\n if (isset($minprice['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($minprice['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice, $comparison);\n }",
"function PriceQuery() {\n\t\t$csvilog = JRequest::getVar('csvilog');\n\t\t\n\t\t/* Check if the price is including or excluding tax */\n\t\tif ($this->product_tax && $this->price_with_tax && is_null($this->product_price)) {\n\t\t\tif (strlen($this->price_with_tax) == 0) $this->product_price = null;\n\t\t\telse $this->product_price = $this->price_with_tax / (1+($this->product_tax/100));\n\t\t}\n\t\telse if (strlen($this->product_price) == 0) $this->product_price = null;\n\t\t\n\t\t/* Bind the data */\n\t\t$this->_vm_product_price->bind($this);\n\t\t\n\t\t/* Calculate the new price */\n\t\t$this->_vm_product_price->CalculatePrice();\n\t\t\n\t\tif (is_null($this->product_price)) {\n\t\t\t/* Delete the price */\n\t\t\t$this->_vm_product_price->delete();\n\t\t}\n\t\telse {\n\t\t\t/* Store the price*/\n\t\t\t/* Add some variables if needed */\n\t\t\t/* Set the modified date if the user has not done so */\n\t\t\tif (!$this->_vm_product_price->getValue('mdate')) $this->_vm_product_price->setValue('mdate', time());\n\t\t\t\n\t\t\t/* Set the create date if the user has not done so and there is no product_price_id */\n\t\t\tif (!$this->_vm_product_price->getValue('mdate') && !$this->_vm_product_price->getValue('product_price_id')) {\n\t\t\t\t$this->_vm_product_price->setValue('cdate', time());\n\t\t\t}\n\t\t\t\n\t\t\t/* Store the price */\n\t\t\t$this->_vm_product_price->store();\n\t\t}\n\t\t$csvilog->AddMessage('debug', JText::_('DEBUG_PRICE_QUERY'), true);\n\t}",
"public function filterByPriceqty3($priceqty3 = null, $comparison = null)\n {\n if (is_array($priceqty3)) {\n $useMinMax = false;\n if (isset($priceqty3['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY3, $priceqty3['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceqty3['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY3, $priceqty3['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY3, $priceqty3, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICE, $price, $comparison);\n }",
"public function validate_filter_price($price)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n if (! in_array($price, $this->filter_price))\n return lang('marketplace_filter_invalid');\n }",
"public function price_filter( $filtered_posts = array() ) {\n\t global $wpdb;\n\n\t if ( isset( $_GET['max_price'] ) || isset( $_GET['min_price'] ) ) {\n\n\t\t\t$matched_products = array();\n\t\t\t$min = isset( $_GET['min_price'] ) ? floatval( $_GET['min_price'] ) : 0;\n\t\t\t$max = isset( $_GET['max_price'] ) ? floatval( $_GET['max_price'] ) : 9999999999;\n\n\t $matched_products_query = apply_filters( 'estimategadget_price_filter_results', $wpdb->get_results( $wpdb->prepare( '\n\t \tSELECT DISTINCT ID, post_parent, post_type FROM %1$s\n\t\t\t\tINNER JOIN %2$s ON ID = post_id\n\t\t\t\tWHERE post_type IN ( \"product\", \"product_variation\" )\n\t\t\t\tAND post_status = \"publish\"\n\t\t\t\tAND meta_key IN (\"' . implode( '\",\"', apply_filters( 'estimategadget_price_filter_meta_keys', array( '_price' ) ) ) . '\")\n\t\t\t\tAND meta_value BETWEEN %3$d AND %4$d\n\t\t\t', $wpdb->posts, $wpdb->postmeta, $min, $max ), OBJECT_K ), $min, $max );\n\n\t if ( $matched_products_query ) {\n\t foreach ( $matched_products_query as $product ) {\n\t if ( $product->post_type == 'product' ) {\n\t $matched_products[] = $product->ID;\n\t }\n\t if ( $product->post_parent > 0 && ! in_array( $product->post_parent, $matched_products ) ) {\n\t $matched_products[] = $product->post_parent;\n\t }\n\t }\n\t }\n\n\t // Filter the id's\n\t if ( 0 === sizeof( $filtered_posts ) ) {\n\t\t\t\t$filtered_posts = $matched_products;\n\t } else {\n\t\t\t\t$filtered_posts = array_intersect( $filtered_posts, $matched_products );\n\n\t }\n\t $filtered_posts[] = 0;\n\t }\n\n\t return (array) $filtered_posts;\n\t}",
"public function filterAvailableProductsByPrice($minPrice, $maxPrice) {\n\n if ($this->PriceList && $this->nr_products_available) {\n\n //verificam daca preturile produselor salvate in priceList se incadreaza in intervalul min si max\n $nr_available = 0;\n foreach ($this->PriceList as $price) {\n //echo \"Pret:\".$price.' MinPrice:'.$minPrice.' Maxprice:'.$maxPrice;\n if ($minPrice <= $price && $price <= $maxPrice) {\n $nr_available++;\n //exit(\"Incrementez\");\n }\n }\n //updatam numarul de produse disponibile\n $this->nr_products_available = $nr_available;\n }\n }",
"function getItemsByPrice($dbh, $min, $max)\r\n{\r\n \r\n $stmt = $dbh->prepare ( \"SELECT * FROM items WHERE items.price >= ? and items.price <= ?\"); \r\n\r\n $stmt->bindParam(1,$min);\r\n $stmt->bindParam(2,$max);\r\n\r\n if ($stmt->execute()) \r\n {\r\n $data = array();\r\n \r\n while ($row = $stmt->fetch()) \r\n { \r\n array_push($data, $row['name'], $row['price'], $row['quantity'],$row['quality']);\r\n }\r\n echo json_encode($data);\r\n \r\n }\r\n}",
"public function scopeWhenMinAndMaxPrice($query, $data)\n {\n if (isset($data['min_price']) and !__isEmpty($data['min_price'])) {\n $query->where('price', '>=', calculateBaseCurrency($data['min_price']));\n }\n\n if (isset($data['max_price']) and !__isEmpty($data['max_price'])) {\n $query->where('price', '<=', calculateBaseCurrency($data['max_price']));\n }\n\n return $query;\n }",
"public function searchItemByFilter($filterData)\n {\n// print_r($filterData);\n $sql = \"SELECT items.name as item_name, items.description, items.id as item_id, items.image, items.price, items.thumbnail,\n user.first_name, user.last_name, user.sfsu_id, user.username, category.name as category_name\n FROM items, category, user WHERE items.cataegory_id = category.id\n and items.user_id = user.id\n and items.name LIKE :search_term\";\n $parameters = array();\n $parameters[':search_term'] = '%' . $filterData->searchTerm . '%';\n if (isset($filterData->category_id) && $filterData->category_id != -1) {\n $sql.=' and category.id = :cat_id';\n $parameters[':cat_id'] = $filterData->category_id;\n }\n if (isset($filterData->price_from) && isset($filterData->price_to) && \n $filterData->price_from != -1 && $filterData->price_to != -1) \n {\n $sql.=' and items.price >= :price_from and items.price <= :price_to';\n $parameters[':price_from'] = $filterData->price_from;\n $parameters[':price_to'] = $filterData->price_to;\n }\n// echo \"$sql\";\n $query = $this->db->prepare($sql);\n// echo '[ PDO DEBUG ]: ' . Helper::debugPDO($sql, $parameters); exit();\n $query->execute($parameters);\n return $query->fetchAll();\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(SaleTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(SaleTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(SaleTableMap::COL_PRICE, $price, $comparison);\n }",
"public function filter(Request $request){ \n \n if($request->priceMin!=null and $request->priceMax!=null and $request->year!=null){\n $produit=Stock::where('stockName',$request->name)\n ->whereBetween('stockPrice', array($request->priceMin, $request->priceMax))\n ->where('stockYear',$request->year)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();}\n elseif($request->priceMin!=null and $request->priceMax!=null and $request->year==null){\n $produit=Stock::where('stockName',$request->name)\n ->whereBetween('stockPrice', array($request->priceMin, $request->priceMax))\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n elseif ($request->priceMin!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockPrice','>=',$request->priceMin)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n elseif ($request->priceMax!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockPrice','<=',$request->priceMax)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n \n elseif($request->priceMin==null and $request->priceMax==null and $request->year!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockYear',$request->year)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n \n else{\n $produit=Stock::where('stockName',$request->name)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n return response()->json($produit);\n }",
"public function scopePrice($query, $min = null, $max = null)\n {\n if($min)\n $query->where('internet_price', '>=', $min);\n if($max)\n $query->where('internet_price', '<=', $max)->where('internet_price', '!=', 0);\n return $query;\n }",
"public function modelFilter($category_id,$recordPerPage){\n\t\t\t$p = isset($_GET[\"p\"]) && is_numeric($_GET[\"p\"]) && $_GET[\"p\"] > 0 ? ($_GET[\"p\"]-1) : 0;\t\t\t\n\t\t\t//lay tu ban ghi nao\n\t\t\t$from = $p * $recordPerPage;\n\t\t\t//---\n\t\t\t//lay bien ket noi csdl\n\t\t\t$conn = Connection::getInstance();\n //\n\t\t\t//sap xep cac ban ghi theo thu tu\n\t\t $orderBy = \"order by id desc\";\n\t\t\t$order = isset($_GET[\"order\"]) ? $_GET[\"order\"] : \"\";\n\t\t\tswitch($order){\n\t\t\t\tcase \"priceAsc\":\n\t\t\t\t\t$orderBy = \" order by giamoi asc \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"priceDesc\":\n\t\t\t\t\t$orderBy = \" order by giamoi desc \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"priceRandom\":\n\t\t\t\t\t$orderBy = \" order by id desc \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"giaRe\":\n\t\t\t\t\t$orderBy = \"and giamoi > 0 and giamoi < 250000 order by giamoi asc \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"giaTb\":\n\t\t\t\t\t$orderBy = \"and giamoi > 250000 and giamoi < 700000 order by giamoi asc \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"giaKha\":\n\t\t\t\t\t$orderBy = \"and giamoi > 700000 and giamoi < 1500000 order by giamoi asc \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"giaLon\":\n\t\t\t\t\t$orderBy = \"and giamoi > 1500000 order by giamoi asc \";\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\t//thuc hien truy van\n\t\t\t$query = $conn->query(\"select * from products where category_id=$category_id $orderBy limit $from,$recordPerPage\");\n\t\t\t//lay toan bo ket qua tra ve\n\t\t\t$result = $query->fetchAll();\t\t\t\n\t\t\t//---\n\t\t\treturn $result;\n\t\t}",
"public function sortPriceMan(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','muska']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function getMinMaxPrice($data) { /* todo-materialize Remove before release! */\n\t\tif (!empty($data['config_tax'])) {\n\t\t\t$sql = \"SELECT MIN(IF(tp.tax_percent IS NOT NULL, IFNULL(ps.price, p.price) + (IFNULL(ps.price, p.price) * tp.tax_percent / 100) + IFNULL(ta.tax_amount, 0), IFNULL(ps.price, p.price)) * '\" . (float)$data['currency_ratio'] . \"') AS min_price, MAX(IF(tp.tax_percent IS NOT NULL, IFNULL(ps.price, p.price) + (IFNULL(ps.price, p.price) * tp.tax_percent / 100) + IFNULL(ta.tax_amount, 0), IFNULL(ps.price, p.price)) * '\" . (float)$data['currency_ratio'] . \"') AS max_price\";\n\t\t} else {\n\t\t\t$sql = \"SELECT MIN(IFNULL(ps.price, p.price) * '\" . (float)$data['currency_ratio'] . \"') AS min_price, MAX(IFNULL(ps.price, p.price) * '\" . (float)$data['currency_ratio'] . \"') AS max_price\";\n\t\t}\n\n\t\t$sql .= \" FROM \" . DB_PREFIX . \"product p LEFT JOIN \" . DB_PREFIX . \"product_to_category p2c ON (p.product_id = p2c.product_id) LEFT JOIN \" . DB_PREFIX . \"product_to_store p2s ON (p.product_id = p2s.product_id) LEFT JOIN (SELECT product_id, price FROM \" . DB_PREFIX . \"product_special ps WHERE ps.customer_group_id = '\" . (int)$this->config->get('config_customer_group_id') . \"' AND ((ps.date_start = '0000-00-00' OR ps.date_start < NOW()) AND (ps.date_end = '0000-00-00' OR ps.date_end > NOW())) ORDER BY ps.priority ASC, ps.price ASC LIMIT 1) AS ps ON (p.product_id = ps.product_id)\";\n\n\t\tif (!empty($data['config_tax'])) {\n\t\t\t$sql .= \" LEFT JOIN (SELECT tr2.tax_class_id, tr1.rate AS tax_percent FROM \" . DB_PREFIX . \"tax_rate tr1 INNER JOIN \" . DB_PREFIX . \"tax_rate_to_customer_group tr2cg ON (tr1.tax_rate_id = tr2cg.tax_rate_id) LEFT JOIN \" . DB_PREFIX . \"tax_rule tr2 ON (tr1.tax_rate_id = tr2.tax_rate_id) WHERE tr1.type = 'P' AND tr2cg.customer_group_id = '\" . (int)$this->config->get('config_customer_group_id') . \"' ORDER BY tr2.priority) AS tp ON (p.tax_class_id = tp.tax_class_id) LEFT JOIN (SELECT tr2.tax_class_id, tr1.rate AS tax_amount FROM \" . DB_PREFIX . \"tax_rate tr1 INNER JOIN \" . DB_PREFIX . \"tax_rate_to_customer_group tr2cg ON (tr1.tax_rate_id = tr2cg.tax_rate_id) LEFT JOIN \" . DB_PREFIX . \"tax_rule tr2 ON (tr1.tax_rate_id = tr2.tax_rate_id) WHERE tr1.type = 'F' AND tr2cg.customer_group_id = '\" . (int)$this->config->get('config_customer_group_id') . \"' ORDER BY tr2.priority) AS ta ON (p.tax_class_id = ta.tax_class_id)\";\n\t\t}\n\n\t\t$sql .= \" WHERE p.date_available <= NOW() AND p.status = '1' AND p2s.store_id = '\" . (int)$this->config->get('config_store_id') . \"'\";\n\n\t\tif (!empty($data['category_id'])) {\n\t\t\t$sql .= \" AND p2c.category_id = '\" . (int)$data['category_id'] . \"'\";\n\t\t}\n\n\t\t$query = $this->db->query($sql);\n\n\t\treturn $query->row;\n\t}",
"function filterHouses($start, $end, $guests, $minPrice, $maxPrice) {\r\n\t\tglobal $conn;\r\n\r\n\t\t$stmt = $conn->prepare('SELECT Houses.* , (Houses.SingleBeds + 2*Houses.DoubleBeds) AS Guests, Reservation.StartDate, Reservation.EndDate FROM Houses\r\n\t\t\t\t\t\t\t\tLEFT JOIN Reservation ON Reservation.HouseID = Houses.ID\r\n\t\t\t\t\t\t\t\tWHERE ((Reservation.StartDate > \"11-6-2019\" OR Reservation.EndDate < \"13-7-2019\"))\r\n\t\t\t\t\t\t\t\tAND Guests > ? \r\n\t\t\t\t\t\t\t\tAND DailyCost > \"50\"' );\r\n\t\t\r\n\t\t// $stmt->execute();\r\n\t\t// $guests=2;\r\n\t\t// $stmt->execute(array($guests));\r\n\t\t\r\n\t\t// $stmt->execute([$start, $end, $guests, $minPrice]);\r\n\t\treturn $stmt->fetchAll();\r\n\t}",
"public function showAll() {\n// print_r($_REQUEST);\n// echo \"</pre>\";\n// die;\n $params = [];\n $str_price = '';\n $product_model = new Product();\n if (isset($_POST['filter'])) {\n if (isset($_POST['category'])) {\n $category = implode(',', $_POST['category']);\n //chuyển thành chuỗi sau để sử dụng câu lệnh in_array\n $str_category_id = \"($category)\";\n $params['category'] = $str_category_id;\n }\n if (isset($_POST['price'])) {\n foreach ($_POST['price'] AS $price) {\n if ($price == 1) {\n $str_price .= \" OR products.price < 1000000\";\n }\n if ($price == 2) {\n $str_price .= \" OR (products.price >= 1000000 AND products.price < 50000000)\";\n }\n if ($price == 3) {\n $str_price .= \" OR (products.price >= 5000000 AND products.price < 10000000)\";\n }\n if ($price == 4) {\n $str_price .= \" OR (products.price >= 10000000 AND products.price < 20000000)\";\n }\n if ($price == 5){\n $str_price .= \" OR products.price >= 20000000\";\n }\n }\n //cắt bỏ từ khóa OR ở vị trí ban đầu\n $str_price = substr($str_price, 3);\n $str_price = \"($str_price)\";\n $params['price'] = $str_price;\n }\n }\n\n if (isset($_POST['price'])) {\n $count = $product_model->countFilter($params);\n } else {\n $count = $product_model->countTotal();\n }\n echo $count;\n $params_pagination = [\n 'total' => $count,\n 'limit' => 9,\n 'controller' => 'product',\n 'action' => 'showAll',\n 'page' => isset($_GET['page']) ? $_GET['page'] : 1,\n 'full_mode' => FALSE,\n 'price' => $str_price\n ];\n// echo\"<pre>\";\n// print_r($params_pagination);\n// echo\"</pre>\";\n\n// if (isset($_POST)){\n// $products = $product_model->getProductFilter($params);\n// }\n// else {\n $products = $product_model->getAllPagination($params_pagination);\n// }\n\n //xử lý phân trang\n $pagination_model = new Pagination($params_pagination);\n $pagination = $pagination_model->getPagination();\n //get products\n\n\n //get categories để filter\n $category_model = new Category();\n $categories = $category_model->getAll();\n\n $this->content = $this->render('views/products/shop.php', [\n 'products' => $products,\n 'categories' => $categories,\n 'pagination' => $pagination\n ]);\n\n require_once 'views/layouts/main.php';\n }",
"public function scopeSelectMinAndMaxPrice($query)\n {\n return $query->select(DB::raw('MAX(price) as max_price'), DB::raw('MIN(price) as min_price'));\n }",
"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_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceprice5['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE5, $priceprice5['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE5, $priceprice5, $comparison);\n }",
"public function sortPriceKids(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','decija']])->orderBy('newPrice','asc')->get();\n return $data;\n }"
] | [
"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.52053106",
"0.5172297",
"0.5171936",
"0.51404554",
"0.5109523",
"0.5087101",
"0.5069284",
"0.50347495",
"0.5029161",
"0.502526"
] | 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 ->join('categories', 'subcategories.category_id', '=', 'categories.id')\n ->select('products.*', 'categories.categories_name')\n ->where('products.price','>=', $min_price)\n ->where('products.price','<=', $max_price)\n ->Paginate(12);\n return json_encode($products);\n }",
"function getPriceFilter($price)\n {\n $products = product::whereBetween('sale_price', [0, $price])->get();\n return view('products')->with('products', $products);\n }",
"public function getProductsSQL($section,$skipPrice=false){\n $sql = ' FROM sr_shop_product AS p LEFT OUTER JOIN sr_shop_product AS m ON p.`id`=m.`parent_id`';\n $conditions = array();\n foreach($section['filterOptions'] as $optionId){\n $filter = $_REQUEST['filters'][$optionId];\n if(!is_array($filter) || !count($filter)) continue;\n foreach($filter as &$f){\n $f = \"'\".Helpers::mysql_escape($f).\"'\";\n }\n $tableAlias = 'o'.(int)$optionId;\n $sql .=\"INNER JOIN sr_shop_option_value AS \".$tableAlias.\"\n ON p.`id`=\".$tableAlias.\".`main_product_id` \";\n array_push($conditions,\n $tableAlias.'.option_id='.(int)$optionId.' AND '.$tableAlias.\".`value` in (\".implode(',',$filter).\")\"\n );\n }\n $conditions = count($conditions) ? ' AND '.implode(' AND ',$conditions) : '';\n $priceFilter = '';\n if(!$skipPrice){\n $price_from = (float)$_REQUEST['price_from'];\n $price_to = (float)$_REQUEST['price_to'];\n if($price_from>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price>='.$price_from.') ||\n (m.sale_price=0 AND m.price>0 AND m.price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price>='.$price_from.'))';\n }\n if($price_to>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price<='.$price_to.') ||\n (m.sale_price=0 AND m.price>0 AND m.price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price<='.$price_to.'))';\n }\n }\n $sql .= 'WHERE p.`parent_id`=0 and p.`active`=1 and p.`section_id` in ('.$section['cat_ids'].')'.$conditions.$priceFilter.' ORDER BY p.`instock` desc, p.`order` asc';\n return $sql;\n }",
"public function filterAvailableProductsByPrice($minPrice, $maxPrice) {\n\n if ($this->PriceList && $this->nr_products_available) {\n\n //verificam daca preturile produselor salvate in priceList se incadreaza in intervalul min si max\n $nr_available = 0;\n foreach ($this->PriceList as $price) {\n //echo \"Pret:\".$price.' MinPrice:'.$minPrice.' Maxprice:'.$maxPrice;\n if ($minPrice <= $price && $price <= $maxPrice) {\n $nr_available++;\n //exit(\"Incrementez\");\n }\n }\n //updatam numarul de produse disponibile\n $this->nr_products_available = $nr_available;\n }\n }",
"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 $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price, $comparison);\n }",
"public function filterByPriceqty4($priceqty4 = null, $comparison = null)\n {\n if (is_array($priceqty4)) {\n $useMinMax = false;\n if (isset($priceqty4['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY4, $priceqty4['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceqty4['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY4, $priceqty4['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY4, $priceqty4, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(OrdersLinesPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(OrdersLinesPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(OrdersLinesPeer::PRICE, $price, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price))\n {\n $useMinMax = false;\n if (isset($price['min']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax)\n {\n return $this;\n }\n if (null === $comparison)\n {\n $comparison = Criteria::IN;\n }\n }\n return $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price, $comparison);\n }",
"function PriceQuery() {\n\t\t$csvilog = JRequest::getVar('csvilog');\n\t\t\n\t\t/* Check if the price is including or excluding tax */\n\t\tif ($this->product_tax && $this->price_with_tax && is_null($this->product_price)) {\n\t\t\tif (strlen($this->price_with_tax) == 0) $this->product_price = null;\n\t\t\telse $this->product_price = $this->price_with_tax / (1+($this->product_tax/100));\n\t\t}\n\t\telse if (strlen($this->product_price) == 0) $this->product_price = null;\n\t\t\n\t\t/* Bind the data */\n\t\t$this->_vm_product_price->bind($this);\n\t\t\n\t\t/* Calculate the new price */\n\t\t$this->_vm_product_price->CalculatePrice();\n\t\t\n\t\tif (is_null($this->product_price)) {\n\t\t\t/* Delete the price */\n\t\t\t$this->_vm_product_price->delete();\n\t\t}\n\t\telse {\n\t\t\t/* Store the price*/\n\t\t\t/* Add some variables if needed */\n\t\t\t/* Set the modified date if the user has not done so */\n\t\t\tif (!$this->_vm_product_price->getValue('mdate')) $this->_vm_product_price->setValue('mdate', time());\n\t\t\t\n\t\t\t/* Set the create date if the user has not done so and there is no product_price_id */\n\t\t\tif (!$this->_vm_product_price->getValue('mdate') && !$this->_vm_product_price->getValue('product_price_id')) {\n\t\t\t\t$this->_vm_product_price->setValue('cdate', time());\n\t\t\t}\n\t\t\t\n\t\t\t/* Store the price */\n\t\t\t$this->_vm_product_price->store();\n\t\t}\n\t\t$csvilog->AddMessage('debug', JText::_('DEBUG_PRICE_QUERY'), true);\n\t}",
"public function filterByMinprice($minprice = null, $comparison = null)\n {\n if (is_array($minprice)) {\n $useMinMax = false;\n if (isset($minprice['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($minprice['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price, $comparison);\n }",
"public function price_filter( $filtered_posts = array() ) {\n\t global $wpdb;\n\n\t if ( isset( $_GET['max_price'] ) || isset( $_GET['min_price'] ) ) {\n\n\t\t\t$matched_products = array();\n\t\t\t$min = isset( $_GET['min_price'] ) ? floatval( $_GET['min_price'] ) : 0;\n\t\t\t$max = isset( $_GET['max_price'] ) ? floatval( $_GET['max_price'] ) : 9999999999;\n\n\t $matched_products_query = apply_filters( 'estimategadget_price_filter_results', $wpdb->get_results( $wpdb->prepare( '\n\t \tSELECT DISTINCT ID, post_parent, post_type FROM %1$s\n\t\t\t\tINNER JOIN %2$s ON ID = post_id\n\t\t\t\tWHERE post_type IN ( \"product\", \"product_variation\" )\n\t\t\t\tAND post_status = \"publish\"\n\t\t\t\tAND meta_key IN (\"' . implode( '\",\"', apply_filters( 'estimategadget_price_filter_meta_keys', array( '_price' ) ) ) . '\")\n\t\t\t\tAND meta_value BETWEEN %3$d AND %4$d\n\t\t\t', $wpdb->posts, $wpdb->postmeta, $min, $max ), OBJECT_K ), $min, $max );\n\n\t if ( $matched_products_query ) {\n\t foreach ( $matched_products_query as $product ) {\n\t if ( $product->post_type == 'product' ) {\n\t $matched_products[] = $product->ID;\n\t }\n\t if ( $product->post_parent > 0 && ! in_array( $product->post_parent, $matched_products ) ) {\n\t $matched_products[] = $product->post_parent;\n\t }\n\t }\n\t }\n\n\t // Filter the id's\n\t if ( 0 === sizeof( $filtered_posts ) ) {\n\t\t\t\t$filtered_posts = $matched_products;\n\t } else {\n\t\t\t\t$filtered_posts = array_intersect( $filtered_posts, $matched_products );\n\n\t }\n\t $filtered_posts[] = 0;\n\t }\n\n\t return (array) $filtered_posts;\n\t}",
"public function filter(Request $request){ \n \n if($request->priceMin!=null and $request->priceMax!=null and $request->year!=null){\n $produit=Stock::where('stockName',$request->name)\n ->whereBetween('stockPrice', array($request->priceMin, $request->priceMax))\n ->where('stockYear',$request->year)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();}\n elseif($request->priceMin!=null and $request->priceMax!=null and $request->year==null){\n $produit=Stock::where('stockName',$request->name)\n ->whereBetween('stockPrice', array($request->priceMin, $request->priceMax))\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n elseif ($request->priceMin!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockPrice','>=',$request->priceMin)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n elseif ($request->priceMax!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockPrice','<=',$request->priceMax)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n \n elseif($request->priceMin==null and $request->priceMax==null and $request->year!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockYear',$request->year)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n \n else{\n $produit=Stock::where('stockName',$request->name)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n return response()->json($produit);\n }",
"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_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceprice1['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE1, $priceprice1['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE1, $priceprice1, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICE, $price, $comparison);\n }",
"function getItemsByPrice($dbh, $min, $max)\r\n{\r\n \r\n $stmt = $dbh->prepare ( \"SELECT * FROM items WHERE items.price >= ? and items.price <= ?\"); \r\n\r\n $stmt->bindParam(1,$min);\r\n $stmt->bindParam(2,$max);\r\n\r\n if ($stmt->execute()) \r\n {\r\n $data = array();\r\n \r\n while ($row = $stmt->fetch()) \r\n { \r\n array_push($data, $row['name'], $row['price'], $row['quantity'],$row['quality']);\r\n }\r\n echo json_encode($data);\r\n \r\n }\r\n}",
"public function filterByName4($name4 = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($name4)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_NAME4, $name4, $comparison);\n }",
"function filterHouses($start, $end, $guests, $minPrice, $maxPrice) {\r\n\t\tglobal $conn;\r\n\r\n\t\t$stmt = $conn->prepare('SELECT Houses.* , (Houses.SingleBeds + 2*Houses.DoubleBeds) AS Guests, Reservation.StartDate, Reservation.EndDate FROM Houses\r\n\t\t\t\t\t\t\t\tLEFT JOIN Reservation ON Reservation.HouseID = Houses.ID\r\n\t\t\t\t\t\t\t\tWHERE ((Reservation.StartDate > \"11-6-2019\" OR Reservation.EndDate < \"13-7-2019\"))\r\n\t\t\t\t\t\t\t\tAND Guests > ? \r\n\t\t\t\t\t\t\t\tAND DailyCost > \"50\"' );\r\n\t\t\r\n\t\t// $stmt->execute();\r\n\t\t// $guests=2;\r\n\t\t// $stmt->execute(array($guests));\r\n\t\t\r\n\t\t// $stmt->execute([$start, $end, $guests, $minPrice]);\r\n\t\treturn $stmt->fetchAll();\r\n\t}",
"public function load($min_price, $max_price);",
"public function scopePrice($query, $min = null, $max = null)\n {\n if($min)\n $query->where('internet_price', '>=', $min);\n if($max)\n $query->where('internet_price', '<=', $max)->where('internet_price', '!=', 0);\n return $query;\n }",
"public function GetMinimumPrice($customer_id, $value1, $value2) {\r\n\r\n \t$query = $this->_hotelPDO->prepare(\"SELECT * FROM `master_hotel_price` WHERE `customer_id` = '$customer_id' AND ((`rack_epi` BETWEEN '$value1' AND '$value2') OR (`rack_cpi` BETWEEN '$value1' AND '$value2') OR (`rack_mapi` BETWEEN '$value1' AND '$value2') OR (`rack_apai` BETWEEN '$value1' AND '$value2') OR (`btb_epi` BETWEEN '$value1' AND '$value2') OR (`btb_cpi` BETWEEN '$value1' AND '$value2') OR (`btb_mapi` BETWEEN '$value1' AND '$value2') OR (`sea_epi` BETWEEN '$value1' AND '$value2') OR (`sea_cpi` BETWEEN '$value1' AND '$value2') OR (`sea_mapi` BETWEEN '$value1' AND '$value2') OR (`sea_apai` BETWEEN '$value1' AND '$value2') OR (`prom_epi` BETWEEN '$value1' AND '$value2') OR (`prom_cpi` BETWEEN '$value1' AND '$value2') OR (`prom_mapi` BETWEEN '$value1' AND '$value2') OR (`prom_apai` BETWEEN '$value1' AND '$value2'))\");\r\n \t$query->execute() or die($this->_hotelPDO->error);\r\n \t$rows = $query->fetchAll(PDO::FETCH_ASSOC);\r\n\r\n \treturn $rows;\r\n }",
"public function validate_filter_price($price)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n if (! in_array($price, $this->filter_price))\n return lang('marketplace_filter_invalid');\n }",
"public function getMinMaxPrice($data) { /* todo-materialize Remove before release! */\n\t\tif (!empty($data['config_tax'])) {\n\t\t\t$sql = \"SELECT MIN(IF(tp.tax_percent IS NOT NULL, IFNULL(ps.price, p.price) + (IFNULL(ps.price, p.price) * tp.tax_percent / 100) + IFNULL(ta.tax_amount, 0), IFNULL(ps.price, p.price)) * '\" . (float)$data['currency_ratio'] . \"') AS min_price, MAX(IF(tp.tax_percent IS NOT NULL, IFNULL(ps.price, p.price) + (IFNULL(ps.price, p.price) * tp.tax_percent / 100) + IFNULL(ta.tax_amount, 0), IFNULL(ps.price, p.price)) * '\" . (float)$data['currency_ratio'] . \"') AS max_price\";\n\t\t} else {\n\t\t\t$sql = \"SELECT MIN(IFNULL(ps.price, p.price) * '\" . (float)$data['currency_ratio'] . \"') AS min_price, MAX(IFNULL(ps.price, p.price) * '\" . (float)$data['currency_ratio'] . \"') AS max_price\";\n\t\t}\n\n\t\t$sql .= \" FROM \" . DB_PREFIX . \"product p LEFT JOIN \" . DB_PREFIX . \"product_to_category p2c ON (p.product_id = p2c.product_id) LEFT JOIN \" . DB_PREFIX . \"product_to_store p2s ON (p.product_id = p2s.product_id) LEFT JOIN (SELECT product_id, price FROM \" . DB_PREFIX . \"product_special ps WHERE ps.customer_group_id = '\" . (int)$this->config->get('config_customer_group_id') . \"' AND ((ps.date_start = '0000-00-00' OR ps.date_start < NOW()) AND (ps.date_end = '0000-00-00' OR ps.date_end > NOW())) ORDER BY ps.priority ASC, ps.price ASC LIMIT 1) AS ps ON (p.product_id = ps.product_id)\";\n\n\t\tif (!empty($data['config_tax'])) {\n\t\t\t$sql .= \" LEFT JOIN (SELECT tr2.tax_class_id, tr1.rate AS tax_percent FROM \" . DB_PREFIX . \"tax_rate tr1 INNER JOIN \" . DB_PREFIX . \"tax_rate_to_customer_group tr2cg ON (tr1.tax_rate_id = tr2cg.tax_rate_id) LEFT JOIN \" . DB_PREFIX . \"tax_rule tr2 ON (tr1.tax_rate_id = tr2.tax_rate_id) WHERE tr1.type = 'P' AND tr2cg.customer_group_id = '\" . (int)$this->config->get('config_customer_group_id') . \"' ORDER BY tr2.priority) AS tp ON (p.tax_class_id = tp.tax_class_id) LEFT JOIN (SELECT tr2.tax_class_id, tr1.rate AS tax_amount FROM \" . DB_PREFIX . \"tax_rate tr1 INNER JOIN \" . DB_PREFIX . \"tax_rate_to_customer_group tr2cg ON (tr1.tax_rate_id = tr2cg.tax_rate_id) LEFT JOIN \" . DB_PREFIX . \"tax_rule tr2 ON (tr1.tax_rate_id = tr2.tax_rate_id) WHERE tr1.type = 'F' AND tr2cg.customer_group_id = '\" . (int)$this->config->get('config_customer_group_id') . \"' ORDER BY tr2.priority) AS ta ON (p.tax_class_id = ta.tax_class_id)\";\n\t\t}\n\n\t\t$sql .= \" WHERE p.date_available <= NOW() AND p.status = '1' AND p2s.store_id = '\" . (int)$this->config->get('config_store_id') . \"'\";\n\n\t\tif (!empty($data['category_id'])) {\n\t\t\t$sql .= \" AND p2c.category_id = '\" . (int)$data['category_id'] . \"'\";\n\t\t}\n\n\t\t$query = $this->db->query($sql);\n\n\t\treturn $query->row;\n\t}",
"public function modelFilter($category_id,$recordPerPage){\n\t\t\t$p = isset($_GET[\"p\"]) && is_numeric($_GET[\"p\"]) && $_GET[\"p\"] > 0 ? ($_GET[\"p\"]-1) : 0;\t\t\t\n\t\t\t//lay tu ban ghi nao\n\t\t\t$from = $p * $recordPerPage;\n\t\t\t//---\n\t\t\t//lay bien ket noi csdl\n\t\t\t$conn = Connection::getInstance();\n //\n\t\t\t//sap xep cac ban ghi theo thu tu\n\t\t $orderBy = \"order by id desc\";\n\t\t\t$order = isset($_GET[\"order\"]) ? $_GET[\"order\"] : \"\";\n\t\t\tswitch($order){\n\t\t\t\tcase \"priceAsc\":\n\t\t\t\t\t$orderBy = \" order by giamoi asc \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"priceDesc\":\n\t\t\t\t\t$orderBy = \" order by giamoi desc \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"priceRandom\":\n\t\t\t\t\t$orderBy = \" order by id desc \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"giaRe\":\n\t\t\t\t\t$orderBy = \"and giamoi > 0 and giamoi < 250000 order by giamoi asc \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"giaTb\":\n\t\t\t\t\t$orderBy = \"and giamoi > 250000 and giamoi < 700000 order by giamoi asc \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"giaKha\":\n\t\t\t\t\t$orderBy = \"and giamoi > 700000 and giamoi < 1500000 order by giamoi asc \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"giaLon\":\n\t\t\t\t\t$orderBy = \"and giamoi > 1500000 order by giamoi asc \";\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\t//thuc hien truy van\n\t\t\t$query = $conn->query(\"select * from products where category_id=$category_id $orderBy limit $from,$recordPerPage\");\n\t\t\t//lay toan bo ket qua tra ve\n\t\t\t$result = $query->fetchAll();\t\t\t\n\t\t\t//---\n\t\t\treturn $result;\n\t\t}",
"public function scopeSelectMinAndMaxPrice($query)\n {\n return $query->select(DB::raw('MAX(price) as max_price'), DB::raw('MIN(price) as min_price'));\n }",
"public function findProctBetweenPrice($minPrice,$maxPrice)\n {\n $query = $this->createQueryBuilder('prod')\n ->where(\"prod.price > :min AND prod.price < :max\")\n ->setParameters([\"min\"=>$minPrice,\"max\"=>$maxPrice]);\n\n return $query->getQuery()->getResult();\n\n }",
"public function firstThreePricePanel(){\n $price = self::having('id' , '<=' , 3)->get();\n\n return $price;\n }",
"public function scopeWhenMinAndMaxPrice($query, $data)\n {\n if (isset($data['min_price']) and !__isEmpty($data['min_price'])) {\n $query->where('price', '>=', calculateBaseCurrency($data['min_price']));\n }\n\n if (isset($data['max_price']) and !__isEmpty($data['max_price'])) {\n $query->where('price', '<=', calculateBaseCurrency($data['max_price']));\n }\n\n return $query;\n }",
"public function cat_price_range_pro($min, $max, $cat_id)\n {\n $this->db->select('*');\n $this->db->from('product_information');\n $this->db->where('category_id', $cat_id);\n $this->db->where('price >=', $min);\n $this->db->where('price <=', $max);\n $this->db->order_by('product_name');\n $query = $this->db->get();\n if ($query->num_rows() > 0) {\n return $query->result();\n }\n return false;\n }",
"public function minPrice(){\n //$prices=\\DB::table('min_price')->get();\n\n $prices= \\DB::table('pricedata')\n ->select('fuelTypeID',\\DB::raw('min(fuelPrice) as min_price'))\n -> groupBy ('fuelTypeID')\n ->get();\n\n return response()->json( $prices);\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.51867723",
"0.51736814",
"0.5152333",
"0.51504314",
"0.5117989",
"0.5099639",
"0.5094022",
"0.50857836",
"0.5076174",
"0.50351495"
] | 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 $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price))\n {\n $useMinMax = false;\n if (isset($price['min']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax)\n {\n return $this;\n }\n if (null === $comparison)\n {\n $comparison = Criteria::IN;\n }\n }\n return $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price, $comparison);\n }",
"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 ->join('categories', 'subcategories.category_id', '=', 'categories.id')\n ->select('products.*', 'categories.categories_name')\n ->where('products.price','>=', $min_price)\n ->where('products.price','<=', $max_price)\n ->Paginate(12);\n return json_encode($products);\n }",
"public function filterByPriceqty5($priceqty5 = null, $comparison = null)\n {\n if (is_array($priceqty5)) {\n $useMinMax = false;\n if (isset($priceqty5['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY5, $priceqty5['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceqty5['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY5, $priceqty5['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY5, $priceqty5, $comparison);\n }",
"function getPriceFilter($price)\n {\n $products = product::whereBetween('sale_price', [0, $price])->get();\n return view('products')->with('products', $products);\n }",
"public function getProductsSQL($section,$skipPrice=false){\n $sql = ' FROM sr_shop_product AS p LEFT OUTER JOIN sr_shop_product AS m ON p.`id`=m.`parent_id`';\n $conditions = array();\n foreach($section['filterOptions'] as $optionId){\n $filter = $_REQUEST['filters'][$optionId];\n if(!is_array($filter) || !count($filter)) continue;\n foreach($filter as &$f){\n $f = \"'\".Helpers::mysql_escape($f).\"'\";\n }\n $tableAlias = 'o'.(int)$optionId;\n $sql .=\"INNER JOIN sr_shop_option_value AS \".$tableAlias.\"\n ON p.`id`=\".$tableAlias.\".`main_product_id` \";\n array_push($conditions,\n $tableAlias.'.option_id='.(int)$optionId.' AND '.$tableAlias.\".`value` in (\".implode(',',$filter).\")\"\n );\n }\n $conditions = count($conditions) ? ' AND '.implode(' AND ',$conditions) : '';\n $priceFilter = '';\n if(!$skipPrice){\n $price_from = (float)$_REQUEST['price_from'];\n $price_to = (float)$_REQUEST['price_to'];\n if($price_from>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price>='.$price_from.') ||\n (m.sale_price=0 AND m.price>0 AND m.price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price>='.$price_from.'))';\n }\n if($price_to>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price<='.$price_to.') ||\n (m.sale_price=0 AND m.price>0 AND m.price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price<='.$price_to.'))';\n }\n }\n $sql .= 'WHERE p.`parent_id`=0 and p.`active`=1 and p.`section_id` in ('.$section['cat_ids'].')'.$conditions.$priceFilter.' ORDER BY p.`instock` desc, p.`order` asc';\n return $sql;\n }",
"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_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceprice1['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE1, $priceprice1['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE1, $priceprice1, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price, $comparison);\n }",
"public function filterByMinprice($minprice = null, $comparison = null)\n {\n if (is_array($minprice)) {\n $useMinMax = false;\n if (isset($minprice['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($minprice['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(OrdersLinesPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(OrdersLinesPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(OrdersLinesPeer::PRICE, $price, $comparison);\n }",
"public function price_filter( $filtered_posts = array() ) {\n\t global $wpdb;\n\n\t if ( isset( $_GET['max_price'] ) || isset( $_GET['min_price'] ) ) {\n\n\t\t\t$matched_products = array();\n\t\t\t$min = isset( $_GET['min_price'] ) ? floatval( $_GET['min_price'] ) : 0;\n\t\t\t$max = isset( $_GET['max_price'] ) ? floatval( $_GET['max_price'] ) : 9999999999;\n\n\t $matched_products_query = apply_filters( 'estimategadget_price_filter_results', $wpdb->get_results( $wpdb->prepare( '\n\t \tSELECT DISTINCT ID, post_parent, post_type FROM %1$s\n\t\t\t\tINNER JOIN %2$s ON ID = post_id\n\t\t\t\tWHERE post_type IN ( \"product\", \"product_variation\" )\n\t\t\t\tAND post_status = \"publish\"\n\t\t\t\tAND meta_key IN (\"' . implode( '\",\"', apply_filters( 'estimategadget_price_filter_meta_keys', array( '_price' ) ) ) . '\")\n\t\t\t\tAND meta_value BETWEEN %3$d AND %4$d\n\t\t\t', $wpdb->posts, $wpdb->postmeta, $min, $max ), OBJECT_K ), $min, $max );\n\n\t if ( $matched_products_query ) {\n\t foreach ( $matched_products_query as $product ) {\n\t if ( $product->post_type == 'product' ) {\n\t $matched_products[] = $product->ID;\n\t }\n\t if ( $product->post_parent > 0 && ! in_array( $product->post_parent, $matched_products ) ) {\n\t $matched_products[] = $product->post_parent;\n\t }\n\t }\n\t }\n\n\t // Filter the id's\n\t if ( 0 === sizeof( $filtered_posts ) ) {\n\t\t\t\t$filtered_posts = $matched_products;\n\t } else {\n\t\t\t\t$filtered_posts = array_intersect( $filtered_posts, $matched_products );\n\n\t }\n\t $filtered_posts[] = 0;\n\t }\n\n\t return (array) $filtered_posts;\n\t}",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICE, $price, $comparison);\n }",
"function filterHouses($start, $end, $guests, $minPrice, $maxPrice) {\r\n\t\tglobal $conn;\r\n\r\n\t\t$stmt = $conn->prepare('SELECT Houses.* , (Houses.SingleBeds + 2*Houses.DoubleBeds) AS Guests, Reservation.StartDate, Reservation.EndDate FROM Houses\r\n\t\t\t\t\t\t\t\tLEFT JOIN Reservation ON Reservation.HouseID = Houses.ID\r\n\t\t\t\t\t\t\t\tWHERE ((Reservation.StartDate > \"11-6-2019\" OR Reservation.EndDate < \"13-7-2019\"))\r\n\t\t\t\t\t\t\t\tAND Guests > ? \r\n\t\t\t\t\t\t\t\tAND DailyCost > \"50\"' );\r\n\t\t\r\n\t\t// $stmt->execute();\r\n\t\t// $guests=2;\r\n\t\t// $stmt->execute(array($guests));\r\n\t\t\r\n\t\t// $stmt->execute([$start, $end, $guests, $minPrice]);\r\n\t\treturn $stmt->fetchAll();\r\n\t}",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(SaleTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(SaleTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(SaleTableMap::COL_PRICE, $price, $comparison);\n }",
"public function scopeSelectMinAndMaxPrice($query)\n {\n return $query->select(DB::raw('MAX(price) as max_price'), DB::raw('MIN(price) as min_price'));\n }",
"public function filterByInPrice($inPrice = null, $comparison = null)\n {\n if (is_array($inPrice)) {\n $useMinMax = false;\n if (isset($inPrice['min'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_IN_PRICE, $inPrice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($inPrice['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_IN_PRICE, $inPrice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_IN_PRICE, $inPrice, $comparison);\n }",
"public function scopeWhenMinAndMaxPrice($query, $data)\n {\n if (isset($data['min_price']) and !__isEmpty($data['min_price'])) {\n $query->where('price', '>=', calculateBaseCurrency($data['min_price']));\n }\n\n if (isset($data['max_price']) and !__isEmpty($data['max_price'])) {\n $query->where('price', '<=', calculateBaseCurrency($data['max_price']));\n }\n\n return $query;\n }",
"public function filterAvailableProductsByPrice($minPrice, $maxPrice) {\n\n if ($this->PriceList && $this->nr_products_available) {\n\n //verificam daca preturile produselor salvate in priceList se incadreaza in intervalul min si max\n $nr_available = 0;\n foreach ($this->PriceList as $price) {\n //echo \"Pret:\".$price.' MinPrice:'.$minPrice.' Maxprice:'.$maxPrice;\n if ($minPrice <= $price && $price <= $maxPrice) {\n $nr_available++;\n //exit(\"Incrementez\");\n }\n }\n //updatam numarul de produse disponibile\n $this->nr_products_available = $nr_available;\n }\n }",
"public function sortPriceMan(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','muska']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"function getItemsByPrice($dbh, $min, $max)\r\n{\r\n \r\n $stmt = $dbh->prepare ( \"SELECT * FROM items WHERE items.price >= ? and items.price <= ?\"); \r\n\r\n $stmt->bindParam(1,$min);\r\n $stmt->bindParam(2,$max);\r\n\r\n if ($stmt->execute()) \r\n {\r\n $data = array();\r\n \r\n while ($row = $stmt->fetch()) \r\n { \r\n array_push($data, $row['name'], $row['price'], $row['quantity'],$row['quality']);\r\n }\r\n echo json_encode($data);\r\n \r\n }\r\n}",
"function PriceQuery() {\n\t\t$csvilog = JRequest::getVar('csvilog');\n\t\t\n\t\t/* Check if the price is including or excluding tax */\n\t\tif ($this->product_tax && $this->price_with_tax && is_null($this->product_price)) {\n\t\t\tif (strlen($this->price_with_tax) == 0) $this->product_price = null;\n\t\t\telse $this->product_price = $this->price_with_tax / (1+($this->product_tax/100));\n\t\t}\n\t\telse if (strlen($this->product_price) == 0) $this->product_price = null;\n\t\t\n\t\t/* Bind the data */\n\t\t$this->_vm_product_price->bind($this);\n\t\t\n\t\t/* Calculate the new price */\n\t\t$this->_vm_product_price->CalculatePrice();\n\t\t\n\t\tif (is_null($this->product_price)) {\n\t\t\t/* Delete the price */\n\t\t\t$this->_vm_product_price->delete();\n\t\t}\n\t\telse {\n\t\t\t/* Store the price*/\n\t\t\t/* Add some variables if needed */\n\t\t\t/* Set the modified date if the user has not done so */\n\t\t\tif (!$this->_vm_product_price->getValue('mdate')) $this->_vm_product_price->setValue('mdate', time());\n\t\t\t\n\t\t\t/* Set the create date if the user has not done so and there is no product_price_id */\n\t\t\tif (!$this->_vm_product_price->getValue('mdate') && !$this->_vm_product_price->getValue('product_price_id')) {\n\t\t\t\t$this->_vm_product_price->setValue('cdate', time());\n\t\t\t}\n\t\t\t\n\t\t\t/* Store the price */\n\t\t\t$this->_vm_product_price->store();\n\t\t}\n\t\t$csvilog->AddMessage('debug', JText::_('DEBUG_PRICE_QUERY'), true);\n\t}",
"public function sortPriceSneakers(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['type','=','patike']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function filter(Request $request){ \n \n if($request->priceMin!=null and $request->priceMax!=null and $request->year!=null){\n $produit=Stock::where('stockName',$request->name)\n ->whereBetween('stockPrice', array($request->priceMin, $request->priceMax))\n ->where('stockYear',$request->year)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();}\n elseif($request->priceMin!=null and $request->priceMax!=null and $request->year==null){\n $produit=Stock::where('stockName',$request->name)\n ->whereBetween('stockPrice', array($request->priceMin, $request->priceMax))\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n elseif ($request->priceMin!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockPrice','>=',$request->priceMin)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n elseif ($request->priceMax!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockPrice','<=',$request->priceMax)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n \n elseif($request->priceMin==null and $request->priceMax==null and $request->year!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockYear',$request->year)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n \n else{\n $produit=Stock::where('stockName',$request->name)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n return response()->json($produit);\n }",
"public function sortPriceKids(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','decija']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function filterable($limit = 5);",
"public function GetMinimumPrice($customer_id, $value1, $value2) {\r\n\r\n \t$query = $this->_hotelPDO->prepare(\"SELECT * FROM `master_hotel_price` WHERE `customer_id` = '$customer_id' AND ((`rack_epi` BETWEEN '$value1' AND '$value2') OR (`rack_cpi` BETWEEN '$value1' AND '$value2') OR (`rack_mapi` BETWEEN '$value1' AND '$value2') OR (`rack_apai` BETWEEN '$value1' AND '$value2') OR (`btb_epi` BETWEEN '$value1' AND '$value2') OR (`btb_cpi` BETWEEN '$value1' AND '$value2') OR (`btb_mapi` BETWEEN '$value1' AND '$value2') OR (`sea_epi` BETWEEN '$value1' AND '$value2') OR (`sea_cpi` BETWEEN '$value1' AND '$value2') OR (`sea_mapi` BETWEEN '$value1' AND '$value2') OR (`sea_apai` BETWEEN '$value1' AND '$value2') OR (`prom_epi` BETWEEN '$value1' AND '$value2') OR (`prom_cpi` BETWEEN '$value1' AND '$value2') OR (`prom_mapi` BETWEEN '$value1' AND '$value2') OR (`prom_apai` BETWEEN '$value1' AND '$value2'))\");\r\n \t$query->execute() or die($this->_hotelPDO->error);\r\n \t$rows = $query->fetchAll(PDO::FETCH_ASSOC);\r\n\r\n \treturn $rows;\r\n }",
"public function scopePrice($query, $min = null, $max = null)\n {\n if($min)\n $query->where('internet_price', '>=', $min);\n if($max)\n $query->where('internet_price', '<=', $max)->where('internet_price', '!=', 0);\n return $query;\n }",
"protected function minimum($value)\n {\n if ($value) {\n return $this->builder->where('price1' ,\">=\", $value);\n }\n\n return $this->builder;\n }",
"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 = $collection->getConnection( );\n\t\t\t\t$sql = $adapter->prepareSqlCondition( 'at_' . $field . '.qty', $condition );\n\t\t\t\t$collection->getSelect( )->where( $sql );\n\t\t\t}\n\n\t\t\treturn $this;\n\t\t}",
"public function getMinMaxPrice($data) { /* todo-materialize Remove before release! */\n\t\tif (!empty($data['config_tax'])) {\n\t\t\t$sql = \"SELECT MIN(IF(tp.tax_percent IS NOT NULL, IFNULL(ps.price, p.price) + (IFNULL(ps.price, p.price) * tp.tax_percent / 100) + IFNULL(ta.tax_amount, 0), IFNULL(ps.price, p.price)) * '\" . (float)$data['currency_ratio'] . \"') AS min_price, MAX(IF(tp.tax_percent IS NOT NULL, IFNULL(ps.price, p.price) + (IFNULL(ps.price, p.price) * tp.tax_percent / 100) + IFNULL(ta.tax_amount, 0), IFNULL(ps.price, p.price)) * '\" . (float)$data['currency_ratio'] . \"') AS max_price\";\n\t\t} else {\n\t\t\t$sql = \"SELECT MIN(IFNULL(ps.price, p.price) * '\" . (float)$data['currency_ratio'] . \"') AS min_price, MAX(IFNULL(ps.price, p.price) * '\" . (float)$data['currency_ratio'] . \"') AS max_price\";\n\t\t}\n\n\t\t$sql .= \" FROM \" . DB_PREFIX . \"product p LEFT JOIN \" . DB_PREFIX . \"product_to_category p2c ON (p.product_id = p2c.product_id) LEFT JOIN \" . DB_PREFIX . \"product_to_store p2s ON (p.product_id = p2s.product_id) LEFT JOIN (SELECT product_id, price FROM \" . DB_PREFIX . \"product_special ps WHERE ps.customer_group_id = '\" . (int)$this->config->get('config_customer_group_id') . \"' AND ((ps.date_start = '0000-00-00' OR ps.date_start < NOW()) AND (ps.date_end = '0000-00-00' OR ps.date_end > NOW())) ORDER BY ps.priority ASC, ps.price ASC LIMIT 1) AS ps ON (p.product_id = ps.product_id)\";\n\n\t\tif (!empty($data['config_tax'])) {\n\t\t\t$sql .= \" LEFT JOIN (SELECT tr2.tax_class_id, tr1.rate AS tax_percent FROM \" . DB_PREFIX . \"tax_rate tr1 INNER JOIN \" . DB_PREFIX . \"tax_rate_to_customer_group tr2cg ON (tr1.tax_rate_id = tr2cg.tax_rate_id) LEFT JOIN \" . DB_PREFIX . \"tax_rule tr2 ON (tr1.tax_rate_id = tr2.tax_rate_id) WHERE tr1.type = 'P' AND tr2cg.customer_group_id = '\" . (int)$this->config->get('config_customer_group_id') . \"' ORDER BY tr2.priority) AS tp ON (p.tax_class_id = tp.tax_class_id) LEFT JOIN (SELECT tr2.tax_class_id, tr1.rate AS tax_amount FROM \" . DB_PREFIX . \"tax_rate tr1 INNER JOIN \" . DB_PREFIX . \"tax_rate_to_customer_group tr2cg ON (tr1.tax_rate_id = tr2cg.tax_rate_id) LEFT JOIN \" . DB_PREFIX . \"tax_rule tr2 ON (tr1.tax_rate_id = tr2.tax_rate_id) WHERE tr1.type = 'F' AND tr2cg.customer_group_id = '\" . (int)$this->config->get('config_customer_group_id') . \"' ORDER BY tr2.priority) AS ta ON (p.tax_class_id = ta.tax_class_id)\";\n\t\t}\n\n\t\t$sql .= \" WHERE p.date_available <= NOW() AND p.status = '1' AND p2s.store_id = '\" . (int)$this->config->get('config_store_id') . \"'\";\n\n\t\tif (!empty($data['category_id'])) {\n\t\t\t$sql .= \" AND p2c.category_id = '\" . (int)$data['category_id'] . \"'\";\n\t\t}\n\n\t\t$query = $this->db->query($sql);\n\n\t\treturn $query->row;\n\t}"
] | [
"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.5090925",
"0.5076916",
"0.50544566",
"0.50173473",
"0.50098985",
"0.50081366",
"0.5006648",
"0.4946544",
"0.4937702"
] | 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 $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price, $comparison);\n }",
"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 ->join('categories', 'subcategories.category_id', '=', 'categories.id')\n ->select('products.*', 'categories.categories_name')\n ->where('products.price','>=', $min_price)\n ->where('products.price','<=', $max_price)\n ->Paginate(12);\n return json_encode($products);\n }",
"public function getProductsSQL($section,$skipPrice=false){\n $sql = ' FROM sr_shop_product AS p LEFT OUTER JOIN sr_shop_product AS m ON p.`id`=m.`parent_id`';\n $conditions = array();\n foreach($section['filterOptions'] as $optionId){\n $filter = $_REQUEST['filters'][$optionId];\n if(!is_array($filter) || !count($filter)) continue;\n foreach($filter as &$f){\n $f = \"'\".Helpers::mysql_escape($f).\"'\";\n }\n $tableAlias = 'o'.(int)$optionId;\n $sql .=\"INNER JOIN sr_shop_option_value AS \".$tableAlias.\"\n ON p.`id`=\".$tableAlias.\".`main_product_id` \";\n array_push($conditions,\n $tableAlias.'.option_id='.(int)$optionId.' AND '.$tableAlias.\".`value` in (\".implode(',',$filter).\")\"\n );\n }\n $conditions = count($conditions) ? ' AND '.implode(' AND ',$conditions) : '';\n $priceFilter = '';\n if(!$skipPrice){\n $price_from = (float)$_REQUEST['price_from'];\n $price_to = (float)$_REQUEST['price_to'];\n if($price_from>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price>='.$price_from.') ||\n (m.sale_price=0 AND m.price>0 AND m.price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price>='.$price_from.'))';\n }\n if($price_to>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price<='.$price_to.') ||\n (m.sale_price=0 AND m.price>0 AND m.price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price<='.$price_to.'))';\n }\n }\n $sql .= 'WHERE p.`parent_id`=0 and p.`active`=1 and p.`section_id` in ('.$section['cat_ids'].')'.$conditions.$priceFilter.' ORDER BY p.`instock` desc, p.`order` asc';\n return $sql;\n }",
"public function filterByPriceqty6($priceqty6 = null, $comparison = null)\n {\n if (is_array($priceqty6)) {\n $useMinMax = false;\n if (isset($priceqty6['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY6, $priceqty6['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceqty6['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY6, $priceqty6['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY6, $priceqty6, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price))\n {\n $useMinMax = false;\n if (isset($price['min']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax)\n {\n return $this;\n }\n if (null === $comparison)\n {\n $comparison = Criteria::IN;\n }\n }\n return $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price, $comparison);\n }",
"function getPriceFilter($price)\n {\n $products = product::whereBetween('sale_price', [0, $price])->get();\n return view('products')->with('products', $products);\n }",
"public function filterAvailableProductsByPrice($minPrice, $maxPrice) {\n\n if ($this->PriceList && $this->nr_products_available) {\n\n //verificam daca preturile produselor salvate in priceList se incadreaza in intervalul min si max\n $nr_available = 0;\n foreach ($this->PriceList as $price) {\n //echo \"Pret:\".$price.' MinPrice:'.$minPrice.' Maxprice:'.$maxPrice;\n if ($minPrice <= $price && $price <= $maxPrice) {\n $nr_available++;\n //exit(\"Incrementez\");\n }\n }\n //updatam numarul de produse disponibile\n $this->nr_products_available = $nr_available;\n }\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(OrdersLinesPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(OrdersLinesPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(OrdersLinesPeer::PRICE, $price, $comparison);\n }",
"function filterHouses($start, $end, $guests, $minPrice, $maxPrice) {\r\n\t\tglobal $conn;\r\n\r\n\t\t$stmt = $conn->prepare('SELECT Houses.* , (Houses.SingleBeds + 2*Houses.DoubleBeds) AS Guests, Reservation.StartDate, Reservation.EndDate FROM Houses\r\n\t\t\t\t\t\t\t\tLEFT JOIN Reservation ON Reservation.HouseID = Houses.ID\r\n\t\t\t\t\t\t\t\tWHERE ((Reservation.StartDate > \"11-6-2019\" OR Reservation.EndDate < \"13-7-2019\"))\r\n\t\t\t\t\t\t\t\tAND Guests > ? \r\n\t\t\t\t\t\t\t\tAND DailyCost > \"50\"' );\r\n\t\t\r\n\t\t// $stmt->execute();\r\n\t\t// $guests=2;\r\n\t\t// $stmt->execute(array($guests));\r\n\t\t\r\n\t\t// $stmt->execute([$start, $end, $guests, $minPrice]);\r\n\t\treturn $stmt->fetchAll();\r\n\t}",
"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_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceprice1['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE1, $priceprice1['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE1, $priceprice1, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price, $comparison);\n }",
"public function price_filter( $filtered_posts = array() ) {\n\t global $wpdb;\n\n\t if ( isset( $_GET['max_price'] ) || isset( $_GET['min_price'] ) ) {\n\n\t\t\t$matched_products = array();\n\t\t\t$min = isset( $_GET['min_price'] ) ? floatval( $_GET['min_price'] ) : 0;\n\t\t\t$max = isset( $_GET['max_price'] ) ? floatval( $_GET['max_price'] ) : 9999999999;\n\n\t $matched_products_query = apply_filters( 'estimategadget_price_filter_results', $wpdb->get_results( $wpdb->prepare( '\n\t \tSELECT DISTINCT ID, post_parent, post_type FROM %1$s\n\t\t\t\tINNER JOIN %2$s ON ID = post_id\n\t\t\t\tWHERE post_type IN ( \"product\", \"product_variation\" )\n\t\t\t\tAND post_status = \"publish\"\n\t\t\t\tAND meta_key IN (\"' . implode( '\",\"', apply_filters( 'estimategadget_price_filter_meta_keys', array( '_price' ) ) ) . '\")\n\t\t\t\tAND meta_value BETWEEN %3$d AND %4$d\n\t\t\t', $wpdb->posts, $wpdb->postmeta, $min, $max ), OBJECT_K ), $min, $max );\n\n\t if ( $matched_products_query ) {\n\t foreach ( $matched_products_query as $product ) {\n\t if ( $product->post_type == 'product' ) {\n\t $matched_products[] = $product->ID;\n\t }\n\t if ( $product->post_parent > 0 && ! in_array( $product->post_parent, $matched_products ) ) {\n\t $matched_products[] = $product->post_parent;\n\t }\n\t }\n\t }\n\n\t // Filter the id's\n\t if ( 0 === sizeof( $filtered_posts ) ) {\n\t\t\t\t$filtered_posts = $matched_products;\n\t } else {\n\t\t\t\t$filtered_posts = array_intersect( $filtered_posts, $matched_products );\n\n\t }\n\t $filtered_posts[] = 0;\n\t }\n\n\t return (array) $filtered_posts;\n\t}",
"public function filterByMinprice($minprice = null, $comparison = null)\n {\n if (is_array($minprice)) {\n $useMinMax = false;\n if (isset($minprice['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($minprice['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICE, $price, $comparison);\n }",
"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_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceprice5['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE5, $priceprice5['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE5, $priceprice5, $comparison);\n }",
"function PriceQuery() {\n\t\t$csvilog = JRequest::getVar('csvilog');\n\t\t\n\t\t/* Check if the price is including or excluding tax */\n\t\tif ($this->product_tax && $this->price_with_tax && is_null($this->product_price)) {\n\t\t\tif (strlen($this->price_with_tax) == 0) $this->product_price = null;\n\t\t\telse $this->product_price = $this->price_with_tax / (1+($this->product_tax/100));\n\t\t}\n\t\telse if (strlen($this->product_price) == 0) $this->product_price = null;\n\t\t\n\t\t/* Bind the data */\n\t\t$this->_vm_product_price->bind($this);\n\t\t\n\t\t/* Calculate the new price */\n\t\t$this->_vm_product_price->CalculatePrice();\n\t\t\n\t\tif (is_null($this->product_price)) {\n\t\t\t/* Delete the price */\n\t\t\t$this->_vm_product_price->delete();\n\t\t}\n\t\telse {\n\t\t\t/* Store the price*/\n\t\t\t/* Add some variables if needed */\n\t\t\t/* Set the modified date if the user has not done so */\n\t\t\tif (!$this->_vm_product_price->getValue('mdate')) $this->_vm_product_price->setValue('mdate', time());\n\t\t\t\n\t\t\t/* Set the create date if the user has not done so and there is no product_price_id */\n\t\t\tif (!$this->_vm_product_price->getValue('mdate') && !$this->_vm_product_price->getValue('product_price_id')) {\n\t\t\t\t$this->_vm_product_price->setValue('cdate', time());\n\t\t\t}\n\t\t\t\n\t\t\t/* Store the price */\n\t\t\t$this->_vm_product_price->store();\n\t\t}\n\t\t$csvilog->AddMessage('debug', JText::_('DEBUG_PRICE_QUERY'), true);\n\t}",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(SaleTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(SaleTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(SaleTableMap::COL_PRICE, $price, $comparison);\n }",
"public function validate_filter_price($price)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n if (! in_array($price, $this->filter_price))\n return lang('marketplace_filter_invalid');\n }",
"public function cat_price_range_pro($min, $max, $cat_id)\n {\n $this->db->select('*');\n $this->db->from('product_information');\n $this->db->where('category_id', $cat_id);\n $this->db->where('price >=', $min);\n $this->db->where('price <=', $max);\n $this->db->order_by('product_name');\n $query = $this->db->get();\n if ($query->num_rows() > 0) {\n return $query->result();\n }\n return false;\n }",
"public function filter(Request $request){ \n \n if($request->priceMin!=null and $request->priceMax!=null and $request->year!=null){\n $produit=Stock::where('stockName',$request->name)\n ->whereBetween('stockPrice', array($request->priceMin, $request->priceMax))\n ->where('stockYear',$request->year)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();}\n elseif($request->priceMin!=null and $request->priceMax!=null and $request->year==null){\n $produit=Stock::where('stockName',$request->name)\n ->whereBetween('stockPrice', array($request->priceMin, $request->priceMax))\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n elseif ($request->priceMin!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockPrice','>=',$request->priceMin)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n elseif ($request->priceMax!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockPrice','<=',$request->priceMax)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n \n elseif($request->priceMin==null and $request->priceMax==null and $request->year!=null){\n $produit=Stock::where('stockName',$request->name)\n ->where('stockYear',$request->year)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n \n else{\n $produit=Stock::where('stockName',$request->name)\n ->select('stockName','stockYear','stockPrice','id')\n ->get();\n }\n return response()->json($produit);\n }",
"public function filterByInPrice($inPrice = null, $comparison = null)\n {\n if (is_array($inPrice)) {\n $useMinMax = false;\n if (isset($inPrice['min'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_IN_PRICE, $inPrice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($inPrice['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_IN_PRICE, $inPrice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_IN_PRICE, $inPrice, $comparison);\n }",
"public function sortPriceMan(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','muska']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function GetMinimumPrice($customer_id, $value1, $value2) {\r\n\r\n \t$query = $this->_hotelPDO->prepare(\"SELECT * FROM `master_hotel_price` WHERE `customer_id` = '$customer_id' AND ((`rack_epi` BETWEEN '$value1' AND '$value2') OR (`rack_cpi` BETWEEN '$value1' AND '$value2') OR (`rack_mapi` BETWEEN '$value1' AND '$value2') OR (`rack_apai` BETWEEN '$value1' AND '$value2') OR (`btb_epi` BETWEEN '$value1' AND '$value2') OR (`btb_cpi` BETWEEN '$value1' AND '$value2') OR (`btb_mapi` BETWEEN '$value1' AND '$value2') OR (`sea_epi` BETWEEN '$value1' AND '$value2') OR (`sea_cpi` BETWEEN '$value1' AND '$value2') OR (`sea_mapi` BETWEEN '$value1' AND '$value2') OR (`sea_apai` BETWEEN '$value1' AND '$value2') OR (`prom_epi` BETWEEN '$value1' AND '$value2') OR (`prom_cpi` BETWEEN '$value1' AND '$value2') OR (`prom_mapi` BETWEEN '$value1' AND '$value2') OR (`prom_apai` BETWEEN '$value1' AND '$value2'))\");\r\n \t$query->execute() or die($this->_hotelPDO->error);\r\n \t$rows = $query->fetchAll(PDO::FETCH_ASSOC);\r\n\r\n \treturn $rows;\r\n }",
"public function scopePrice($query, $min = null, $max = null)\n {\n if($min)\n $query->where('internet_price', '>=', $min);\n if($max)\n $query->where('internet_price', '<=', $max)->where('internet_price', '!=', 0);\n return $query;\n }",
"public function showAll() {\n// print_r($_REQUEST);\n// echo \"</pre>\";\n// die;\n $params = [];\n $str_price = '';\n $product_model = new Product();\n if (isset($_POST['filter'])) {\n if (isset($_POST['category'])) {\n $category = implode(',', $_POST['category']);\n //chuyển thành chuỗi sau để sử dụng câu lệnh in_array\n $str_category_id = \"($category)\";\n $params['category'] = $str_category_id;\n }\n if (isset($_POST['price'])) {\n foreach ($_POST['price'] AS $price) {\n if ($price == 1) {\n $str_price .= \" OR products.price < 1000000\";\n }\n if ($price == 2) {\n $str_price .= \" OR (products.price >= 1000000 AND products.price < 50000000)\";\n }\n if ($price == 3) {\n $str_price .= \" OR (products.price >= 5000000 AND products.price < 10000000)\";\n }\n if ($price == 4) {\n $str_price .= \" OR (products.price >= 10000000 AND products.price < 20000000)\";\n }\n if ($price == 5){\n $str_price .= \" OR products.price >= 20000000\";\n }\n }\n //cắt bỏ từ khóa OR ở vị trí ban đầu\n $str_price = substr($str_price, 3);\n $str_price = \"($str_price)\";\n $params['price'] = $str_price;\n }\n }\n\n if (isset($_POST['price'])) {\n $count = $product_model->countFilter($params);\n } else {\n $count = $product_model->countTotal();\n }\n echo $count;\n $params_pagination = [\n 'total' => $count,\n 'limit' => 9,\n 'controller' => 'product',\n 'action' => 'showAll',\n 'page' => isset($_GET['page']) ? $_GET['page'] : 1,\n 'full_mode' => FALSE,\n 'price' => $str_price\n ];\n// echo\"<pre>\";\n// print_r($params_pagination);\n// echo\"</pre>\";\n\n// if (isset($_POST)){\n// $products = $product_model->getProductFilter($params);\n// }\n// else {\n $products = $product_model->getAllPagination($params_pagination);\n// }\n\n //xử lý phân trang\n $pagination_model = new Pagination($params_pagination);\n $pagination = $pagination_model->getPagination();\n //get products\n\n\n //get categories để filter\n $category_model = new Category();\n $categories = $category_model->getAll();\n\n $this->content = $this->render('views/products/shop.php', [\n 'products' => $products,\n 'categories' => $categories,\n 'pagination' => $pagination\n ]);\n\n require_once 'views/layouts/main.php';\n }",
"public function scopeSelectMinAndMaxPrice($query)\n {\n return $query->select(DB::raw('MAX(price) as max_price'), DB::raw('MIN(price) as min_price'));\n }",
"public function sortPriceKids(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','decija']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function scopeWhenMinAndMaxPrice($query, $data)\n {\n if (isset($data['min_price']) and !__isEmpty($data['min_price'])) {\n $query->where('price', '>=', calculateBaseCurrency($data['min_price']));\n }\n\n if (isset($data['max_price']) and !__isEmpty($data['max_price'])) {\n $query->where('price', '<=', calculateBaseCurrency($data['max_price']));\n }\n\n return $query;\n }",
"public function getMinMaxPrice($data) { /* todo-materialize Remove before release! */\n\t\tif (!empty($data['config_tax'])) {\n\t\t\t$sql = \"SELECT MIN(IF(tp.tax_percent IS NOT NULL, IFNULL(ps.price, p.price) + (IFNULL(ps.price, p.price) * tp.tax_percent / 100) + IFNULL(ta.tax_amount, 0), IFNULL(ps.price, p.price)) * '\" . (float)$data['currency_ratio'] . \"') AS min_price, MAX(IF(tp.tax_percent IS NOT NULL, IFNULL(ps.price, p.price) + (IFNULL(ps.price, p.price) * tp.tax_percent / 100) + IFNULL(ta.tax_amount, 0), IFNULL(ps.price, p.price)) * '\" . (float)$data['currency_ratio'] . \"') AS max_price\";\n\t\t} else {\n\t\t\t$sql = \"SELECT MIN(IFNULL(ps.price, p.price) * '\" . (float)$data['currency_ratio'] . \"') AS min_price, MAX(IFNULL(ps.price, p.price) * '\" . (float)$data['currency_ratio'] . \"') AS max_price\";\n\t\t}\n\n\t\t$sql .= \" FROM \" . DB_PREFIX . \"product p LEFT JOIN \" . DB_PREFIX . \"product_to_category p2c ON (p.product_id = p2c.product_id) LEFT JOIN \" . DB_PREFIX . \"product_to_store p2s ON (p.product_id = p2s.product_id) LEFT JOIN (SELECT product_id, price FROM \" . DB_PREFIX . \"product_special ps WHERE ps.customer_group_id = '\" . (int)$this->config->get('config_customer_group_id') . \"' AND ((ps.date_start = '0000-00-00' OR ps.date_start < NOW()) AND (ps.date_end = '0000-00-00' OR ps.date_end > NOW())) ORDER BY ps.priority ASC, ps.price ASC LIMIT 1) AS ps ON (p.product_id = ps.product_id)\";\n\n\t\tif (!empty($data['config_tax'])) {\n\t\t\t$sql .= \" LEFT JOIN (SELECT tr2.tax_class_id, tr1.rate AS tax_percent FROM \" . DB_PREFIX . \"tax_rate tr1 INNER JOIN \" . DB_PREFIX . \"tax_rate_to_customer_group tr2cg ON (tr1.tax_rate_id = tr2cg.tax_rate_id) LEFT JOIN \" . DB_PREFIX . \"tax_rule tr2 ON (tr1.tax_rate_id = tr2.tax_rate_id) WHERE tr1.type = 'P' AND tr2cg.customer_group_id = '\" . (int)$this->config->get('config_customer_group_id') . \"' ORDER BY tr2.priority) AS tp ON (p.tax_class_id = tp.tax_class_id) LEFT JOIN (SELECT tr2.tax_class_id, tr1.rate AS tax_amount FROM \" . DB_PREFIX . \"tax_rate tr1 INNER JOIN \" . DB_PREFIX . \"tax_rate_to_customer_group tr2cg ON (tr1.tax_rate_id = tr2cg.tax_rate_id) LEFT JOIN \" . DB_PREFIX . \"tax_rule tr2 ON (tr1.tax_rate_id = tr2.tax_rate_id) WHERE tr1.type = 'F' AND tr2cg.customer_group_id = '\" . (int)$this->config->get('config_customer_group_id') . \"' ORDER BY tr2.priority) AS ta ON (p.tax_class_id = ta.tax_class_id)\";\n\t\t}\n\n\t\t$sql .= \" WHERE p.date_available <= NOW() AND p.status = '1' AND p2s.store_id = '\" . (int)$this->config->get('config_store_id') . \"'\";\n\n\t\tif (!empty($data['category_id'])) {\n\t\t\t$sql .= \" AND p2c.category_id = '\" . (int)$data['category_id'] . \"'\";\n\t\t}\n\n\t\t$query = $this->db->query($sql);\n\n\t\treturn $query->row;\n\t}",
"public function sortPriceSneakers(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['type','=','patike']])->orderBy('newPrice','asc')->get();\n return $data;\n }"
] | [
"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.50024885",
"0.5001388",
"0.49943978",
"0.49908802",
"0.49886993",
"0.49760023",
"0.49755284",
"0.4911275",
"0.4900526"
] | 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 $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price))\n {\n $useMinMax = false;\n if (isset($price['min']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max']))\n {\n $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax)\n {\n return $this;\n }\n if (null === $comparison)\n {\n $comparison = Criteria::IN;\n }\n }\n return $this->addUsingAlias(CollectionItemOfferPeer::PRICE, $price, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(OrdersLinesPeer::PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(OrdersLinesPeer::PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(OrdersLinesPeer::PRICE, $price, $comparison);\n }",
"public function getListPrice();",
"function getPriceFilter($price)\n {\n $products = product::whereBetween('sale_price', [0, $price])->get();\n return view('products')->with('products', $products);\n }",
"public function getProductsSQL($section,$skipPrice=false){\n $sql = ' FROM sr_shop_product AS p LEFT OUTER JOIN sr_shop_product AS m ON p.`id`=m.`parent_id`';\n $conditions = array();\n foreach($section['filterOptions'] as $optionId){\n $filter = $_REQUEST['filters'][$optionId];\n if(!is_array($filter) || !count($filter)) continue;\n foreach($filter as &$f){\n $f = \"'\".Helpers::mysql_escape($f).\"'\";\n }\n $tableAlias = 'o'.(int)$optionId;\n $sql .=\"INNER JOIN sr_shop_option_value AS \".$tableAlias.\"\n ON p.`id`=\".$tableAlias.\".`main_product_id` \";\n array_push($conditions,\n $tableAlias.'.option_id='.(int)$optionId.' AND '.$tableAlias.\".`value` in (\".implode(',',$filter).\")\"\n );\n }\n $conditions = count($conditions) ? ' AND '.implode(' AND ',$conditions) : '';\n $priceFilter = '';\n if(!$skipPrice){\n $price_from = (float)$_REQUEST['price_from'];\n $price_to = (float)$_REQUEST['price_to'];\n if($price_from>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price>='.$price_from.') ||\n (m.sale_price=0 AND m.price>0 AND m.price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price>='.$price_from.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price>='.$price_from.'))';\n }\n if($price_to>0){\n $priceFilter.=' AND ((m.sale_price>0 AND m.sale_price<='.$price_to.') ||\n (m.sale_price=0 AND m.price>0 AND m.price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price>0 AND p.sale_price<='.$price_to.') ||\n (m.price IS NULL AND p.sale_price=0 AND p.price>0 AND p.price<='.$price_to.'))';\n }\n }\n $sql .= 'WHERE p.`parent_id`=0 and p.`active`=1 and p.`section_id` in ('.$section['cat_ids'].')'.$conditions.$priceFilter.' ORDER BY p.`instock` desc, p.`order` asc';\n return $sql;\n }",
"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 ->join('categories', 'subcategories.category_id', '=', 'categories.id')\n ->select('products.*', 'categories.categories_name')\n ->where('products.price','>=', $min_price)\n ->where('products.price','<=', $max_price)\n ->Paginate(12);\n return json_encode($products);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliProductTableMap::COL_PRICE, $price, $comparison);\n }",
"public function filterByMinprice($minprice = null, $comparison = null)\n {\n if (is_array($minprice)) {\n $useMinMax = false;\n if (isset($minprice['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($minprice['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_MINPRICE, $minprice, $comparison);\n }",
"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_EQUAL);\n $useMinMax = true;\n }\n if (isset($priceprice1['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE1, $priceprice1['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE1, $priceprice1, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_PRICE, $price, $comparison);\n }",
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(SaleTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($price['max'])) {\n $this->addUsingAlias(SaleTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(SaleTableMap::COL_PRICE, $price, $comparison);\n }",
"public function filterAvailableProductsByPrice($minPrice, $maxPrice) {\n\n if ($this->PriceList && $this->nr_products_available) {\n\n //verificam daca preturile produselor salvate in priceList se incadreaza in intervalul min si max\n $nr_available = 0;\n foreach ($this->PriceList as $price) {\n //echo \"Pret:\".$price.' MinPrice:'.$minPrice.' Maxprice:'.$maxPrice;\n if ($minPrice <= $price && $price <= $maxPrice) {\n $nr_available++;\n //exit(\"Incrementez\");\n }\n }\n //updatam numarul de produse disponibile\n $this->nr_products_available = $nr_available;\n }\n }",
"function search_price()\n {\n $price_from = intval($this->input->get('price_from'));\n $price_to = intval($this->input->get('price_to'));\n $this->data['price_from'] = $price_from;\n $this->data['price_to'] = $price_to;\n\n //loc theo gia\n $input = array();\n $input['where'] = array('price >= ' => $price_from, 'price <=' => $price_to);\n $list = $this->product_model->get_list($input);\n $list = $this->product_model->get_total($input);\n $this->data['list'] = $list;\n\n //load view\n $this->data['temp'] = 'site/product/search_price';\n $this->load->view('site/layout', $this->data);\n }",
"public function listItems($filter = [], $fields = null)\n {\n\n // SELECT * FROM products WHERE\n // category_id = 1 AND \n // price < 9999 AND price > 1111 AND \n // id IN (1,2,3,4,5,6,7,8,9) AND \n // name LIKE '%ноут%' \n // LIMIT 0, 5\n if(!$fields) {\n //$fields = ['name', 'price'];\n $fields = ['*'];\n }\n $sql = \" FROM $this->table \";\n if (!empty($filter)) {\n $sql = $sql. 'WHERE ';\n if (key_exists('cat', $filter)) {\n $sql .= 'category_id = ?';\n }\n if (key_exists('priceMin', $filter)) {\n if (key_exists('cat', $filter)) $sql .= ' AND ';\n $sql .= 'price > ?';\n }\n if (key_exists('priceMax', $filter)) {\n if (key_exists('cat', $filter) OR key_exists('priceMin', $filter)) $sql .= ' AND ';\n $sql .= 'price < ?';\n }\n if (key_exists('ids', $filter)) {\n if (key_exists('cat', $filter) OR key_exists('priceMin', $filter) OR key_exists('priceMax', $filter)) $sql .= ' AND ';\n //$sql .= 'id IN (?)';\n //$filter['ids'] = \"(\". join(\",\", $filter['ids']) .\")\";\n $sql .= 'id = ?';\n }\n if (key_exists('like', $filter)) {\n if (key_exists('cat', $filter) OR key_exists('priceMin', $filter) OR key_exists('priceMax', $filter) OR key_exists('ids', $filter)) $sql .= ' AND ';\n //$sql .= 'id IN (?)';\n //$filter['ids'] = \"(\". join(\",\", $filter['ids']) .\")\";\n $sql .= 'name LIKE ?';\n }\n if (key_exists('start', $filter) AND key_exists('limit', $filter)) {\n $sql .= ' LIMIT ?, ?';\n }\n }\n if ($fields) {\n if ($fields == 'count') {\n $sql = 'SELECT COUNT(*) '.$sql;\n } else {\n $sql = 'SELECT ' .join(\",\", $fields) .$sql;\n }\n }\n\n $stmt = $this->connect_PDO->prepare($sql);\n if (!empty($filter)) {\n $i = 1;\n $type = null;\n foreach ($filter as $key => $fl) {\n $type = (in_array($key, ['cat', 'priceMin', 'priceMax', 'ids', 'start', 'limit'])) ? PDO::PARAM_INT : PDO::PARAM_STR;\n $stmt->bindValue($i, $fl, $type);\n $i++;\n }\n }\n $stmt->execute();\n $result = $stmt->fetchAll();\n return $result; \n }",
"public function validate_filter_price($price)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n if (! in_array($price, $this->filter_price))\n return lang('marketplace_filter_invalid');\n }",
"private function _create_list($input = array(), $filter = array(), $filter_fields = array())\n {\n // pr($this->input->post_get(null));\n $filter_input = array('order');\n $filter_fields = array_merge($filter_fields, model('product')->fields_filter);\n $mod_filter = mod('product')->create_filter($filter_fields, $filter_input);\n $filter = array_merge( $filter,$mod_filter);\n $filter['types']= $this->input->get('types');\n $filter_input['types'] =$filter['types'];\n $key = $this->input->get('name');\n $key = str_replace(array('-', '+'), ' ', $key);\n\n if (isset($filter['name']) && $filter['name']) {\n unset($filter['name']);\n $filter['%name'] = $filter_fields['name'] = trim($key);\n }\n if ($point=$this->input->get('point')) {\n $filter['point_total_gte'] =$point;\n }\n\n // lay thong tin cua cac khoang tim kiem\n foreach (array('price',) as $range) {\n if (isset($filter[$range])) {\n if (is_array($filter[$range])) {\n foreach ($filter[$range] as $key => $row) {\n $filter[$range.'_range'][$key] = model('range')->get($row, $range);\n }\n } else {\n $filter[$range.'_range'] = model('range')->get($filter[$range], $range);\n }\n unset($filter[$range]);\n }\n }\n\n //pr($filter);\n //pr($input);\n // Gan filter\n $filter['show'] = 1;\n\n //== Lay tong so\n if (!isset($input['limit'])) {\n $total = model('product')->filter_get_total($filter, $input);\n // pr($filter,0); pr_db($total);\n\n $page_size = config('list_limit', 'main');\n\n $limit = $this->input->get('per_page');\n $limit = min($limit, $total - fmod($total, $page_size));\n $limit = max(0, $limit);\n //== Lay danh sach\n $input['limit'] = array($limit, $page_size);\n }\n //== Sort Order\n $sort_orders = array(\n 'is_feature|desc',\n 'id|desc',\n 'point_total|desc',\n //'price|asc',\n //'price|desc',\n // 'view_total|desc',\n /*'count_buy|desc',\n 'new|desc',\n\n 'rate|desc',\n 'name|asc',*/\n );\n $order = $this->input->get(\"order\", true);\n if ($order && in_array($order, $sort_orders)) {\n $orderex = explode('|', $order);\n } else {\n $orderex = explode('|', $sort_orders[0]);\n }\n if (!isset($input['order'])) {\n $input['order'] = array($orderex[0], $orderex[1]);\n $filter_input['order']=$order;\n }\n $list = model('product')->filter_get_list($filter, $input);\n if(admin_is_login()){\n // echo $total; pr($filter,0); pr_db($list);\n }\n // pr($filter,0); pr_db($list);\n\n foreach ($list as $row) {\n $row = mod('product')->add_info($row,1);\n }\n // pr($list);\n // Tao chia trang\n $pages_config = array();\n if (isset($total)) {\n $pages_config['page_query_string'] = TRUE;\n $pages_config['base_url'] = current_url() . '?' . url_build_query($filter_input);\n //pr( $filter_input );\n // $pages_config['base_url'] = current_url(1);\n $pages_config['total_rows'] = $total;\n $pages_config['per_page'] = $page_size;\n $pages_config['cur_page'] = $limit;\n }\n\n $this->data['pages_config'] = $pages_config;\n $this->data['total'] = $total;\n $this->data['list'] = $list;\n $this->data['filter'] = $filter_input;\n $this->data['sort_orders'] = $sort_orders;\n $this->data['sort_order'] = $order;\n $this->data['action'] = current_url();\n\n //===== Ajax list====\n $this->_create_list_ajax();\n\n // luu lai thong so loc va ket qua\n mod('product')->sess_data_set('list_filter', $filter);// phuc vu loc du lieu\n mod('product')->sess_data_set('list_filter_input', $filter_input);// phuc vu hien thi\n mod('product')->sess_data_set('list_sort_orders', $sort_orders);// phuc vu hien thi\n mod('product')->sess_data_set('list_sort_order', $order);// phuc vu hien thi\n mod('product')->sess_data_set('list_total_rows', $total);// phuc vu hien thi\n\n }",
"public function filterByInPrice($inPrice = null, $comparison = null)\n {\n if (is_array($inPrice)) {\n $useMinMax = false;\n if (isset($inPrice['min'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_IN_PRICE, $inPrice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($inPrice['max'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_IN_PRICE, $inPrice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_IN_PRICE, $inPrice, $comparison);\n }",
"function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'periodebayar': return \"tglbayar BETWEEN '$key-01-01' AND '$key-12-31'\";\n\t\t\t}\n\t\t}",
"public function sortPriceMan(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','muska']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"function getItemsByPrice($dbh, $min, $max)\r\n{\r\n \r\n $stmt = $dbh->prepare ( \"SELECT * FROM items WHERE items.price >= ? and items.price <= ?\"); \r\n\r\n $stmt->bindParam(1,$min);\r\n $stmt->bindParam(2,$max);\r\n\r\n if ($stmt->execute()) \r\n {\r\n $data = array();\r\n \r\n while ($row = $stmt->fetch()) \r\n { \r\n array_push($data, $row['name'], $row['price'], $row['quantity'],$row['quality']);\r\n }\r\n echo json_encode($data);\r\n \r\n }\r\n}",
"public function filterProductsByPriceList($ids)\n {\n if($user_id = get_current_user_id()) {\n $meta = get_user_meta($user_id, '_priority_price_list');\n if ($meta[0] === 'no-selected') return $ids;\n $list = empty($meta) ? $this->basePriceCode : $meta[0];\n $products = $GLOBALS['wpdb']->get_results('\n SELECT product_sku\n FROM ' . $GLOBALS['wpdb']->prefix . 'p18a_pricelists\n WHERE price_list_code = \"' . esc_sql($list) . '\"\n AND blog_id = ' . get_current_blog_id(),\n ARRAY_A\n );\n $ids = [];\n // get product id\n foreach($products as $product) {\n if ($id = wc_get_product_id_by_sku($product['product_sku'])) {\n $parent_id = get_post($id)->post_parent;\n if ($parent_id) $ids[] = $parent_id;\n $ids[] = $id;\n }\n }\n $ids = array_unique($ids);\n // there is no products assigned to price list, return 0\n if (empty($ids)) return 0;\n // return ids\n return $ids;\n\n }\n\n // not logged in user\n return [];\n }",
"function addPriceIndexFilter($collection) {\n\t\t\tif (!$collection) {\n\t\t\t\treturn $collection;\n\t\t\t}\n\n\t\t\t$select = $collection->getSelect( );\n\t\t\t$fromPart = $select->getPart( FROM );\n\n\t\t\tif (isset( $fromPart['price_index'] )) {\n\t\t\t\t$oldJoinCond = $fromPart['price_index']['joinCondition'];\n\n\t\t\t\tif (strpos( $oldJoinCond, 'stock_id' ) === false) {\n\t\t\t\t\t$helper = $this->getWarehouseHelper( );\n\t\t\t\t\t$connection = $collection->getConnection( );\n\n\t\t\t\t\tif (!$collection->getFlag( 'stock_id' )) {\n\t\t\t\t\t\tif ($this->isMultipleMode( )) {\n\t\t\t\t\t\t\t$stockId = $connection->quote( $this->getDefaultStockId( ) );\n\t\t\t\t\t\t} \nelse {\n\t\t\t\t\t\t\t$stockId = $connection->quote( $this->getWarehouseHelper( )->getAssignmentMethodHelper( )->getQuoteStockId( ) );\n\t\t\t\t\t\t}\n\t\t\t\t\t} \nelse {\n\t\t\t\t\t\t$stockId = $collection->getFlag( 'stock_id' );\n\t\t\t\t\t}\n\n\n\t\t\t\t\tif (!$collection->getFlag( 'currency' )) {\n\t\t\t\t\t\t$currencyCode = $helper->getCurrencyHelper( )->getCurrentCode( );\n\t\t\t\t\t} \nelse {\n\t\t\t\t\t\t$currencyCode = $collection->getFlag( 'currency' );\n\t\t\t\t\t}\n\n\t\t\t\t\t$currencyCode = $connection->quote( $currencyCode );\n\n\t\t\t\t\tif (!$collection->getFlag( 'store_id' )) {\n\t\t\t\t\t\t$storeId = $helper->getCurrentStoreId( );\n\t\t\t\t\t} \nelse {\n\t\t\t\t\t\t$storeId = $collection->getFlag( 'store_id' );\n\t\t\t\t\t}\n\n\t\t\t\t\t$storeId = $connection->quote( $storeId );\n\t\t\t\t\t$joinCond = $oldJoinCond . ' AND price_index.stock_id = ' . $stockId;\n\t\t\t\t\t$joinCond .= ' AND ((price_index.currency IS NULL) OR (price_index.currency = ' . $currencyCode . '))';\n\n\t\t\t\t\tif ($storeId) {\n\t\t\t\t\t\t$joinCond .= ( ' AND (price_index.store_id = ' . $storeId . ')' );\n\t\t\t\t\t} \nelse {\n\t\t\t\t\t\t$joinCond .= ' AND (price_index.store_id = 0)';\n\t\t\t\t\t}\n\n\t\t\t\t\t$fromPart['price_index']['joinCondition'] = $joinCond;\n\t\t\t\t\t$select->setPart( FROM, $fromPart );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $collection;\n\t\t}",
"public function createListsFilter();",
"public function showAll() {\n// print_r($_REQUEST);\n// echo \"</pre>\";\n// die;\n $params = [];\n $str_price = '';\n $product_model = new Product();\n if (isset($_POST['filter'])) {\n if (isset($_POST['category'])) {\n $category = implode(',', $_POST['category']);\n //chuyển thành chuỗi sau để sử dụng câu lệnh in_array\n $str_category_id = \"($category)\";\n $params['category'] = $str_category_id;\n }\n if (isset($_POST['price'])) {\n foreach ($_POST['price'] AS $price) {\n if ($price == 1) {\n $str_price .= \" OR products.price < 1000000\";\n }\n if ($price == 2) {\n $str_price .= \" OR (products.price >= 1000000 AND products.price < 50000000)\";\n }\n if ($price == 3) {\n $str_price .= \" OR (products.price >= 5000000 AND products.price < 10000000)\";\n }\n if ($price == 4) {\n $str_price .= \" OR (products.price >= 10000000 AND products.price < 20000000)\";\n }\n if ($price == 5){\n $str_price .= \" OR products.price >= 20000000\";\n }\n }\n //cắt bỏ từ khóa OR ở vị trí ban đầu\n $str_price = substr($str_price, 3);\n $str_price = \"($str_price)\";\n $params['price'] = $str_price;\n }\n }\n\n if (isset($_POST['price'])) {\n $count = $product_model->countFilter($params);\n } else {\n $count = $product_model->countTotal();\n }\n echo $count;\n $params_pagination = [\n 'total' => $count,\n 'limit' => 9,\n 'controller' => 'product',\n 'action' => 'showAll',\n 'page' => isset($_GET['page']) ? $_GET['page'] : 1,\n 'full_mode' => FALSE,\n 'price' => $str_price\n ];\n// echo\"<pre>\";\n// print_r($params_pagination);\n// echo\"</pre>\";\n\n// if (isset($_POST)){\n// $products = $product_model->getProductFilter($params);\n// }\n// else {\n $products = $product_model->getAllPagination($params_pagination);\n// }\n\n //xử lý phân trang\n $pagination_model = new Pagination($params_pagination);\n $pagination = $pagination_model->getPagination();\n //get products\n\n\n //get categories để filter\n $category_model = new Category();\n $categories = $category_model->getAll();\n\n $this->content = $this->render('views/products/shop.php', [\n 'products' => $products,\n 'categories' => $categories,\n 'pagination' => $pagination\n ]);\n\n require_once 'views/layouts/main.php';\n }",
"function PriceQuery() {\n\t\t$csvilog = JRequest::getVar('csvilog');\n\t\t\n\t\t/* Check if the price is including or excluding tax */\n\t\tif ($this->product_tax && $this->price_with_tax && is_null($this->product_price)) {\n\t\t\tif (strlen($this->price_with_tax) == 0) $this->product_price = null;\n\t\t\telse $this->product_price = $this->price_with_tax / (1+($this->product_tax/100));\n\t\t}\n\t\telse if (strlen($this->product_price) == 0) $this->product_price = null;\n\t\t\n\t\t/* Bind the data */\n\t\t$this->_vm_product_price->bind($this);\n\t\t\n\t\t/* Calculate the new price */\n\t\t$this->_vm_product_price->CalculatePrice();\n\t\t\n\t\tif (is_null($this->product_price)) {\n\t\t\t/* Delete the price */\n\t\t\t$this->_vm_product_price->delete();\n\t\t}\n\t\telse {\n\t\t\t/* Store the price*/\n\t\t\t/* Add some variables if needed */\n\t\t\t/* Set the modified date if the user has not done so */\n\t\t\tif (!$this->_vm_product_price->getValue('mdate')) $this->_vm_product_price->setValue('mdate', time());\n\t\t\t\n\t\t\t/* Set the create date if the user has not done so and there is no product_price_id */\n\t\t\tif (!$this->_vm_product_price->getValue('mdate') && !$this->_vm_product_price->getValue('product_price_id')) {\n\t\t\t\t$this->_vm_product_price->setValue('cdate', time());\n\t\t\t}\n\t\t\t\n\t\t\t/* Store the price */\n\t\t\t$this->_vm_product_price->store();\n\t\t}\n\t\t$csvilog->AddMessage('debug', JText::_('DEBUG_PRICE_QUERY'), true);\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 priceList() {\r\n \r\n if(!array_key_exists(35,$this->role_privileges)){\r\n $this->loadThis();\r\n } else {\r\n\r\n $searchText = $this->input->post('searchText');\r\n $data['searchText'] = $searchText;\r\n\r\n $data['totalCount'] = true;\r\n $data['searchText'] = $searchText;\r\n\r\n $result = $this->k_master_price_model->getlist($data);\r\n $count = $result['count'];\r\n $data['totalCount'] = false;\r\n $segment = 5;\r\n $returns = $this->paginationCompress(\"admin/vehicle/price/list/\", $count, PER_PAGE_RECORDS, $segment);\r\n\r\n $data['page'] = $returns['page'];\r\n $data['offset'] = $returns['offset'];\r\n\r\n $data['records'] = $this->k_master_price_model->getList($data);\r\n\r\n $this->global['pageTitle'] = PROJECT_NAME . ' : Price List';\r\n $data['title'] = 'Price';\r\n $data['sub_title'] = 'List';\r\n $this->global['assets'] = array('cssTopArray' => array(base_url() . 'assets/plugins/iCheck/all'),\r\n 'cssBottomArray' => array(),\r\n 'jsTopArray' => array(),\r\n 'jsBottomArray' => array(base_url() . 'assets/plugins/iCheck/icheck')\r\n \r\n );\r\n\r\n $this->loadViews(\"admin/vehicle/price/list\", $this->global, $data, $this->global);\r\n }\r\n }",
"public function sortPriceKids(Request $request){\n\n $inputData = $request->input('dataRange'); // dataRange is data from ajax -> data:{dataRange:sortPrice}\n $data = Footwear::where([['statusSale','=',2], ['newPrice','<',$inputData],['category','=','decija']])->orderBy('newPrice','asc')->get();\n return $data;\n }",
"public function dataListHasFilter();"
] | [
"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.52334034",
"0.51646066",
"0.515697",
"0.5156813",
"0.5129529",
"0.5121817",
"0.51209307",
"0.51191884",
"0.5100198",
"0.5097045"
] | 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 return $this->addUsingAlias(OrdrhedTableMap::COL_SP2NAME, $sp2name, $comparison);\n }",
"public function scopeNombre2($query, $nombre2)\n {\n if ($nombre2) {\n return $query->orWhere('nombre2', 'LIKE', \"%$nombre2%\");\n }\n }",
"public function queryByName1($name1) {\r\n $this->name1 = $name1;\r\n }",
"abstract public function filter($name, $params = array());",
"public function filterByAbility2($ability2 = null, $comparison = null)\n {\n if (is_array($ability2)) {\n $useMinMax = false;\n if (isset($ability2['min'])) {\n $this->addUsingAlias(CharacterTableMap::COL_ABILITY_2, $ability2['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($ability2['max'])) {\n $this->addUsingAlias(CharacterTableMap::COL_ABILITY_2, $ability2['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(CharacterTableMap::COL_ABILITY_2, $ability2, $comparison);\n }",
"public function getFilter(string $name): StringFilterInterface;",
"public function filterBySp2($sp2 = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($sp2)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(OrdrhedTableMap::COL_SP2, $sp2, $comparison);\n }",
"public function search_2()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\t\t\n\t\tif($this->responsable != ''){\n\t\t\t$criteria->addCondition(\"responsable in (select id from empleados where nombre_completo ilike '%\".$this->responsable.\"%')\");\n\t\t}\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('LOWER(nombre)',strtolower($this->nombre),true);\n\t\t//$criteria->compare('responsable',$this->responsable,true);\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function filterByName($name)\n {\n $this->filter[] = $this->field('name').' = '.$this->quote($name);\n return $this;\n }",
"public function filterByName($name = null, $comparison = Criteria::EQUAL)\n\t{\n\t\tif (is_array($name)) {\n\t\t\tif ($comparison == Criteria::EQUAL) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t} elseif (preg_match('/[\\%\\*]/', $name)) {\n\t\t\t$name = str_replace('*', '%', $name);\n\t\t\tif ($comparison == Criteria::EQUAL) {\n\t\t\t\t$comparison = Criteria::LIKE;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(MapPeer::NAME, $name, $comparison);\n\t}",
"public function addFilter(string $name, $value): void;",
"public static function getAccessibleFiltersByColumnName($name)\n {\n \n return self::getAccessibleFiltersByColumns()[$name];\n }",
"function search($name)\n {\n return mysqli_query($this->conn,\n \"SELECT wine.*,category.* \n FROM `wine` \n INNER JOIN `category` ON category.category_id = wine.categoryid \n WHERE `name` like '%$name%' \n or `category_name` like '%$name%'\");\n }",
"public function filterByCodRamo2($codRamo2 = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($codRamo2)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $codRamo2)) {\n $codRamo2 = str_replace('*', '%', $codRamo2);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(TabRamo2Peer::COD_RAMO2, $codRamo2, $comparison);\n }",
"final public function filter($name)\n {\n if ($this->_input_filter !== null) {\n return $this->_input_filter->filter($name);\n }\n\n App::getInstance()->includeFile('Sonic/InputFilter.php');\n $this->_input_filter = new InputFilter($this->request());\n return $this->_input_filter->filter($name);\n }",
"public function filterByName1($name1 = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($name1)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_NAME1, $name1, $comparison);\n }",
"public function filterByBilladdress2($billaddress2 = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($billaddress2)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(OrdrhedTableMap::COL_BILLADDRESS2, $billaddress2, $comparison);\n }",
"function add2StatusSelectFilter($displayName, $columnName)\n\t{\n\t\t$this->selectFilters[$columnName] = array(\n\t\t\t1 => 'Pending',\n\t\t\t2 => 'Approved',\n\t\t\t'!displayName' => $displayName\n\t\t);\n\t}",
"public function nameSearch($name): self\n {\n return $this->andFilterWhere(['like', 'users.name', $name]);\n }",
"public function filterLikeVoucherName($name)\n {\n $this->where($this->expr()->like('account_name','%:account_name%'))\n ->setParameter('account_name',\n $name,\n $this->getGateway()->getMetaData()->getColumn('account_name')->getType());\n \n return $this; \n }",
"public function setNombre2($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->nombre2 !== $v) {\n\t\t\t$this->nombre2 = $v;\n\t\t\t$this->modifiedColumns[] = SfGuardUserProfilePeer::NOMBRE2;\n\t\t}\n\n\t\treturn $this;\n\t}",
"public function filter_method_name() {\n\t\t// TODO: Define your filter method here\n\t}",
"public function filterByName($name = null)\n\t{\n\t\tif(preg_match('/[\\%\\*]/', $name)) {\n\t\t\treturn $this->addUsingAlias(cre8ContentTypePeer::NAME, str_replace('*', '%', $name), Criteria::LIKE);\n\t\t} else {\n\t\t\treturn $this->addUsingAlias(cre8ContentTypePeer::NAME, $name, Criteria::EQUAL);\n\t\t}\n\t}",
"function test_two_field_filters() {\n\t\tself::clear_get_values();\n\t\t$dynamic_view = self::get_view_by_key( 'dynamic-view' );\n\n\t\t$filter_args = array(\n\t\t\tarray( 'type' => 'field',\n\t\t\t\t'col' => '493ito',\n\t\t\t\t'op' => '!=',\n\t\t\t\t'val' => 'Jamie',\n\t\t\t),\n\t\t\tarray( 'type' => 'field',\n\t\t\t\t'col' => '493ito',\n\t\t\t\t'op' => 'LIKE',\n\t\t\t\t'val' => 'Stev',\n\t\t\t),\n\t\t);\n\t\tself::add_filter_to_view( $dynamic_view, $filter_args );\n\n\t\t$d = self::get_default_args( $dynamic_view, array( 'Steve' ), array( 'Jamie', 'Steph' ) );\n\n\t\tself::run_get_display_data_tests( $d, 'two field filters' );\n\t}",
"public function scopeName($query,$name){\n $query->where('name','like',\"%$name%\");\n\n }",
"public function filter_method_name() {\n\t\t // TODO:\tDefine your filter method here\n\t\t}",
"public function getFilterFieldDescription($name);",
"public function filterBy($filterName, $value = '', $condition = '')\n {\n $this->test->byXPath(\n \"{$this->filtersPath}//div[contains(@class, 'filter-box')]//div[contains(@class, 'filter-item')]\"\n . \"/a[contains(.,'{$filterName}')]\"\n )->click();\n\n $criteria = $this->test->byXPath(\n \"{$this->filtersPath}//div[contains(@class, 'filter-box')]//div[contains(@class, 'filter-item')]\"\n . \"[a[contains(.,'{$filterName}')]]/div[contains(@class, 'filter-criteria')]\"\n );\n $input = $criteria->element($this->test->using('xpath')->value(\"div/div/input[@name='value']\"));\n\n $input->clear();\n $input->value($value);\n\n //select criteria\n if ($condition !== '') {\n //expand condition list\n $criteria->element($this->test->using('xpath')->value(\"div/div/button[@class ='btn dropdown-toggle']\"))\n ->click();\n\n $criteria->element($this->test->using('xpath')->value(\"div/div/ul/li/a[text()='{$condition}']\"))\n ->click();\n }\n $criteria->element($this->test->using('xpath')->value(\"div/div/button[contains(@class, 'filter-update')]\"))\n ->click();\n $this->waitForAjax();\n\n return $this;\n }",
"public function filterBySp1name($sp1name = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($sp1name)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(OrdrhedTableMap::COL_SP1NAME, $sp1name, $comparison);\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.48741657",
"0.48589885",
"0.48448312",
"0.4842572",
"0.48094684",
"0.48082387",
"0.47935668",
"0.47697708",
"0.47531605",
"0.4750341"
] | 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 listingDescription was\n //probably already called for the same text.\n\n return $desc;\n }",
"public function setShortDescription( string $short_description )\n {\n $this->short_description = $short_description;\n return $this;\n }",
"public function setShortDescription($shortDescription)\n {\n $this->__set('ShortDescription', $shortDescription);\n $this->ShortDescription = $shortDescription;\n return $this;\n }",
"public function core_overload_geoFilter_listingShortenDescription($vars)\n {\n //$vars is an associative array of all variables passed to the original function, not including\n //object vars that can be retrieved using the get_common_vars.php file.\n $vars = array (\n 'description' => $description, //The text to clean up\n 'len' => $len, //The length that the description needs to be shortened to.\n );\n\n //Note that the normal listingDescription function would have been called\n //for the text before this listingShortenDescription was called.\n\n //If you need to use the database object (or any other object retrieved using get_common_vars.php file),\n //do something like this:\n $db = true;\n include(GEO_BASE_DIR . 'get_common_vars.php');\n //Now, $db is an instance of the database access object.\n\n //we are not really going to overload the function, so return\n //geoAddon::NO_OVERLOAD to let the function perform as normal.\n return geoAddon::NO_OVERLOAD;\n }",
"public function setShortDescription($description)\n {\n $this->set('short_description', $description);\n\n return $this;\n }",
"protected function prepareShort()\n\t{\n\t\tif ( count( $this->shortData ) )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t$ptr = array();\n\t\tforeach ( $this->getData() as $code => $item )\n\t\t{\n\t\t\t$short = substr( $code, 0, 2 );\n\t\t\t$arr = explode( '(', $item['name'], 2 );\n\t\t\t$item['short'] = $short;\n\t\t\t$item['name'] = trim( $arr[0] );\n\t\t\t\n\t\t\t$ptr[ $item['name'] ] = $item;\n\t\t}\n\t\tksort( $ptr );\n\t\tforeach ( $ptr as $item )\n\t\t{\n\t\t\tif ( !isset( $this->shortData[ $item['short'] ] ) )\n\t\t\t{\n\t\t\t\t$this->shortData[ $item['short'] ] = $item['name'];\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public function setTitleShort($titleShort)\n {\n $this->titleShort = $titleShort;\n return $this;\n }",
"public function getShortDescription()\n\t{\n\t\treturn WgTextTools::truncate($this->description, 40);\n\t}",
"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 setShortDescription( $lang, $desc ){\n $desc = str_replace('&', '&', $desc);\n if(!isset( $this->_sdescs ))\n $this->_sdescs = $this->_entity->addChild('shortDescriptions');\n\n $tdesc = $this->_sdescs->addChild('shortDescription', $desc);\n $tdesc->addAttribute('language', $lang );\n }",
"public function getShortDescription()\n {\n return $this->get('short_description');\n }",
"function usu_check_short_words($value) {\n\tif(is_int($value)) {\n\t\t$value = '0';\n\t\tzen_db_perform(TABLE_CONFIGURATION, array('configuration_value' => $value), 'update', '`configuration_key`=\\'USU_FILTER_SHORT_WORDS\\'');\n\t\techo '<div><span class=\"alert\">' . sprintf(USU_PLUGIN_WARNING_CONFIG_INVALID, usu_get_configuration_title('USU_FILTER_SHORT_WORDS'), $value) . '</span></div>';\n\t}\n\n\treturn $value;\n}",
"public function getShortDescription(): string\n {\n return $this->short_description;\n }",
"public function setShortName($shortName)\n {\n $this->shortName = $shortName;\n }",
"public function getShortname();",
"function shortDescription($fullDescription=\"\"){\n\t\t$shortDescription = \"\";\n\t\t$fullDescription = trim(strip_tags($fullDescription));\n\n\t\tif ($fullDescription) {\n\t\t\t$initialCount = 400;\n\t\t\tif (strlen($fullDescription) > $initialCount) {\n\t\t\t\t$shortDescription = substr($fullDescription,0,$initialCount).\"......\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn $fullDescription;\n\t\t\t}\n\t\t}\n\n\t\treturn $shortDescription;\n}",
"public function getShortDescriptionAttribute()\n {\n if (strlen($this->description) < 120) {\n return $this->description;\n }\n\n return Str::limit($this->description, 120, '...');\n }",
"public function getShortDescAttribute($value)\n {\n if(!is_null($value) && !empty($value))\n {\n return $value;\n }\n return MISSING_DESC_TEXT;\n }",
"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::DESCRIPTION, $description, Criteria::EQUAL);\n\t\t}\n\t}",
"protected function applyDescriptionFilter(string $value)\n {\n $this->excludeKeyWords('description',$value);\n }",
"public function getShortDescription()\n {\n return $this->shortDescription;\n }",
"public function filterByShortCode($code)\n {\n $this->where($this->expr()->eq('short_code',':short_code'))->setParameter('short_code',$code,$this->getGateway()->getMetaData()->getColumn('short_code')->getType());\n \n return $this;\n }",
"public function getShortDescription()\n {\n return $this->ShortDescription;\n }",
"public function getShortCode() { return $this->shortCode; }",
"public function getShortDescription() {\n\n\t\treturn $this->shortDescription;\n\t}",
"public static function normalizeShortDesc( array $short_desc ): array\n {\n $short_desc = array_map( static fn( $desc ) => StringHelper::normalizeSpaceInString( $desc ), $short_desc );\n return array_filter( $short_desc, static fn( $desc ) => str_replace( ' ', '', $desc ) );\n }",
"public function setShortName($shortName) {\n $this->container['ShortName'] = $shortName;\n return $this;\n\t}",
"public function searchPoItemDescAction($desc, $minDate, $maxDate)\n {\n\t$filterDate = PoManagerControllerUtility::convertDateFilter($minDate, $maxDate);\n\n\t$repository = $this->getDoctrine()\n\t ->getManager()\n\t\t\t ->getRepository('AchPoManagerBundle:PoItem');\n\t$poItems = $repository->findDescription($desc, $filterDate);\n\t\n\t$request = $this->getRequest();\n\n\treturn $this->generateResponse($request, $poItems);\n\t\n }",
"public function getDescriptionShort()\n {\n $description = trim(strip_tags($this->description));\n $short = mb_substr($description, 0, 48);\n if (mb_strlen($short) < mb_strlen($description)) {\n $short .= '...';\n }\n return $short;\n }",
"public function getShort_Description() {\n return $this->short_description;\n }"
] | [
"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.50492173",
"0.5013704",
"0.5004458",
"0.500168",
"0.4963399",
"0.49614865",
"0.49302304",
"0.4907818",
"0.48675808",
"0.4862654"
] | 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\tif (isset($familyId['max'])) {\n\t\t\t\t$this->addUsingAlias(CustomerPeer::FAMILY_ID, $familyId['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(CustomerPeer::FAMILY_ID, $familyId, $comparison);\n\t}",
"public function remove_family($id){\n\t\t$this->HrEmployee->HrFamily->deleteAll(array('app_users_id' => $id), false);\n\t}",
"public function filterByUser(int $id);",
"public function filterById($id = null)\n\t{\n\t\tif (is_array($id)) {\n\t\t\treturn $this->addUsingAlias(CollectorBuddyPeer::ID, $id, Criteria::IN);\n\t\t} else {\n\t\t\treturn $this->addUsingAlias(CollectorBuddyPeer::ID, $id, Criteria::EQUAL);\n\t\t}\n\t}",
"private function checkFamily($idFamily)\n {\n $family = WhFamily::where('id', $idFamily)->where('flag_delete', false)->first();\n if (!$family) {\n throw new ValidationException('La familia no existe');\n }\n return $family;\n }",
"public function familysizebyid($id) {\n\t\ttry { \n\t\t\t$collection = $this->_objectManager->create('Seasia\\Familysize\\Model\\Family');\n\t\t\t\n\t\t\t$collection = $collection->getCollection()->addFieldToFilter('id', array('eq' => $id)); \n\t\t\t$familySizeData = array();\n\t\t\t\n\t\t\tif($collection->getSize() > 0){\n\t\t\t\t$familySize = $collection->getFirstItem();\n\t\t\t\t$familySizeData = $familySize->getData();\n\t\t\t}\n\t\t\t$response['status'] = \"Success\";\n\t\t\t$response['familysizedata'] = $familySizeData;\n\t\t\t\n\t\t\treturn $this->getResponseFormat($response);\n\t\t} catch(\\Exception $e) {\n\t\t\treturn $this->errorMessage($e);\n\t\t}\n\t}",
"public function filterByProductId($value) {\n $this->_filter->equalTo($this->_nameMapping['product'], $value);\n }",
"function getNombreFamilia($idfamily){\n $manager = new ManageFamily($this->getDataBase());\n return $manager->getNameFamily($idfamily);\n }",
"public function filterByUserFamily($userFamily, $comparison = null)\n {\n if ($userFamily instanceof \\UserFamily) {\n return $this\n ->addUsingAlias(ParishTableMap::COL_VALUE, $userFamily->getUserId(), $comparison);\n } elseif ($userFamily instanceof ObjectCollection) {\n return $this\n ->useUserFamilyQuery()\n ->filterByPrimaryKeys($userFamily->getPrimaryKeys())\n ->endUse();\n } else {\n throw new PropelException('filterByUserFamily() only accepts arguments of type \\UserFamily or Collection');\n }\n }",
"public function filterByIdFacebook($idFacebook = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($idFacebook)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $idFacebook)) {\n $idFacebook = str_replace('*', '%', $idFacebook);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(UserPeer::ID_FACEBOOK, $idFacebook, $comparison);\n }",
"public function filterByTeam(int $id);",
"function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}",
"function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}",
"function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}",
"function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}",
"function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}",
"function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}",
"function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}",
"function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}",
"function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}",
"public function where_id_is($id) {\n return $this->where($this->_get_id_column_name(), $id);\n }",
"public function p_family_edit($family_id = NULL) {\n \n\t\tDB::instance(DB_NAME)->update('families', $_POST, \"WHERE family_id = $family_id\"); \n\n \t\tRouter::redirect('/');\n }",
"public function deleteFamily($family_id)\n {\n if(!empty($family_id))\n {\n $delete = TrFamily::find($family_id);\n $delete->delete(); \n return response()->json(['status'=>'success'],200); \n }\n else\n {\n return response()->json(['status'=>'error'],422); \n }\n }",
"public function filterById($value, $operator = Rule::OP_EQ)\n\t{\n\t\treturn $this->filterBy('id', $value, $operator);\n\t}",
"public function filterId(int $id): self;",
"public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(IntentFormsPeer::ID, $key, Criteria::EQUAL);\n\t}",
"public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(FormsPeer::ID, $key, Criteria::EQUAL);\n\t}",
"public function filterById($id = null)\n\t{\n\t\tif (is_array($id)) {\n\t\t\treturn $this->addUsingAlias(cre8ContentTypePeer::ID, $id, Criteria::IN);\n\t\t} else {\n\t\t\treturn $this->addUsingAlias(cre8ContentTypePeer::ID, $id, Criteria::EQUAL);\n\t\t}\n\t}",
"public function filterByGroup($id)\n {\n $oGateway = $this->getGateway();\n $sAlias = $this->getDefaultAlias();\n if(false === empty($sAlias)) {\n $sAlias = $sAlias .'.';\n }\n \n $paramType = $oGateway->getMetaData()->getColumn('voucher_group_id')->getType();\n \n return $this->andWhere($sAlias.\"voucher_group_id = \".$this->createNamedParameter($id,$paramType));\n \n }",
"public function getFilterForIdAction()\n {\n $id = $this->request['id'];\n $doc = $this->find($id);\n $struct = $this->composeRowStructure($doc);\n $this->response['document'] = $struct;\n $filter = array('name' => array('op' => 'contains',\n 'value' => $doc->getName()),\n 'module' => array('op' => 'in',\n 'value' => array($struct['module'])));\n $this->response['filter'] = $filter;\n }"
] | [
"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.49888828",
"0.49523836",
"0.4933383",
"0.49313584",
"0.49265376",
"0.49196503",
"0.488748",
"0.4864217",
"0.48641247",
"0.48580623"
] | 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 }\n if (isset($mesId['max'])) {\n $this->addUsingAlias(EventPeer::MES_ID, $mesId['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(EventPeer::MES_ID, $mesId, $comparison);\n }",
"public function filterByCep($cep = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($cep)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $cep)) {\n $cep = str_replace('*', '%', $cep);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(TbalunoImportPeer::CEP, $cep, $comparison);\n }",
"public function getClientes(){\r\n $query = \"\r\n select t.id_persona, t.nombrecompleto, t.numerodocumento, t.email\r\n from (\r\n SELECT \r\n p.id_persona,\r\n p.nombrecompleto,\r\n p.numerodocumento,\r\n p.email\r\n FROM mae_persona p\r\n WHERE p.estado <> '0' and p.id_empresa = 2 ) as t\r\n where (\r\n t.nombrecompleto LIKE CONCAT('%',:cliente,'%') or\r\n t.numerodocumento LIKE CONCAT('%',:cliente,'%') \r\n ); \";\r\n \r\n $parms = array(\r\n ':cliente' => trim($this->_xSearch),\r\n );\r\n $data = $this->queryAll($query,$parms);\r\n return $data;\r\n }",
"public function searchAllNotSendReport($ano, $mes)\r\n\t{\r\n\t\t// should not be searched.\r\n\r\n $dados=Yii::app()->db->createCommand('SELECT serv.nome, serv.cpf as id FROM servidor serv\r\n WHERE (SELECT r.servidor_cpf FROM total_relatorio r \r\n WHERE r.servidor_cpf=serv.cpf AND \r\n r.ano='.$ano.' AND r.mes='.$mes.') IS NULL')->queryAll();\r\n\r\n\t\treturn new CArrayDataProvider($dados, array(\r\n 'id'=>'servidor',\r\n 'sort'=>array(\r\n 'attributes'=>array(\r\n 'cpf', 'nome',\r\n ),\r\n ),\r\n 'pagination'=>array(\r\n 'pageSize'=>20\r\n )\r\n\r\n\t\t));\r\n\t\t\r\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}",
"public function getAllEnseignement() {\n $qb = $this->createQueryBuilder('e')\n ->where('e.etatEnseignement != ' . TypeEtat::SUPPRIME);\n // ->orderBy('e.typeEnseignement', 'ASC');\n return $qb->getQuery()->getResult();\n }",
"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_kode),true);\n\t\t$criteria->compare('LOWER(programkerja_nama)',strtolower($this->programkerja_nama),true);\n\t\t$criteria->compare('LOWER(programkerja_ket)',strtolower($this->programkerja_ket),true);\n\t\tif(!empty($this->programkerja_nourut)){\n\t\t\t$criteria->addCondition('programkerja_nourut = '.$this->programkerja_nourut);\n\t\t}\n\t\tif(!empty($this->subprogramkerja_id)){\n\t\t\t$criteria->addCondition('subprogramkerja_id = '.$this->subprogramkerja_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subprogramkerja_kode)',strtolower($this->subprogramkerja_kode),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_nama)',strtolower($this->subprogramkerja_nama),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_ket)',strtolower($this->subprogramkerja_ket),true);\n\t\tif(!empty($this->subprogramkerja_nourut)){\n\t\t\t$criteria->addCondition('subprogramkerja_nourut = '.$this->subprogramkerja_nourut);\n\t\t}\n\t\tif(!empty($this->kegiatanprogram_id)){\n\t\t\t$criteria->addCondition('kegiatanprogram_id = '.$this->kegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kegiatanprogram_kode)',strtolower($this->kegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_nama)',strtolower($this->kegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_ket)',strtolower($this->kegiatanprogram_ket),true);\n\t\tif(!empty($this->kegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('kegiatanprogram_nourut = '.$this->kegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->subkegiatanprogram_id)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_id = '.$this->subkegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subkegiatanprogram_kode)',strtolower($this->subkegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_nama)',strtolower($this->subkegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_ket)',strtolower($this->subkegiatanprogram_ket),true);\n\t\tif(!empty($this->subkegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_nourut = '.$this->subkegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->rekening1debit_id)){\n\t\t\t$criteria->addCondition('rekening1debit_id = '.$this->rekening1debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1debit_kode)',strtolower($this->rekening1debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1debit_nama)',strtolower($this->rekening1debit_nama),true);\n\t\tif(!empty($this->rekening2debit_id)){\n\t\t\t$criteria->addCondition('rekening2debit_id = '.$this->rekening2debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2debit_kode)',strtolower($this->rekening2debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2debit_nama)',strtolower($this->rekening2debit_nama),true);\n\t\tif(!empty($this->rekening3debit_id)){\n\t\t\t$criteria->addCondition('rekening3debit_id = '.$this->rekening3debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3debit_kode)',strtolower($this->rekening3debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3debit_nama)',strtolower($this->rekening3debit_nama),true);\n\t\tif(!empty($this->rekening4debit_id)){\n\t\t\t$criteria->addCondition('rekening4debit_id = '.$this->rekening4debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4debit_kode)',strtolower($this->rekening4debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4debit_nama)',strtolower($this->rekening4debit_nama),true);\n\t\tif(!empty($this->rekening5debit_id)){\n\t\t\t$criteria->addCondition('rekening5debit_id = '.$this->rekening5debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5debit_kode)',strtolower($this->rekening5debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5debit_nama)',strtolower($this->rekening5debit_nama),true);\n\t\tif(!empty($this->rekening1kredit_id)){\n\t\t\t$criteria->addCondition('rekening1kredit_id = '.$this->rekening1kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1kredit_kode)',strtolower($this->rekening1kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1kredit_nama)',strtolower($this->rekening1kredit_nama),true);\n\t\tif(!empty($this->rekening2kredit_id)){\n\t\t\t$criteria->addCondition('rekening2kredit_id = '.$this->rekening2kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2kredit_kode)',strtolower($this->rekening2kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2kredit_nama)',strtolower($this->rekening2kredit_nama),true);\n\t\tif(!empty($this->rekening3kredit_id)){\n\t\t\t$criteria->addCondition('rekening3kredit_id = '.$this->rekening3kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3kredit_kode)',strtolower($this->rekening3kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3kredit_nama)',strtolower($this->rekening3kredit_nama),true);\n\t\tif(!empty($this->rekening4kredit_id)){\n\t\t\t$criteria->addCondition('rekening4kredit_id = '.$this->rekening4kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4kredit_kode)',strtolower($this->rekening4kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4kredit_nama)',strtolower($this->rekening4kredit_nama),true);\n\t\tif(!empty($this->rekening5kredit_id)){\n\t\t\t$criteria->addCondition('rekening5kredit_id = '.$this->rekening5kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5kredit_kode)',strtolower($this->rekening5kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5kredit_nama)',strtolower($this->rekening5kredit_nama),true);\n\t\t\n $criteria->compare('subkegiatanprogram_aktif', $this->subkegiatanprogram_aktif);\n $criteria->compare('programkerja_aktif', $this->programkerja_aktif);\n $criteria->compare('subprogramkerja_aktif', $this->subprogramkerja_aktif);\n $criteria->compare('kegiatanprogram_aktif', $this->kegiatanprogram_aktif);\n//$criteria->order = 'programkerja_id,subprogramkerja_id,kegiatanprogram_id,subkegiatanprogram_id';\n\t\t\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n\t}",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('er_id',$this->er_id,true);\n\t\t$criteria->compare('er_name',$this->er_name,true);\n\t\t$criteria->compare('er_password',$this->er_password,true);\n\t\t$criteria->compare('er_qq',$this->er_qq);\n\t\t$criteria->compare('er_sex',$this->er_sex,true);\n\t\t$criteria->compare('er_ip',$this->er_ip,true);\n\t\t$criteria->compare('er_gotime',$this->er_gotime,true);\n\t\t$criteria->compare('er_lasttime',$this->er_lasttime,true);\n\t\t$criteria->compare('er_status',$this->er_status);\n\t\t$criteria->compare('er_xh_word',$this->er_xh_word,true);\n\t\t$criteria->compare('er_xh_image',$this->er_xh_image,true);\n\t\t$criteria->compare('er_money',$this->er_money,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"protected function renderFilter($column)\n {\n $sFilter = $column['sFilter'];\n\n switch ($sFilter['type']) {\n case 'text' :\n $r = '<div class=\"input-group\">'\n .($this->renderFilterOperators ?\n '<div class=\"input-group-addon\"><select class=form-control>'\n .'<option value=\"\">'.$this->trans('').'</option>'\n .$this->formatOption($column['data'], '[!]', $this->trans('!'))\n .$this->formatOption($column['data'], '[=]', $this->trans('='))\n .$this->formatOption($column['data'], '[!=]', $this->trans('!='))\n .$this->formatOption($column['data'], 'reg:', $this->trans('REGEXP'))\n .$this->formatOption($column['data'], 'lenght:', $this->trans('Lenght'))\n .'</select></div>' : '')\n .'<input class=\"form-control sSearch\" type=\"text\" value=\"'.(isset($column['data']) && isset($this->filters[$column['data']]) ? preg_replace('/^(\\[(!|<=|>=|=|<|>|<>|!=)\\]|reg:|in:|lenght:)/i', '', $this->filters[$column['data']]) : '').'\">'\n .'</div></div>';\n\n return $r;\n case 'number' : case 'date' :\n $r = '<div class=\"input-group\">'\n .($this->renderFilterOperators ?\n '<div class=\"input-group-addon\"><select class=form-control>'\n .'<option value=\"\">'.$this->trans('').'</option>'\n .$this->formatOption($column['data'], '[=]', $this->trans('='))\n .$this->formatOption($column['data'], '[!=]', $this->trans('!='))\n .$this->formatOption($column['data'], '[<=]', $this->trans('<='))\n .$this->formatOption($column['data'], '[<]', $this->trans('<'))\n .$this->formatOption($column['data'], '[>=]', $this->trans('>='))\n .$this->formatOption($column['data'], '[>]', $this->trans('>'))\n .$this->formatOption($column['data'], 'in:', $this->trans('IN(int,int,int...)'))\n .$this->formatOption($column['data'], 'reg:', $this->trans('REGEXP'))\n .'</select></div>' : '')\n .'<input class=\"form-control sSearch\" type=\"text\" value=\"'.(isset($this->filters[$column['data']]) ? preg_replace('/^(\\[(<=|>=|=|<|>|<>|!=)\\]|reg:|in:)/i', '', $this->filters[$column['data']]) : '').'\">'\n .'</div></div>';\n\n return $r;\n case 'select' :\n $o = '';\n if (isset($sFilter['options'])) {\n $sFilter['values'] = $sFilter['options'];\n }\n if (isset($sFilter['values'])) {\n foreach ($sFilter['values'] as $k => $v) {\n $o .= '<option value=\"'.$k.'\"'.(isset($column['data']) && isset($this->filters[$column['data']]) && $this->filters[$column['data']] == $k ? ' selected' : '').'>'.$v.'</option>';\n }\n }\n /** Auto-generate options if the data are loaded **/\n elseif (isset($this->jsInitParameters['data'])) {\n // TODO\n }\n\n return '<select class=\"form-control sSearch\"><option value=\"\"></option>'.$o.'</select>';\n }\n }",
"public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(EmpresasPeer::EMPRESA_ID, $key, Criteria::EQUAL);\n }",
"public function filterByDiepteEenheid($diepteEenheid = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($diepteEenheid)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $diepteEenheid)) {\n $diepteEenheid = str_replace('*', '%', $diepteEenheid);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(GsLogistiekeInformatiePeer::DIEPTE_EENHEID, $diepteEenheid, $comparison);\n }",
"public function Filter($filter=null){\n $results = $this->where(function($query) use ($filter){\n if($filter){\n $query->where('cliente','LIKE',\"%{$filter}%\" or 'vendedor','LIKE',\"%{$filter}%\" or 'data','LIKE',\"%{$filter}%\")->orderBy(\"%{$filter}%\", 'desc')->get() ;\n }\n });\n return $results;\n }",
"public function filterByCelular($celular = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($celular)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $celular)) {\n $celular = str_replace('*', '%', $celular);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(TbalunoImportPeer::CELULAR, $celular, $comparison);\n }",
"function filter_posts( $params ) {\n global $wpdb;\n\n $eboy = $params['eboy'];\n $selected_values = $params['selected_values'];\n $selected_values = is_array( $selected_values ) ? $selected_values[0] : $selected_values;\n $selected_values = stripslashes( $selected_values );\n\n if ( empty( $selected_values ) ) {\n return 'continue';\n }\n\n $sql = \"\n SELECT DISTINCT post_id FROM {$wpdb->prefix}eboywp_index\n WHERE eboy_name = %s AND eboy_display_value LIKE %s\";\n\n $sql = $wpdb->prepare( $sql, $eboy['name'], '%' . $selected_values . '%' );\n return eboywp_sql( $sql, $eboy );\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(\"/^\\*/\", $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}",
"public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->together = true;\n\t\t$criteria->with = array('megrendeles_tetel', 'megrendeles_tetel.termek.zaras', 'megrendeles_tetel.megrendeles', 'megrendeles_tetel.megrendeles.ugyfel');\n\n\t\t$criteria->compare('taskaszam',$this->taskaszam,true);\n\t\t$criteria->compare('megrendeles_tetel.munka_neve', $this->munkanev_search, true );\n\t\t$criteria->compare('cegnev', $this->megrendelonev_search, true );\n\t\t$criteria->compare('zaras.nev', $this->boritek_tipus_search, true );\n\t\t\n\t\t$darabszam_tol = ($this->darabszam_tol_search != '') ? $this->darabszam_tol_search : 0;\n\t\t$darabszam_ig = ($this->darabszam_ig_search != '') ? $this->darabszam_ig_search : 99999999;\n\t\t$criteria->addCondition('megrendeles_tetel.darabszam >= ' . $darabszam_tol . ' AND megrendeles_tetel.darabszam <= ' . $darabszam_ig);\n\t\t\n\t\t$szinszam1_tol = ($this->szinszam1_tol_search != '') ? $this->szinszam1_tol_search : 0;\n\t\t$szinszam1_ig = ($this->szinszam1_ig_search != '') ? $this->szinszam1_ig_search : 9;\n\t\t$criteria->addCondition('megrendeles_tetel.szinek_szama1 >= ' . $szinszam1_tol . ' AND megrendeles_tetel.szinek_szama1 <= ' . $szinszam1_ig);\n\t\t\n\t\t$szinszam2_tol = ($this->szinszam2_tol_search != '') ? $this->szinszam2_tol_search : 0;\n\t\t$szinszam2_ig = ($this->szinszam2_ig_search != '') ? $this->szinszam2_ig_search : 9;\n\t\t$criteria->addCondition('megrendeles_tetel.szinek_szama2 >= ' . $szinszam2_tol . ' AND megrendeles_tetel.szinek_szama2 <= ' . $szinszam2_ig);\n\t\t\n\t\t/*\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('megrendeles_tetel_id',$this->megrendeles_tetel_id,true);\n\t\t$criteria->compare('hatarido',$this->hatarido,true);\n\t\t$criteria->compare('pantone',$this->pantone,true);\n\t\t$criteria->compare('szin_pantone',$this->szin_pantone,true);\n\t\t$criteria->compare('munka_beerkezes_datum',$this->munka_beerkezes_datum,true);\n\t\t$criteria->compare('taska_kiadasi_datum',$this->taska_kiadasi_datum,true);\n\t\t$criteria->compare('elkeszulesi_datum',$this->elkeszulesi_datum,true);\n\t\t$criteria->compare('ertesitesi_datum',$this->ertesitesi_datum,true);\n\t\t$criteria->compare('szallitolevel_sorszam',$this->szallitolevel_sorszam,true);\n\t\t$criteria->compare('szallitolevel_datum',$this->szallitolevel_datum,true);\n\t\t$criteria->compare('szamla_sorszam',$this->szamla_sorszam,true);\n\t\t$criteria->compare('szamla_datum',$this->szamla_datum,true);\n\t\t$criteria->compare('ctp',$this->ctp);\n\t\t$criteria->compare('sos',$this->sos);\n\t\t$criteria->compare('szin_c_elo',$this->szin_c_elo);\n\t\t$criteria->compare('szin_m_elo',$this->szin_m_elo);\n\t\t$criteria->compare('szin_y_elo',$this->szin_y_elo);\n\t\t$criteria->compare('szin_k_elo',$this->szin_k_elo);\n\t\t$criteria->compare('szin_c_hat',$this->szin_c_hat);\n\t\t$criteria->compare('szin_m_hat',$this->szin_m_hat);\n\t\t$criteria->compare('szin_y_hat',$this->szin_y_hat);\n\t\t$criteria->compare('szin_k_hat',$this->szin_k_hat);\n\t\t$criteria->compare('szin_mutaciok',$this->szin_mutaciok);\n\t\t$criteria->compare('szin_mutaciok_szam',$this->szin_mutaciok_szam);\n\t\t$criteria->compare('kifuto_bal',$this->kifuto_bal);\n\t\t$criteria->compare('kifuto_fent',$this->kifuto_fent);\n\t\t$criteria->compare('kifuto_jobb',$this->kifuto_jobb);\n\t\t$criteria->compare('kifuto_lent',$this->kifuto_lent);\n\t\t$criteria->compare('forditott_levezetes',$this->forditott_levezetes);\n\t\t$criteria->compare('hossziranyu_levezetes',$this->hossziranyu_levezetes);\n\t\t$criteria->compare('nyomas_tipus',$this->nyomas_tipus,true);\n\t\t$criteria->compare('utasitas_ctp_nek',$this->utasitas_ctp_nek,true);\n\t\t$criteria->compare('utasitas_gepmesternek',$this->utasitas_gepmesternek,true);\n\t\t$criteria->compare('kiszallitasi_informaciok',$this->kiszallitasi_informaciok,true);\n\t\t$criteria->compare('gep_id',$this->gep_id);\n\t\t$criteria->compare('munkatipus_id',$this->munkatipus_id);\n\t\t$criteria->compare('max_fordulat',$this->max_fordulat);\n\t\t$criteria->compare('erkezett',$this->erkezett);\n\t\t$criteria->compare('file_beerkezett',$this->file_beerkezett);\n\t\t$criteria->compare('kifutos',$this->kifutos);\n\t\t$criteria->compare('fekete_flekkben_szin_javitando',$this->fekete_flekkben_szin_javitando);\n\t\t$criteria->compare('magas_szinterheles_nagy_feluleten',$this->magas_szinterheles_nagy_feluleten);\n\t\t$criteria->compare('magas_szinterheles_szovegben',$this->magas_szinterheles_szovegben);\n\t\t$criteria->compare('ofszet_festek',$this->ofszet_festek);\n\t\t$criteria->compare('nyomas_minta_szerint',$this->nyomas_minta_szerint);\n\t\t$criteria->compare('nyomas_vagojel_szerint',$this->nyomas_vagojel_szerint);\n\t\t$criteria->compare('nyomas_domy_szerint',$this->nyomas_domy_szerint);\n\t\t$criteria->compare('nyomas_specialis',$this->nyomas_specialis,true);\n\t\t$criteria->compare('gepindulasra_jon_ugyfel',$this->gepindulasra_jon_ugyfel);\n\t\t$criteria->compare('ctp_nek_atadas_datum',$this->ctp_nek_atadas_datum,true);\n\t\t$criteria->compare('ctp_kezdes_datum',$this->ctp_kezdes_datum,true);\n\t\t$criteria->compare('ctp_belenyulasok',$this->ctp_belenyulasok,true);\n\t\t$criteria->compare('ctp_hibalista',$this->ctp_hibalista,true);\n\t\t$criteria->compare('jovahagyas',$this->jovahagyas,true);\n\t\t$criteria->compare('ctp_kesz_datum',$this->ctp_kesz_datum,true);\n\t\t$criteria->compare('nyomhato',$this->nyomhato,true);\n\t\t$criteria->compare('nyomas_kezdes_datum',$this->nyomas_kezdes_datum,true);\n\t\t$criteria->compare('raktarbol_kiadva_datum',$this->raktarbol_kiadva_datum,true);\n\t\t$criteria->compare('sztornozas_oka',$this->sztornozas_oka,true);\n\t\t$criteria->compare('sztornozva',$this->sztornozva);\n\t\t*/\n\t\t\n\t\t// LI: logikailag törölt sorok ne jelenjenek meg, ha a belépett user nem az 'Admin'\n\t\tif (!Yii::app()->user->checkAccess('Admin'))\n\t\t\t$criteria->compare('t.torolt', 0, false);\n\t\n\t\t// id szerint csökkenő sorrendben kérdezzük le az adatokat, így biztos, hogy a legújabb lesz legfelül\n\t\t$criteria->order = 't.id DESC';\n\t\t\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t\t'pagination'=>array('pageSize'=>Utils::getIndexPaginationNumber(),)\n\t\t));\n\t}",
"public function filterByMemocodeEenheidVerpakking($memocodeEenheidVerpakking = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($memocodeEenheidVerpakking)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $memocodeEenheidVerpakking)) {\n $memocodeEenheidVerpakking = str_replace('*', '%', $memocodeEenheidVerpakking);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(GsLogistiekeInformatiePeer::MEMOCODE_EENHEID_VERPAKKING, $memocodeEenheidVerpakking, $comparison);\n }",
"public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('EVE_ID',$this->EVE_ID);\n\t\t$criteria->compare('EVE_NOMBRE',$this->EVE_NOMBRE,true);\n\t\t$criteria->compare('EVE_DESCRIPCION',$this->EVE_DESCRIPCION,true);\n\t\t$criteria->compare('EVE_FECHA_PUBLICACION',$this->EVE_FECHA_PUBLICACION,true);\n\t\t$criteria->compare('EVE_FECHA_CADUCA',$this->EVE_FECHA_CADUCA,true);\n\t\t$criteria->compare('EVE_HORA',$this->EVE_HORA,true);\n\t\t$criteria->compare('EVE_ESTADO',$this->EVE_ESTADO,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'periodebayar': return \"tglbayar BETWEEN '$key-01-01' AND '$key-12-31'\";\n\t\t\t}\n\t\t}",
"public function handleFilterAnnotation($e)\n {\n $annotation = $e->getParam('annotation');\n if (!$annotation instanceof Column) {\n return;\n }\n\n $inputSpec = $e->getParam('inputSpec');\n if (!isset($inputSpec['filters'])) {\n $inputSpec['filters'] = array();\n }\n\n switch ($annotation->type) {\n case 'bool':\n case 'boolean':\n $inputSpec['filters'][] = array('name' => 'Boolean');\n break;\n case 'bigint':\n case 'integer':\n case 'smallint':\n $inputSpec['filters'][] = array('name' => 'Int');\n break;\n case 'datetime':\n case 'datetimetz':\n case 'date':\n case 'time':\n case 'string':\n case 'text':\n $inputSpec['filters'][] = array('name' => 'StringTrim');\n break;\n }\n }",
"public function filterByDiepteHoeveelheid($diepteHoeveelheid = null, $comparison = null)\n {\n if (is_array($diepteHoeveelheid)) {\n $useMinMax = false;\n if (isset($diepteHoeveelheid['min'])) {\n $this->addUsingAlias(GsLogistiekeInformatiePeer::DIEPTE_HOEVEELHEID, $diepteHoeveelheid['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($diepteHoeveelheid['max'])) {\n $this->addUsingAlias(GsLogistiekeInformatiePeer::DIEPTE_HOEVEELHEID, $diepteHoeveelheid['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(GsLogistiekeInformatiePeer::DIEPTE_HOEVEELHEID, $diepteHoeveelheid, $comparison);\n }",
"public function filterByMae($mae = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($mae)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $mae)) {\n $mae = str_replace('*', '%', $mae);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(TbalunoImportPeer::MAE, $mae, $comparison);\n }",
"function claveFiltroEmpleado(){\n\t$queryUsuario = sprintf(\"SELECT id_empleado,\n\t\t\t\t\t\t\t\tCONCAT_WS(' ', nombre_empleado, apellido) AS nombre_empleado,\n\t\t\t\t\t\t\t clave_filtro,\n\t\t\t\t\t\t\t\t\t(CASE clave_filtro\n\t\t\t\t\t\t\t\t\t\t WHEN 1 THEN 'Ventas'\t\t\n\t\t\t\t\t\t\t WHEN 2 THEN 'Ventas'\n\t\t\t\t\t\t\t\t\t\t WHEN 4 THEN 'Postventa'\n\t\t\t\t\t\t\t WHEN 5 THEN 'Postventa'\n\t\t\t\t\t\t\t WHEN 6 THEN 'Postventa'\n\t\t\t\t\t\t\t WHEN 7 THEN 'Postventa'\n\t\t\t\t\t\t\t WHEN 8 THEN 'Postventa'\n\t\t\t\t\t\t\t WHEN 26 THEN 'Postventa'\n\t\t\t\t\t\t\t WHEN 400 THEN 'Postventa'\n\t\t\t\t\t\t\t\t\tEND) AS tipo\n\n\t\t\t\t\t\t\t\tFROM pg_empleado \n\t\t\t\t\t\t\t\t\tINNER JOIN pg_cargo_departamento ON pg_empleado.id_cargo_departamento = pg_cargo_departamento.id_cargo_departamento\n\t\t\t\t\t\t\t\tWHERE id_empleado = %s \",\n\t\t\t\t\t\t\tvalTpDato($_SESSION['idEmpleadoSysGts'],\"int\"));\n\t\n\t$rsUsuario = mysql_query($queryUsuario);\n\tif (!$rsUsuario) return array(false, mysql_error().\"\\nError Nro: \".mysql_errno().\"\\nLine: \".__LINE__.\"\\n\".$queryUsuario);\n\t$row = mysql_fetch_array($rsUsuario);\n\n\treturn array(true, $rowClave['clave_filtro'], $row['tipo']);\n}",
"function Query_Filter()\r\n {\r\n $sql = \"select cod_materia , descricao_materia from materia where 1=1 \";\r\n if ( $this->getcod_materia() != \"\" ) \r\n $sql = $sql . \" and cod_materia = \".$this->getcod_materia();\r\n if ( $this->getdescrica_materia() != \"\" ) \r\n $sql = $sql . \" and descrica_materia like '%\".$this->getdescrica_materia().\"%' \";\r\n\r\n $result = mysql_query( $sql );\r\n return $result;\r\n }",
"function filterAll($filtre=\"\", $where=true)\n\t{\n\t\tif(empty($filtre)) return false;\n\t\t$select = $this->getSelect();\n\n\t\t$filter_keys = $this->_headers;\n\n\t\tif( $where ) {\n\t\t\tforeach( $filter_keys as $key => $value) {\n\t\t\t\tif( array_search($key, $this->_aggregates) !== false )\n\t\t\t\t\tunset($filter_keys[$key]);\n\t\t\t}\n\t\t}\n\n\t\t// DATES : remplacement de dd/mm/yyyy par yyyy-mm-dd\n\t\t$filtre = preg_replace(\"/(\\d{1,2})\\/(\\d{1,2})\\/(\\d{4})/\", \"$3-$2-$1\", $filtre);\n\t\t$parts = explode(\" \", $filtre);\n\n\t\tforeach( $parts as $part) {\n\t\t\tif( preg_match(\"/(.+)(=|<|>|!=|<>|<=|>=|~)(.+)/\", $part, $matches) && isset($this->_filter_cols[$matches[1]]) )\n\t\t\t{\n\t\t\t\t// Recherche par raccourci de colonne\n\t\t\t\t$col = $this->_filter_cols[$matches[1]];\n\t\t\t\tif($matches[2] == \"=\") { $matches[2] = \"LIKE\"; }\n\t\t\t\tif(preg_match(\"/NULL?/\",$matches[3])) { $matches[3] = \" \"; }\n\t\t\t\t$requete = sprintf(\"%s %s ?\", $col, $matches[2]);\n\n\t\t\t\t// DATES\n\t\t\t\t//if( preg_match(\"/(\\d{2})\\/(\\d{2})\\/(\\d{4})/\", $matches[3], $date_matches)) {\n\t\t\t\t\t//$matches[3] = sprintf(\"%s-%s-%s\", $date_matches[3], $date_matches[2], $date_matches[1]);\n\t\t\t\t//}\n\n\t\t\t\t// NULL\n\t\t\t\tif( $matches[2] == \"LIKE\" && $matches[3] == \" \" ) {\n\t\t\t\t\t$requete = sprintf(\"%s IS NULL OR %s = ?\", $col, $col);\n\t\t\t\t}\n\n\t\t\t\t// OUI/NOM\n\t\t\t\tif( $matches[3] == \"oui\" || $matches[3] == \"non\" ) {\n\t\t\t\t\t$matches[3] = ($matches[3] == \"oui\");\n\t\t\t\t}\n\n\t\t\t\tif( array_search($col, $this->_aggregates) !== false )\n\t\t\t\t\t$select->having( $requete, $matches[3]);\n\t\t\t\telse\n\t\t\t\t\t$select->where( $requete, $matches[3]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif( $where )\n\t\t\t\t\t$select->whereSearch(array_keys($filter_keys), $part);\n\t\t\t\telse\n\t\t\t\t\t$select->havingSearch(array_keys($filter_keys), $part);\n\t\t\t}\n\t\t}\n\t\t$this->_selectObj = $select;\n\t\treturn true;\n\t}",
"private function filter()\n {\n $this->builder->where(function ($builder) {\n collect($this->request->get('filter', []))->each(function ($value, $column) use ($builder) {\n $this->guardFilter($column);\n $this->filterColumn($builder, $column, $value);\n });\n });\n }",
"public function filter(){\n\t\t\t$this->filtroSQL = \"SELECT art.*, cat.categoria, fam.familia, sfam.subfamilia, autor\n\t\t\t\t,date_format(art.fmodificacion,'%d-%m-%Y %H:%i:%s') ffmodificacion\n\t\t\t\t,format(art.precio,2,'de_DE') fprecio\n\t\t\t\t,format(art.oferta,2,'de_DE') foferta\n\t\t\t\t,(select nombre from os_administradores adm where adm.id=art.id_administrador) gestor\n\t\t\t\t,(CASE art.estado WHEN 'ON' THEN 'Online' WHEN 'OFF' THEN 'Offline' ELSE 'Elimado/a' END) festado\t\t\t\t\n\t\t\t\tFROM articulos art\n\t\t\t\tLEFT JOIN subfamilias sfam ON art.id_subfamilia=sfam.id\n\t\t\t\tLEFT JOIN familias fam ON sfam.id_familia=fam.id\n\t\t\t\tLEFT JOIN categorias cat ON fam.id_categoria=cat.id\n\t\t\t\tLEFT JOIN autores aut ON art.id_autor=aut.id\n\t\t\t\tWHERE art.estado IN ('ON','OFF')\";\n\t\t\t\t\t\t\n\t\t\tif ( $_REQUEST['_articulo'] )\n\t\t\t\t$this->filtroSQL .= \" AND art.articulo LIKE '%$this->filtro_articulo%'\";\n\t\t\tif ( $_REQUEST['_categoria'] )\n\t\t\t\t$this->filtroSQL .= \" AND categoria LIKE '%$this->filtro_categoria%'\";\n\t\t\tif ( $_REQUEST['_familia'] )\n\t\t\t\t$this->filtroSQL .= \" AND familia LIKE '%$this->filtro_familia%'\";\n\t\t\tif ( $_REQUEST['_subfamilia'] )\n\t\t\t\t$this->filtroSQL .= \" AND subfamilia LIKE '%$this->filtro_subfamilia%'\";\n\t\t\tif ( $_REQUEST['_autor'] )\n\t\t\t\t$this->filtroSQL .= \" AND autor LIKE '%$this->filtro_autor%'\";\n\t\t\t\n\t\t\tif ( $this->filtro_campo )\n\t\t\t\t$this->filtroSQL .=\" ORDER BY $this->filtro_campo\".($this->filtro_orden==\"up\"?\"\":\" desc\");\n\t\t}",
"public function Caordcom_Bieregactmued() {\n $this->c = new Criteria;\n $filpar404 = H::getConfApp2('filpar404', 'bienes', 'bieregactmued');\n if ($filpar404=='S'){\n $this->c->add(CaartordPeer::CODPAR, '404%', Criteria :: LIKE);\n $this->c->addJoin(CaordcomPeer::ORDCOM, CaartordPeer::ORDCOM);\n }\n $this->c->addJoin(CaordcomPeer :: CODPRO, CaproveePeer :: CODPRO);\n $this->c->add(CaproveePeer::ESTPRO, 'A');\n // $this->c->addAscendingOrderByColumn(CaordcomPeer::ORDCOM);\n $this->columnas = array(\n CaordcomPeer :: ORDCOM => 'Codigo',\n CaordcomPeer :: CODPRO => 'Código Proveedor',\n CaordcomPeer :: FECORD => 'Fecha',\n CaproveePeer :: NOMPRO => 'Nombre Proveedor'\n );\n }",
"public function filter($args) {\n switch (true) {\n case is_string($args): return $this->where($args);\n default:\n return $this->spawn()->apply_filter($args);\n }\n }",
"public function searchKinerja()\n {\n // should not be searched.\n\n $criteria=new CDbCriteria;\n\n $criteria->select = \"t.kelaspelayanan_id,t.kelaspelayanan_nama, t.no_rekam_medik, t.nama_pasien, t.jeniskelamin, t.daftartindakan_nama,date(tglmasukpenunjang) as tgl_masukpenunjang,\n t.ruanganpenunj_nama,sum(t.qty_tindakan) as qty_tindakan,t.tarif_satuan, sum(t.tarif_satuan * t.qty_tindakan) as total\";\n $criteria->group = \"t.kelaspelayanan_id,t.kelaspelayanan_nama,t.no_rekam_medik, t.nama_pasien, t.jeniskelamin, t.daftartindakan_nama, date(tglmasukpenunjang),t.ruanganpenunj_nama,\n t.tarif_satuan\";\n\t\t\tif(!empty($this->pasien_id)){\n\t\t\t\t$criteria->addCondition('pasien_id = '.$this->pasien_id);\n\t\t\t}\n $criteria->addBetweenCondition('t.tglmasukpenunjang',$this->tgl_awal,$this->tgl_akhir,true);\n if(isset($this->ruanganpenunj_id)){\n\t\t\t\tif(!empty($this->ruanganpenunj_id)){\n\t\t\t\t\t$criteria->addCondition('ruanganpenunj_id = '.$this->ruanganpenunj_id);\n\t\t\t\t}\n }\n if(isset($this->kelaspelayanan_id)){\n\t\t\t\tif(!empty($this->kelaspelayanan_id)){\n\t\t\t\t\t$criteria->addCondition('kelaspelayanan_id = '.$this->kelaspelayanan_id);\n\t\t\t\t}\n }\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\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.44095963",
"0.44001755",
"0.43832222",
"0.4381123",
"0.43637034",
"0.43461695",
"0.43307588",
"0.43300584",
"0.43217328",
"0.4319445"
] | 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 return $this->result;\n \n }",
"public function getFiltered($aFilter) {\n\t\t$query \t= $this->createQuery();\n\t\t$aWhere\t= array();\n\n\t\t/* Only show entries in this category */\n\t\tif(isset($aFilter['categories']) && count($aFilter['categories']) > 0) {\n\t\t\t$aTmpWhere = array();\n\t\t\tforeach($aFilter['categories'] AS $aRow) {\n\t\t\t\t$aTmpWhere[] = $query->equals('uid', (int)$aRow['uid_local']);\n\t\t\t}\n\t\t\t$aWhere[] = $query->logicalOr($aTmpWhere);\n\t\t}\n\n\t\t/* Only display this type of entries ... */\n\t\tif(isset($aFilter['typesToDisplay']) && strlen($aFilter['typesToDisplay']) > 0) {\n\t\t\t$aWhere[] = $query->in('relationType', explode(',', $aFilter['typesToDisplay']));\n\t\t}\n\n\t\t/* Search-Term */\n\t\t$aWhereSearch\t= array();\n\t\tif(isset($aFilter['searchTerm']) && strlen($aFilter['searchTerm']) > 0) {\n\t\t\t$aSearchTerms\t= explode(' ', $aFilter['searchTerm']);\n\t\t\t$aTmpWhere \t\t= array();\n\t\t\tif(count($aSearchTerms) > 0) {\n\t\t\t\tforeach($aSearchTerms AS $sVal) {\n\t\t\t\t\t$aWhereSearch[] = $query->like('company', '%' . $sVal . '%');\n\t\t\t\t\t$aWhereSearch[] = $query->like('description', '%' . $sVal . '%');\n\t\t\t\t\t$aWhereSearch[] = $query->like('city', '%' . $sVal . '%');\n\t\t\t\t\t$aWhereSearch[] = $query->like('lastname', '%' . $sVal . '%');\n\t\t\t\t\t$aWhereSearch[] = $query->like('forename', '%' . $sVal . '%');\n\t\t\t\t\t$aWhereSearch[] = $query->like('middlename', '%' . $sVal . '%');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Search-Zip */\n\t\tif(isset($aFilter['searchZip']) && strlen($aFilter['searchZip']) > 0) {\n\t\t\t$aWhereSearch[] = $query->like('zip', '%' . $aFilter['searchZip'] . '%');\n\t\t}\n\n\t\tif(count($aWhereSearch) > 0)\n\t\t\t$aWhere[] = $query->logicalOr($aWhereSearch);\n\n\t\t/* Collect all where conditions */\n\t\tif(count($aWhere) > 0) {\n\t\t\t$query->matching(\n\t\t\t\t$query->logicalAnd($aWhere)\n\t\t\t);\n\t\t}\n\n\t\t// \\TYPO3\\CMS\\Extbase\\Utility\\DebuggerUtility::var_dump($aWhere);\n\n\t\t/* Order By ... */\n\t\tif(isset($aFilter['orderby']) && strlen($aFilter['orderby']) > 0) {\n\t\t\tswitch ($aFilter['orderby']) {\n\t\t\t\tcase 'relation_type1':\n\t\t\t\tdefault:\n\t\t\t\t\t$query->setOrderings(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'relationType.sorting' => \\TYPO3\\CMS\\Extbase\\Persistence\\QueryInterface::ORDER_ASCENDING,\n\t\t\t\t\t\t\t'company' => \\TYPO3\\CMS\\Extbase\\Persistence\\QueryInterface::ORDER_ASCENDING\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'relation_type2':\n\t\t\t\t\t$query->setOrderings(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'relationType.sorting' => \\TYPO3\\CMS\\Extbase\\Persistence\\QueryInterface::ORDER_ASCENDING,\n\t\t\t\t\t\t\t'crdate' => \\TYPO3\\CMS\\Extbase\\Persistence\\QueryInterface::ORDER_DESCENDING\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'relation_type3':\n\t\t\t\t\t$query->setOrderings(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'relationType.sorting' => \\TYPO3\\CMS\\Extbase\\Persistence\\QueryInterface::ORDER_ASCENDING,\n\t\t\t\t\t\t\t'sorting' => \\TYPO3\\CMS\\Extbase\\Persistence\\QueryInterface::ORDER_ASCENDING\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'company':\n\t\t\t\t\t$query->setOrderings(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'company' => \\TYPO3\\CMS\\Extbase\\Persistence\\QueryInterface::ORDER_ASCENDING\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'crdate':\n\t\t\t\t\t$query->setOrderings(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'crdate' => \\TYPO3\\CMS\\Extbase\\Persistence\\QueryInterface::ORDER_DESCENDING\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'sorting':\n\t\t\t\t\t$query->setOrderings(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'sorting' => \\TYPO3\\CMS\\Extbase\\Persistence\\QueryInterface::ORDER_ASCENDING\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn $query->execute();\n\t}",
"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_kode),true);\n\t\t$criteria->compare('LOWER(programkerja_nama)',strtolower($this->programkerja_nama),true);\n\t\t$criteria->compare('LOWER(programkerja_ket)',strtolower($this->programkerja_ket),true);\n\t\tif(!empty($this->programkerja_nourut)){\n\t\t\t$criteria->addCondition('programkerja_nourut = '.$this->programkerja_nourut);\n\t\t}\n\t\tif(!empty($this->subprogramkerja_id)){\n\t\t\t$criteria->addCondition('subprogramkerja_id = '.$this->subprogramkerja_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subprogramkerja_kode)',strtolower($this->subprogramkerja_kode),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_nama)',strtolower($this->subprogramkerja_nama),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_ket)',strtolower($this->subprogramkerja_ket),true);\n\t\tif(!empty($this->subprogramkerja_nourut)){\n\t\t\t$criteria->addCondition('subprogramkerja_nourut = '.$this->subprogramkerja_nourut);\n\t\t}\n\t\tif(!empty($this->kegiatanprogram_id)){\n\t\t\t$criteria->addCondition('kegiatanprogram_id = '.$this->kegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kegiatanprogram_kode)',strtolower($this->kegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_nama)',strtolower($this->kegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_ket)',strtolower($this->kegiatanprogram_ket),true);\n\t\tif(!empty($this->kegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('kegiatanprogram_nourut = '.$this->kegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->subkegiatanprogram_id)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_id = '.$this->subkegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subkegiatanprogram_kode)',strtolower($this->subkegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_nama)',strtolower($this->subkegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_ket)',strtolower($this->subkegiatanprogram_ket),true);\n\t\tif(!empty($this->subkegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_nourut = '.$this->subkegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->rekening1debit_id)){\n\t\t\t$criteria->addCondition('rekening1debit_id = '.$this->rekening1debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1debit_kode)',strtolower($this->rekening1debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1debit_nama)',strtolower($this->rekening1debit_nama),true);\n\t\tif(!empty($this->rekening2debit_id)){\n\t\t\t$criteria->addCondition('rekening2debit_id = '.$this->rekening2debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2debit_kode)',strtolower($this->rekening2debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2debit_nama)',strtolower($this->rekening2debit_nama),true);\n\t\tif(!empty($this->rekening3debit_id)){\n\t\t\t$criteria->addCondition('rekening3debit_id = '.$this->rekening3debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3debit_kode)',strtolower($this->rekening3debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3debit_nama)',strtolower($this->rekening3debit_nama),true);\n\t\tif(!empty($this->rekening4debit_id)){\n\t\t\t$criteria->addCondition('rekening4debit_id = '.$this->rekening4debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4debit_kode)',strtolower($this->rekening4debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4debit_nama)',strtolower($this->rekening4debit_nama),true);\n\t\tif(!empty($this->rekening5debit_id)){\n\t\t\t$criteria->addCondition('rekening5debit_id = '.$this->rekening5debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5debit_kode)',strtolower($this->rekening5debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5debit_nama)',strtolower($this->rekening5debit_nama),true);\n\t\tif(!empty($this->rekening1kredit_id)){\n\t\t\t$criteria->addCondition('rekening1kredit_id = '.$this->rekening1kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1kredit_kode)',strtolower($this->rekening1kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1kredit_nama)',strtolower($this->rekening1kredit_nama),true);\n\t\tif(!empty($this->rekening2kredit_id)){\n\t\t\t$criteria->addCondition('rekening2kredit_id = '.$this->rekening2kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2kredit_kode)',strtolower($this->rekening2kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2kredit_nama)',strtolower($this->rekening2kredit_nama),true);\n\t\tif(!empty($this->rekening3kredit_id)){\n\t\t\t$criteria->addCondition('rekening3kredit_id = '.$this->rekening3kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3kredit_kode)',strtolower($this->rekening3kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3kredit_nama)',strtolower($this->rekening3kredit_nama),true);\n\t\tif(!empty($this->rekening4kredit_id)){\n\t\t\t$criteria->addCondition('rekening4kredit_id = '.$this->rekening4kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4kredit_kode)',strtolower($this->rekening4kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4kredit_nama)',strtolower($this->rekening4kredit_nama),true);\n\t\tif(!empty($this->rekening5kredit_id)){\n\t\t\t$criteria->addCondition('rekening5kredit_id = '.$this->rekening5kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5kredit_kode)',strtolower($this->rekening5kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5kredit_nama)',strtolower($this->rekening5kredit_nama),true);\n\t\t\n $criteria->compare('subkegiatanprogram_aktif', $this->subkegiatanprogram_aktif);\n $criteria->compare('programkerja_aktif', $this->programkerja_aktif);\n $criteria->compare('subprogramkerja_aktif', $this->subprogramkerja_aktif);\n $criteria->compare('kegiatanprogram_aktif', $this->kegiatanprogram_aktif);\n//$criteria->order = 'programkerja_id,subprogramkerja_id,kegiatanprogram_id,subkegiatanprogram_id';\n\t\t\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n\t}",
"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}",
"public function filterBySpecb($specb = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($specb)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECB, $specb, $comparison);\n }",
"public function filterBySpecf($specf = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($specf)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECF, $specf, $comparison);\n }",
"function filterStr($field, $value) {\n if (\"$value\" !== '') {\n if ($value[0] === '=') {\n $this->where($field, '=', trim( substr($value, 1) ));\n } else {\n $wrapped = $this->table->grammar->wrap($field);\n\n switch ($value[0]) {\n case '^':\n $cond = '= 1';\n case '?':\n isset($cond) or $cond = '!= 0';\n $this->raw_where(\"LOCATE(?, $wrapped) $cond\", array($value));\n break;\n\n case '%':\n $this->raw_where(\"$wrapped LIKE ?\", array($value));\n break;\n\n default:\n $this->where($field, '=', trim($value));\n break;\n }\n }\n }\n }",
"public function setInputFilterSpecification($spec)\n {\n $this->inputFilterSpecification = $spec;\n }",
"public function get_spec_filters()\r\n\t{\r\n\t\t$filters = $this->db->query(\"\r\n\t\t\tSELECT\r\n\t\t\t\tfeature_id,\r\n\t\t\t\tname,\r\n\t\t\t\tspec_filter_default\r\n\t\t\tFROM\r\n\t\t\t\ttb_spec_feature\r\n\t\t\tWHERE\r\n\t\t\t\tspec_filter=1\r\n\t\t\tORDER BY\r\n\t\t\t\tname ASC\r\n\t\t\");\r\n\t\treturn $filters->result_array();\r\n\t}",
"function GetStartsWithAFilter($FldExpression) {\n\treturn $FldExpression . \" LIKE 'A%'\";\n}",
"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($builder),\n ])->execute($column, $value);\n }",
"public function filterByProductId($value) {\n $this->_filter->equalTo($this->_nameMapping['product'], $value);\n }",
"public function filterBySpecc($specc = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($specc)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECC, $specc, $comparison);\n }",
"private function replaceForFilter($a)\n {\n if (strpbrk($a, '?')) {\n $filterType = substr($a, strpos($a, ':') + 1, -2);\n return $a = str_replace($a, $this->filter[$filterType], $a);\n } elseif (strpbrk($a, ':') && !strpbrk($a, '?')) {\n $filterType = substr($a, strpos($a, ':') + 1, -1);\n return $a = str_replace($a, $this->filter[$filterType], $a);\n } elseif (strpbrk($a, '(')) {\n return $a = str_replace($a, $this->filter['any'], $a);\n }\n\n return $a;\n\n }",
"function setSearchFilter($alias=null,$prop_name=null,$prop_value=null,\n $search_type='=') {\n\tif (!($this->_searchEnabled === true)) { return false; }\n\tif (!$this->isProperty($alias,$prop_name)) {\n\t\treturn $this->_searchDisable();\n\t\t}\n\tif (!is_array($this->_searchFilters)) {\n\t\treturn $this->_searchDisable();\n\t\t}\n\t$q = $this->getPropertyQuoted($alias,$prop_name);\n\tif (!is_bool($q)) { return $this->_searchDisable(); }\n\tif ($this->getPropertyIsDate($alias,$prop_name) === true) {\n\t\tif ($prop_value == 'now()') { $q = false; }\n\t\t}\n\t($q) ? $d = '\"' : $d = '';\n\tswitch($search_type) {\n\t\tcase '!=':\n\t\tcase '=':\n\t\tcase '>':\n\t\tcase '<':\n\t\tbreak;\n\t\tcase 'not in':\n\t\tcase 'in':\n\t\t\tif (!is_array($prop_value) or count($prop_value) < 1) {\n\t\t\t\treturn $this->_searchDisable();\n\t\t\t\t}\n\t\tbreak;\n\t\tcase 'not like':\n\t\tcase 'like':\n\t\t\tif (!$q) { return $this->_searchDisable(); }\n\t\tbreak;\n\t\t}\n\tif ($search_type == 'in' or $search_type == 'not in') {\n\t\tfor($j=0; $j < count($prop_value); $j++) {\n\t\t\t$prop_value[$j] = $d . addslashes($prop_value[$j]) . $d;\n\t\t\t}\n\t\t$this->_searchFilters[] = $alias . '.'\n\t\t. $this->getPropertyField($alias,$prop_name)\n\t\t. ' ' . $search_type . '(' . $d . implode(',',$prop_value) . $d . ')';\n\t\t} else {\n\t\t$this->_searchFilters[] = $alias . '.'\n\t\t. $this->getPropertyField($alias,$prop_name)\n\t\t. ' ' . $search_type . ' ' . $d . addslashes($prop_value) . $d;\n\t\t}\n\treturn true;\n\t}",
"public function filterByVenta($venta, $comparison = null)\n {\n if ($venta instanceof Venta) {\n return $this\n ->addUsingAlias(SucursalPeer::IDSUCURSAL, $venta->getIdsucursal(), $comparison);\n } elseif ($venta instanceof PropelObjectCollection) {\n return $this\n ->useVentaQuery()\n ->filterByPrimaryKeys($venta->getPrimaryKeys())\n ->endUse();\n } else {\n throw new PropelException('filterByVenta() only accepts arguments of type Venta or PropelCollection');\n }\n }",
"public function filterByPersona($persona, $comparison = null)\n {\n if ($persona instanceof \\Persona) {\n return $this\n ->addUsingAlias(PaisTableMap::COL_PAIS_CODIGO, $persona->getPersCPaisOrigen(), $comparison);\n } elseif ($persona instanceof ObjectCollection) {\n return $this\n ->usePersonaQuery()\n ->filterByPrimaryKeys($persona->getPrimaryKeys())\n ->endUse();\n } else {\n throw new PropelException('filterByPersona() only accepts arguments of type \\Persona or Collection');\n }\n }",
"public function filterBySenha($senha = null, $comparison = null)\n\t{\n\t\tif (null === $comparison) {\n\t\t\tif (is_array($senha)) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t} elseif (preg_match('/[\\%\\*]/', $senha)) {\n\t\t\t\t$senha = str_replace('*', '%', $senha);\n\t\t\t\t$comparison = Criteria::LIKE;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(TicketPeer::SENHA, $senha, $comparison);\n\t}",
"public function handleFilterAnnotation($e)\n {\n $annotation = $e->getParam('annotation');\n if (!$annotation instanceof Column) {\n return;\n }\n\n $inputSpec = $e->getParam('inputSpec');\n if (!isset($inputSpec['filters'])) {\n $inputSpec['filters'] = array();\n }\n\n switch ($annotation->type) {\n case 'bool':\n case 'boolean':\n $inputSpec['filters'][] = array('name' => 'Boolean');\n break;\n case 'bigint':\n case 'integer':\n case 'smallint':\n $inputSpec['filters'][] = array('name' => 'Int');\n break;\n case 'datetime':\n case 'datetimetz':\n case 'date':\n case 'time':\n case 'string':\n case 'text':\n $inputSpec['filters'][] = array('name' => 'StringTrim');\n break;\n }\n }",
"public function filter(Builder $dataSource)\r\n {\r\n $model = $dataSource->getModel();\r\n $filters = [];\r\n\r\n if ($this->_separated) {\r\n foreach ($this->_fields as $field => $criteria) {\r\n if ($field === static::COLUMN_ID) {\r\n $value = (int) $this->_value;\r\n if (!is_numeric($this->_value)) {\r\n continue;\r\n }\r\n $field = $model->getPrimary();\r\n } elseif ($field === static::COLUMN_NAME) {\r\n $field = $model->getNameExpr();\r\n }\r\n if (null === $this->_value) {\r\n $filter = new \\Elastica\\Query\\Filtered();\r\n $filterMissing = new \\Elastica\\Filter\\Missing($field);\r\n //$filterMissing->addParam(\"existence\", true);\r\n //$filterMissing->addParam(\"null_value\", true);\r\n $filter->setFilter($filterMissing);\r\n\r\n $filters[] = $filter;\r\n } else {\r\n if ($criteria === static::CRITERIA_EQ) {\r\n $filter = new \\Elastica\\Query\\Term();\r\n $filter->setTerm($field, $this->_value);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_IN) {\r\n if (is_array($this->_value)) {\r\n $filter = new \\Elastica\\Query\\Terms($field, $this->_value);\r\n } else {\r\n $filter = new \\Elastica\\Query\\Term();\r\n $filter->setTerm($field, $this->_value);\r\n }\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_NOTEQ) {\r\n $filter = new \\Elastica\\Query\\Term();\r\n $filter->setTerm($field, $this->_value);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_LIKE) {\r\n $filter = new \\Elastica\\Query\\Match();\r\n $filter->setField($field, $this->_value);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_BEGINS) {\r\n //$filter = new \\Elastica\\Query\\Prefix();\r\n //$filter->setPrefix($field, $this->_value);\r\n //$filters[] = $filter;\r\n $filter = new \\Elastica\\Query\\QueryString();\r\n $filter->setQuery($this->_value);\r\n $filter->setDefaultField($field);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_MORE) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['gt' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_LESS) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['lt' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_MORER) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['gte' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_LESSER) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['lte' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n }\r\n }\r\n }\r\n } else {\r\n $filters = new \\Elastica\\Query\\MultiMatch();\r\n $fields = [];\r\n foreach ($this->_fields as $field => $criteria) {\r\n if ($field === static::COLUMN_ID) {\r\n $value = (int) $this->_value;\r\n if (!is_numeric($this->_value)) {\r\n continue;\r\n }\r\n $field = $model->getPrimary();\r\n } elseif ($field === static::COLUMN_NAME) {\r\n $field = $model->getNameExpr();\r\n }\r\n $boost = $this->getBoostParam($field);\r\n $fields[] = $field.'^'.$boost;\r\n }\r\n $slop = $this->getSlopParam();\r\n $filters->setParam('slop', $slop);\r\n $filters->setFields($fields);\r\n $filters->setTieBreaker(0.3);\r\n $filters->setType(\\Elastica\\Query\\MultiMatch::TYPE_BEST_FIELDS);\r\n //$filters->setType(\\Elastica\\Query\\MultiMatch::TYPE_MOST_FIELDS);\r\n $filters->setQuery($this->_value);\r\n }\r\n\r\n\r\n return $filters;\r\n }",
"function Query_Filter()\r\n {\r\n $sql = \"select cod_materia , descricao_materia from materia where 1=1 \";\r\n if ( $this->getcod_materia() != \"\" ) \r\n $sql = $sql . \" and cod_materia = \".$this->getcod_materia();\r\n if ( $this->getdescrica_materia() != \"\" ) \r\n $sql = $sql . \" and descrica_materia like '%\".$this->getdescrica_materia().\"%' \";\r\n\r\n $result = mysql_query( $sql );\r\n return $result;\r\n }",
"function apply_filter($spec, $value, $object_context = null, $class_context = null) {\n \ttry {\n \t if (is_lambda($spec)) {\n \t $value = $spec($value);\n \t } else {\n \t foreach (array_map('trim', explode('|', $spec)) as $f) {\n \t\t\tif (($p = strpos($f, '(')) !== false) {\n \t\t\t $args = array();\n \t\t\t\t$m = substr($f, 0, $p);\n \t\t\t\t$a = preg_replace('/((^|,)\\s*)_/', '$1\"--filter^sentinel--\"', substr($f, $p + 1, -1));\n \t\t\t\t$args = json_decode('[' . $a . ']');\n \t\t\t\tif (($i = array_search(\"--filter^sentinel--\", $args)) !== false) $args[$i] = $value;\n \t\t\t} else {\n \t\t\t $m = $f;\n \t\t\t $args = array($value);\n \t\t\t}\n \t\t\tif ($m[0] == '-' && $m[1] == '>') {\n \t\t\t\t$m = array($object_context, substr($m, 2));\n \t\t\t} elseif (strpos($m, '::') === 0) {\n \t\t\t\t$m = $class_context . $m;\n \t\t\t}\n \t\t\t$value = call_user_func_array($m, $args);\n \t\t}\n \t }\n \t} catch (FilterAbortException $fae) {}\n \treturn $value;\n }",
"public function filterBySaTypeA($saTypeA = null, $comparison = null)\n {\n if (is_array($saTypeA)) {\n $useMinMax = false;\n if (isset($saTypeA['min'])) {\n $this->addUsingAlias(AliProductTableMap::COL_SA_TYPE_A, $saTypeA['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($saTypeA['max'])) {\n $this->addUsingAlias(AliProductTableMap::COL_SA_TYPE_A, $saTypeA['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliProductTableMap::COL_SA_TYPE_A, $saTypeA, $comparison);\n }",
"function GetStartsWithAFilter($FldExpression, $dbid = 0) {\n\treturn $FldExpression . Like(\"'A%'\", $dbid);\n}",
"public static function apply(Builder $builder, $value) {\n \n return $builder->whereRaw('LOWER(`products`.`name`) LIKE ? ',[trim(strtolower($value)).'%']);\n }",
"public function filter($value);",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('specification_id',$this->specification_id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('value',$this->value,true);\n\t\t$criteria->compare('equipment_id',$this->equipment_id,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function search($options = [])\n {\n $criteria = new CDbCriteria;\n /** @var ProductCategory $category */\n\n $criteria->addCondition('t.price>0');\n\n $charColumns = [];\n// foreach (ProductFilter::model()->findAll() as $char) {\n// $charColumns[] = \"MAX(IF(attributes.char_id = \" . $char->id . \", attributes.value, null)) as filter_\" . $char->id;\n// }\n// $criteria->with = ['characteristics' => [\n// 'together' => true,\n// 'alias' => 'attributes',\n// 'select' => $charColumns,\n// ]);\n\n $criteria->with = ['defaultUpload'];\n $criteria->group = 't.id';\n\n $criteria->compare('article', $this->article, true);\n $criteria->compare('category_id', $this->category_id);\n $criteria->compare('manufacturer_id', $this->manufacturer_id);\n\n $criteria->addBetweenCondition('price', $this->priceMin ? : 0, $this->priceMax ? : 1000000);\n\n if (isset($_GET['flt'])) {\n foreach ($_GET['flt'] as $charId => $value) {\n /** @var Characteristic $model */\n $id = ltrim(h($charId), 'f');\n $model = Characteristic::model()->findByPk($id);\n if ($model) {\n if ($model->type == Characteristic::TYPE_SELECT && $value) {\n $criteria->having .= ($criteria->having ? ' AND ' : '') . 'filter_' . $id . '=' . h($value);\n } else if ($model->type == Characteristic::TYPE_RANGE) {\n $criteria->having .= ($criteria->having ? ' AND ' : '') . 'filter_' . $id . ' BETWEEN ' . (isset($value['min']) ? intval(h($value['min'])) : 0) . ' AND ' . (isset($value['max']) ? intval(h($value['max'])) : 1000000);\n }\n }\n }\n }\n\n// if ($this->showNewArrivals && $this->showWithAction) {\n// $criteria->addCondition($this->getNewArrivalsOrActionsCondition());\n// } elseif($this->showWithAction){\n// $criteria->addCondition($this->getWithActionCondition());\n// } elseif($this->showNewArrivals){\n// $criteria->addCondition($this->getNewArrivalsCondition());\n// } else {\n// if (isset($options['showNewArrivals']) && $options['showNewArrivals'] && isset($options['showWithAction']) && $options['showWithAction']) {\n// $criteria->addCondition($this->getNewArrivalsOrActionsCondition());\n// } elseif (isset($options['showNewArrivals']) && $options['showNewArrivals']) {\n// $criteria->addCondition($this->getNewArrivalsCondition());\n// } elseif (isset($options['showWithAction']) && $options['showWithAction']) {\n// $criteria->addCondition($this->getWithActionCondition());\n// }\n// }\n\n return new CActiveDataProvider($this, [\n 'criteria' => $criteria,\n 'pagination' => [\n 'pageSize' => $this->pageSize ? : Config::get((isset($options['homePage']) ? 'newArrivalPageSize' : 'categoryPageSize')),\n ],\n 'sort' => [\n 'multiSort' => true,\n 'defaultOrder' => 'article, price',\n ],\n ]);\n }",
"public function filter($value, $row = null) {\n $arr = explode(' ', $value);\n return $this->_filter($arr[0], $row);\n }",
"public function criteriaSearch()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\tif(!empty($this->dekontaminasibahan_id)){\n\t\t\t$criteria->addCondition('dekontaminasibahan_id = '.$this->dekontaminasibahan_id);\n\t\t}\n\t\tif(!empty($this->dekontaminasidetail_id)){\n\t\t\t$criteria->addCondition('dekontaminasidetail_id = '.$this->dekontaminasidetail_id);\n\t\t}\n\t\tif(!empty($this->bahansterilisasi_id)){\n\t\t\t$criteria->addCondition('bahansterilisasi_id = '.$this->bahansterilisasi_id);\n\t\t}\n\t\tif(!empty($this->jmlpemakaianbahan)){\n\t\t\t$criteria->addCondition('jmlpemakaianbahan = '.$this->jmlpemakaianbahan);\n\t\t}\n\t\t$criteria->compare('LOWER(satuanpemakainbahan)',strtolower($this->satuanpemakainbahan),true);\n\n\t\treturn $criteria;\n\t}"
] | [
"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.46268922",
"0.4587296",
"0.45847425",
"0.45844376",
"0.45500904",
"0.45280012",
"0.4526435",
"0.45107743",
"0.44992307",
"0.44975406"
] | 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 return $this->result;\n \n }",
"function filterStr($field, $value) {\n if (\"$value\" !== '') {\n if ($value[0] === '=') {\n $this->where($field, '=', trim( substr($value, 1) ));\n } else {\n $wrapped = $this->table->grammar->wrap($field);\n\n switch ($value[0]) {\n case '^':\n $cond = '= 1';\n case '?':\n isset($cond) or $cond = '!= 0';\n $this->raw_where(\"LOCATE(?, $wrapped) $cond\", array($value));\n break;\n\n case '%':\n $this->raw_where(\"$wrapped LIKE ?\", array($value));\n break;\n\n default:\n $this->where($field, '=', trim($value));\n break;\n }\n }\n }\n }",
"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($builder),\n ])->execute($column, $value);\n }",
"public function get_spec_filters()\r\n\t{\r\n\t\t$filters = $this->db->query(\"\r\n\t\t\tSELECT\r\n\t\t\t\tfeature_id,\r\n\t\t\t\tname,\r\n\t\t\t\tspec_filter_default\r\n\t\t\tFROM\r\n\t\t\t\ttb_spec_feature\r\n\t\t\tWHERE\r\n\t\t\t\tspec_filter=1\r\n\t\t\tORDER BY\r\n\t\t\t\tname ASC\r\n\t\t\");\r\n\t\treturn $filters->result_array();\r\n\t}",
"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}",
"public function filterBySpecf($specf = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($specf)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECF, $specf, $comparison);\n }",
"public function filter(Builder $dataSource)\r\n {\r\n $model = $dataSource->getModel();\r\n $filters = [];\r\n\r\n if ($this->_separated) {\r\n foreach ($this->_fields as $field => $criteria) {\r\n if ($field === static::COLUMN_ID) {\r\n $value = (int) $this->_value;\r\n if (!is_numeric($this->_value)) {\r\n continue;\r\n }\r\n $field = $model->getPrimary();\r\n } elseif ($field === static::COLUMN_NAME) {\r\n $field = $model->getNameExpr();\r\n }\r\n if (null === $this->_value) {\r\n $filter = new \\Elastica\\Query\\Filtered();\r\n $filterMissing = new \\Elastica\\Filter\\Missing($field);\r\n //$filterMissing->addParam(\"existence\", true);\r\n //$filterMissing->addParam(\"null_value\", true);\r\n $filter->setFilter($filterMissing);\r\n\r\n $filters[] = $filter;\r\n } else {\r\n if ($criteria === static::CRITERIA_EQ) {\r\n $filter = new \\Elastica\\Query\\Term();\r\n $filter->setTerm($field, $this->_value);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_IN) {\r\n if (is_array($this->_value)) {\r\n $filter = new \\Elastica\\Query\\Terms($field, $this->_value);\r\n } else {\r\n $filter = new \\Elastica\\Query\\Term();\r\n $filter->setTerm($field, $this->_value);\r\n }\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_NOTEQ) {\r\n $filter = new \\Elastica\\Query\\Term();\r\n $filter->setTerm($field, $this->_value);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_LIKE) {\r\n $filter = new \\Elastica\\Query\\Match();\r\n $filter->setField($field, $this->_value);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_BEGINS) {\r\n //$filter = new \\Elastica\\Query\\Prefix();\r\n //$filter->setPrefix($field, $this->_value);\r\n //$filters[] = $filter;\r\n $filter = new \\Elastica\\Query\\QueryString();\r\n $filter->setQuery($this->_value);\r\n $filter->setDefaultField($field);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_MORE) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['gt' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_LESS) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['lt' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_MORER) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['gte' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_LESSER) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['lte' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n }\r\n }\r\n }\r\n } else {\r\n $filters = new \\Elastica\\Query\\MultiMatch();\r\n $fields = [];\r\n foreach ($this->_fields as $field => $criteria) {\r\n if ($field === static::COLUMN_ID) {\r\n $value = (int) $this->_value;\r\n if (!is_numeric($this->_value)) {\r\n continue;\r\n }\r\n $field = $model->getPrimary();\r\n } elseif ($field === static::COLUMN_NAME) {\r\n $field = $model->getNameExpr();\r\n }\r\n $boost = $this->getBoostParam($field);\r\n $fields[] = $field.'^'.$boost;\r\n }\r\n $slop = $this->getSlopParam();\r\n $filters->setParam('slop', $slop);\r\n $filters->setFields($fields);\r\n $filters->setTieBreaker(0.3);\r\n $filters->setType(\\Elastica\\Query\\MultiMatch::TYPE_BEST_FIELDS);\r\n //$filters->setType(\\Elastica\\Query\\MultiMatch::TYPE_MOST_FIELDS);\r\n $filters->setQuery($this->_value);\r\n }\r\n\r\n\r\n return $filters;\r\n }",
"public function filterByBf($bf = null, $comparison = null)\n {\n if (is_array($bf)) {\n $useMinMax = false;\n if (isset($bf['min'])) {\n $this->addUsingAlias(AliProductTableMap::COL_BF, $bf['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($bf['max'])) {\n $this->addUsingAlias(AliProductTableMap::COL_BF, $bf['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliProductTableMap::COL_BF, $bf, $comparison);\n }",
"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_kode),true);\n\t\t$criteria->compare('LOWER(programkerja_nama)',strtolower($this->programkerja_nama),true);\n\t\t$criteria->compare('LOWER(programkerja_ket)',strtolower($this->programkerja_ket),true);\n\t\tif(!empty($this->programkerja_nourut)){\n\t\t\t$criteria->addCondition('programkerja_nourut = '.$this->programkerja_nourut);\n\t\t}\n\t\tif(!empty($this->subprogramkerja_id)){\n\t\t\t$criteria->addCondition('subprogramkerja_id = '.$this->subprogramkerja_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subprogramkerja_kode)',strtolower($this->subprogramkerja_kode),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_nama)',strtolower($this->subprogramkerja_nama),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_ket)',strtolower($this->subprogramkerja_ket),true);\n\t\tif(!empty($this->subprogramkerja_nourut)){\n\t\t\t$criteria->addCondition('subprogramkerja_nourut = '.$this->subprogramkerja_nourut);\n\t\t}\n\t\tif(!empty($this->kegiatanprogram_id)){\n\t\t\t$criteria->addCondition('kegiatanprogram_id = '.$this->kegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kegiatanprogram_kode)',strtolower($this->kegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_nama)',strtolower($this->kegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_ket)',strtolower($this->kegiatanprogram_ket),true);\n\t\tif(!empty($this->kegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('kegiatanprogram_nourut = '.$this->kegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->subkegiatanprogram_id)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_id = '.$this->subkegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subkegiatanprogram_kode)',strtolower($this->subkegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_nama)',strtolower($this->subkegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_ket)',strtolower($this->subkegiatanprogram_ket),true);\n\t\tif(!empty($this->subkegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_nourut = '.$this->subkegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->rekening1debit_id)){\n\t\t\t$criteria->addCondition('rekening1debit_id = '.$this->rekening1debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1debit_kode)',strtolower($this->rekening1debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1debit_nama)',strtolower($this->rekening1debit_nama),true);\n\t\tif(!empty($this->rekening2debit_id)){\n\t\t\t$criteria->addCondition('rekening2debit_id = '.$this->rekening2debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2debit_kode)',strtolower($this->rekening2debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2debit_nama)',strtolower($this->rekening2debit_nama),true);\n\t\tif(!empty($this->rekening3debit_id)){\n\t\t\t$criteria->addCondition('rekening3debit_id = '.$this->rekening3debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3debit_kode)',strtolower($this->rekening3debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3debit_nama)',strtolower($this->rekening3debit_nama),true);\n\t\tif(!empty($this->rekening4debit_id)){\n\t\t\t$criteria->addCondition('rekening4debit_id = '.$this->rekening4debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4debit_kode)',strtolower($this->rekening4debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4debit_nama)',strtolower($this->rekening4debit_nama),true);\n\t\tif(!empty($this->rekening5debit_id)){\n\t\t\t$criteria->addCondition('rekening5debit_id = '.$this->rekening5debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5debit_kode)',strtolower($this->rekening5debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5debit_nama)',strtolower($this->rekening5debit_nama),true);\n\t\tif(!empty($this->rekening1kredit_id)){\n\t\t\t$criteria->addCondition('rekening1kredit_id = '.$this->rekening1kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1kredit_kode)',strtolower($this->rekening1kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1kredit_nama)',strtolower($this->rekening1kredit_nama),true);\n\t\tif(!empty($this->rekening2kredit_id)){\n\t\t\t$criteria->addCondition('rekening2kredit_id = '.$this->rekening2kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2kredit_kode)',strtolower($this->rekening2kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2kredit_nama)',strtolower($this->rekening2kredit_nama),true);\n\t\tif(!empty($this->rekening3kredit_id)){\n\t\t\t$criteria->addCondition('rekening3kredit_id = '.$this->rekening3kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3kredit_kode)',strtolower($this->rekening3kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3kredit_nama)',strtolower($this->rekening3kredit_nama),true);\n\t\tif(!empty($this->rekening4kredit_id)){\n\t\t\t$criteria->addCondition('rekening4kredit_id = '.$this->rekening4kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4kredit_kode)',strtolower($this->rekening4kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4kredit_nama)',strtolower($this->rekening4kredit_nama),true);\n\t\tif(!empty($this->rekening5kredit_id)){\n\t\t\t$criteria->addCondition('rekening5kredit_id = '.$this->rekening5kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5kredit_kode)',strtolower($this->rekening5kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5kredit_nama)',strtolower($this->rekening5kredit_nama),true);\n\t\t\n $criteria->compare('subkegiatanprogram_aktif', $this->subkegiatanprogram_aktif);\n $criteria->compare('programkerja_aktif', $this->programkerja_aktif);\n $criteria->compare('subprogramkerja_aktif', $this->subprogramkerja_aktif);\n $criteria->compare('kegiatanprogram_aktif', $this->kegiatanprogram_aktif);\n//$criteria->order = 'programkerja_id,subprogramkerja_id,kegiatanprogram_id,subkegiatanprogram_id';\n\t\t\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n\t}",
"function apply_filter($spec, $value, $object_context = null, $class_context = null) {\n \ttry {\n \t if (is_lambda($spec)) {\n \t $value = $spec($value);\n \t } else {\n \t foreach (array_map('trim', explode('|', $spec)) as $f) {\n \t\t\tif (($p = strpos($f, '(')) !== false) {\n \t\t\t $args = array();\n \t\t\t\t$m = substr($f, 0, $p);\n \t\t\t\t$a = preg_replace('/((^|,)\\s*)_/', '$1\"--filter^sentinel--\"', substr($f, $p + 1, -1));\n \t\t\t\t$args = json_decode('[' . $a . ']');\n \t\t\t\tif (($i = array_search(\"--filter^sentinel--\", $args)) !== false) $args[$i] = $value;\n \t\t\t} else {\n \t\t\t $m = $f;\n \t\t\t $args = array($value);\n \t\t\t}\n \t\t\tif ($m[0] == '-' && $m[1] == '>') {\n \t\t\t\t$m = array($object_context, substr($m, 2));\n \t\t\t} elseif (strpos($m, '::') === 0) {\n \t\t\t\t$m = $class_context . $m;\n \t\t\t}\n \t\t\t$value = call_user_func_array($m, $args);\n \t\t}\n \t }\n \t} catch (FilterAbortException $fae) {}\n \treturn $value;\n }",
"public function setInputFilterSpecification($spec)\n {\n $this->inputFilterSpecification = $spec;\n }",
"public function filterByProductId($value) {\n $this->_filter->equalTo($this->_nameMapping['product'], $value);\n }",
"public function where($sFieldName, $sComparator, $value, $sAggregator = '') {\n\n if ($this->isComparatorType($sComparator)) {\n\n if($value === null)\n $safeCompare = \" IS NULL \";\n else\n $safeCompare = \" $sComparator '\".$this->escape($value).\"' \";\n\n \n if ($sAggregator == '')\n $this->m_sWhere .= \" WHERE $sFieldName $safeCompare \";\n else if ($this->isAggregatorType($sAggregator)) {\n $this->m_sWhere .= \" WHERE $sAggregator($sFieldName) $safeCompare \";\n } else\n throw new DatabaseException(\"Wrong aggregator type!\");\n } else\n throw new DatabaseException(\"Wrong comparator type!\");\n }",
"public function filterBySpecc($specc = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($specc)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECC, $specc, $comparison);\n }",
"public function filter($value);",
"public static function apply(Builder $builder, $value) {\n \n return $builder->whereRaw('LOWER(`products`.`name`) LIKE ? ',[trim(strtolower($value)).'%']);\n }",
"public function filterBySpeca($speca = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($speca)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECA, $speca, $comparison);\n }",
"public static function filterQuery(ModelCriteria $query, Parameter $filter) {\n\t \t$column = $filter->get('column','Undefined');\n\n\t \tif (is_callable(array($query, 'filterBy'.ucfirst($column)), false, $filterBy)) {\n\t \t\t// Add OR statement while necessary\n\t \t\tif ($filter->get('chainOrStatement')) $query->_or();\n\t \t\t\n\t \t\t$query = call_user_func_array(array($query, $filterBy), array($filter->get('value','')));\n\t\t}\n\n\t\treturn $query;\n\t }",
"function bbp_admin_repair_list_components_filter()\n{\n}",
"public function __invoke(Builder $query, $value, string $property): Builder\n {\n return $query->where(function($inner) use($value, $property){\n $isFirstField = true;\n\n if(is_array($value)){\n $value = implode(config('repository.filters.search.separator', ','), $value);\n }\n foreach ($this->searchColumns as $columnName) {\n try {\n $value = \"%{$value}%\";\n $this->addToQuery($inner, ($isFirstField || $this->forceAnd), $columnName, $value);\n $isFirstField = false;\n }catch (\\Exception $e) {\n }\n }\n return $inner;\n });\n }",
"public function brandsFilter()\n {\n $filter = \\DataFilter::source(new Brand());\n $filter->add('brand_id', 'ID', 'text');\n $filter->add('brand', 'Marca', 'text');\n $filter->submit('search');\n $filter->reset('reset');\n $filter->build();\n return $filter;\n }",
"public function filterByBprice($bprice = null, $comparison = null)\n {\n if (is_array($bprice)) {\n $useMinMax = false;\n if (isset($bprice['min'])) {\n $this->addUsingAlias(AliProductTableMap::COL_BPRICE, $bprice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($bprice['max'])) {\n $this->addUsingAlias(AliProductTableMap::COL_BPRICE, $bprice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliProductTableMap::COL_BPRICE, $bprice, $comparison);\n }",
"public function filter($builder, $value)\n {\n return $builder->where('cost', '<', $value);\n }",
"public function filterByBprice($bprice = null, $comparison = null)\n {\n if (is_array($bprice)) {\n $useMinMax = false;\n if (isset($bprice['min'])) {\n $this->addUsingAlias(AliTsalehTableMap::COL_BPRICE, $bprice['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($bprice['max'])) {\n $this->addUsingAlias(AliTsalehTableMap::COL_BPRICE, $bprice['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliTsalehTableMap::COL_BPRICE, $bprice, $comparison);\n }",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('bb_businessid',$this->bb_businessid);\n\n\t\t$criteria->compare('bb_sysid',$this->bb_sysid);\n\n\t\t$criteria->compare('bb_uid',$this->bb_uid);\n\n\t\t$criteria->compare('bb_businesstype',$this->bb_businesstype);\n\n\t\t$criteria->compare('bb_province',$this->bb_province);\n\n\t\t$criteria->compare('bb_city',$this->bb_city);\n\n\t\t$criteria->compare('bb_businessaddress',$this->bb_businessaddress,true);\n\n\t\t$criteria->compare('bb_buildingarea',$this->bb_buildingarea);\n\n\t\t$criteria->compare('bb_businessprice',$this->bb_businessprice);\n\n\t\t$criteria->compare('bb_propertytype',$this->bb_propertytype);\n\n\t\t$criteria->compare('bb_companytype',$this->bb_companytype);\n\n\t\t$criteria->compare('bb_registerfunds',$this->bb_registerfunds);\n\n\t\t$criteria->compare('bb_mainservice',$this->bb_mainservice,true);\n\n\t\t$criteria->compare('bb_turnoverly',$this->bb_turnoverly);\n\n\t\t$criteria->compare('bb_profitly',$this->bb_profitly);\n\n\t\t$criteria->compare('bb_salestaxly',$this->bb_salestaxly);\n\n\t\t$criteria->compare('bb_incometaxly',$this->bb_incometaxly);\n\n\t\t$criteria->compare('bb_runtime',$this->bb_runtime);\n\n\t\t$criteria->compare('bb_consumptionperson',$this->bb_consumptionperson);\n\n\t\t$criteria->compare('bb_staffnum',$this->bb_staffnum);\n\n\t\t$criteria->compare('bb_vipnum',$this->bb_vipnum);\n\n\t\t$criteria->compare('bb_stocktransfer',$this->bb_stocktransfer);\n\n\t\t$criteria->compare('bb_releasedate',$this->bb_releasedate);\n\n\t\t$criteria->compare('bb_expiredate',$this->bb_expiredate);\n\n\t\t$criteria->compare('bb_titlepicid',$this->bb_titlepicid);\n\n\t\treturn new CActiveDataProvider('Businessbaseinfo', array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function scopeFilteredByString($query, $page, $column, $value){\n return self::where($column, \"like\", \"%$value%\")\n ->orderBy(\"created_at\", \"desc\")\n ->offset(self::PER_PAGE * ($page - 1))\n ->limit(self::PER_PAGE);\n }",
"abstract public function filter($value);",
"public function filterBy($filterName, $value = '', $condition = '')\n {\n $this->test->byXPath(\n \"{$this->filtersPath}//div[contains(@class, 'filter-box')]//div[contains(@class, 'filter-item')]\"\n . \"/a[contains(.,'{$filterName}')]\"\n )->click();\n\n $criteria = $this->test->byXPath(\n \"{$this->filtersPath}//div[contains(@class, 'filter-box')]//div[contains(@class, 'filter-item')]\"\n . \"[a[contains(.,'{$filterName}')]]/div[contains(@class, 'filter-criteria')]\"\n );\n $input = $criteria->element($this->test->using('xpath')->value(\"div/div/input[@name='value']\"));\n\n $input->clear();\n $input->value($value);\n\n //select criteria\n if ($condition !== '') {\n //expand condition list\n $criteria->element($this->test->using('xpath')->value(\"div/div/button[@class ='btn dropdown-toggle']\"))\n ->click();\n\n $criteria->element($this->test->using('xpath')->value(\"div/div/ul/li/a[text()='{$condition}']\"))\n ->click();\n }\n $criteria->element($this->test->using('xpath')->value(\"div/div/button[contains(@class, 'filter-update')]\"))\n ->click();\n $this->waitForAjax();\n\n return $this;\n }",
"protected function parseFieldPartialMatchFilter($filter, $value)\n {\n $this->parsedFilterParams['field_partial_match'][$filter] = $value;\n }",
"public function columnasFiltro($columnasBD) {\n $filtro=null;\n foreach ($columnasBD as $cBD) {\n\n if($cBD['tipo']=='string')\n $filtro .='LOWER('.substr($cBD['nombre'],0,1).'.'.substr($cBD['nombre'],1).') like :'.substr($cBD['nombre'],1).' or '; \n else\n $filtro .=substr($cBD['nombre'],0,1).'.'.substr($cBD['nombre'],1).' = :'.substr($cBD['nombre'],1).' or '; \n }\n $filtro= substr($filtro,0, -4);\n \n return $filtro;\n }"
] | [
"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.4539193",
"0.452367",
"0.44850448",
"0.44749632",
"0.44564193",
"0.44436455",
"0.44367525",
"0.44227532",
"0.44160968",
"0.4408705"
] | 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->execute(); \n $stmt->setFetchMode(\\PDO::FETCH_OBJ);\n $this->result = $stmt->fetchAll();\n return $this->result;\n \n }",
"protected function filter($c)\n {\n //FROM UNTIL SET (SERIAL_TYPE -> SERIAL)\n if ($this->hasRequestParameter('from')){ //ver que es YYYY-mm-dd\n $criterion = $c->getNewCriterion(MmPeer::PUBLICDATE, $this->getRequestParameter('from'), Criteria::GREATER_EQUAL);\n }\n \n if ($this->hasRequestParameter('until')){ //ver que es YYYY-mm-dd\n if (isset($criterion)){\n\t$criterion->addAnd($c->getNewCriterion(MmPeer::PUBLICDATE, $this->getRequestParameter('until'), Criteria::LESS_EQUAL));\n }else{\n\t$criterion = $c->getNewCriterion(MmPeer::PUBLICDATE, $this->getRequestParameter('until'), Criteria::LESS_EQUAL);\n }\n }\n \n if (isset($criterion)){\n $c->add($criterion);\n }\n\n if($this->hasRequestParameter('set')&&(is_int($this->getRequestParameter('set')))){\n $c->addJoin(MmPeer::SERIAL_ID, SerialPeer::ID);\n $c->add(SerialPeer::SERIAL_TYPE_ID, intval($this->getRequestParameter('set')));\n }\n\n\n if(($this->hasRequestParameter('set'))&&($ret = strstr($this->getRequestParameter('set'), ':('))){\n $c->addJoin(MmPeer::SERIAL_ID, SerialPeer::ID);\n $c->add(SerialPeer::SERIAL_TYPE_ID, intval($this->getRequestParameter('set')));\n\n $c->add(MmPeer::SERIAL_ID, intval(substr($ret, 2))); \n }\n\n }",
"public function search($options = [])\n {\n $criteria = new CDbCriteria;\n /** @var ProductCategory $category */\n\n $criteria->addCondition('t.price>0');\n\n $charColumns = [];\n// foreach (ProductFilter::model()->findAll() as $char) {\n// $charColumns[] = \"MAX(IF(attributes.char_id = \" . $char->id . \", attributes.value, null)) as filter_\" . $char->id;\n// }\n// $criteria->with = ['characteristics' => [\n// 'together' => true,\n// 'alias' => 'attributes',\n// 'select' => $charColumns,\n// ]);\n\n $criteria->with = ['defaultUpload'];\n $criteria->group = 't.id';\n\n $criteria->compare('article', $this->article, true);\n $criteria->compare('category_id', $this->category_id);\n $criteria->compare('manufacturer_id', $this->manufacturer_id);\n\n $criteria->addBetweenCondition('price', $this->priceMin ? : 0, $this->priceMax ? : 1000000);\n\n if (isset($_GET['flt'])) {\n foreach ($_GET['flt'] as $charId => $value) {\n /** @var Characteristic $model */\n $id = ltrim(h($charId), 'f');\n $model = Characteristic::model()->findByPk($id);\n if ($model) {\n if ($model->type == Characteristic::TYPE_SELECT && $value) {\n $criteria->having .= ($criteria->having ? ' AND ' : '') . 'filter_' . $id . '=' . h($value);\n } else if ($model->type == Characteristic::TYPE_RANGE) {\n $criteria->having .= ($criteria->having ? ' AND ' : '') . 'filter_' . $id . ' BETWEEN ' . (isset($value['min']) ? intval(h($value['min'])) : 0) . ' AND ' . (isset($value['max']) ? intval(h($value['max'])) : 1000000);\n }\n }\n }\n }\n\n// if ($this->showNewArrivals && $this->showWithAction) {\n// $criteria->addCondition($this->getNewArrivalsOrActionsCondition());\n// } elseif($this->showWithAction){\n// $criteria->addCondition($this->getWithActionCondition());\n// } elseif($this->showNewArrivals){\n// $criteria->addCondition($this->getNewArrivalsCondition());\n// } else {\n// if (isset($options['showNewArrivals']) && $options['showNewArrivals'] && isset($options['showWithAction']) && $options['showWithAction']) {\n// $criteria->addCondition($this->getNewArrivalsOrActionsCondition());\n// } elseif (isset($options['showNewArrivals']) && $options['showNewArrivals']) {\n// $criteria->addCondition($this->getNewArrivalsCondition());\n// } elseif (isset($options['showWithAction']) && $options['showWithAction']) {\n// $criteria->addCondition($this->getWithActionCondition());\n// }\n// }\n\n return new CActiveDataProvider($this, [\n 'criteria' => $criteria,\n 'pagination' => [\n 'pageSize' => $this->pageSize ? : Config::get((isset($options['homePage']) ? 'newArrivalPageSize' : 'categoryPageSize')),\n ],\n 'sort' => [\n 'multiSort' => true,\n 'defaultOrder' => 'article, price',\n ],\n ]);\n }",
"public function filterBySpecf($specf = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($specf)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECF, $specf, $comparison);\n }",
"function filterStr($field, $value) {\n if (\"$value\" !== '') {\n if ($value[0] === '=') {\n $this->where($field, '=', trim( substr($value, 1) ));\n } else {\n $wrapped = $this->table->grammar->wrap($field);\n\n switch ($value[0]) {\n case '^':\n $cond = '= 1';\n case '?':\n isset($cond) or $cond = '!= 0';\n $this->raw_where(\"LOCATE(?, $wrapped) $cond\", array($value));\n break;\n\n case '%':\n $this->raw_where(\"$wrapped LIKE ?\", array($value));\n break;\n\n default:\n $this->where($field, '=', trim($value));\n break;\n }\n }\n }\n }",
"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_kode),true);\n\t\t$criteria->compare('LOWER(programkerja_nama)',strtolower($this->programkerja_nama),true);\n\t\t$criteria->compare('LOWER(programkerja_ket)',strtolower($this->programkerja_ket),true);\n\t\tif(!empty($this->programkerja_nourut)){\n\t\t\t$criteria->addCondition('programkerja_nourut = '.$this->programkerja_nourut);\n\t\t}\n\t\tif(!empty($this->subprogramkerja_id)){\n\t\t\t$criteria->addCondition('subprogramkerja_id = '.$this->subprogramkerja_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subprogramkerja_kode)',strtolower($this->subprogramkerja_kode),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_nama)',strtolower($this->subprogramkerja_nama),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_ket)',strtolower($this->subprogramkerja_ket),true);\n\t\tif(!empty($this->subprogramkerja_nourut)){\n\t\t\t$criteria->addCondition('subprogramkerja_nourut = '.$this->subprogramkerja_nourut);\n\t\t}\n\t\tif(!empty($this->kegiatanprogram_id)){\n\t\t\t$criteria->addCondition('kegiatanprogram_id = '.$this->kegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kegiatanprogram_kode)',strtolower($this->kegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_nama)',strtolower($this->kegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_ket)',strtolower($this->kegiatanprogram_ket),true);\n\t\tif(!empty($this->kegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('kegiatanprogram_nourut = '.$this->kegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->subkegiatanprogram_id)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_id = '.$this->subkegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subkegiatanprogram_kode)',strtolower($this->subkegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_nama)',strtolower($this->subkegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_ket)',strtolower($this->subkegiatanprogram_ket),true);\n\t\tif(!empty($this->subkegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_nourut = '.$this->subkegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->rekening1debit_id)){\n\t\t\t$criteria->addCondition('rekening1debit_id = '.$this->rekening1debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1debit_kode)',strtolower($this->rekening1debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1debit_nama)',strtolower($this->rekening1debit_nama),true);\n\t\tif(!empty($this->rekening2debit_id)){\n\t\t\t$criteria->addCondition('rekening2debit_id = '.$this->rekening2debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2debit_kode)',strtolower($this->rekening2debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2debit_nama)',strtolower($this->rekening2debit_nama),true);\n\t\tif(!empty($this->rekening3debit_id)){\n\t\t\t$criteria->addCondition('rekening3debit_id = '.$this->rekening3debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3debit_kode)',strtolower($this->rekening3debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3debit_nama)',strtolower($this->rekening3debit_nama),true);\n\t\tif(!empty($this->rekening4debit_id)){\n\t\t\t$criteria->addCondition('rekening4debit_id = '.$this->rekening4debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4debit_kode)',strtolower($this->rekening4debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4debit_nama)',strtolower($this->rekening4debit_nama),true);\n\t\tif(!empty($this->rekening5debit_id)){\n\t\t\t$criteria->addCondition('rekening5debit_id = '.$this->rekening5debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5debit_kode)',strtolower($this->rekening5debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5debit_nama)',strtolower($this->rekening5debit_nama),true);\n\t\tif(!empty($this->rekening1kredit_id)){\n\t\t\t$criteria->addCondition('rekening1kredit_id = '.$this->rekening1kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1kredit_kode)',strtolower($this->rekening1kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1kredit_nama)',strtolower($this->rekening1kredit_nama),true);\n\t\tif(!empty($this->rekening2kredit_id)){\n\t\t\t$criteria->addCondition('rekening2kredit_id = '.$this->rekening2kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2kredit_kode)',strtolower($this->rekening2kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2kredit_nama)',strtolower($this->rekening2kredit_nama),true);\n\t\tif(!empty($this->rekening3kredit_id)){\n\t\t\t$criteria->addCondition('rekening3kredit_id = '.$this->rekening3kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3kredit_kode)',strtolower($this->rekening3kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3kredit_nama)',strtolower($this->rekening3kredit_nama),true);\n\t\tif(!empty($this->rekening4kredit_id)){\n\t\t\t$criteria->addCondition('rekening4kredit_id = '.$this->rekening4kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4kredit_kode)',strtolower($this->rekening4kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4kredit_nama)',strtolower($this->rekening4kredit_nama),true);\n\t\tif(!empty($this->rekening5kredit_id)){\n\t\t\t$criteria->addCondition('rekening5kredit_id = '.$this->rekening5kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5kredit_kode)',strtolower($this->rekening5kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5kredit_nama)',strtolower($this->rekening5kredit_nama),true);\n\t\t\n $criteria->compare('subkegiatanprogram_aktif', $this->subkegiatanprogram_aktif);\n $criteria->compare('programkerja_aktif', $this->programkerja_aktif);\n $criteria->compare('subprogramkerja_aktif', $this->subprogramkerja_aktif);\n $criteria->compare('kegiatanprogram_aktif', $this->kegiatanprogram_aktif);\n//$criteria->order = 'programkerja_id,subprogramkerja_id,kegiatanprogram_id,subkegiatanprogram_id';\n\t\t\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n\t}",
"public function filterByRuc($ruc = null, $comparison = null)\n\t{\n\t\tif (null === $comparison) {\n\t\t\tif (is_array($ruc)) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t} elseif (preg_match('/[\\%\\*]/', $ruc)) {\n\t\t\t\t$ruc = str_replace('*', '%', $ruc);\n\t\t\t\t$comparison = Criteria::LIKE;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(ClientePeer::RUC, $ruc, $comparison);\n\t}",
"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}",
"public function filterBySpecb($specb = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($specb)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECB, $specb, $comparison);\n }",
"public function getSearchFilter($m_or_c, array $options) {\r\n //Filter on the parameters given, and the 'filter' attribute if given...\r\n \t$params = empty($options['params']) ? array() : $options['params'];\r\n \tif (!is_array($params)) throw new InvalidArgumentException('Expected $options[\\'params\\'] to be an array, '.gettype($options['params']).'given.');\r\n \t \r\n\t\t//Are there base filters?\r\n\t\t$filters = $this->getBaseFilters($m_or_c, $options);\r\n\t\tforeach($filters as &$filter) if (!is_string($filter)) {\r\n\t\t\t$filter = $this->parseFilter($filter);\r\n\t\t}\r\n \t\r\n \t//Are there any filters? Parse and incorporate them\r\n \tif (!empty($options['filter'])) {\r\n \t\t$f = $this->parseFilter($options['filter']);\r\n \t\tif ($f) $filters[] = $f;\r\n \t}\r\n \tif (!empty($params['filter'])) {\r\n \t\t$f = $this->parseFilter($params['filter']);\r\n \t\tif ($f) $filters[] = $f;\r\n \t\tunset($params['filter']);\r\n \t}\r\n \t\r\n\t\t//Push the parameters into the filter too\r\n\t\tforeach ($this->getFilterableParameters($params, $options) as $attr=>$value) {\r\n\t\t\t$f = $this->makeFilter($attr, $value);\r\n\t\t\tif ($f) $filters[] = $f;\r\n\t\t}\t\r\n\r\n\t\t//Were there any filters at all?\r\n\t\tif (!$filters) return Zend_Ldap_Filter::any('objectClass');\r\n\t\t//If only one filter, use it directly. \r\n\t\tif (count($filters)==1) $filter = $filters[0];\r\n\t\t//If multiple filters, combine them.\r\n\t\telse $filter = '(&'.implode($filters).')';\r\n\t\t\r\n\t\t//If the filter is functionally empty, (eg. \"(|(&(|(|))))\" contains no letters or numbers), ignore it\r\n\t\tif (preg_match('/^[^a-zA-Z0-9]*$/', (string)$filter)) \r\n\t\t\treturn Zend_Ldap_Filter::any('objectClass');\r\n\r\n\t\treturn $filter;\r\n }",
"public function searchCriteria()\n\t{\n\t\t$criteria=new CDbCriteria;\n\t\t$criteria->compare('operationType',2);\n\t\tif (!isset($this->dateFrom) || ($this->dateFrom == ''))\n\t\t\t$this->dateFrom = MyUtils::datetimeFormat('dd.MM.yyyy');\n\t\t$criteria->compare('date',\">=\".MyUtils::datetimeFormat('y-M-d 0:0:0', $this->dateFrom));\n\t\tif (!isset($this->dateTo) || ($this->dateTo == ''))\n\t\t\t$this->dateTo = MyUtils::datetimeFormat('dd.MM.yyyy');\n\t\t$criteria->compare('date',\"<=\".MyUtils::datetimeFormat('y-M-d 23:59:59', $this->dateTo));\n\t\t\n\t\t$this->driverName = trim($this->driverName);\n\t\t$criteria->compare('card.owner', $this->driverName, true);\n\t\t$this->cardDescription = trim($this->cardDescription);\n\t\t$criteria->compare('card.description', $this->cardDescription, true);\n\n\t\t$this->autoName = trim($this->autoName);\n\t\t$criteria->compare('autoCard.owner', $this->autoName, true);\n\t\t$criteria->compare('terminal.id', $this->terminalId);\n\t\t$criteria->compare('azs.id', $this->azsId);\n\t\t\n\t\t\n\t\t$criteria->select = '*';\n\t\t$criteria->order = 'date';\n\t\t$criteria->with = array('card', 'autoCard', 'fuel', 'pumptransaction', 'pumptransaction.terminal.azs');\t\n\t\t\n\t\tif \t(Yii::app()->theme->name == 'clients') {\n\t\t\t$criteria->compare('organization.name', $this->organizationName, true);\n\t\t\t$criteria->with = array_merge($criteria->with, array('card.organization'));\n\t\t}\t\n return $criteria;\t\t\n\t}",
"public function getCriteriaWhere($criteria) {\n return '';\n }",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('specification_id',$this->specification_id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('value',$this->value,true);\n\t\t$criteria->compare('equipment_id',$this->equipment_id,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function filterByCep($cep = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($cep)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $cep)) {\n $cep = str_replace('*', '%', $cep);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(TbalunoImportPeer::CEP, $cep, $comparison);\n }",
"public function filterBySpecd($specd = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($specd)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECD, $specd, $comparison);\n }",
"public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n//\t\t$criteria->with = 'componentproperty';\n//\t\tfor($i=1;$i<=20;$i++){\n//\t\t $criteria->compare('p_'.$i,$this->componentproperty->{'p_'.$i});\n// }\n// $criteria->compare('availabilid',$this->componentproperty->availabilid);\n\n $criteria->compare('partnumberid',$this->partnumberid);\n\t\t$criteria->compare('partnumber',$this->partnumber,true);\n\t\t$criteria->compare('type',$this->type);\n\t\t$criteria->compare('pathid',$this->pathid);\n\t\t$criteria->compare('updated',$this->updated,true);\n\t\t$criteria->compare('is_assembly',$this->is_assembly);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('especie_id',$this->especie_id);\n\t\t$criteria->compare('nombre_comun',$this->nombre_comun,true);\n\t\t$criteria->compare('nombre_ingles',$this->nombre_ingles,true);\n\t\t$criteria->compare('nombre_cientifico',$this->nombre_cientifico,true);\n\t\t$criteria->compare('clase',$this->clase,true);\n\t\t$criteria->compare('orden',$this->orden,true);\n\t\t$criteria->compare('familia',$this->familia,true);\n\t\t$criteria->compare('grupo_id',$this->grupo_id);\n\t\t$criteria->compare('nacional_Importado',$this->nacional_Importado,true);\n\t\t$criteria->compare('tipo_imagen',$this->tipo_imagen,true);\n\t\t$criteria->compare('imagen',$this->imagen,true);\n\t\t$criteria->compare('talla_captura',$this->talla_captura,true);\n\t\t$criteria->compare('selectiva_noselectiva',$this->selectiva_noselectiva,true);\n\t\t$criteria->compare('arte_pesca',$this->arte_pesca,true);\n\t\t$criteria->compare('tipo_veda_id',$this->tipo_veda_id);\n\t\t$criteria->compare('veda',$this->veda,true);\n\t\t$criteria->compare('generalidades',$this->generalidades,true);\n\t\t$criteria->compare('descripcion_distribucion',$this->descripcion_distribucion,true);\n\t\t$criteria->compare('cultivado_capturado',$this->cultivado_capturado,true);\n\t\t$criteria->compare('comercio',$this->comercio,true);\n\t\t$criteria->compare('pais_importacion',$this->pais_importacion,true);\n\t\t$criteria->compare('fecha_creacion',$this->fecha_creacion,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public static function getCriteriaWhereClause($criteria)\n\t{\n\t\t$where_cond = ' ';\n\n if (array_key_exists('ContinentCode', $criteria))\n {\n if ($criteria['ContinentCode'] == 'AS') // asia\n {\n $where_cond .= 'AND ((I.Asia > 0) || (I.Price > 0 && I.Asia = 0))';\n } else if ($criteria['ContinentCode'] == 'EU') // europe\n {\n $where_cond .= 'AND ((I.Euro > 0) || (I.Price > 0 && I.Euro = 0))';\n } else {\n $where_cond .= 'AND ((I.Price > 0))';\n }\n }\n\n\t\tif (array_key_exists('HotelId', $criteria) && '0' != $criteria['HotelId'])\n\t\t{\n\t\t\t$where_cond.=' AND A.`HotelId` = '.$criteria['HotelId'];\n\t\t}\n\t\tif (array_key_exists('CityId', $criteria) && '0' != $criteria['CityId'])\n\t\t{\n\t\t\t$where_cond.=' AND A.`HotelCity` = '.$criteria['CityId'];\n\t\t}\n\t\tif (array_key_exists('AreaId', $criteria) && '0' != $criteria['AreaId'])\n\t\t{\n\t\t\t$where_cond.=' AND A.`HotelArea` = '.$criteria['AreaId'];\n\t\t}\n\t\tif (array_key_exists('CheckIn', $criteria) && '' != $criteria['CheckIn'])\n\t\t{\n\t\t\t$where_cond.=' AND \"'.$criteria['CheckIn'].'\" between C.`StartTime` and C.`EndTime` ';\n\t\t}\n\t\tif (array_key_exists('CheckOut', $criteria) && '' != $criteria['CheckOut'])\n\t\t{\n\t\t\t$where_cond.=' AND DATE_SUB(\"'.$criteria['CheckOut'].'\",INTERVAL 1 DAY) between C.`StartTime` and C.`EndTime` ';\n\t\t}\n\t\tif (array_key_exists('CheckIn', $criteria) && '' != $criteria['CheckIn'] &&\n\t\t\tarray_key_exists('CheckOut', $criteria) && '' != $criteria['CheckOut'])\n\t\t{\t\n\t\t\t$where_cond .= \" AND I.`ApplyDate` between \\\"{$criteria['CheckIn']}\\\" and DATE_SUB(\\\"{$criteria['CheckOut']}\\\",INTERVAL 1 DAY)\";\n\t\t}\n\t\tif (array_key_exists('RoomTypeVals', $criteria))\n\t\t{\n $roomtype_cond = '';\n $roomtype_cond .= ' AND ( (1 <> 1) ';\n\t\t\t// echo count($criteria['RoomTypeVals']);\n\t\t\t$cond_count = 0;\n\t\t\tforeach($criteria['RoomTypeVals'] as $roomType => $roomTypeCount)\n\t\t\t{\n\t\t\t\tif ($roomTypeCount > 0)\n\t\t\t\t{\n\t\t\t\t\t$cond_count = 1;\n\t\t\t\t\t$roomtype_cond .= 'OR (';\n\t\t\t\t\t$roomtype_cond .= \"C.`RoomTypeId` = $roomType\";\n\t\t\t\t\t$roomtype_cond .= ') ';\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($cond_count == 0)\n\t\t\t\t$roomtype_cond = '';\n\t\t\telse\n\t\t\t\t$roomtype_cond .= ')';\n\t\t\t\n\t\t\t$where_cond .= $roomtype_cond;\n\t\t}\n\t\tif (array_key_exists('HotelClassId', $criteria) && '0' != $criteria['HotelClassId'])\n\t\t{\n\t\t\t$where_cond.=' AND A.`HotelClass` = '.$criteria['HotelClassId'];\n\t\t}\n\n\t\tglobal $cookie;\n $iso = Language::getIsoById((int)$cookie->LanguageID);\n\n\t\tif (array_key_exists('HotelName', $criteria) && '' != $criteria['HotelName'])\n\t\t{\n $where_cond.=' AND A.HotelName_'.$iso.' like \"%'.$criteria['HotelName'].'%\"';\n\t\t}\n\t\treturn $where_cond;\n\t}",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\t\t\n\t\t$criteria->with = array('partnerSystem', 'deliverySpec');\n\n\t\t$criteria->compare('t.id',$this->id);\n\t\t$criteria->compare('partner_system_id',$this->partner_system_id);\n\t\t$criteria->compare('partner_delivery_spec',$this->partner_delivery_spec,true);\n\t\t$criteria->compare('delivery_spec_id',$this->delivery_spec_id);\n\t\tif ($this->partnerSystemName) {\n\t\t\t$criteria->mergeWith(array(\n\t\t\t\t'condition'=>\"partnerSystem.name like concat('%', :partnerSystemName, '%')\",\n\t\t\t\t'params'=>array(':partnerSystemName'=>$this->partnerSystemName)\n\t\t\t));\n\t\t}\n\t\tif ($this->deliverySpecName) {\n\t\t\tif (strtolower($this->deliverySpecName) === '[not set]') {\n\t\t\t\t$criteria->mergeWith(array(\n\t\t\t\t\t'condition'=>'delivery_spec_id is null'\n\t\t\t\t));\n\t\t\t} else {\n\t\t\t\t$criteria->mergeWith(array(\n\t\t\t\t\t'condition'=>\"deliverySpec.name like concat('%', :deliverySpecName, '%')\",\n\t\t\t\t\t'params'=>array(':deliverySpecName'=>$this->deliverySpecName)\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'pagination' => array(\n\t\t\t\t'pageSize' => Yii::app()->user->getState('pageSize', Yii::app()->params['defaultPageSize']),\n\t\t\t),\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function filterBySpeca($speca = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($speca)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECA, $speca, $comparison);\n }",
"function apply_filter($spec, $value, $object_context = null, $class_context = null) {\n \ttry {\n \t if (is_lambda($spec)) {\n \t $value = $spec($value);\n \t } else {\n \t foreach (array_map('trim', explode('|', $spec)) as $f) {\n \t\t\tif (($p = strpos($f, '(')) !== false) {\n \t\t\t $args = array();\n \t\t\t\t$m = substr($f, 0, $p);\n \t\t\t\t$a = preg_replace('/((^|,)\\s*)_/', '$1\"--filter^sentinel--\"', substr($f, $p + 1, -1));\n \t\t\t\t$args = json_decode('[' . $a . ']');\n \t\t\t\tif (($i = array_search(\"--filter^sentinel--\", $args)) !== false) $args[$i] = $value;\n \t\t\t} else {\n \t\t\t $m = $f;\n \t\t\t $args = array($value);\n \t\t\t}\n \t\t\tif ($m[0] == '-' && $m[1] == '>') {\n \t\t\t\t$m = array($object_context, substr($m, 2));\n \t\t\t} elseif (strpos($m, '::') === 0) {\n \t\t\t\t$m = $class_context . $m;\n \t\t\t}\n \t\t\t$value = call_user_func_array($m, $args);\n \t\t}\n \t }\n \t} catch (FilterAbortException $fae) {}\n \treturn $value;\n }",
"public function filterByCortecaja($cortecaja, $comparison = null)\n {\n if ($cortecaja instanceof Cortecaja) {\n return $this\n ->addUsingAlias(SucursalPeer::IDSUCURSAL, $cortecaja->getIdsucursal(), $comparison);\n } elseif ($cortecaja instanceof PropelObjectCollection) {\n return $this\n ->useCortecajaQuery()\n ->filterByPrimaryKeys($cortecaja->getPrimaryKeys())\n ->endUse();\n } else {\n throw new PropelException('filterByCortecaja() only accepts arguments of type Cortecaja or PropelCollection');\n }\n }",
"public function get_spec_filters()\r\n\t{\r\n\t\t$filters = $this->db->query(\"\r\n\t\t\tSELECT\r\n\t\t\t\tfeature_id,\r\n\t\t\t\tname,\r\n\t\t\t\tspec_filter_default\r\n\t\t\tFROM\r\n\t\t\t\ttb_spec_feature\r\n\t\t\tWHERE\r\n\t\t\t\tspec_filter=1\r\n\t\t\tORDER BY\r\n\t\t\t\tname ASC\r\n\t\t\");\r\n\t\treturn $filters->result_array();\r\n\t}",
"function bbp_admin_repair_list_components_filter()\n{\n}",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('cp_id',$this->cp_id);\n\n\t\t$criteria->compare('cp_name',$this->cp_name,true);\n/*\n\t\t$criteria->compare('cp_englishname',$this->cp_englishname,true);\n\n\t\t$criteria->compare('cp_pinyinshortname',$this->cp_pinyinshortname,true);\n\n\t\t$criteria->compare('cp_pinyinlongname',$this->cp_pinyinlongname,true);\n\n\t\t$criteria->compare('cp_district',$this->cp_district);\n\n\t\t$criteria->compare('cp_address',$this->cp_address,true);\n\n\t\t$criteria->compare('cp_avgrentprice',$this->cp_avgrentprice);\n\n\t\t$criteria->compare('cp_developer',$this->cp_developer,true);\n\n\t\t$criteria->compare('cp_propertyprice',$this->cp_propertyprice);\n\n\t\t$criteria->compare('cp_propertyname',$this->cp_propertyname,true);\n\n\t\t$criteria->compare('cp_openingtime',$this->cp_openingtime);\n\n\t\t$criteria->compare('cp_defanglv',$this->cp_defanglv);\n\n\t\t$criteria->compare('cp_area',$this->cp_area);\n\n\t\t$criteria->compare('cp_fengearea',$this->cp_fengearea,true);\n\n\t\t$criteria->compare('cp_floorheight',$this->cp_floorheight,true);\n\n\t\t$criteria->compare('cp_form',$this->cp_form,true);\n\n\t\t$criteria->compare('cp_introduce',$this->cp_introduce,true);\n\n\t\t$criteria->compare('cp_traffic',$this->cp_traffic,true);\n\n\t\t$criteria->compare('cp_carport',$this->cp_carport,true);\n\n\t\t$criteria->compare('cp_propertyserver',$this->cp_propertyserver,true);\n\n\t\t$criteria->compare('cp_roommating',$this->cp_roommating,true);\n\n\t\t$criteria->compare('cp_peripheral',$this->cp_peripheral,true);\n\n\t\t$criteria->compare('cp_x',$this->cp_x,true);\n\n\t\t$criteria->compare('cp_y',$this->cp_y,true);\n*/\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function statusSpeccat($status,$cId)\n {\n \t global $mySession;\n\t $db=new Db();\n\t $data_update['cat_status'] = $status; \n\t $condition= \"cat_id='\".$cId.\"'\";\n\t $db->modify(PROPERTY_SPEC_CAT,$data_update,$condition);\n\t \n }",
"function get_where_custom($col, $value){\n\t\t$this->load->model('Mdl_category_assign');\n\t\t$query = $this->Mdl_category_assign->get_where_custom($col, $value);\n\t\treturn $query;\n\t}",
"public function getFieldSpecificationsForConduit() {\n return array(\n id(new PhabricatorConduitSearchFieldSpecification())\n ->setKey('servicePHID')\n ->setType('phid')\n ->setDescription(pht('The bound service.')),\n id(new PhabricatorConduitSearchFieldSpecification())\n ->setKey('devicePHID')\n ->setType('phid')\n ->setDescription(pht('The device the service is bound to.')),\n id(new PhabricatorConduitSearchFieldSpecification())\n ->setKey('interfacePHID')\n ->setType('phid')\n ->setDescription(pht('The interface the service is bound to.')),\n id(new PhabricatorConduitSearchFieldSpecification())\n ->setKey('disabled')\n ->setType('bool')\n ->setDescription(pht('Interface status.')),\n );\n }",
"public function filterBySpecg($specg = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($specg)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECG, $specg, $comparison);\n }"
] | [
"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.46143216",
"0.4604713",
"0.45977208",
"0.459268",
"0.45915163",
"0.45861837",
"0.45846015",
"0.457399",
"0.4570227",
"0.45622137"
] | 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 return $this->result;\n \n }",
"public function setInputFilterSpecification($spec)\n {\n $this->inputFilterSpecification = $spec;\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(\"/^\\*/\", $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($field, $value) {\n if (\"$value\" !== '') {\n if ($value[0] === '=') {\n $this->where($field, '=', trim( substr($value, 1) ));\n } else {\n $wrapped = $this->table->grammar->wrap($field);\n\n switch ($value[0]) {\n case '^':\n $cond = '= 1';\n case '?':\n isset($cond) or $cond = '!= 0';\n $this->raw_where(\"LOCATE(?, $wrapped) $cond\", array($value));\n break;\n\n case '%':\n $this->raw_where(\"$wrapped LIKE ?\", array($value));\n break;\n\n default:\n $this->where($field, '=', trim($value));\n break;\n }\n }\n }\n }",
"public function filterBySpecf($specf = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($specf)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECF, $specf, $comparison);\n }",
"public function get_spec_filters()\r\n\t{\r\n\t\t$filters = $this->db->query(\"\r\n\t\t\tSELECT\r\n\t\t\t\tfeature_id,\r\n\t\t\t\tname,\r\n\t\t\t\tspec_filter_default\r\n\t\t\tFROM\r\n\t\t\t\ttb_spec_feature\r\n\t\t\tWHERE\r\n\t\t\t\tspec_filter=1\r\n\t\t\tORDER BY\r\n\t\t\t\tname ASC\r\n\t\t\");\r\n\t\treturn $filters->result_array();\r\n\t}",
"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($builder),\n ])->execute($column, $value);\n }",
"public function filterBySpecc($specc = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($specc)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECC, $specc, $comparison);\n }",
"public function filterByPotdspecordr($potdspecordr = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($potdspecordr)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PurchaseOrderDetailReceivingTableMap::COL_POTDSPECORDR, $potdspecordr, $comparison);\n }",
"public function filterBySpecg($specg = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($specg)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECG, $specg, $comparison);\n }",
"function getListFilter($col,$key) {\n\t\t\tif($col == 'unit') {\n\t\t\t\tglobal $conn, $conf;\n\t\t\t\trequire_once($conf['gate_dir'].'model/m_unit.php');\n\t\t\t\t\n\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\n\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t}\n\t\t\tif($col == 'tahun')\n\t\t\t\treturn \"substring(cast(cast(r.tglusulan as date) as varchar),1,4) = '$key'\";\n\t\t\tif($col == 'input'){\n\t\t\t\tif(!empty($key)){\n\t\t\t\t\tif($key == 'Y')\n\t\t\t\t\t\treturn \"r.isinput = 'Y'\";\n\t\t\t\t\telse\n\t\t\t\t\t\treturn \"(r.isinput = 'T' or r.isinput is null)\";\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public static function _generateSQLColumnFilter($column, $search_value, PDO $pdoLink, $sRangeSeparator = '~')\n {\n if (preg_match(\"/^\\[(=|!=)\\]$/i\", $search_value, $match)) {\n return $column.' '.$match[1].' '.$pdoLink->quote('');\n }\n\n if (preg_match(\"/^\\[(!|<=|>=|=|<|>|<>|!=)\\](.+)/i\", $search_value, $match)) {\n if ($match[1] == '!=' && $match[2] == 'null') {\n return $column.' IS NOT NULL';\n } elseif ($match[1] == '=' && $match[2] == 'null') {\n return $column.' IS NULL';\n } elseif ($match[1] == '!') {\n return $column.' NOT LIKE '.$pdoLink->quote('%'.$match[2].'%');\n } else {\n return $column.' '.$match[1].' '.$pdoLink->quote($match[2] == 'empty' ? '' : $match[2]);\n }\n } elseif (strpos($search_value, 'lenght:') === 0) {\n return 'CHAR_LENGTH('.$column.') = '.(int) substr($search_value, strlen('lenght:'));\n } elseif (strpos($search_value, 'reg:') === 0) { //&& $column['sFilter']['regex'] === true) {\n return $column.' REGEXP '.$pdoLink->quote(substr($search_value, strlen('reg:')));\n } elseif (preg_match('/(.*)(!?'.$sRangeSeparator.')(.*)/i', $search_value, $matches) && !empty($matches[1]) && !empty($matches[3])) {\n // TODO : use type to format the search value (eg STR_TO_DATE)\n return $column.($matches[2][0] == '!' ? ' NOT' : '')\n .' BETWEEN '.$pdoLink->quote($matches[1]).' AND '.$pdoLink->quote($matches[3]);\n } elseif (strpos($search_value, 'in:') === 0) {\n $search_value = substr($search_value, strlen('in:'));\n\n return $column.' IN('.$search_value.')';\n } elseif (strpos($search_value, '!in:') === 0) {\n $search_value = substr($search_value, strlen('in:'));\n\n return $column.' NOT IN('.$search_value.')';\n } else {\n return $column.' LIKE '.$pdoLink->quote('%'.$search_value.'%');\n }\n }",
"protected function renderFilter($column)\n {\n $sFilter = $column['sFilter'];\n\n switch ($sFilter['type']) {\n case 'text' :\n $r = '<div class=\"input-group\">'\n .($this->renderFilterOperators ?\n '<div class=\"input-group-addon\"><select class=form-control>'\n .'<option value=\"\">'.$this->trans('').'</option>'\n .$this->formatOption($column['data'], '[!]', $this->trans('!'))\n .$this->formatOption($column['data'], '[=]', $this->trans('='))\n .$this->formatOption($column['data'], '[!=]', $this->trans('!='))\n .$this->formatOption($column['data'], 'reg:', $this->trans('REGEXP'))\n .$this->formatOption($column['data'], 'lenght:', $this->trans('Lenght'))\n .'</select></div>' : '')\n .'<input class=\"form-control sSearch\" type=\"text\" value=\"'.(isset($column['data']) && isset($this->filters[$column['data']]) ? preg_replace('/^(\\[(!|<=|>=|=|<|>|<>|!=)\\]|reg:|in:|lenght:)/i', '', $this->filters[$column['data']]) : '').'\">'\n .'</div></div>';\n\n return $r;\n case 'number' : case 'date' :\n $r = '<div class=\"input-group\">'\n .($this->renderFilterOperators ?\n '<div class=\"input-group-addon\"><select class=form-control>'\n .'<option value=\"\">'.$this->trans('').'</option>'\n .$this->formatOption($column['data'], '[=]', $this->trans('='))\n .$this->formatOption($column['data'], '[!=]', $this->trans('!='))\n .$this->formatOption($column['data'], '[<=]', $this->trans('<='))\n .$this->formatOption($column['data'], '[<]', $this->trans('<'))\n .$this->formatOption($column['data'], '[>=]', $this->trans('>='))\n .$this->formatOption($column['data'], '[>]', $this->trans('>'))\n .$this->formatOption($column['data'], 'in:', $this->trans('IN(int,int,int...)'))\n .$this->formatOption($column['data'], 'reg:', $this->trans('REGEXP'))\n .'</select></div>' : '')\n .'<input class=\"form-control sSearch\" type=\"text\" value=\"'.(isset($this->filters[$column['data']]) ? preg_replace('/^(\\[(<=|>=|=|<|>|<>|!=)\\]|reg:|in:)/i', '', $this->filters[$column['data']]) : '').'\">'\n .'</div></div>';\n\n return $r;\n case 'select' :\n $o = '';\n if (isset($sFilter['options'])) {\n $sFilter['values'] = $sFilter['options'];\n }\n if (isset($sFilter['values'])) {\n foreach ($sFilter['values'] as $k => $v) {\n $o .= '<option value=\"'.$k.'\"'.(isset($column['data']) && isset($this->filters[$column['data']]) && $this->filters[$column['data']] == $k ? ' selected' : '').'>'.$v.'</option>';\n }\n }\n /** Auto-generate options if the data are loaded **/\n elseif (isset($this->jsInitParameters['data'])) {\n // TODO\n }\n\n return '<select class=\"form-control sSearch\"><option value=\"\"></option>'.$o.'</select>';\n }\n }",
"function setSearchFilter($alias=null,$prop_name=null,$prop_value=null,\n $search_type='=') {\n\tif (!($this->_searchEnabled === true)) { return false; }\n\tif (!$this->isProperty($alias,$prop_name)) {\n\t\treturn $this->_searchDisable();\n\t\t}\n\tif (!is_array($this->_searchFilters)) {\n\t\treturn $this->_searchDisable();\n\t\t}\n\t$q = $this->getPropertyQuoted($alias,$prop_name);\n\tif (!is_bool($q)) { return $this->_searchDisable(); }\n\tif ($this->getPropertyIsDate($alias,$prop_name) === true) {\n\t\tif ($prop_value == 'now()') { $q = false; }\n\t\t}\n\t($q) ? $d = '\"' : $d = '';\n\tswitch($search_type) {\n\t\tcase '!=':\n\t\tcase '=':\n\t\tcase '>':\n\t\tcase '<':\n\t\tbreak;\n\t\tcase 'not in':\n\t\tcase 'in':\n\t\t\tif (!is_array($prop_value) or count($prop_value) < 1) {\n\t\t\t\treturn $this->_searchDisable();\n\t\t\t\t}\n\t\tbreak;\n\t\tcase 'not like':\n\t\tcase 'like':\n\t\t\tif (!$q) { return $this->_searchDisable(); }\n\t\tbreak;\n\t\t}\n\tif ($search_type == 'in' or $search_type == 'not in') {\n\t\tfor($j=0; $j < count($prop_value); $j++) {\n\t\t\t$prop_value[$j] = $d . addslashes($prop_value[$j]) . $d;\n\t\t\t}\n\t\t$this->_searchFilters[] = $alias . '.'\n\t\t. $this->getPropertyField($alias,$prop_name)\n\t\t. ' ' . $search_type . '(' . $d . implode(',',$prop_value) . $d . ')';\n\t\t} else {\n\t\t$this->_searchFilters[] = $alias . '.'\n\t\t. $this->getPropertyField($alias,$prop_name)\n\t\t. ' ' . $search_type . ' ' . $d . addslashes($prop_value) . $d;\n\t\t}\n\treturn true;\n\t}",
"public function getInputFilterSpecification()\n {\n return array(\n 'name' => array(\n 'required' => true,\n 'filters' => array(\n array('name' => 'StripTags'),\n array('name' => 'StringTrim'),\n ),\n ),\n );\n }",
"function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once($conf['gate_dir'].'model/m_unit.php');\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periodebobot' :\n\t\t\t\t\treturn \"f.kodeperiodebobot='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periode' :\n\t\t\t\t\treturn \"n.kodeperiode='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periodetim' :\n\t\t\t\t\treturn \"kodeperiode='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'penilai' :\n\t\t\t\t\treturn \"idpenilai='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"public function fetchFilt($filtQuery, $filtBy)\n {\n $sql = sprintf(\n 'SELECT \n * \n FROM %s\n WHERE %s LIKE ?',\n $this->getModel().'s',\n $filtBy\n );\n \n $stmt = $this->pdo->prepare($sql);\n $stmt->execute(array(\"%{$filtQuery}%\"));\n return $stmt->fetchAll(\\PDO::FETCH_OBJ);\n }",
"public function filterByProductId($value) {\n $this->_filter->equalTo($this->_nameMapping['product'], $value);\n }",
"public function where($column, $operator = '', $value = '');",
"public static function filterQuery(ModelCriteria $query, Parameter $filter) {\n\t \t$column = $filter->get('column','Undefined');\n\n\t \tif (is_callable(array($query, 'filterBy'.ucfirst($column)), false, $filterBy)) {\n\t \t\t// Add OR statement while necessary\n\t \t\tif ($filter->get('chainOrStatement')) $query->_or();\n\t \t\t\n\t \t\t$query = call_user_func_array(array($query, $filterBy), array($filter->get('value','')));\n\t\t}\n\n\t\treturn $query;\n\t }",
"public function filter(Builder $dataSource)\r\n {\r\n $model = $dataSource->getModel();\r\n $filters = [];\r\n\r\n if ($this->_separated) {\r\n foreach ($this->_fields as $field => $criteria) {\r\n if ($field === static::COLUMN_ID) {\r\n $value = (int) $this->_value;\r\n if (!is_numeric($this->_value)) {\r\n continue;\r\n }\r\n $field = $model->getPrimary();\r\n } elseif ($field === static::COLUMN_NAME) {\r\n $field = $model->getNameExpr();\r\n }\r\n if (null === $this->_value) {\r\n $filter = new \\Elastica\\Query\\Filtered();\r\n $filterMissing = new \\Elastica\\Filter\\Missing($field);\r\n //$filterMissing->addParam(\"existence\", true);\r\n //$filterMissing->addParam(\"null_value\", true);\r\n $filter->setFilter($filterMissing);\r\n\r\n $filters[] = $filter;\r\n } else {\r\n if ($criteria === static::CRITERIA_EQ) {\r\n $filter = new \\Elastica\\Query\\Term();\r\n $filter->setTerm($field, $this->_value);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_IN) {\r\n if (is_array($this->_value)) {\r\n $filter = new \\Elastica\\Query\\Terms($field, $this->_value);\r\n } else {\r\n $filter = new \\Elastica\\Query\\Term();\r\n $filter->setTerm($field, $this->_value);\r\n }\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_NOTEQ) {\r\n $filter = new \\Elastica\\Query\\Term();\r\n $filter->setTerm($field, $this->_value);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_LIKE) {\r\n $filter = new \\Elastica\\Query\\Match();\r\n $filter->setField($field, $this->_value);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_BEGINS) {\r\n //$filter = new \\Elastica\\Query\\Prefix();\r\n //$filter->setPrefix($field, $this->_value);\r\n //$filters[] = $filter;\r\n $filter = new \\Elastica\\Query\\QueryString();\r\n $filter->setQuery($this->_value);\r\n $filter->setDefaultField($field);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_MORE) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['gt' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_LESS) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['lt' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_MORER) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['gte' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_LESSER) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['lte' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n }\r\n }\r\n }\r\n } else {\r\n $filters = new \\Elastica\\Query\\MultiMatch();\r\n $fields = [];\r\n foreach ($this->_fields as $field => $criteria) {\r\n if ($field === static::COLUMN_ID) {\r\n $value = (int) $this->_value;\r\n if (!is_numeric($this->_value)) {\r\n continue;\r\n }\r\n $field = $model->getPrimary();\r\n } elseif ($field === static::COLUMN_NAME) {\r\n $field = $model->getNameExpr();\r\n }\r\n $boost = $this->getBoostParam($field);\r\n $fields[] = $field.'^'.$boost;\r\n }\r\n $slop = $this->getSlopParam();\r\n $filters->setParam('slop', $slop);\r\n $filters->setFields($fields);\r\n $filters->setTieBreaker(0.3);\r\n $filters->setType(\\Elastica\\Query\\MultiMatch::TYPE_BEST_FIELDS);\r\n //$filters->setType(\\Elastica\\Query\\MultiMatch::TYPE_MOST_FIELDS);\r\n $filters->setQuery($this->_value);\r\n }\r\n\r\n\r\n return $filters;\r\n }",
"function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'periode': return \"periode = '$key'\";\n\t\t\t\tcase 'kodemk': return \"kodemk = '$key'\";\n\t\t\t\tcase 'kelasmk': return \"kelasmk = '$key'\";\n\t\t\t\tcase 'sistemkuliah': return \"sistemkuliah = '$key'\";\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once(Route::getModelPath('unit'));\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t}\n\t\t}",
"function sort($sortSpec, $sortDir = 'ASC')\n {\n if (is_array($sortSpec)) {\n $this->_sortSpec = $sortSpec;\n } else {\n $this->_sortSpec[$sortSpec] = $sortDir;\n }\n }",
"public function filterOptionRecipientName($collection, $column)\n {\n $filterValue = $column->getFilter()->getValue();\n if (!$filterValue)\n {\n return;\n }\n\n // remove spaces\n $filterValue = $this->removeSpaces($filterValue);\n\n $collection->getSelect()\n ->where('CONCAT(recipient_firstname, recipient_lastname) LIKE ?', \"%{$filterValue}%\");\n }",
"function apply_filter($spec, $value, $object_context = null, $class_context = null) {\n \ttry {\n \t if (is_lambda($spec)) {\n \t $value = $spec($value);\n \t } else {\n \t foreach (array_map('trim', explode('|', $spec)) as $f) {\n \t\t\tif (($p = strpos($f, '(')) !== false) {\n \t\t\t $args = array();\n \t\t\t\t$m = substr($f, 0, $p);\n \t\t\t\t$a = preg_replace('/((^|,)\\s*)_/', '$1\"--filter^sentinel--\"', substr($f, $p + 1, -1));\n \t\t\t\t$args = json_decode('[' . $a . ']');\n \t\t\t\tif (($i = array_search(\"--filter^sentinel--\", $args)) !== false) $args[$i] = $value;\n \t\t\t} else {\n \t\t\t $m = $f;\n \t\t\t $args = array($value);\n \t\t\t}\n \t\t\tif ($m[0] == '-' && $m[1] == '>') {\n \t\t\t\t$m = array($object_context, substr($m, 2));\n \t\t\t} elseif (strpos($m, '::') === 0) {\n \t\t\t\t$m = $class_context . $m;\n \t\t\t}\n \t\t\t$value = call_user_func_array($m, $args);\n \t\t}\n \t }\n \t} catch (FilterAbortException $fae) {}\n \treturn $value;\n }",
"public function getFieldSpecificationsForConduit() {\n return array(\n id(new PhabricatorConduitSearchFieldSpecification())\n ->setKey('servicePHID')\n ->setType('phid')\n ->setDescription(pht('The bound service.')),\n id(new PhabricatorConduitSearchFieldSpecification())\n ->setKey('devicePHID')\n ->setType('phid')\n ->setDescription(pht('The device the service is bound to.')),\n id(new PhabricatorConduitSearchFieldSpecification())\n ->setKey('interfacePHID')\n ->setType('phid')\n ->setDescription(pht('The interface the service is bound to.')),\n id(new PhabricatorConduitSearchFieldSpecification())\n ->setKey('disabled')\n ->setType('bool')\n ->setDescription(pht('Interface status.')),\n );\n }",
"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_kode),true);\n\t\t$criteria->compare('LOWER(programkerja_nama)',strtolower($this->programkerja_nama),true);\n\t\t$criteria->compare('LOWER(programkerja_ket)',strtolower($this->programkerja_ket),true);\n\t\tif(!empty($this->programkerja_nourut)){\n\t\t\t$criteria->addCondition('programkerja_nourut = '.$this->programkerja_nourut);\n\t\t}\n\t\tif(!empty($this->subprogramkerja_id)){\n\t\t\t$criteria->addCondition('subprogramkerja_id = '.$this->subprogramkerja_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subprogramkerja_kode)',strtolower($this->subprogramkerja_kode),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_nama)',strtolower($this->subprogramkerja_nama),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_ket)',strtolower($this->subprogramkerja_ket),true);\n\t\tif(!empty($this->subprogramkerja_nourut)){\n\t\t\t$criteria->addCondition('subprogramkerja_nourut = '.$this->subprogramkerja_nourut);\n\t\t}\n\t\tif(!empty($this->kegiatanprogram_id)){\n\t\t\t$criteria->addCondition('kegiatanprogram_id = '.$this->kegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kegiatanprogram_kode)',strtolower($this->kegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_nama)',strtolower($this->kegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_ket)',strtolower($this->kegiatanprogram_ket),true);\n\t\tif(!empty($this->kegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('kegiatanprogram_nourut = '.$this->kegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->subkegiatanprogram_id)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_id = '.$this->subkegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subkegiatanprogram_kode)',strtolower($this->subkegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_nama)',strtolower($this->subkegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_ket)',strtolower($this->subkegiatanprogram_ket),true);\n\t\tif(!empty($this->subkegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_nourut = '.$this->subkegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->rekening1debit_id)){\n\t\t\t$criteria->addCondition('rekening1debit_id = '.$this->rekening1debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1debit_kode)',strtolower($this->rekening1debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1debit_nama)',strtolower($this->rekening1debit_nama),true);\n\t\tif(!empty($this->rekening2debit_id)){\n\t\t\t$criteria->addCondition('rekening2debit_id = '.$this->rekening2debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2debit_kode)',strtolower($this->rekening2debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2debit_nama)',strtolower($this->rekening2debit_nama),true);\n\t\tif(!empty($this->rekening3debit_id)){\n\t\t\t$criteria->addCondition('rekening3debit_id = '.$this->rekening3debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3debit_kode)',strtolower($this->rekening3debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3debit_nama)',strtolower($this->rekening3debit_nama),true);\n\t\tif(!empty($this->rekening4debit_id)){\n\t\t\t$criteria->addCondition('rekening4debit_id = '.$this->rekening4debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4debit_kode)',strtolower($this->rekening4debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4debit_nama)',strtolower($this->rekening4debit_nama),true);\n\t\tif(!empty($this->rekening5debit_id)){\n\t\t\t$criteria->addCondition('rekening5debit_id = '.$this->rekening5debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5debit_kode)',strtolower($this->rekening5debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5debit_nama)',strtolower($this->rekening5debit_nama),true);\n\t\tif(!empty($this->rekening1kredit_id)){\n\t\t\t$criteria->addCondition('rekening1kredit_id = '.$this->rekening1kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1kredit_kode)',strtolower($this->rekening1kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1kredit_nama)',strtolower($this->rekening1kredit_nama),true);\n\t\tif(!empty($this->rekening2kredit_id)){\n\t\t\t$criteria->addCondition('rekening2kredit_id = '.$this->rekening2kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2kredit_kode)',strtolower($this->rekening2kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2kredit_nama)',strtolower($this->rekening2kredit_nama),true);\n\t\tif(!empty($this->rekening3kredit_id)){\n\t\t\t$criteria->addCondition('rekening3kredit_id = '.$this->rekening3kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3kredit_kode)',strtolower($this->rekening3kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3kredit_nama)',strtolower($this->rekening3kredit_nama),true);\n\t\tif(!empty($this->rekening4kredit_id)){\n\t\t\t$criteria->addCondition('rekening4kredit_id = '.$this->rekening4kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4kredit_kode)',strtolower($this->rekening4kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4kredit_nama)',strtolower($this->rekening4kredit_nama),true);\n\t\tif(!empty($this->rekening5kredit_id)){\n\t\t\t$criteria->addCondition('rekening5kredit_id = '.$this->rekening5kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5kredit_kode)',strtolower($this->rekening5kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5kredit_nama)',strtolower($this->rekening5kredit_nama),true);\n\t\t\n $criteria->compare('subkegiatanprogram_aktif', $this->subkegiatanprogram_aktif);\n $criteria->compare('programkerja_aktif', $this->programkerja_aktif);\n $criteria->compare('subprogramkerja_aktif', $this->subprogramkerja_aktif);\n $criteria->compare('kegiatanprogram_aktif', $this->kegiatanprogram_aktif);\n//$criteria->order = 'programkerja_id,subprogramkerja_id,kegiatanprogram_id,subkegiatanprogram_id';\n\t\t\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n\t}",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('specification_id',$this->specification_id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('value',$this->value,true);\n\t\t$criteria->compare('equipment_id',$this->equipment_id,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function filterBySpecb($specb = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($specb)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECB, $specb, $comparison);\n }",
"function filterDate($field, $value) {\n if (($value = ltrim($value, '=')) !== '') {\n if ($mod = strpbrk($value[0], '><') !== false) {\n list($mod, $value) = array($value[0], substr($value, 1));\n } else {\n $mod = '=';\n }\n\n if (filter_var($value, FILTER_VALIDATE_INT) === false) {\n $timestamp = strtotime($value);\n } else {\n $timestamp = (int) $value;\n }\n\n if (is_int($timestamp)) {\n $date = with(new \\DateTime)->setTimestamp($timestamp);\n\n if (!strrchr($value, ' ')) {\n // Only date portion, match that day without exact time.\n $field = \\DB::raw('DATE('.$this->table->grammar->wrap($field).')');\n $date = strtok($date->format($this->table->grammar->datetime), ' ');\n } else {\n $date = $date->format($this->table->grammar->datetime);\n }\n\n $this->where($field, $mod, $date);\n }\n }\n }"
] | [
"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.44355202",
"0.44314405",
"0.4420979",
"0.44182196",
"0.4398848",
"0.4396768",
"0.43926913",
"0.43858075",
"0.43830162",
"0.43805057"
] | 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(\"/^\\*/\", $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($field, $value) {\n if (\"$value\" !== '') {\n if ($value[0] === '=') {\n $this->where($field, '=', trim( substr($value, 1) ));\n } else {\n $wrapped = $this->table->grammar->wrap($field);\n\n switch ($value[0]) {\n case '^':\n $cond = '= 1';\n case '?':\n isset($cond) or $cond = '!= 0';\n $this->raw_where(\"LOCATE(?, $wrapped) $cond\", array($value));\n break;\n\n case '%':\n $this->raw_where(\"$wrapped LIKE ?\", array($value));\n break;\n\n default:\n $this->where($field, '=', trim($value));\n break;\n }\n }\n }\n }",
"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($builder),\n ])->execute($column, $value);\n }",
"public function filterBySpech($spech = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($spech)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECH, $spech, $comparison);\n }",
"public function like($column, $value) { return $this->addCondition($column, $value, Criterion::LIKE); }",
"public function scopeFilteredByString($query, $page, $column, $value){\n return self::where($column, \"like\", \"%$value%\")\n ->orderBy(\"created_at\", \"desc\")\n ->offset(self::PER_PAGE * ($page - 1))\n ->limit(self::PER_PAGE);\n }",
"public function filterByProductId($value) {\n $this->_filter->equalTo($this->_nameMapping['product'], $value);\n }",
"protected function renderFilter($column)\n {\n $sFilter = $column['sFilter'];\n\n switch ($sFilter['type']) {\n case 'text' :\n $r = '<div class=\"input-group\">'\n .($this->renderFilterOperators ?\n '<div class=\"input-group-addon\"><select class=form-control>'\n .'<option value=\"\">'.$this->trans('').'</option>'\n .$this->formatOption($column['data'], '[!]', $this->trans('!'))\n .$this->formatOption($column['data'], '[=]', $this->trans('='))\n .$this->formatOption($column['data'], '[!=]', $this->trans('!='))\n .$this->formatOption($column['data'], 'reg:', $this->trans('REGEXP'))\n .$this->formatOption($column['data'], 'lenght:', $this->trans('Lenght'))\n .'</select></div>' : '')\n .'<input class=\"form-control sSearch\" type=\"text\" value=\"'.(isset($column['data']) && isset($this->filters[$column['data']]) ? preg_replace('/^(\\[(!|<=|>=|=|<|>|<>|!=)\\]|reg:|in:|lenght:)/i', '', $this->filters[$column['data']]) : '').'\">'\n .'</div></div>';\n\n return $r;\n case 'number' : case 'date' :\n $r = '<div class=\"input-group\">'\n .($this->renderFilterOperators ?\n '<div class=\"input-group-addon\"><select class=form-control>'\n .'<option value=\"\">'.$this->trans('').'</option>'\n .$this->formatOption($column['data'], '[=]', $this->trans('='))\n .$this->formatOption($column['data'], '[!=]', $this->trans('!='))\n .$this->formatOption($column['data'], '[<=]', $this->trans('<='))\n .$this->formatOption($column['data'], '[<]', $this->trans('<'))\n .$this->formatOption($column['data'], '[>=]', $this->trans('>='))\n .$this->formatOption($column['data'], '[>]', $this->trans('>'))\n .$this->formatOption($column['data'], 'in:', $this->trans('IN(int,int,int...)'))\n .$this->formatOption($column['data'], 'reg:', $this->trans('REGEXP'))\n .'</select></div>' : '')\n .'<input class=\"form-control sSearch\" type=\"text\" value=\"'.(isset($this->filters[$column['data']]) ? preg_replace('/^(\\[(<=|>=|=|<|>|<>|!=)\\]|reg:|in:)/i', '', $this->filters[$column['data']]) : '').'\">'\n .'</div></div>';\n\n return $r;\n case 'select' :\n $o = '';\n if (isset($sFilter['options'])) {\n $sFilter['values'] = $sFilter['options'];\n }\n if (isset($sFilter['values'])) {\n foreach ($sFilter['values'] as $k => $v) {\n $o .= '<option value=\"'.$k.'\"'.(isset($column['data']) && isset($this->filters[$column['data']]) && $this->filters[$column['data']] == $k ? ' selected' : '').'>'.$v.'</option>';\n }\n }\n /** Auto-generate options if the data are loaded **/\n elseif (isset($this->jsInitParameters['data'])) {\n // TODO\n }\n\n return '<select class=\"form-control sSearch\"><option value=\"\"></option>'.$o.'</select>';\n }\n }",
"public function filter($value);",
"public static function brokerByColumnSearch($column = '', $value = '')\n {\n return false;\n }",
"function searchFumetti($p, $ordine){\n\t//$p = htmlspecialchars($p, ENT_QUOTES);\n\t$query = \"SELECT *, nome as `nomeFum` FROM `Fumetti` WHERE `Fumetti`.`nome` LIKE '%$p%' OR `volume` like '$p' ORDER BY '$ordine' \";\n\treturn eseguiQuery($query);\n\n}",
"public function filterOptionRecipientName($collection, $column)\n {\n $filterValue = $column->getFilter()->getValue();\n if (!$filterValue)\n {\n return;\n }\n\n // remove spaces\n $filterValue = $this->removeSpaces($filterValue);\n\n $collection->getSelect()\n ->where('CONCAT(recipient_firstname, recipient_lastname) LIKE ?', \"%{$filterValue}%\");\n }",
"protected function filter($value)\n\t{\n\t\treturn $this->wrapper->getFilter()->filter($value);\n\t}",
"public function filterByCep($cep = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($cep)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $cep)) {\n $cep = str_replace('*', '%', $cep);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(TbalunoImportPeer::CEP, $cep, $comparison);\n }",
"public function filter($value, $row = null) {\n $arr = explode(' ', $value);\n return $this->_filter($arr[0], $row);\n }",
"public function filterOptionCod($collection, $column)\n\t{\n\t\t$filterValue = intval($column->getFilter()->getValue());\n\n\t\tif($filterValue === 0)\n\t\t{\n\t\t\t$collection->getSelect()->where(\"cod = '0.00'\");\n\t\t}\n\n\t\tif($filterValue === 1)\n\t\t{\n\t\t\t$collection->getSelect()->where(\"cod > 0\");\n\t\t}\n\t}",
"public function like(string $column, mixed $value, string $type = Condition::AND): CriteriaInterface;",
"public static function _generateSQLColumnFilter($column, $search_value, PDO $pdoLink, $sRangeSeparator = '~')\n {\n if (preg_match(\"/^\\[(=|!=)\\]$/i\", $search_value, $match)) {\n return $column.' '.$match[1].' '.$pdoLink->quote('');\n }\n\n if (preg_match(\"/^\\[(!|<=|>=|=|<|>|<>|!=)\\](.+)/i\", $search_value, $match)) {\n if ($match[1] == '!=' && $match[2] == 'null') {\n return $column.' IS NOT NULL';\n } elseif ($match[1] == '=' && $match[2] == 'null') {\n return $column.' IS NULL';\n } elseif ($match[1] == '!') {\n return $column.' NOT LIKE '.$pdoLink->quote('%'.$match[2].'%');\n } else {\n return $column.' '.$match[1].' '.$pdoLink->quote($match[2] == 'empty' ? '' : $match[2]);\n }\n } elseif (strpos($search_value, 'lenght:') === 0) {\n return 'CHAR_LENGTH('.$column.') = '.(int) substr($search_value, strlen('lenght:'));\n } elseif (strpos($search_value, 'reg:') === 0) { //&& $column['sFilter']['regex'] === true) {\n return $column.' REGEXP '.$pdoLink->quote(substr($search_value, strlen('reg:')));\n } elseif (preg_match('/(.*)(!?'.$sRangeSeparator.')(.*)/i', $search_value, $matches) && !empty($matches[1]) && !empty($matches[3])) {\n // TODO : use type to format the search value (eg STR_TO_DATE)\n return $column.($matches[2][0] == '!' ? ' NOT' : '')\n .' BETWEEN '.$pdoLink->quote($matches[1]).' AND '.$pdoLink->quote($matches[3]);\n } elseif (strpos($search_value, 'in:') === 0) {\n $search_value = substr($search_value, strlen('in:'));\n\n return $column.' IN('.$search_value.')';\n } elseif (strpos($search_value, '!in:') === 0) {\n $search_value = substr($search_value, strlen('in:'));\n\n return $column.' NOT IN('.$search_value.')';\n } else {\n return $column.' LIKE '.$pdoLink->quote('%'.$search_value.'%');\n }\n }",
"public function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n \n // clear session filters\n TSession::setValue('controle_geracaoForm_filter_professor_id', NULL);\n TSession::setValue('controle_geracaoForm_filter_aulas_saldo', NULL);\n TSession::setValue('controle_geracaoForm_filter_aulas_pagas', NULL);\n TSession::setValue('controle_geracaoForm_filter_data_aula', NULL);\n TSession::setValue('controle_geracaoForm_filter_historico_pagamento', NULL);\n\n if (isset($data->professor_id) AND ($data->professor_id)) {\n $filter = new TFilter('professor_id', 'like', \"%{$data->professor_id}%\"); // create the filter\n TSession::setValue('controle_geracaoForm_filter_professor_id', $filter); // stores the filter in the session\n }\n\n\n if (isset($data->aulas_saldo) AND ($data->aulas_saldo)) {\n $filter = new TFilter('aulas_saldo', 'like', \"%{$data->aulas_saldo}%\"); // create the filter\n TSession::setValue('controle_geracaoForm_filter_aulas_saldo', $filter); // stores the filter in the session\n }\n\n\n if (isset($data->aulas_pagas) AND ($data->aulas_pagas)) {\n $filter = new TFilter('aulas_pagas', 'like', \"%{$data->aulas_pagas}%\"); // create the filter\n TSession::setValue('controle_geracaoForm_filter_aulas_pagas', $filter); // stores the filter in the session\n }\n\n\n if (isset($data->data_aula) AND ($data->data_aula)) {\n $filter = new TFilter('data_aula', 'like', \"%{$data->data_aula}%\"); // create the filter\n TSession::setValue('controle_geracaoForm_filter_data_aula', $filter); // stores the filter in the session\n }\n\n\n if (isset($data->historico_pagamento) AND ($data->historico_pagamento)) {\n $filter = new TFilter('historico_pagamento', 'like', \"%{$data->historico_pagamento}%\"); // create the filter\n TSession::setValue('controle_geracaoForm_filter_historico_pagamento', $filter); // stores the filter in the session\n }\n\n \n // fill the form with data again\n $this->form->setData($data);\n \n // keep the search data in the session\n TSession::setValue('professorcontrole_aula_filter_data', $data);\n \n $param=array();\n $param['offset'] =0;\n $param['first_page']=1;\n $this->onReload($param);\n }",
"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}",
"public function searchProduk()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t $criteria = new CDbCriteria;\n\t\t $criteria->compare('nm_produk',$this->nm_produk);\n$criteria->compare('kd_produk',$this->kd_produk);\n$criteria->compare('stock',$this->stock);\n\n\t\t$model = Produk::model()->find($criteria);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"protected function generateSQLColumnFilter($column, $search_value)\n {\n return self::_generateSQLColumnFilter($column, $search_value, $this->pdoLink, isset($this->sRangeSeparator) ? $this->sRangeSeparator : '~');\n }",
"abstract public function filter($value);",
"public static function apply(Builder $builder, $value) {\n \n return $builder->whereRaw('LOWER(`products`.`name`) LIKE ? ',[trim(strtolower($value)).'%']);\n }",
"function db_search($value,$column,$column_want,$table) {\n\t\t$query = \"SELECT $column_want FROM $table WHERE `$column` LIKE '$value'\";\n\t\t$result = mysql_query($query,$this->db_connection);\n\t\twhile($entry = mysql_fetch_assoc($result)) {\n\t\t\t$results[] = $entry;\n\t\t}\n\t\treturn $results;\n\t}",
"public function handleFilterAnnotation($e)\n {\n $annotation = $e->getParam('annotation');\n if (!$annotation instanceof Column) {\n return;\n }\n\n $inputSpec = $e->getParam('inputSpec');\n if (!isset($inputSpec['filters'])) {\n $inputSpec['filters'] = array();\n }\n\n switch ($annotation->type) {\n case 'bool':\n case 'boolean':\n $inputSpec['filters'][] = array('name' => 'Boolean');\n break;\n case 'bigint':\n case 'integer':\n case 'smallint':\n $inputSpec['filters'][] = array('name' => 'Int');\n break;\n case 'datetime':\n case 'datetimetz':\n case 'date':\n case 'time':\n case 'string':\n case 'text':\n $inputSpec['filters'][] = array('name' => 'StringTrim');\n break;\n }\n }",
"public function filterByVicecampeon($vicecampeon = null, $comparison = null)\n\t{\n\t\tif (null === $comparison) {\n\t\t\tif (is_array($vicecampeon)) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t} elseif (preg_match('/[\\%\\*]/', $vicecampeon)) {\n\t\t\t\t$vicecampeon = str_replace('*', '%', $vicecampeon);\n\t\t\t\t$comparison = Criteria::LIKE;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(EquipoPeer::VICECAMPEON, $vicecampeon, $comparison);\n\t}",
"public function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n $filters = [];\n\n TSession::setValue(__CLASS__.'_filter_data', NULL);\n TSession::setValue(__CLASS__.'_filters', NULL);\n\n if (isset($data->id) AND ( (is_scalar($data->id) AND $data->id !== '') OR (is_array($data->id) AND (!empty($data->id)) )) )\n {\n\n $filters[] = new TFilter('id', '=', $data->id);// create the filter \n }\n\n if (isset($data->editora_id) AND ( (is_scalar($data->editora_id) AND $data->editora_id !== '') OR (is_array($data->editora_id) AND (!empty($data->editora_id)) )) )\n {\n\n $filters[] = new TFilter('editora_id', '=', $data->editora_id);// create the filter \n }\n\n if (isset($data->titulo) AND ( (is_scalar($data->titulo) AND $data->titulo !== '') OR (is_array($data->titulo) AND (!empty($data->titulo)) )) )\n {\n\n $filters[] = new TFilter('titulo', 'like', \"%{$data->titulo}%\");// create the filter \n }\n\n if (isset($data->autor_principal_id) AND ( (is_scalar($data->autor_principal_id) AND $data->autor_principal_id !== '') OR (is_array($data->autor_principal_id) AND (!empty($data->autor_principal_id)) )) )\n {\n\n $filters[] = new TFilter('autor_principal_id', '=', $data->autor_principal_id);// create the filter \n }\n\n if (isset($data->colecao_id) AND ( (is_scalar($data->colecao_id) AND $data->colecao_id !== '') OR (is_array($data->colecao_id) AND (!empty($data->colecao_id)) )) )\n {\n\n $filters[] = new TFilter('colecao_id', '=', $data->colecao_id);// create the filter \n }\n\n if (isset($data->classificacao_id) AND ( (is_scalar($data->classificacao_id) AND $data->classificacao_id !== '') OR (is_array($data->classificacao_id) AND (!empty($data->classificacao_id)) )) )\n {\n\n $filters[] = new TFilter('classificacao_id', '=', $data->classificacao_id);// create the filter \n }\n\n $param = array();\n $param['offset'] = 0;\n $param['first_page'] = 1;\n\n // fill the form with data again\n $this->form->setData($data);\n\n // keep the search data in the session\n TSession::setValue(__CLASS__.'_filter_data', $data);\n TSession::setValue(__CLASS__.'_filters', $filters);\n\n $this->onReload($param);\n }",
"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_kode),true);\n\t\t$criteria->compare('LOWER(programkerja_nama)',strtolower($this->programkerja_nama),true);\n\t\t$criteria->compare('LOWER(programkerja_ket)',strtolower($this->programkerja_ket),true);\n\t\tif(!empty($this->programkerja_nourut)){\n\t\t\t$criteria->addCondition('programkerja_nourut = '.$this->programkerja_nourut);\n\t\t}\n\t\tif(!empty($this->subprogramkerja_id)){\n\t\t\t$criteria->addCondition('subprogramkerja_id = '.$this->subprogramkerja_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subprogramkerja_kode)',strtolower($this->subprogramkerja_kode),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_nama)',strtolower($this->subprogramkerja_nama),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_ket)',strtolower($this->subprogramkerja_ket),true);\n\t\tif(!empty($this->subprogramkerja_nourut)){\n\t\t\t$criteria->addCondition('subprogramkerja_nourut = '.$this->subprogramkerja_nourut);\n\t\t}\n\t\tif(!empty($this->kegiatanprogram_id)){\n\t\t\t$criteria->addCondition('kegiatanprogram_id = '.$this->kegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kegiatanprogram_kode)',strtolower($this->kegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_nama)',strtolower($this->kegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_ket)',strtolower($this->kegiatanprogram_ket),true);\n\t\tif(!empty($this->kegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('kegiatanprogram_nourut = '.$this->kegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->subkegiatanprogram_id)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_id = '.$this->subkegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subkegiatanprogram_kode)',strtolower($this->subkegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_nama)',strtolower($this->subkegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_ket)',strtolower($this->subkegiatanprogram_ket),true);\n\t\tif(!empty($this->subkegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_nourut = '.$this->subkegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->rekening1debit_id)){\n\t\t\t$criteria->addCondition('rekening1debit_id = '.$this->rekening1debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1debit_kode)',strtolower($this->rekening1debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1debit_nama)',strtolower($this->rekening1debit_nama),true);\n\t\tif(!empty($this->rekening2debit_id)){\n\t\t\t$criteria->addCondition('rekening2debit_id = '.$this->rekening2debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2debit_kode)',strtolower($this->rekening2debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2debit_nama)',strtolower($this->rekening2debit_nama),true);\n\t\tif(!empty($this->rekening3debit_id)){\n\t\t\t$criteria->addCondition('rekening3debit_id = '.$this->rekening3debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3debit_kode)',strtolower($this->rekening3debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3debit_nama)',strtolower($this->rekening3debit_nama),true);\n\t\tif(!empty($this->rekening4debit_id)){\n\t\t\t$criteria->addCondition('rekening4debit_id = '.$this->rekening4debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4debit_kode)',strtolower($this->rekening4debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4debit_nama)',strtolower($this->rekening4debit_nama),true);\n\t\tif(!empty($this->rekening5debit_id)){\n\t\t\t$criteria->addCondition('rekening5debit_id = '.$this->rekening5debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5debit_kode)',strtolower($this->rekening5debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5debit_nama)',strtolower($this->rekening5debit_nama),true);\n\t\tif(!empty($this->rekening1kredit_id)){\n\t\t\t$criteria->addCondition('rekening1kredit_id = '.$this->rekening1kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1kredit_kode)',strtolower($this->rekening1kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1kredit_nama)',strtolower($this->rekening1kredit_nama),true);\n\t\tif(!empty($this->rekening2kredit_id)){\n\t\t\t$criteria->addCondition('rekening2kredit_id = '.$this->rekening2kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2kredit_kode)',strtolower($this->rekening2kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2kredit_nama)',strtolower($this->rekening2kredit_nama),true);\n\t\tif(!empty($this->rekening3kredit_id)){\n\t\t\t$criteria->addCondition('rekening3kredit_id = '.$this->rekening3kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3kredit_kode)',strtolower($this->rekening3kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3kredit_nama)',strtolower($this->rekening3kredit_nama),true);\n\t\tif(!empty($this->rekening4kredit_id)){\n\t\t\t$criteria->addCondition('rekening4kredit_id = '.$this->rekening4kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4kredit_kode)',strtolower($this->rekening4kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4kredit_nama)',strtolower($this->rekening4kredit_nama),true);\n\t\tif(!empty($this->rekening5kredit_id)){\n\t\t\t$criteria->addCondition('rekening5kredit_id = '.$this->rekening5kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5kredit_kode)',strtolower($this->rekening5kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5kredit_nama)',strtolower($this->rekening5kredit_nama),true);\n\t\t\n $criteria->compare('subkegiatanprogram_aktif', $this->subkegiatanprogram_aktif);\n $criteria->compare('programkerja_aktif', $this->programkerja_aktif);\n $criteria->compare('subprogramkerja_aktif', $this->subprogramkerja_aktif);\n $criteria->compare('kegiatanprogram_aktif', $this->kegiatanprogram_aktif);\n//$criteria->order = 'programkerja_id,subprogramkerja_id,kegiatanprogram_id,subkegiatanprogram_id';\n\t\t\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n\t}"
] | [
"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.4785983",
"0.47724792",
"0.47623107",
"0.47546768",
"0.47543162",
"0.47430766",
"0.47290447",
"0.47198954",
"0.4706091",
"0.46889573"
] | 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 = $this->table->grammar->wrap($field);\n\n switch ($value[0]) {\n case '^':\n $cond = '= 1';\n case '?':\n isset($cond) or $cond = '!= 0';\n $this->raw_where(\"LOCATE(?, $wrapped) $cond\", array($value));\n break;\n\n case '%':\n $this->raw_where(\"$wrapped LIKE ?\", array($value));\n break;\n\n default:\n $this->where($field, '=', trim($value));\n break;\n }\n }\n }\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->execute(); \n $stmt->setFetchMode(\\PDO::FETCH_OBJ);\n $this->result = $stmt->fetchAll();\n return $this->result;\n \n }",
"public function get_spec_filters()\r\n\t{\r\n\t\t$filters = $this->db->query(\"\r\n\t\t\tSELECT\r\n\t\t\t\tfeature_id,\r\n\t\t\t\tname,\r\n\t\t\t\tspec_filter_default\r\n\t\t\tFROM\r\n\t\t\t\ttb_spec_feature\r\n\t\t\tWHERE\r\n\t\t\t\tspec_filter=1\r\n\t\t\tORDER BY\r\n\t\t\t\tname ASC\r\n\t\t\");\r\n\t\treturn $filters->result_array();\r\n\t}",
"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}",
"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_kode),true);\n\t\t$criteria->compare('LOWER(programkerja_nama)',strtolower($this->programkerja_nama),true);\n\t\t$criteria->compare('LOWER(programkerja_ket)',strtolower($this->programkerja_ket),true);\n\t\tif(!empty($this->programkerja_nourut)){\n\t\t\t$criteria->addCondition('programkerja_nourut = '.$this->programkerja_nourut);\n\t\t}\n\t\tif(!empty($this->subprogramkerja_id)){\n\t\t\t$criteria->addCondition('subprogramkerja_id = '.$this->subprogramkerja_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subprogramkerja_kode)',strtolower($this->subprogramkerja_kode),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_nama)',strtolower($this->subprogramkerja_nama),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_ket)',strtolower($this->subprogramkerja_ket),true);\n\t\tif(!empty($this->subprogramkerja_nourut)){\n\t\t\t$criteria->addCondition('subprogramkerja_nourut = '.$this->subprogramkerja_nourut);\n\t\t}\n\t\tif(!empty($this->kegiatanprogram_id)){\n\t\t\t$criteria->addCondition('kegiatanprogram_id = '.$this->kegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kegiatanprogram_kode)',strtolower($this->kegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_nama)',strtolower($this->kegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_ket)',strtolower($this->kegiatanprogram_ket),true);\n\t\tif(!empty($this->kegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('kegiatanprogram_nourut = '.$this->kegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->subkegiatanprogram_id)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_id = '.$this->subkegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subkegiatanprogram_kode)',strtolower($this->subkegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_nama)',strtolower($this->subkegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_ket)',strtolower($this->subkegiatanprogram_ket),true);\n\t\tif(!empty($this->subkegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_nourut = '.$this->subkegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->rekening1debit_id)){\n\t\t\t$criteria->addCondition('rekening1debit_id = '.$this->rekening1debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1debit_kode)',strtolower($this->rekening1debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1debit_nama)',strtolower($this->rekening1debit_nama),true);\n\t\tif(!empty($this->rekening2debit_id)){\n\t\t\t$criteria->addCondition('rekening2debit_id = '.$this->rekening2debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2debit_kode)',strtolower($this->rekening2debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2debit_nama)',strtolower($this->rekening2debit_nama),true);\n\t\tif(!empty($this->rekening3debit_id)){\n\t\t\t$criteria->addCondition('rekening3debit_id = '.$this->rekening3debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3debit_kode)',strtolower($this->rekening3debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3debit_nama)',strtolower($this->rekening3debit_nama),true);\n\t\tif(!empty($this->rekening4debit_id)){\n\t\t\t$criteria->addCondition('rekening4debit_id = '.$this->rekening4debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4debit_kode)',strtolower($this->rekening4debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4debit_nama)',strtolower($this->rekening4debit_nama),true);\n\t\tif(!empty($this->rekening5debit_id)){\n\t\t\t$criteria->addCondition('rekening5debit_id = '.$this->rekening5debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5debit_kode)',strtolower($this->rekening5debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5debit_nama)',strtolower($this->rekening5debit_nama),true);\n\t\tif(!empty($this->rekening1kredit_id)){\n\t\t\t$criteria->addCondition('rekening1kredit_id = '.$this->rekening1kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1kredit_kode)',strtolower($this->rekening1kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1kredit_nama)',strtolower($this->rekening1kredit_nama),true);\n\t\tif(!empty($this->rekening2kredit_id)){\n\t\t\t$criteria->addCondition('rekening2kredit_id = '.$this->rekening2kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2kredit_kode)',strtolower($this->rekening2kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2kredit_nama)',strtolower($this->rekening2kredit_nama),true);\n\t\tif(!empty($this->rekening3kredit_id)){\n\t\t\t$criteria->addCondition('rekening3kredit_id = '.$this->rekening3kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3kredit_kode)',strtolower($this->rekening3kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3kredit_nama)',strtolower($this->rekening3kredit_nama),true);\n\t\tif(!empty($this->rekening4kredit_id)){\n\t\t\t$criteria->addCondition('rekening4kredit_id = '.$this->rekening4kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4kredit_kode)',strtolower($this->rekening4kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4kredit_nama)',strtolower($this->rekening4kredit_nama),true);\n\t\tif(!empty($this->rekening5kredit_id)){\n\t\t\t$criteria->addCondition('rekening5kredit_id = '.$this->rekening5kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5kredit_kode)',strtolower($this->rekening5kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5kredit_nama)',strtolower($this->rekening5kredit_nama),true);\n\t\t\n $criteria->compare('subkegiatanprogram_aktif', $this->subkegiatanprogram_aktif);\n $criteria->compare('programkerja_aktif', $this->programkerja_aktif);\n $criteria->compare('subprogramkerja_aktif', $this->subprogramkerja_aktif);\n $criteria->compare('kegiatanprogram_aktif', $this->kegiatanprogram_aktif);\n//$criteria->order = 'programkerja_id,subprogramkerja_id,kegiatanprogram_id,subkegiatanprogram_id';\n\t\t\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n\t}",
"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($builder),\n ])->execute($column, $value);\n }",
"public function getInputFilterSpecification()\n {\n return array(\n 'name' => array(\n 'required' => true,\n 'filters' => array(\n array('name' => 'StripTags'),\n array('name' => 'StringTrim'),\n ),\n ),\n );\n }",
"public function addFilterQuery($fq) {}",
"function apply_filter($spec, $value, $object_context = null, $class_context = null) {\n \ttry {\n \t if (is_lambda($spec)) {\n \t $value = $spec($value);\n \t } else {\n \t foreach (array_map('trim', explode('|', $spec)) as $f) {\n \t\t\tif (($p = strpos($f, '(')) !== false) {\n \t\t\t $args = array();\n \t\t\t\t$m = substr($f, 0, $p);\n \t\t\t\t$a = preg_replace('/((^|,)\\s*)_/', '$1\"--filter^sentinel--\"', substr($f, $p + 1, -1));\n \t\t\t\t$args = json_decode('[' . $a . ']');\n \t\t\t\tif (($i = array_search(\"--filter^sentinel--\", $args)) !== false) $args[$i] = $value;\n \t\t\t} else {\n \t\t\t $m = $f;\n \t\t\t $args = array($value);\n \t\t\t}\n \t\t\tif ($m[0] == '-' && $m[1] == '>') {\n \t\t\t\t$m = array($object_context, substr($m, 2));\n \t\t\t} elseif (strpos($m, '::') === 0) {\n \t\t\t\t$m = $class_context . $m;\n \t\t\t}\n \t\t\t$value = call_user_func_array($m, $args);\n \t\t}\n \t }\n \t} catch (FilterAbortException $fae) {}\n \treturn $value;\n }",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('fid',$this->fid,true);\n\n\t\t$criteria->compare('fdensity',$this->fdensity);\n\n\t\t$criteria->compare('fcycle',$this->fcycle);\n\n\t\t$criteria->compare('fnumber',$this->fnumber,true);\n\n\t\t$criteria->compare('flnumber',$this->flnumber,true);\n\n\t\t$criteria->compare('fquota',$this->fquota,true);\n\n\t\t$criteria->compare('fspinfo',$this->fspinfo,true);\n\n\t\t$criteria->compare('frate',$this->frate,true);\n\n\t\t$criteria->compare('flotnum',$this->flotnum,true);\n\n\t\t$criteria->compare('fsn',$this->fsn,true);\n\n\t\t$criteria->compare('ffactory',$this->ffactory,true);\n\n\t\treturn new CActiveDataProvider('Weftinfo', array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function filter($value);",
"public function filterFieldByString($field, $filter)\r\n {\n if ($filter)\r\n {\r\n $filters = explode('|', Stringkit::strtolower($filter));\n $filters = array_diff($filters, array(''));\n foreach ($filters as $filter)\r\n {\r\n $this->addWhere(sprintf('LOWER(%s) LIKE \"%%%s%%\"', $field, addslashes($filter)));\r\n }\r\n }\r\n \r\n return $this;\r\n }",
"public function getInputFilterSpecification()\n {\n return $this->inputFilterSpecification;\n }",
"public static function filterQuery(ModelCriteria $query, Parameter $filter) {\n\t \t$column = $filter->get('column','Undefined');\n\n\t \tif (is_callable(array($query, 'filterBy'.ucfirst($column)), false, $filterBy)) {\n\t \t\t// Add OR statement while necessary\n\t \t\tif ($filter->get('chainOrStatement')) $query->_or();\n\t \t\t\n\t \t\t$query = call_user_func_array(array($query, $filterBy), array($filter->get('value','')));\n\t\t}\n\n\t\treturn $query;\n\t }",
"public function getFilterQuery()\n {\n return $this->fq->getQuery();\n }",
"public function filterBySpecb($specb = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($specb)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECB, $specb, $comparison);\n }",
"public function filterBySpecg($specg = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($specg)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECG, $specg, $comparison);\n }",
"public function filter(Builder $dataSource)\r\n {\r\n $model = $dataSource->getModel();\r\n $filters = [];\r\n\r\n if ($this->_separated) {\r\n foreach ($this->_fields as $field => $criteria) {\r\n if ($field === static::COLUMN_ID) {\r\n $value = (int) $this->_value;\r\n if (!is_numeric($this->_value)) {\r\n continue;\r\n }\r\n $field = $model->getPrimary();\r\n } elseif ($field === static::COLUMN_NAME) {\r\n $field = $model->getNameExpr();\r\n }\r\n if (null === $this->_value) {\r\n $filter = new \\Elastica\\Query\\Filtered();\r\n $filterMissing = new \\Elastica\\Filter\\Missing($field);\r\n //$filterMissing->addParam(\"existence\", true);\r\n //$filterMissing->addParam(\"null_value\", true);\r\n $filter->setFilter($filterMissing);\r\n\r\n $filters[] = $filter;\r\n } else {\r\n if ($criteria === static::CRITERIA_EQ) {\r\n $filter = new \\Elastica\\Query\\Term();\r\n $filter->setTerm($field, $this->_value);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_IN) {\r\n if (is_array($this->_value)) {\r\n $filter = new \\Elastica\\Query\\Terms($field, $this->_value);\r\n } else {\r\n $filter = new \\Elastica\\Query\\Term();\r\n $filter->setTerm($field, $this->_value);\r\n }\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_NOTEQ) {\r\n $filter = new \\Elastica\\Query\\Term();\r\n $filter->setTerm($field, $this->_value);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_LIKE) {\r\n $filter = new \\Elastica\\Query\\Match();\r\n $filter->setField($field, $this->_value);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_BEGINS) {\r\n //$filter = new \\Elastica\\Query\\Prefix();\r\n //$filter->setPrefix($field, $this->_value);\r\n //$filters[] = $filter;\r\n $filter = new \\Elastica\\Query\\QueryString();\r\n $filter->setQuery($this->_value);\r\n $filter->setDefaultField($field);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_MORE) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['gt' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_LESS) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['lt' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_MORER) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['gte' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_LESSER) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['lte' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n }\r\n }\r\n }\r\n } else {\r\n $filters = new \\Elastica\\Query\\MultiMatch();\r\n $fields = [];\r\n foreach ($this->_fields as $field => $criteria) {\r\n if ($field === static::COLUMN_ID) {\r\n $value = (int) $this->_value;\r\n if (!is_numeric($this->_value)) {\r\n continue;\r\n }\r\n $field = $model->getPrimary();\r\n } elseif ($field === static::COLUMN_NAME) {\r\n $field = $model->getNameExpr();\r\n }\r\n $boost = $this->getBoostParam($field);\r\n $fields[] = $field.'^'.$boost;\r\n }\r\n $slop = $this->getSlopParam();\r\n $filters->setParam('slop', $slop);\r\n $filters->setFields($fields);\r\n $filters->setTieBreaker(0.3);\r\n $filters->setType(\\Elastica\\Query\\MultiMatch::TYPE_BEST_FIELDS);\r\n //$filters->setType(\\Elastica\\Query\\MultiMatch::TYPE_MOST_FIELDS);\r\n $filters->setQuery($this->_value);\r\n }\r\n\r\n\r\n return $filters;\r\n }",
"function SetupAutoSuggestFilters($fld, $pageId = null) {\r\n\t\tglobal $gsLanguage;\r\n\t\t$pageId = $pageId ?: $this->PageID;\r\n\t\tswitch ($fld->FldVar) {\r\n\t\tcase \"x_Serie_Netbook\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `NroSerie`, `NroSerie` AS `DispFld` FROM `equipos`\";\r\n\t\t\t$sWhereWrk = \"`NroSerie` LIKE '{query_value}%'\";\r\n\t\t\t$this->Serie_Netbook->LookupFilters = array(\"dx1\" => \"`NroSerie`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Serie_Netbook, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Id_Hardware\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `NroMac`, `NroMac` AS `DispFld` FROM `equipos`\";\r\n\t\t\t$sWhereWrk = \"`NroMac` LIKE '{query_value}%'\";\r\n\t\t\t$this->Id_Hardware->LookupFilters = array();\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Id_Hardware, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Serie_Server\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Nro_Serie`, `Nro_Serie` AS `DispFld` FROM `servidor_escolar`\";\r\n\t\t\t$sWhereWrk = \"`Nro_Serie` LIKE '{query_value}%'\";\r\n\t\t\t$this->Serie_Server->LookupFilters = array(\"dx1\" => \"`Nro_Serie`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Serie_Server, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Apellido_Nombre_Solicitante\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Apellido_Nombre`, `Apellido_Nombre` AS `DispFld` FROM `referente_tecnico`\";\r\n\t\t\t$sWhereWrk = \"`Apellido_Nombre` LIKE '{query_value}%'\";\r\n\t\t\t$this->Apellido_Nombre_Solicitante->LookupFilters = array(\"dx1\" => \"`Apellido_Nombre`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Apellido_Nombre_Solicitante, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public function filter($filter_param);",
"public function filterByProductId($value) {\n $this->_filter->equalTo($this->_nameMapping['product'], $value);\n }",
"public function filter($value, $row = null) {\n $arr = explode(' ', $value);\n return $this->_filter($arr[0], $row);\n }",
"public function getFilter(){\n\t\treturn $this->_where;\n\t}",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('specification_id',$this->specification_id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('value',$this->value,true);\n\t\t$criteria->compare('equipment_id',$this->equipment_id,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function fetchFilt($filtQuery, $filtBy)\n {\n $sql = sprintf(\n 'SELECT \n * \n FROM %s\n WHERE %s LIKE ?',\n $this->getModel().'s',\n $filtBy\n );\n \n $stmt = $this->pdo->prepare($sql);\n $stmt->execute(array(\"%{$filtQuery}%\"));\n return $stmt->fetchAll(\\PDO::FETCH_OBJ);\n }",
"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 = 'filter_' . $filter;\n \t\tif (method_exists('tx_tcaobjects_divForm', $filterFunction)) {\n \t\t\t$value = tx_tcaobjects_divForm::$filterFunction($value, $property, $param1, $param2);\n \t\t}\n \t}\n \treturn $value;\n }",
"function functionFilter($value)\n\t{\n\t\treturn 'worked';\n\t}",
"function &getFilter()\n {\n // override \n }",
"protected function filter($value)\n\t{\n\t\treturn $this->wrapper->getFilter()->filter($value);\n\t}"
] | [
"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.46534154",
"0.46488225",
"0.4645443",
"0.4639694",
"0.46351746",
"0.4632445",
"0.46231005",
"0.46197158",
"0.4619632",
"0.4618187"
] | 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($field, $value) {\n if (\"$value\" !== '') {\n if ($value[0] === '=') {\n $this->where($field, '=', trim( substr($value, 1) ));\n } else {\n $wrapped = $this->table->grammar->wrap($field);\n\n switch ($value[0]) {\n case '^':\n $cond = '= 1';\n case '?':\n isset($cond) or $cond = '!= 0';\n $this->raw_where(\"LOCATE(?, $wrapped) $cond\", array($value));\n break;\n\n case '%':\n $this->raw_where(\"$wrapped LIKE ?\", array($value));\n break;\n\n default:\n $this->where($field, '=', trim($value));\n break;\n }\n }\n }\n }",
"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_kode),true);\n\t\t$criteria->compare('LOWER(programkerja_nama)',strtolower($this->programkerja_nama),true);\n\t\t$criteria->compare('LOWER(programkerja_ket)',strtolower($this->programkerja_ket),true);\n\t\tif(!empty($this->programkerja_nourut)){\n\t\t\t$criteria->addCondition('programkerja_nourut = '.$this->programkerja_nourut);\n\t\t}\n\t\tif(!empty($this->subprogramkerja_id)){\n\t\t\t$criteria->addCondition('subprogramkerja_id = '.$this->subprogramkerja_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subprogramkerja_kode)',strtolower($this->subprogramkerja_kode),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_nama)',strtolower($this->subprogramkerja_nama),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_ket)',strtolower($this->subprogramkerja_ket),true);\n\t\tif(!empty($this->subprogramkerja_nourut)){\n\t\t\t$criteria->addCondition('subprogramkerja_nourut = '.$this->subprogramkerja_nourut);\n\t\t}\n\t\tif(!empty($this->kegiatanprogram_id)){\n\t\t\t$criteria->addCondition('kegiatanprogram_id = '.$this->kegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kegiatanprogram_kode)',strtolower($this->kegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_nama)',strtolower($this->kegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_ket)',strtolower($this->kegiatanprogram_ket),true);\n\t\tif(!empty($this->kegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('kegiatanprogram_nourut = '.$this->kegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->subkegiatanprogram_id)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_id = '.$this->subkegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subkegiatanprogram_kode)',strtolower($this->subkegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_nama)',strtolower($this->subkegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_ket)',strtolower($this->subkegiatanprogram_ket),true);\n\t\tif(!empty($this->subkegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_nourut = '.$this->subkegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->rekening1debit_id)){\n\t\t\t$criteria->addCondition('rekening1debit_id = '.$this->rekening1debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1debit_kode)',strtolower($this->rekening1debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1debit_nama)',strtolower($this->rekening1debit_nama),true);\n\t\tif(!empty($this->rekening2debit_id)){\n\t\t\t$criteria->addCondition('rekening2debit_id = '.$this->rekening2debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2debit_kode)',strtolower($this->rekening2debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2debit_nama)',strtolower($this->rekening2debit_nama),true);\n\t\tif(!empty($this->rekening3debit_id)){\n\t\t\t$criteria->addCondition('rekening3debit_id = '.$this->rekening3debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3debit_kode)',strtolower($this->rekening3debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3debit_nama)',strtolower($this->rekening3debit_nama),true);\n\t\tif(!empty($this->rekening4debit_id)){\n\t\t\t$criteria->addCondition('rekening4debit_id = '.$this->rekening4debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4debit_kode)',strtolower($this->rekening4debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4debit_nama)',strtolower($this->rekening4debit_nama),true);\n\t\tif(!empty($this->rekening5debit_id)){\n\t\t\t$criteria->addCondition('rekening5debit_id = '.$this->rekening5debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5debit_kode)',strtolower($this->rekening5debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5debit_nama)',strtolower($this->rekening5debit_nama),true);\n\t\tif(!empty($this->rekening1kredit_id)){\n\t\t\t$criteria->addCondition('rekening1kredit_id = '.$this->rekening1kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1kredit_kode)',strtolower($this->rekening1kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1kredit_nama)',strtolower($this->rekening1kredit_nama),true);\n\t\tif(!empty($this->rekening2kredit_id)){\n\t\t\t$criteria->addCondition('rekening2kredit_id = '.$this->rekening2kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2kredit_kode)',strtolower($this->rekening2kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2kredit_nama)',strtolower($this->rekening2kredit_nama),true);\n\t\tif(!empty($this->rekening3kredit_id)){\n\t\t\t$criteria->addCondition('rekening3kredit_id = '.$this->rekening3kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3kredit_kode)',strtolower($this->rekening3kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3kredit_nama)',strtolower($this->rekening3kredit_nama),true);\n\t\tif(!empty($this->rekening4kredit_id)){\n\t\t\t$criteria->addCondition('rekening4kredit_id = '.$this->rekening4kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4kredit_kode)',strtolower($this->rekening4kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4kredit_nama)',strtolower($this->rekening4kredit_nama),true);\n\t\tif(!empty($this->rekening5kredit_id)){\n\t\t\t$criteria->addCondition('rekening5kredit_id = '.$this->rekening5kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5kredit_kode)',strtolower($this->rekening5kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5kredit_nama)',strtolower($this->rekening5kredit_nama),true);\n\t\t\n $criteria->compare('subkegiatanprogram_aktif', $this->subkegiatanprogram_aktif);\n $criteria->compare('programkerja_aktif', $this->programkerja_aktif);\n $criteria->compare('subprogramkerja_aktif', $this->subprogramkerja_aktif);\n $criteria->compare('kegiatanprogram_aktif', $this->kegiatanprogram_aktif);\n//$criteria->order = 'programkerja_id,subprogramkerja_id,kegiatanprogram_id,subkegiatanprogram_id';\n\t\t\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n\t}",
"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->execute(); \n $stmt->setFetchMode(\\PDO::FETCH_OBJ);\n $this->result = $stmt->fetchAll();\n return $this->result;\n \n }",
"public function filterBySpecf($specf = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($specf)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECF, $specf, $comparison);\n }",
"public function makeGridFilter($table, $grid_query) {\r\n $table_filter = array();\r\n\tif( isset($grid_query['filter']) ){\r\n\t foreach ($grid_query['filter'] as $key => $val){\r\n\t\tif (preg_match('/[a-z_]+/', $key)){\r\n\t\t $table_filter[] = \"$key LIKE '%$val%'\";\r\n\t\t}\r\n\t }\r\n\t}\r\n return $table_filter;\r\n }",
"public function get_spec_filters()\r\n\t{\r\n\t\t$filters = $this->db->query(\"\r\n\t\t\tSELECT\r\n\t\t\t\tfeature_id,\r\n\t\t\t\tname,\r\n\t\t\t\tspec_filter_default\r\n\t\t\tFROM\r\n\t\t\t\ttb_spec_feature\r\n\t\t\tWHERE\r\n\t\t\t\tspec_filter=1\r\n\t\t\tORDER BY\r\n\t\t\t\tname ASC\r\n\t\t\");\r\n\t\treturn $filters->result_array();\r\n\t}",
"public function search($params)\n {\n $query = GoodsVariations::find();\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n\n $this->load($params);\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n }\n\n $query->andFilterWhere([\n 'id' => $this->id,\n 'good_id' => $this->good_id,\n 'price' => $this->price,\n 'comission' => $this->comission,\n 'status' => $this->status,\n ]);\n\n $query->andFilterWhere(['like', 'code', $this->code])\n ->andFilterWhere(['like', 'full_name', $this->full_name])\n ->andFilterWhere(['like', 'name', $this->name])\n ->andFilterWhere(['like', 'description', $this->description])\n ->andFilterWhere(['like', 'producer_name', $this->producer_name]);\n\n return $dataProvider;\n }",
"public function filterByVolgnummer($volgnummer = null, $comparison = null)\n {\n if (is_array($volgnummer)) {\n $useMinMax = false;\n if (isset($volgnummer['min'])) {\n $this->addUsingAlias(GsIngegevenSamenstellingenPeer::VOLGNUMMER, $volgnummer['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($volgnummer['max'])) {\n $this->addUsingAlias(GsIngegevenSamenstellingenPeer::VOLGNUMMER, $volgnummer['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(GsIngegevenSamenstellingenPeer::VOLGNUMMER, $volgnummer, $comparison);\n }",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('specification_id',$this->specification_id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('value',$this->value,true);\n\t\t$criteria->compare('equipment_id',$this->equipment_id,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('G_Name',$this->G_Name,true);\n\t\t$criteria->compare('G_Mark',$this->G_Mark,true);\n\t\t$criteria->compare('G_Score',$this->G_Score);\n\t\t$criteria->compare('G_Master',$this->G_Master,true);\n\t\t$criteria->compare('G_Count',$this->G_Count);\n\t\t$criteria->compare('G_Notice',$this->G_Notice,true);\n\t\t$criteria->compare('Number',$this->Number);\n\t\t$criteria->compare('G_Type',$this->G_Type);\n\t\t$criteria->compare('G_Rival',$this->G_Rival);\n\t\t$criteria->compare('G_Union',$this->G_Union);\n\t\t$criteria->compare('G_Warehouse',$this->G_Warehouse,true);\n\t\t$criteria->compare('G_WHPassword',$this->G_WHPassword);\n\t\t$criteria->compare('G_WHMoney',$this->G_WHMoney);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function searchObatSupplierGF()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\n $criteria->with = array('obatalkes','supplier');\n\t\t$criteria->compare('LOWER(obatalkes.obatalkes_nama)', strtolower($this->obatalkes_nama),true);\n\t\t$criteria->compare('LOWER(obatalkes.obatalkes_kode)', strtolower($this->obatalkes_kodeobat),true);\n $criteria->compare('LOWER(supplier.supplier_nama)',strtolower($this->supplier_nama),true);\n\t\t$criteria->compare('LOWER(supplier.supplier_kode)',strtolower($this->supplier_kode),true);\n\t\t$criteria->compare('LOWER(supplier.supplier_alamat)',strtolower($this->supplier_alamat),true);\n\t\t$criteria->compare('t.obatalkes_id',$this->obatalkes_id);\n\t\t$criteria->compare('t.supplier_id',$this->supplier_id);\n\t\t$criteria->compare('t.obatsupplier_id',$this->obatsupplier_id);\n\t\t$criteria->compare('t.satuankecil_id',$this->satuankecil_id);\n\t\t$criteria->compare('t.satuanbesar_id',$this->satuanbesar_id);\n\t\t$criteria->compare('t.hargabelibesar',$this->hargabelibesar);\n\t\t$criteria->compare('t.diskon_persen',$this->diskon_persen);\n\t\t$criteria->compare('t.hargabelikecil',$this->hargabelikecil);\n\t\t$criteria->compare('t.ppn_persen',$this->ppn_persen);\n $criteria->order='supplier.supplier_kode ASC';\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"function getFilterQuery($key, $condition, $value, $originalValue, $type = 'normal')\r\n\t{\r\n\t\t$originalValue = trim($value, \"'\");\r\n\t\t$this->encryptFieldName($key);\r\n\t\t$str = ' ('.$key.' '.$condition.' '.$value.' OR '.$key.' LIKE \\'%\"'.$originalValue.'\"%\\')';\r\n\t\t/*\tswitch ($condition) {\r\n\t\t\tcase '=':\r\n\t\t$str = ' ('.$key.' '.$condition.' '.$value.' OR '.$key.' LIKE \\'%\"'.$originalValue.'\"%\\')';\r\n\t\tbreak;\r\n\t\tdefault:\r\n\t\t$str = \" $key $condition $value \";\r\n\t\tbreak;\r\n\t\t}*/\r\n\t\treturn $str;\r\n\t}",
"public function filterByGen($gen = null, $comparison = null)\n {\n if (is_array($gen)) {\n $useMinMax = false;\n if (isset($gen['min'])) {\n $this->addUsingAlias(AliPcTableMap::COL_GEN, $gen['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($gen['max'])) {\n $this->addUsingAlias(AliPcTableMap::COL_GEN, $gen['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliPcTableMap::COL_GEN, $gen, $comparison);\n }",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\t\t\n\t\t$criteria->with = array('partnerSystem', 'deliverySpec');\n\n\t\t$criteria->compare('t.id',$this->id);\n\t\t$criteria->compare('partner_system_id',$this->partner_system_id);\n\t\t$criteria->compare('partner_delivery_spec',$this->partner_delivery_spec,true);\n\t\t$criteria->compare('delivery_spec_id',$this->delivery_spec_id);\n\t\tif ($this->partnerSystemName) {\n\t\t\t$criteria->mergeWith(array(\n\t\t\t\t'condition'=>\"partnerSystem.name like concat('%', :partnerSystemName, '%')\",\n\t\t\t\t'params'=>array(':partnerSystemName'=>$this->partnerSystemName)\n\t\t\t));\n\t\t}\n\t\tif ($this->deliverySpecName) {\n\t\t\tif (strtolower($this->deliverySpecName) === '[not set]') {\n\t\t\t\t$criteria->mergeWith(array(\n\t\t\t\t\t'condition'=>'delivery_spec_id is null'\n\t\t\t\t));\n\t\t\t} else {\n\t\t\t\t$criteria->mergeWith(array(\n\t\t\t\t\t'condition'=>\"deliverySpec.name like concat('%', :deliverySpecName, '%')\",\n\t\t\t\t\t'params'=>array(':deliverySpecName'=>$this->deliverySpecName)\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'pagination' => array(\n\t\t\t\t'pageSize' => Yii::app()->user->getState('pageSize', Yii::app()->params['defaultPageSize']),\n\t\t\t),\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n//\t\t$criteria->with = 'componentproperty';\n//\t\tfor($i=1;$i<=20;$i++){\n//\t\t $criteria->compare('p_'.$i,$this->componentproperty->{'p_'.$i});\n// }\n// $criteria->compare('availabilid',$this->componentproperty->availabilid);\n\n $criteria->compare('partnumberid',$this->partnumberid);\n\t\t$criteria->compare('partnumber',$this->partnumber,true);\n\t\t$criteria->compare('type',$this->type);\n\t\t$criteria->compare('pathid',$this->pathid);\n\t\t$criteria->compare('updated',$this->updated,true);\n\t\t$criteria->compare('is_assembly',$this->is_assembly);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"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($builder),\n ])->execute($column, $value);\n }",
"public function filterByEmailG($emailG = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($emailG)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $emailG)) {\n $emailG = str_replace('*', '%', $emailG);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(TeamMemberPeer::EMAIL_G, $emailG, $comparison);\n }",
"public function Filter_Query()\n\t\t{\n\t\t\t\n // Temporary Filtering for replacing spaces with '+' for Google's Queries\n $this->search_query = str_replace(' ', '+', $this->search_query);\n\t\t\t\n\t\t}",
"public function filterOptionRecipientName($collection, $column)\n {\n $filterValue = $column->getFilter()->getValue();\n if (!$filterValue)\n {\n return;\n }\n\n // remove spaces\n $filterValue = $this->removeSpaces($filterValue);\n\n $collection->getSelect()\n ->where('CONCAT(recipient_firstname, recipient_lastname) LIKE ?', \"%{$filterValue}%\");\n }",
"function getFilterQuery($key, $condition, $value, $originalValue, $type = 'normal')\r\n\t{\r\n\t\t$originalValue = trim($value, \"'\");\r\n\t\t$this->encryptFieldName($key);\r\n\t\tswitch ($condition) {\r\n\t\t\tcase '=':\r\n\t\t\t\t$str = \" ($key $condition $value OR $key LIKE \\\"$originalValue',%\\\"\".\r\n\t\t\t\t\" OR $key LIKE \\\"%:'$originalValue',%\\\"\".\r\n\t\t\t\t\" OR $key LIKE \\\"%:'$originalValue'\\\"\".\r\n\t\t\t\t\" )\";\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\t$str = \" $key $condition $value \";\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\treturn $str;\r\n\t}",
"public function search($params) {\n $query = ProductVendor::find();\n\n // add conditions that should always apply here\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n\n $this->load($params);\n if (!isset($params[\"ProductVendor\"][\"compareOp\"])) {\n $operator = '';\n } else {\n $operator = $params[\"ProductVendor\"][\"compareOp\"];\n }\n if (!isset($params[\"ProductVendor\"][\"compare\"])) {\n $val = '';\n } else {\n $val = $params[\"ProductVendor\"][\"compare\"];\n }\n\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n }\n\n // grid filtering conditions\n $query->andFilterWhere([\n 'id' => $this->id,\n 'product_id' => $this->product_id,\n 'vendor_id' => $this->vendor_id,\n 'qty' => $this->qty,\n 'sku' => $this->sku,\n 'offer' => $this->offer,\n 'handling_time' => $this->handling_time,\n 'pick_up_location' => $this->pick_up_location,\n 'free_shipping' => $this->free_shipping,\n 'courier_handover' => $this->courier_handover,\n 'offer_price' => $this->offer_price,\n 'full_fill' => $this->full_fill,\n 'vendor_status' => $this->vendor_status,\n 'admin_status' => $this->admin_status,\n 'CB' => $this->CB,\n 'UB' => $this->UB,\n 'DOC' => $this->DOC,\n 'DOU' => $this->DOU,\n ]);\n\n $query->andFilterWhere(['like', 'offer_note', $this->offer_note])\n ->andFilterWhere(['like', 'conditions', $this->conditions])\n ->andFilterWhere([$operator, 'price', $val])\n ->andFilterWhere(['like', 'field1', $this->field1])\n ->andFilterWhere(['like', 'field2', $this->field2])\n ->andFilterWhere(['like', 'field3', $this->field3]);\n\n return $dataProvider;\n }",
"public function buildGrideFilters() \r\n {\r\n $request = Request::getRequest();\r\n \r\n $where = array();\r\n if (isset($request['filter']) && count($request['filter']) > 0) {\r\n foreach ($request['filter'] as $key => $value) {\r\n if ($value == '' || $value == 'all') {\r\n continue;\r\n }\r\n\r\n if (is_numeric($value)) {\r\n switch ($key) {\r\n case 'category':\r\n $where[] = 'row.id IN (SELECT product_id FROM modx_mm_p2c_link WHERE modx_id IN ('.intval($value).'))';\r\n break;\r\n default:\r\n $where[] = 'row.'.$key.' = '.$value;\r\n break;\r\n }\r\n } else {\r\n switch ($key) {\r\n case 'category':\r\n $exp = array_filter(explode(',', $value));\r\n $exp = count($exp) > 0 ? implode(',', $exp) : '';\r\n $where[] = 'row.id IN (SELECT product_id FROM modx_mm_p2c_link WHERE modx_id IN ('.$exp.'))';\r\n break;\r\n case 'create_at':\r\n $where[] = 'row.'.$key.' = \"'.$value.'\"';\r\n break;\r\n case 'closed_at':\r\n $where[] = 'row.'.$key.' = \"'.$value.'\"';\r\n break;\r\n case 'payed_at':\r\n $where[] = 'row.'.$key.' = \"'.$value.'\"';\r\n break;\r\n default:\r\n $where[] = 'row.'.$key.' Like \"%'.$value.'%\"';\r\n break;\r\n }\r\n \r\n }\r\n }\r\n }\r\n \r\n return count($where) > 0 ? ' WHERE '.implode(' AND ', $where) : '';\r\n }",
"protected function renderFilter($column)\n {\n $sFilter = $column['sFilter'];\n\n switch ($sFilter['type']) {\n case 'text' :\n $r = '<div class=\"input-group\">'\n .($this->renderFilterOperators ?\n '<div class=\"input-group-addon\"><select class=form-control>'\n .'<option value=\"\">'.$this->trans('').'</option>'\n .$this->formatOption($column['data'], '[!]', $this->trans('!'))\n .$this->formatOption($column['data'], '[=]', $this->trans('='))\n .$this->formatOption($column['data'], '[!=]', $this->trans('!='))\n .$this->formatOption($column['data'], 'reg:', $this->trans('REGEXP'))\n .$this->formatOption($column['data'], 'lenght:', $this->trans('Lenght'))\n .'</select></div>' : '')\n .'<input class=\"form-control sSearch\" type=\"text\" value=\"'.(isset($column['data']) && isset($this->filters[$column['data']]) ? preg_replace('/^(\\[(!|<=|>=|=|<|>|<>|!=)\\]|reg:|in:|lenght:)/i', '', $this->filters[$column['data']]) : '').'\">'\n .'</div></div>';\n\n return $r;\n case 'number' : case 'date' :\n $r = '<div class=\"input-group\">'\n .($this->renderFilterOperators ?\n '<div class=\"input-group-addon\"><select class=form-control>'\n .'<option value=\"\">'.$this->trans('').'</option>'\n .$this->formatOption($column['data'], '[=]', $this->trans('='))\n .$this->formatOption($column['data'], '[!=]', $this->trans('!='))\n .$this->formatOption($column['data'], '[<=]', $this->trans('<='))\n .$this->formatOption($column['data'], '[<]', $this->trans('<'))\n .$this->formatOption($column['data'], '[>=]', $this->trans('>='))\n .$this->formatOption($column['data'], '[>]', $this->trans('>'))\n .$this->formatOption($column['data'], 'in:', $this->trans('IN(int,int,int...)'))\n .$this->formatOption($column['data'], 'reg:', $this->trans('REGEXP'))\n .'</select></div>' : '')\n .'<input class=\"form-control sSearch\" type=\"text\" value=\"'.(isset($this->filters[$column['data']]) ? preg_replace('/^(\\[(<=|>=|=|<|>|<>|!=)\\]|reg:|in:)/i', '', $this->filters[$column['data']]) : '').'\">'\n .'</div></div>';\n\n return $r;\n case 'select' :\n $o = '';\n if (isset($sFilter['options'])) {\n $sFilter['values'] = $sFilter['options'];\n }\n if (isset($sFilter['values'])) {\n foreach ($sFilter['values'] as $k => $v) {\n $o .= '<option value=\"'.$k.'\"'.(isset($column['data']) && isset($this->filters[$column['data']]) && $this->filters[$column['data']] == $k ? ' selected' : '').'>'.$v.'</option>';\n }\n }\n /** Auto-generate options if the data are loaded **/\n elseif (isset($this->jsInitParameters['data'])) {\n // TODO\n }\n\n return '<select class=\"form-control sSearch\"><option value=\"\"></option>'.$o.'</select>';\n }\n }",
"public function getWhere(): string\n {\n return $this->grupQueryFilters($this->mergeFilters());\n }",
"function getListFilter($col,$key) {\n\t\t\tif($col == 'unit') {\n\t\t\t\tglobal $conn, $conf;\n\t\t\t\trequire_once($conf['gate_dir'].'model/m_unit.php');\n\t\t\t\t\n\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\n\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t}\n\t\t\tif($col == 'tahun')\n\t\t\t\treturn \"substring(cast(cast(r.tglusulan as date) as varchar),1,4) = '$key'\";\n\t\t\tif($col == 'input'){\n\t\t\t\tif(!empty($key)){\n\t\t\t\t\tif($key == 'Y')\n\t\t\t\t\t\treturn \"r.isinput = 'Y'\";\n\t\t\t\t\telse\n\t\t\t\t\t\treturn \"(r.isinput = 'T' or r.isinput is null)\";\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"function setSearchFilter($alias=null,$prop_name=null,$prop_value=null,\n $search_type='=') {\n\tif (!($this->_searchEnabled === true)) { return false; }\n\tif (!$this->isProperty($alias,$prop_name)) {\n\t\treturn $this->_searchDisable();\n\t\t}\n\tif (!is_array($this->_searchFilters)) {\n\t\treturn $this->_searchDisable();\n\t\t}\n\t$q = $this->getPropertyQuoted($alias,$prop_name);\n\tif (!is_bool($q)) { return $this->_searchDisable(); }\n\tif ($this->getPropertyIsDate($alias,$prop_name) === true) {\n\t\tif ($prop_value == 'now()') { $q = false; }\n\t\t}\n\t($q) ? $d = '\"' : $d = '';\n\tswitch($search_type) {\n\t\tcase '!=':\n\t\tcase '=':\n\t\tcase '>':\n\t\tcase '<':\n\t\tbreak;\n\t\tcase 'not in':\n\t\tcase 'in':\n\t\t\tif (!is_array($prop_value) or count($prop_value) < 1) {\n\t\t\t\treturn $this->_searchDisable();\n\t\t\t\t}\n\t\tbreak;\n\t\tcase 'not like':\n\t\tcase 'like':\n\t\t\tif (!$q) { return $this->_searchDisable(); }\n\t\tbreak;\n\t\t}\n\tif ($search_type == 'in' or $search_type == 'not in') {\n\t\tfor($j=0; $j < count($prop_value); $j++) {\n\t\t\t$prop_value[$j] = $d . addslashes($prop_value[$j]) . $d;\n\t\t\t}\n\t\t$this->_searchFilters[] = $alias . '.'\n\t\t. $this->getPropertyField($alias,$prop_name)\n\t\t. ' ' . $search_type . '(' . $d . implode(',',$prop_value) . $d . ')';\n\t\t} else {\n\t\t$this->_searchFilters[] = $alias . '.'\n\t\t. $this->getPropertyField($alias,$prop_name)\n\t\t. ' ' . $search_type . ' ' . $d . addslashes($prop_value) . $d;\n\t\t}\n\treturn true;\n\t}",
"function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once($conf['gate_dir'].'model/m_unit.php');\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periodebobot' :\n\t\t\t\t\treturn \"f.kodeperiodebobot='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periode' :\n\t\t\t\t\treturn \"n.kodeperiode='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periodetim' :\n\t\t\t\t\treturn \"kodeperiode='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'penilai' :\n\t\t\t\t\treturn \"idpenilai='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"private function getFiltered( $data )\n {\n $field = null;\n\n if( $data['filter'] === 'Org' )\n {\n $field = 'O.Symbol';\n }\n else\n {\n $field = 'E.' . $data['filter'];\n }\n\n return $this->db->query_DB(\"SELECT E.ID, E.Name, E.Overview, E.Date, E.Start, E.End, E.Location, E.Address, O.Symbol AS Org\n FROM Events E, Orgs O\n WHERE E.Date > '\" . date('Y-m-d') . \"'\n AND \" . $field . \" LIKE '%\" . $data['search'] . \"%'\n AND E.Approved = 1\n AND E.Deleted = 0\n AND E.Org_ID = O.ID\n ORDER BY E.Date, E.Start\n \");\n }"
] | [
"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.4631615",
"0.4622687",
"0.45943996",
"0.45808065",
"0.457873",
"0.45529497",
"0.45497346",
"0.45431954",
"0.45414695",
"0.4540618"
] | 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 }",
"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($builder),\n ])->execute($column, $value);\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(\"/^\\*/\", $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}",
"protected function renderFilter($column)\n {\n $sFilter = $column['sFilter'];\n\n switch ($sFilter['type']) {\n case 'text' :\n $r = '<div class=\"input-group\">'\n .($this->renderFilterOperators ?\n '<div class=\"input-group-addon\"><select class=form-control>'\n .'<option value=\"\">'.$this->trans('').'</option>'\n .$this->formatOption($column['data'], '[!]', $this->trans('!'))\n .$this->formatOption($column['data'], '[=]', $this->trans('='))\n .$this->formatOption($column['data'], '[!=]', $this->trans('!='))\n .$this->formatOption($column['data'], 'reg:', $this->trans('REGEXP'))\n .$this->formatOption($column['data'], 'lenght:', $this->trans('Lenght'))\n .'</select></div>' : '')\n .'<input class=\"form-control sSearch\" type=\"text\" value=\"'.(isset($column['data']) && isset($this->filters[$column['data']]) ? preg_replace('/^(\\[(!|<=|>=|=|<|>|<>|!=)\\]|reg:|in:|lenght:)/i', '', $this->filters[$column['data']]) : '').'\">'\n .'</div></div>';\n\n return $r;\n case 'number' : case 'date' :\n $r = '<div class=\"input-group\">'\n .($this->renderFilterOperators ?\n '<div class=\"input-group-addon\"><select class=form-control>'\n .'<option value=\"\">'.$this->trans('').'</option>'\n .$this->formatOption($column['data'], '[=]', $this->trans('='))\n .$this->formatOption($column['data'], '[!=]', $this->trans('!='))\n .$this->formatOption($column['data'], '[<=]', $this->trans('<='))\n .$this->formatOption($column['data'], '[<]', $this->trans('<'))\n .$this->formatOption($column['data'], '[>=]', $this->trans('>='))\n .$this->formatOption($column['data'], '[>]', $this->trans('>'))\n .$this->formatOption($column['data'], 'in:', $this->trans('IN(int,int,int...)'))\n .$this->formatOption($column['data'], 'reg:', $this->trans('REGEXP'))\n .'</select></div>' : '')\n .'<input class=\"form-control sSearch\" type=\"text\" value=\"'.(isset($this->filters[$column['data']]) ? preg_replace('/^(\\[(<=|>=|=|<|>|<>|!=)\\]|reg:|in:)/i', '', $this->filters[$column['data']]) : '').'\">'\n .'</div></div>';\n\n return $r;\n case 'select' :\n $o = '';\n if (isset($sFilter['options'])) {\n $sFilter['values'] = $sFilter['options'];\n }\n if (isset($sFilter['values'])) {\n foreach ($sFilter['values'] as $k => $v) {\n $o .= '<option value=\"'.$k.'\"'.(isset($column['data']) && isset($this->filters[$column['data']]) && $this->filters[$column['data']] == $k ? ' selected' : '').'>'.$v.'</option>';\n }\n }\n /** Auto-generate options if the data are loaded **/\n elseif (isset($this->jsInitParameters['data'])) {\n // TODO\n }\n\n return '<select class=\"form-control sSearch\"><option value=\"\"></option>'.$o.'</select>';\n }\n }",
"public function filter(string $column, string $operator, $value, int $perPage)\n {\n return $this->model->where($column, $operator, $value)->paginate($perPage);\n }",
"function filterStr($field, $value) {\n if (\"$value\" !== '') {\n if ($value[0] === '=') {\n $this->where($field, '=', trim( substr($value, 1) ));\n } else {\n $wrapped = $this->table->grammar->wrap($field);\n\n switch ($value[0]) {\n case '^':\n $cond = '= 1';\n case '?':\n isset($cond) or $cond = '!= 0';\n $this->raw_where(\"LOCATE(?, $wrapped) $cond\", array($value));\n break;\n\n case '%':\n $this->raw_where(\"$wrapped LIKE ?\", array($value));\n break;\n\n default:\n $this->where($field, '=', trim($value));\n break;\n }\n }\n }\n }",
"public function scopeFilteredByString($query, $page, $column, $value){\n return self::where($column, \"like\", \"%$value%\")\n ->orderBy(\"created_at\", \"desc\")\n ->offset(self::PER_PAGE * ($page - 1))\n ->limit(self::PER_PAGE);\n }",
"public function like($column, $value) { return $this->addCondition($column, $value, Criterion::LIKE); }",
"public function filterByChTotal($chTotal = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($chTotal)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $chTotal)) {\n $chTotal = str_replace('*', '%', $chTotal);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(TbalunoImportPeer::CH_TOTAL, $chTotal, $comparison);\n }",
"public function filter($value);",
"public function searchProduk()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t $criteria = new CDbCriteria;\n\t\t $criteria->compare('nm_produk',$this->nm_produk);\n$criteria->compare('kd_produk',$this->kd_produk);\n$criteria->compare('stock',$this->stock);\n\n\t\t$model = Produk::model()->find($criteria);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"function searchFumetti($p, $ordine){\n\t//$p = htmlspecialchars($p, ENT_QUOTES);\n\t$query = \"SELECT *, nome as `nomeFum` FROM `Fumetti` WHERE `Fumetti`.`nome` LIKE '%$p%' OR `volume` like '$p' ORDER BY '$ordine' \";\n\treturn eseguiQuery($query);\n\n}",
"public function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n \n // clear session filters\n TSession::setValue('controle_geracaoForm_filter_professor_id', NULL);\n TSession::setValue('controle_geracaoForm_filter_aulas_saldo', NULL);\n TSession::setValue('controle_geracaoForm_filter_aulas_pagas', NULL);\n TSession::setValue('controle_geracaoForm_filter_data_aula', NULL);\n TSession::setValue('controle_geracaoForm_filter_historico_pagamento', NULL);\n\n if (isset($data->professor_id) AND ($data->professor_id)) {\n $filter = new TFilter('professor_id', 'like', \"%{$data->professor_id}%\"); // create the filter\n TSession::setValue('controle_geracaoForm_filter_professor_id', $filter); // stores the filter in the session\n }\n\n\n if (isset($data->aulas_saldo) AND ($data->aulas_saldo)) {\n $filter = new TFilter('aulas_saldo', 'like', \"%{$data->aulas_saldo}%\"); // create the filter\n TSession::setValue('controle_geracaoForm_filter_aulas_saldo', $filter); // stores the filter in the session\n }\n\n\n if (isset($data->aulas_pagas) AND ($data->aulas_pagas)) {\n $filter = new TFilter('aulas_pagas', 'like', \"%{$data->aulas_pagas}%\"); // create the filter\n TSession::setValue('controle_geracaoForm_filter_aulas_pagas', $filter); // stores the filter in the session\n }\n\n\n if (isset($data->data_aula) AND ($data->data_aula)) {\n $filter = new TFilter('data_aula', 'like', \"%{$data->data_aula}%\"); // create the filter\n TSession::setValue('controle_geracaoForm_filter_data_aula', $filter); // stores the filter in the session\n }\n\n\n if (isset($data->historico_pagamento) AND ($data->historico_pagamento)) {\n $filter = new TFilter('historico_pagamento', 'like', \"%{$data->historico_pagamento}%\"); // create the filter\n TSession::setValue('controle_geracaoForm_filter_historico_pagamento', $filter); // stores the filter in the session\n }\n\n \n // fill the form with data again\n $this->form->setData($data);\n \n // keep the search data in the session\n TSession::setValue('professorcontrole_aula_filter_data', $data);\n \n $param=array();\n $param['offset'] =0;\n $param['first_page']=1;\n $this->onReload($param);\n }",
"public function filterOptionRecipientName($collection, $column)\n {\n $filterValue = $column->getFilter()->getValue();\n if (!$filterValue)\n {\n return;\n }\n\n // remove spaces\n $filterValue = $this->removeSpaces($filterValue);\n\n $collection->getSelect()\n ->where('CONCAT(recipient_firstname, recipient_lastname) LIKE ?', \"%{$filterValue}%\");\n }",
"public static function brokerByColumnSearch($column = '', $value = '')\n {\n return false;\n }",
"function getListFilter($col,$key) {\n\t\t\tif($col == 'unit') {\n\t\t\t\tglobal $conn, $conf;\n\t\t\t\trequire_once($conf['gate_dir'].'model/m_unit.php');\n\t\t\t\t\n\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\n\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t}\n\t\t\tif($col == 'tahun')\n\t\t\t\treturn \"substring(cast(cast(r.tglusulan as date) as varchar),1,4) = '$key'\";\n\t\t\tif($col == 'input'){\n\t\t\t\tif(!empty($key)){\n\t\t\t\t\tif($key == 'Y')\n\t\t\t\t\t\treturn \"r.isinput = 'Y'\";\n\t\t\t\t\telse\n\t\t\t\t\t\treturn \"(r.isinput = 'T' or r.isinput is null)\";\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public function filter($value, $row = null) {\n $arr = explode(' ', $value);\n return $this->_filter($arr[0], $row);\n }",
"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_kode),true);\n\t\t$criteria->compare('LOWER(programkerja_nama)',strtolower($this->programkerja_nama),true);\n\t\t$criteria->compare('LOWER(programkerja_ket)',strtolower($this->programkerja_ket),true);\n\t\tif(!empty($this->programkerja_nourut)){\n\t\t\t$criteria->addCondition('programkerja_nourut = '.$this->programkerja_nourut);\n\t\t}\n\t\tif(!empty($this->subprogramkerja_id)){\n\t\t\t$criteria->addCondition('subprogramkerja_id = '.$this->subprogramkerja_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subprogramkerja_kode)',strtolower($this->subprogramkerja_kode),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_nama)',strtolower($this->subprogramkerja_nama),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_ket)',strtolower($this->subprogramkerja_ket),true);\n\t\tif(!empty($this->subprogramkerja_nourut)){\n\t\t\t$criteria->addCondition('subprogramkerja_nourut = '.$this->subprogramkerja_nourut);\n\t\t}\n\t\tif(!empty($this->kegiatanprogram_id)){\n\t\t\t$criteria->addCondition('kegiatanprogram_id = '.$this->kegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kegiatanprogram_kode)',strtolower($this->kegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_nama)',strtolower($this->kegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_ket)',strtolower($this->kegiatanprogram_ket),true);\n\t\tif(!empty($this->kegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('kegiatanprogram_nourut = '.$this->kegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->subkegiatanprogram_id)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_id = '.$this->subkegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subkegiatanprogram_kode)',strtolower($this->subkegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_nama)',strtolower($this->subkegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_ket)',strtolower($this->subkegiatanprogram_ket),true);\n\t\tif(!empty($this->subkegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_nourut = '.$this->subkegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->rekening1debit_id)){\n\t\t\t$criteria->addCondition('rekening1debit_id = '.$this->rekening1debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1debit_kode)',strtolower($this->rekening1debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1debit_nama)',strtolower($this->rekening1debit_nama),true);\n\t\tif(!empty($this->rekening2debit_id)){\n\t\t\t$criteria->addCondition('rekening2debit_id = '.$this->rekening2debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2debit_kode)',strtolower($this->rekening2debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2debit_nama)',strtolower($this->rekening2debit_nama),true);\n\t\tif(!empty($this->rekening3debit_id)){\n\t\t\t$criteria->addCondition('rekening3debit_id = '.$this->rekening3debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3debit_kode)',strtolower($this->rekening3debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3debit_nama)',strtolower($this->rekening3debit_nama),true);\n\t\tif(!empty($this->rekening4debit_id)){\n\t\t\t$criteria->addCondition('rekening4debit_id = '.$this->rekening4debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4debit_kode)',strtolower($this->rekening4debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4debit_nama)',strtolower($this->rekening4debit_nama),true);\n\t\tif(!empty($this->rekening5debit_id)){\n\t\t\t$criteria->addCondition('rekening5debit_id = '.$this->rekening5debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5debit_kode)',strtolower($this->rekening5debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5debit_nama)',strtolower($this->rekening5debit_nama),true);\n\t\tif(!empty($this->rekening1kredit_id)){\n\t\t\t$criteria->addCondition('rekening1kredit_id = '.$this->rekening1kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1kredit_kode)',strtolower($this->rekening1kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1kredit_nama)',strtolower($this->rekening1kredit_nama),true);\n\t\tif(!empty($this->rekening2kredit_id)){\n\t\t\t$criteria->addCondition('rekening2kredit_id = '.$this->rekening2kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2kredit_kode)',strtolower($this->rekening2kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2kredit_nama)',strtolower($this->rekening2kredit_nama),true);\n\t\tif(!empty($this->rekening3kredit_id)){\n\t\t\t$criteria->addCondition('rekening3kredit_id = '.$this->rekening3kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3kredit_kode)',strtolower($this->rekening3kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3kredit_nama)',strtolower($this->rekening3kredit_nama),true);\n\t\tif(!empty($this->rekening4kredit_id)){\n\t\t\t$criteria->addCondition('rekening4kredit_id = '.$this->rekening4kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4kredit_kode)',strtolower($this->rekening4kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4kredit_nama)',strtolower($this->rekening4kredit_nama),true);\n\t\tif(!empty($this->rekening5kredit_id)){\n\t\t\t$criteria->addCondition('rekening5kredit_id = '.$this->rekening5kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5kredit_kode)',strtolower($this->rekening5kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5kredit_nama)',strtolower($this->rekening5kredit_nama),true);\n\t\t\n $criteria->compare('subkegiatanprogram_aktif', $this->subkegiatanprogram_aktif);\n $criteria->compare('programkerja_aktif', $this->programkerja_aktif);\n $criteria->compare('subprogramkerja_aktif', $this->subprogramkerja_aktif);\n $criteria->compare('kegiatanprogram_aktif', $this->kegiatanprogram_aktif);\n//$criteria->order = 'programkerja_id,subprogramkerja_id,kegiatanprogram_id,subkegiatanprogram_id';\n\t\t\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n\t}",
"public static function apply(Builder $builder, $value) {\n \n return $builder->whereRaw('LOWER(`products`.`name`) LIKE ? ',[trim(strtolower($value)).'%']);\n }",
"private static function sql_filter($filter,$value) {\n\n\t\t$filter_sql = '';\n\t\t//tag\n\t\tif ($filter == 'tag' && (\n\t\t $_SESSION['browse']['type'] == 'song'\n\t\t || $_SESSION['browse']['type'] == 'artist'\n\t\t || $_SESSION['browse']['type'] == 'album'\n\t\t )) {\n\t\t if (is_array($value) && sizeof($value))\n\t\t $vals = '(' . implode(',',$value) . ')';\n\t\t else if (is_integer($value))\n\t\t $vals = '('.$value.')';\n\t\t else return '';\n\t\t $or_sql = '';\n\t\t $object_type = $_SESSION['browse']['type'];\n\t\t if ($object_type == 'artist' || $object_type == 'album')\n\t\t $or_sql=\" or (tag_map.object_id = song.id AND\n\t\t tag_map.object_type='song' )\";\n\t\t if ($object_type == 'artist')\n\t\t $or_sql.= \" or (tag_map.object_id = album.id AND\n\t\t tag_map.object_type='album' )\";\n\t\t $filter_sql = \" `tags`.`id` in $vals AND\n\t\t (($object_type.id = `tag_map`.`object_id` AND tag_map.object_type='$object_type') $or_sql) AND \";\n\t\t }\n\t\tif ($_SESSION['browse']['type'] == 'song') {\n\t\t\tswitch($filter) {\n\t\t\t\tcase 'alpha_match':\n\t\t\t\t\t$filter_sql = \" `song`.`title` LIKE '\" . Dba::escape($value) . \"%' AND \";\n\t\t\t\tbreak;\n\t\t\t\tcase 'unplayed':\n\t\t\t\t\t$filter_sql = \" `song`.`played`='0' AND \";\n\t\t\t\tbreak;\n\t\t\t case 'album':\n\t\t\t\t if ($value)\n\t\t\t\t $filter_sql = \" `album`.`id` = '\".\n\t\t\t\t Dba::escape($value) . \"' AND \";\n\t\t\t\tbreak;\n\t\t\t\tcase 'artist':\n\t\t\t\t if ($value)\n\t\t\t\t $filter_sql = \" `artist`.`id` = '\".\n\t\t\t\t Dba::escape($value) . \"' AND \";\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// Rien a faire\n\t\t\t\tbreak;\n\t\t\t} // end list of sqlable filters\n\t\t} // if it is a song\n\t\telseif ($_SESSION['browse']['type'] == 'album') {\n\t\t\tswitch($filter) {\n\t\t\t\tcase 'alpha_match':\n\t\t\t\t\t$filter_sql = \" `album`.`name` LIKE '\" . Dba::escape($value) . \"%' AND \";\n\t\t\t\tbreak;\n\t\t\t\tcase 'min_count':\n\n\t\t\t\tbreak;\n\t\t\t case 'artist':\n\t\t\t\t if ($value)\n\t\t\t\t $filter_sql = \" `artist`.`id` = '\".\n\t\t\t\t Dba::escape($value) . \"' AND \";\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// Rien a faire\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} // end album\n\t\telseif ($_SESSION['browse']['type'] == 'artist') {\n\t\t\tswitch($filter) {\n\t\t\t\tcase 'alpha_match':\n\t\t\t\t\t$filter_sql = \" `artist`.`name` LIKE '\" . Dba::escape($value) . \"%' AND \";\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// Rien a faire\n\t\t\t\tbreak;\n\t\t\t} // end filter\n\t\t} // end artist\n\t\telseif ($_SESSION['browse']['type'] == 'genre') {\n\t\t\tswitch ($filter) {\n\t\t\t\tcase 'alpha_match':\n\t\t\t\t\t$filter_sql = \" `genre`.`name` LIKE '\" . Dba::escape($value) . \"%' AND \";\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// Rien a faire\n\t\t\t\tbreak;\n\t\t\t} // end filter\n\t\t} // end if genre\n\t\telseif ($_SESSION['browse']['type'] == 'live_stream') {\n\t\t\tswitch ($filter) {\n\t\t\t\tcase 'alpha_match':\n\t\t\t\t\t$filter_sql = \" `live_stream`.`name` LIKE '\" . Dba::escape($value) . \"%' AND \";\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// Rien a faire\n\t\t\t\tbreak;\n\t\t\t} // end filter\n\t\t} // end live_stream\n\t\telseif ($_SESSION['browse']['type'] == 'playlist') {\n\t\t\tswitch ($filter) {\n\t\t\t\tcase 'alpha_match':\n\t\t\t\t\t$filter_sql = \" `playlist`.`name` LIKE '\" . Dba::escape($value) . \"%' AND \";\n\t\t\t\tbreak;\n\t\t\t\tcase 'playlist_type':\n\t\t\t\t\t$user_id = intval($GLOBALS['user']->id);\n\t\t\t\t\t$filter_sql = \" (`playlist`.`type` = 'public' OR `playlist`.`user`='$user_id') AND \";\n\t\t\t\tbreak;\n\t\t\t\tdefault;\n\t\t\t\t\t// Rien a faire\n\t\t\t\tbreak;\n\t\t\t} // end filter\n\t\t} // end playlist\n\n\t\treturn $filter_sql;\n\n\t}",
"abstract public function filter($value);",
"public function like(string $column, mixed $value, string $type = Condition::AND): CriteriaInterface;",
"protected function filter($value)\n\t{\n\t\treturn $this->wrapper->getFilter()->filter($value);\n\t}",
"public function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n $filters = [];\n\n TSession::setValue(__CLASS__.'_filter_data', NULL);\n TSession::setValue(__CLASS__.'_filters', NULL);\n\n if (isset($data->id) AND ( (is_scalar($data->id) AND $data->id !== '') OR (is_array($data->id) AND (!empty($data->id)) )) )\n {\n\n $filters[] = new TFilter('id', '=', $data->id);// create the filter \n }\n\n if (isset($data->editora_id) AND ( (is_scalar($data->editora_id) AND $data->editora_id !== '') OR (is_array($data->editora_id) AND (!empty($data->editora_id)) )) )\n {\n\n $filters[] = new TFilter('editora_id', '=', $data->editora_id);// create the filter \n }\n\n if (isset($data->titulo) AND ( (is_scalar($data->titulo) AND $data->titulo !== '') OR (is_array($data->titulo) AND (!empty($data->titulo)) )) )\n {\n\n $filters[] = new TFilter('titulo', 'like', \"%{$data->titulo}%\");// create the filter \n }\n\n if (isset($data->autor_principal_id) AND ( (is_scalar($data->autor_principal_id) AND $data->autor_principal_id !== '') OR (is_array($data->autor_principal_id) AND (!empty($data->autor_principal_id)) )) )\n {\n\n $filters[] = new TFilter('autor_principal_id', '=', $data->autor_principal_id);// create the filter \n }\n\n if (isset($data->colecao_id) AND ( (is_scalar($data->colecao_id) AND $data->colecao_id !== '') OR (is_array($data->colecao_id) AND (!empty($data->colecao_id)) )) )\n {\n\n $filters[] = new TFilter('colecao_id', '=', $data->colecao_id);// create the filter \n }\n\n if (isset($data->classificacao_id) AND ( (is_scalar($data->classificacao_id) AND $data->classificacao_id !== '') OR (is_array($data->classificacao_id) AND (!empty($data->classificacao_id)) )) )\n {\n\n $filters[] = new TFilter('classificacao_id', '=', $data->classificacao_id);// create the filter \n }\n\n $param = array();\n $param['offset'] = 0;\n $param['first_page'] = 1;\n\n // fill the form with data again\n $this->form->setData($data);\n\n // keep the search data in the session\n TSession::setValue(__CLASS__.'_filter_data', $data);\n TSession::setValue(__CLASS__.'_filters', $filters);\n\n $this->onReload($param);\n }",
"public function filterByProductId($value) {\n $this->_filter->equalTo($this->_nameMapping['product'], $value);\n }",
"public function search() {\n\t\t\t$Recherches = $this->Components->load( 'WebrsaRecherchesFichesprescriptions93' );\n\t\t\t$Recherches->search();\n\t\t}",
"public function filter($value) {\r\n \r\n $value = parent::filter($value);\r\n return strtolower((string) $value); // zend library doesn't lowercase so we have to do it \r\n }",
"function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once($conf['gate_dir'].'model/m_unit.php');\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periodebobot' :\n\t\t\t\t\treturn \"f.kodeperiodebobot='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periode' :\n\t\t\t\t\treturn \"n.kodeperiode='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periodetim' :\n\t\t\t\t\treturn \"kodeperiode='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'penilai' :\n\t\t\t\t\treturn \"idpenilai='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"public function filterFieldByString($field, $filter)\r\n {\n if ($filter)\r\n {\r\n $filters = explode('|', Stringkit::strtolower($filter));\n $filters = array_diff($filters, array(''));\n foreach ($filters as $filter)\r\n {\r\n $this->addWhere(sprintf('LOWER(%s) LIKE \"%%%s%%\"', $field, addslashes($filter)));\r\n }\r\n }\r\n \r\n return $this;\r\n }",
"public function searchById(chofer $chofer) {\n try {\n return $this->choferDao->searchById($chofer);\n } catch (Exception $e) {\n throw $e;\n }\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.45602104",
"0.45467275",
"0.45441857",
"0.45416006",
"0.4534828",
"0.45209506",
"0.45005032",
"0.4494487",
"0.44923982",
"0.44870147"
] | 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_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 listingDescription was\n //probably already called for the same text.\n\n return $desc;\n }",
"public function setLongDescription( $lang, $desc ) {\n $desc = str_replace('&', '&', $desc);\n if(!isset( $this->_ldescs ))\n $this->_ldescs = $this->_entity->addChild('longDescriptions');\n\n $lde = $this->_ldescs->addChild('longDescription', $desc );\n $lde->addAttribute('language', $lang );\n\t return $lde;\t// maybe we want to add something later ;)\n }",
"public function findProductWhereDescLorem(){\n $q = $this->createQueryBuilder('prod')\n ->where('prod.description = :lorem')\n ->setParameter('lorem','lorem')\n ->getQuery();\n\n return $q->getResult();\n }",
"public function longText($column)\n {\n //longText\n return $this->addColumnNew($column, [\n\t\t 'type' => defined('Column::TYPE_LONGTEXT') ? Column::TYPE_LONGTEXT : Column::TYPE_TEXT,\n \t//'type' => 24\n\t\t]);\n }",
"public function searchPoItemDescAction($desc, $minDate, $maxDate)\n {\n\t$filterDate = PoManagerControllerUtility::convertDateFilter($minDate, $maxDate);\n\n\t$repository = $this->getDoctrine()\n\t ->getManager()\n\t\t\t ->getRepository('AchPoManagerBundle:PoItem');\n\t$poItems = $repository->findDescription($desc, $filterDate);\n\t\n\t$request = $this->getRequest();\n\n\treturn $this->generateResponse($request, $poItems);\n\t\n }",
"public function getLongDescAttribute($value)\n {\n if(!is_null($value) && !empty($value))\n {\n return $value;\n }\n return MISSING_DESC_TEXT;\n }",
"public function getLong_Description() {\n return $this->long_description;\n }",
"public function getStrLongDescription()\n {\n return \"\";\n }",
"public function setMaxDescriptionLength($maxDescriptionLength);",
"public function getLongName();",
"public function getStrLongDescription() {\n return uniStrTrim($this->strComment, 120);\n }",
"protected function applyDescriptionFilter(string $value)\n {\n $this->excludeKeyWords('description',$value);\n }",
"public function getXsiTypeName() {\n return \"LongValue\";\n }",
"public static function longText($name) {\n\t\treturn new ColumnDefinition('LONGTEXT', $name);\n\t}",
"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::DESCRIPTION, $description, Criteria::EQUAL);\n\t\t}\n\t}",
"public function setLongValue($var)\n {\n GPBUtil::checkInt64($var);\n $this->writeOneof(6, $var);\n\n return $this;\n }",
"public function getLongName() {\n return $this->longName;\n }",
"public function core_overload_geoFilter_listingShortenDescription($vars)\n {\n //$vars is an associative array of all variables passed to the original function, not including\n //object vars that can be retrieved using the get_common_vars.php file.\n $vars = array (\n 'description' => $description, //The text to clean up\n 'len' => $len, //The length that the description needs to be shortened to.\n );\n\n //Note that the normal listingDescription function would have been called\n //for the text before this listingShortenDescription was called.\n\n //If you need to use the database object (or any other object retrieved using get_common_vars.php file),\n //do something like this:\n $db = true;\n include(GEO_BASE_DIR . 'get_common_vars.php');\n //Now, $db is an instance of the database access object.\n\n //we are not really going to overload the function, so return\n //geoAddon::NO_OVERLOAD to let the function perform as normal.\n return geoAddon::NO_OVERLOAD;\n }",
"public function getLongName()\n {\n return $this->longName;\n }",
"public function setVlDesc($vl_desc)\n {\n $this->vl_desc = $vl_desc;\n\n return $this;\n }",
"public function testLongNameWithNoValueExists() {\n $argv = explode(\" \", './test.php --help');\n\n $argFilter = new \\Clapp\\CommandArgumentFilter($this->defaultDefinition, $argv);\n\n $this->assertTrue($argFilter->getParam('h'));\n $this->assertTrue($argFilter->getParam('help'));\n\n }",
"public function setDescription($value){\n return $this->setParameter('description', $value);\n }",
"public function setDescription($desc)\n {\n $this->_description = (string)$desc;\n return $this;\n }",
"public function getDescrAttribute()\n {\n return Str::limit($this->description, 30);\n }",
"public function setJobDesc($jobDesc)\n\t{\n\t $this->jobDesc = $jobDesc;\n\t}",
"public function filter_wpseo_twitter_description($metadesc){\n\t\t \n\t\t\treturn $metadesc;\n\t\t}",
"public function tips($long = false);",
"public function setDescription($desc)\n\t{\n\t\t$this->description = $desc;\n\t}",
"public function filter_wpseo_metadesc_length_reason($meta_length_reason, $post){\n\t\t\n\t\t\treturn $meta_length_reason;\n\t\t}"
] | [
"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.4676758",
"0.4659467",
"0.46148774",
"0.46039742",
"0.45901",
"0.45802107",
"0.4560423",
"0.4545378",
"0.45372933",
"0.45119578"
] | 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->addUsingAlias(OrdrhedTableMap::COL_SP3NAME, $sp3name, $comparison);\n }",
"public function filterByName($name)\n {\n $this->filter[] = $this->field('name').' = '.$this->quote($name);\n return $this;\n }",
"public function scopeName($query,$name){\n $query->where('name','like',\"%$name%\");\n\n }",
"public function getFilter(string $name): StringFilterInterface;",
"public function nameSearch($name): self\n {\n return $this->andFilterWhere(['like', 'users.name', $name]);\n }",
"final public function filter($name)\n {\n if ($this->_input_filter !== null) {\n return $this->_input_filter->filter($name);\n }\n\n App::getInstance()->includeFile('Sonic/InputFilter.php');\n $this->_input_filter = new InputFilter($this->request());\n return $this->_input_filter->filter($name);\n }",
"public function scopeName($query, $name){\n $query->where('name', 'LIKE', \"%$name%\");\n }",
"function search($name)\n {\n return mysqli_query($this->conn,\n \"SELECT wine.*,category.* \n FROM `wine` \n INNER JOIN `category` ON category.category_id = wine.categoryid \n WHERE `name` like '%$name%' \n or `category_name` like '%$name%'\");\n }",
"public static function getAccessibleFiltersByColumnName($name)\n {\n \n return self::getAccessibleFiltersByColumns()[$name];\n }",
"public function filterByName($name = null)\n\t{\n\t\tif(preg_match('/[\\%\\*]/', $name)) {\n\t\t\treturn $this->addUsingAlias(cre8ContentTypePeer::NAME, str_replace('*', '%', $name), Criteria::LIKE);\n\t\t} else {\n\t\t\treturn $this->addUsingAlias(cre8ContentTypePeer::NAME, $name, Criteria::EQUAL);\n\t\t}\n\t}",
"public function filterByName($name = null, $comparison = Criteria::EQUAL)\n\t{\n\t\tif (is_array($name)) {\n\t\t\tif ($comparison == Criteria::EQUAL) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t} elseif (preg_match('/[\\%\\*]/', $name)) {\n\t\t\t$name = str_replace('*', '%', $name);\n\t\t\tif ($comparison == Criteria::EQUAL) {\n\t\t\t\t$comparison = Criteria::LIKE;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(MapPeer::NAME, $name, $comparison);\n\t}",
"public function filterLikeVoucherName($name)\n {\n $this->where($this->expr()->like('account_name','%:account_name%'))\n ->setParameter('account_name',\n $name,\n $this->getGateway()->getMetaData()->getColumn('account_name')->getType());\n \n return $this; \n }",
"public function queryByName1($name1) {\r\n $this->name1 = $name1;\r\n }",
"protected function _getFilterKey($name)\n {\n return is_string($name) ? $name : serialize($name);\n }",
"public function scopeCountryName($query, $name)\n {\n $name = ucwords(strtolower($name));\n\n if (trim($name) != \"\")\n {\n $query -> where('country',\"ILIKE\", \"%$name%\");\n }\n }",
"public function searchByName(string $name)\n {\n return $this->where('name', 'like', '%' . $name . '%')\n ->with('properties')\n ->get();\n }",
"public function name($value) {\n return (!$this->requestAllData($value)) ? $this->builder->where('name', 'like', '%'.$value.'%') : null;\n }",
"public function findLikeName($name) {\n\n return $this->getEntityManager()\n ->createQuery(\n 'SELECT p FROM AppBundle:PositiveAttribute p WHERE p.name LIKE :filter ORDER BY p.name ASC'\n )->setParameter('filter', '%' . $name . '%')\n ->getResult();\n }",
"public function addFilter(string $name, $value): void;",
"public function scopeSearchByName($query, string $name)\n {\n return $query->join(\n 'usermeta', function ($join) {\n $join->on('users.id', '=', 'usermeta.user_id')\n ->where('usermeta.name', '=', 'display_name');\n }\n )\n ->where('users.first_name', 'LIKE', \"%$name%\")\n ->orWhere('users.last_name', 'LIKE', \"%$name%\")\n ->orWhere('usermeta.value', 'LIKE', \"%$name%\");\n }",
"public function scopeSearch($query, $name)\n {\n if( trim($name) != '' ) {\n return $query->where('users.name', 'LIKE', '%' . trim($name) . '%')\n ->orWhere('users.phone', 'LIKE', '%' . trim($name) . '%')\n ->orWhere('users.email', 'LIKE', '%' . trim($name) . '%');\n }\n }",
"public function filter($args) {\n switch (true) {\n case is_string($args): return $this->where($args);\n default:\n return $this->spawn()->apply_filter($args);\n }\n }",
"public function scopeNombre($query, $name)\n {\n if (trim($name) != '') {\n $query->where('name', 'LIKE' , \"%$name%\");\n }\n }",
"public function name_checker($name)\r\n {\r\n // will check whole row in database\r\n $query = $this->db->table($this->table)->getWhere($name); \r\n return $query->getResult();\r\n }",
"public function filterByname($name = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($name)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $name)) {\n $name = str_replace('*', '%', $name);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(rlsTradeNamePeer::NAME, $name, $comparison);\n }",
"public function filterValue(string $name, string $explodeBy = null);",
"public function searchByName($name)\n {\n $statement = $this->connection->prepare(\"select r.*,c.name as client, s.name as store, e.name as employee from rate r join transaction t on t.id = r.transaction_id join store s on s.id = t.store_id join client c on c.id = t.client_id join employee e on e.id = t.employee_id where c.name like :name\");\n $like = '%'.$name.'%';\n $statement->bindParam(':name', $like);\n $statement->execute();\n return $statement->fetchAll(\\PDO::FETCH_CLASS, $this->modelName);\n }",
"public function getParameter($name, $filter = FILTER_SANITIZE_STRING);",
"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 }\n\n return $query;\n }"
] | [
"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.50191766",
"0.5017437",
"0.49843144",
"0.49756098",
"0.49635568",
"0.49349782",
"0.49131188",
"0.48786348",
"0.48737657",
"0.48729217"
] | 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) {\n return (!$this->requestAllData($value)) ? $this->builder->where('name', 'like', '%'.$value.'%') : null;\n }",
"public function addFilter(string $name, $value): void;",
"protected function _getFilterKey($name)\n {\n return is_string($name) ? $name : serialize($name);\n }",
"public function filterByProductId($value) {\n $this->_filter->equalTo($this->_nameMapping['product'], $value);\n }",
"final public function filter($name)\n {\n if ($this->_input_filter !== null) {\n return $this->_input_filter->filter($name);\n }\n\n App::getInstance()->includeFile('Sonic/InputFilter.php');\n $this->_input_filter = new InputFilter($this->request());\n return $this->_input_filter->filter($name);\n }",
"public function filterLikeVoucherName($name)\n {\n $this->where($this->expr()->like('account_name','%:account_name%'))\n ->setParameter('account_name',\n $name,\n $this->getGateway()->getMetaData()->getColumn('account_name')->getType());\n \n return $this; \n }",
"public static function getAccessibleFiltersByColumnName($name)\n {\n \n return self::getAccessibleFiltersByColumns()[$name];\n }",
"public static function getProductsByName($name) {\n\n // echo $course_id;\n $db = Database::getDB();\n $query = 'SELECT * FROM products p \n INNER JOIN categories c ON p.productCategory = c.categoryID \n INNER JOIN brands b ON p.productBrand = b.brandID \n INNER JOIN clothing g ON p.productClothing = g.clothingID \n WHERE p.productName LIKE :name\n ORDER BY productID';\n // WHERE p.productName LIKE :name'; \n try {\n $statement = $db->prepare($query);\n $statement->bindValue(':name', \"%$name%\");\n // $statement->bindValue(1, \"%PHP%\", PDO::PARAM_STR);\n //$statement->execute(array(\"%PHP%\"));\n $statement->execute(); \n $products = $statement->fetchAll();\n $statement->closeCursor(); \n \n return $products;\n } catch (PDOException $e) {\n $error_message = $e->getMessage();\n // display_db_error($error_message);\n }\n\n }",
"public function ApplyFilter($name)\n\t{\n\t\t$connect = new connection;\n\t\tif($connect->tryconnect())\n\t\t{\n\t\t\t$connector = $connect->getConnector();\n\t\t\t\n\t\t\t$sql = \"SELECT user.id_user AS ID, user.nome_user AS Nome, user.email_in_user AS Email, centroc.desc_cc AS CentroCusto, user.funcao_user AS Funcao, user.active_user AS Enabled \n\t\t\tFROM tab_user AS user \n\t\t\tINNER JOIN tab_cc AS centroc ON user.id_cc=centroc.id_cc \n\t\t\tWHERE user.id_cc=:cc AND user.id_user != :myuser AND user.nome_user LIKE CONCAT('%',:name,'%') \n\t\t\tORDER BY Enabled ASC, Nome ASC\";\n\t\t\t$query = $connector->prepare($sql);\n\t\t\t$query->bindParam(':cc', $_SESSION['cc'], PDO::PARAM_STR);\n\t\t\t$query->bindParam(':myuser', $_SESSION['id'], PDO::PARAM_STR);\n\t\t\t$query->bindParam(':name', $name, PDO::PARAM_STR);\n\t\t\t$query->execute();\n\t\t\t$rowC = $query->rowCount();\n\t\t\tif($rowC > 0)\n\t\t\t{\n\t\t\t\twhile($result = $query->FETCH(PDO::FETCH_OBJ))\n\t\t\t\t{\n\t\t\t\t\t$id = $result->ID;\n\t\t\t\t\t$nome = $result->Nome;\n\t\t\t\t\t$email = $result->Email;\n\t\t\t\t\t$centrocusto = $result->CentroCusto;\n\t\t\t\t\t$funcao_user = $result->Funcao;\n\t\t\t\t\t$active = $result->Enabled;\n\t\t\t\t\t\n\t\t\t\t\techo '<tr>\n\t\t\t\t\t\t\t <td class=\"numeric\">'.$id.'</td>\n\t\t\t\t\t\t\t <td>'.$nome.'</td>\n\t\t\t\t\t\t\t <td>'.$email.'</td>\n\t\t\t\t\t\t\t <td>'.$centrocusto.'</td>\n\t\t\t\t\t\t\t <td>'.$funcao_user.'</td>';\n\t\t\t\t\techo ' <td>';\n\t\t\t\t\tif($active == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\techo ' <a href=\"manageusers.php?reactivate='.$id.'&name='.$nome.'&email='.$email.'\"><button class=\"btn btn-success btn-xs\"><i class=\"fa fa-check\"></i></button></a>';\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\techo ' <a data-toggle=\"modal\" href=\"myuser.php?edit='.$id.'\"><button class=\"btn btn-primary btn-xs\"><i class=\"fa fa-pencil\"></i></button></a>\n\t\t\t\t\t\t\t\t<a data-toggle=\"modal\" href=\"manageusers.php#cancelamento'.$id.'\"><button class=\"btn btn-danger btn-xs\"><i class=\"fa fa-ban\"></i></button></a>\n\t\t\t\t\t\t\t </td>\n\t\t\t\t\t\t </tr>';\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public function scopeName($query,$name){\n $query->where('name','like',\"%$name%\");\n\n }",
"public function filterByName($name = null, $comparison = Criteria::EQUAL)\n\t{\n\t\tif (is_array($name)) {\n\t\t\tif ($comparison == Criteria::EQUAL) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t} elseif (preg_match('/[\\%\\*]/', $name)) {\n\t\t\t$name = str_replace('*', '%', $name);\n\t\t\tif ($comparison == Criteria::EQUAL) {\n\t\t\t\t$comparison = Criteria::LIKE;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(MapPeer::NAME, $name, $comparison);\n\t}",
"public function nameSearch($name): self\n {\n return $this->andFilterWhere(['like', 'users.name', $name]);\n }",
"public function selectByNameLike(string $name) {\n $opt['Name']=\"%$name%\";\n $rs= $this->conn->execute(\"SELECT * FROM $this->tableName WHERE Name LIKE :Name\",$opt);\n if($rs===false) return false;\n return $this->fromArray($rs);\n }",
"public function queryByName1($name1) {\r\n $this->name1 = $name1;\r\n }",
"public function name_checker($name)\r\n {\r\n // will check whole row in database\r\n $query = $this->db->table($this->table)->getWhere($name); \r\n return $query->getResult();\r\n }",
"public function filterByName($name = null)\n\t{\n\t\tif(preg_match('/[\\%\\*]/', $name)) {\n\t\t\treturn $this->addUsingAlias(cre8ContentTypePeer::NAME, str_replace('*', '%', $name), Criteria::LIKE);\n\t\t} else {\n\t\t\treturn $this->addUsingAlias(cre8ContentTypePeer::NAME, $name, Criteria::EQUAL);\n\t\t}\n\t}",
"public function findLikeName($name) {\n\n return $this->getEntityManager()\n ->createQuery(\n 'SELECT p FROM AppBundle:PositiveAttribute p WHERE p.name LIKE :filter ORDER BY p.name ASC'\n )->setParameter('filter', '%' . $name . '%')\n ->getResult();\n }",
"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 }\n\n return $query;\n }",
"public function filterValue(string $name, string $explodeBy = null);",
"public function scopeName($query, $name){\n $query->where('name', 'LIKE', \"%$name%\");\n }",
"public function getProductsByName($name) {\n\t\t$like = \"%\".$name.\"%\";\n\t\n\t\t$query = \"SELECT *\n\t\t\t\t FROM product\n\t\t\t\t WHERE name LIKE ?\";\n\t\n\t\t$result = DatabaseController::executeQuery($query, array($like));\n\t\treturn $result;\n\t}",
"function filterStr($field, $value) {\n if (\"$value\" !== '') {\n if ($value[0] === '=') {\n $this->where($field, '=', trim( substr($value, 1) ));\n } else {\n $wrapped = $this->table->grammar->wrap($field);\n\n switch ($value[0]) {\n case '^':\n $cond = '= 1';\n case '?':\n isset($cond) or $cond = '!= 0';\n $this->raw_where(\"LOCATE(?, $wrapped) $cond\", array($value));\n break;\n\n case '%':\n $this->raw_where(\"$wrapped LIKE ?\", array($value));\n break;\n\n default:\n $this->where($field, '=', trim($value));\n break;\n }\n }\n }\n }",
"public function filter_method_name() {\n\t\t// TODO: Define your filter method here\n\t}",
"function filterName($field){\n\t\t\t // Sanitize user name\n\t\t\t $field = filter_var(trim($field), FILTER_SANITIZE_STRING);\n\t\t\t \n\t\t\t // Validate user name\n\t\t\t if(filter_var($field, FILTER_VALIDATE_REGEXP, array(\"options\"=>array(\"regexp\"=>\"/^[a-zA-Z\\s]+$/\")))){\n\t\t\t return $field;\n\t\t\t } else{\n\t\t\t return FALSE;\n\t\t\t }\n\t\t\t}",
"public function filterByName($name)\n {\n return $this->filter(function (Route $route) use ($name)\n {\n return $route->getName() === $name;\n });\n }",
"function autosugest_by_name($param) {\n $parambuscaprod = explode('%20', $param);\n $where = '';\n $and = '';\n foreach ( $parambuscaprod as $val ) {\n $where .= $and.'(UPPER(billing_cliente.nombres) LIKE \"%'.strtoupper($val).'%\" OR UPPER(billing_cliente.apellidos) LIKE \"%'.strtoupper($val).'%\" )';\n $and = ' AND '; \n }\n $this -> db -> where($where, null, false); \n \n $this -> db -> select( 'PersonaComercio_cedulaRuc ci, CONCAT_WS(\" \",nombres,\" \",apellidos) value, apellidos, razonsocial razon_social', FALSE);\n $this -> db -> from('billing_cliente'); \n $query = $this -> db -> get();\n return $query->result(); \n }",
"public function search($name)\n {\n return Product::where('name', 'like', '%'.$name.'%')->get();\n }"
] | [
"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.49018982",
"0.48977104",
"0.4894783",
"0.48768097",
"0.48764396",
"0.48743287",
"0.48522297",
"0.4847139",
"0.48450798",
"0.48313335"
] | 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 $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $thumbUrl)) {\n $thumbUrl = str_replace('*', '%', $thumbUrl);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(PictureTableMap::COL_THUMB_URL, $thumbUrl, $comparison);\n }",
"function templ_thumbimage_filter($src,$att='&w=100&h=100&zc=1&q=80',$isresize=0)\n{\n\tglobal $thumb_url;\n\tif(strtolower(get_option('ptthemes_timthumb'))=='yes' || get_option('ptthemes_timthumb')=='' || $isresize)\n\t$imgurl = get_bloginfo( 'template_directory', 'display' ).'/thumb.php?src='.$src.$att.$thumb_url;\n\telse\n\t$imgurl = $src;\n\t\n\treturn apply_filters('templ_thumbimage_filter',$imgurl);\n}",
"public function getThumb()\n {\n $criteria = Criteria::create()->where(Criteria::expr()->eq(\"isThumb\", 1));\n return $this->getBusinessAssets()->matching( $criteria )->first();\n }",
"public function getThumb()\n {\n return $this->hasOne(Image::className(), ['id' => 'thumb_id']);\n }",
"public function applyFilter(GdThumb $thumb)\n {\n $thumb->imageFilter(IMG_FILTER_NEGATE);\n $thumb->imageFilter(IMG_FILTER_CONTRAST, -50);\n\n return $thumb;\n }",
"private static function sql_filter($filter,$value) {\n\n\t\t$filter_sql = '';\n\t\t//tag\n\t\tif ($filter == 'tag' && (\n\t\t $_SESSION['browse']['type'] == 'song'\n\t\t || $_SESSION['browse']['type'] == 'artist'\n\t\t || $_SESSION['browse']['type'] == 'album'\n\t\t )) {\n\t\t if (is_array($value) && sizeof($value))\n\t\t $vals = '(' . implode(',',$value) . ')';\n\t\t else if (is_integer($value))\n\t\t $vals = '('.$value.')';\n\t\t else return '';\n\t\t $or_sql = '';\n\t\t $object_type = $_SESSION['browse']['type'];\n\t\t if ($object_type == 'artist' || $object_type == 'album')\n\t\t $or_sql=\" or (tag_map.object_id = song.id AND\n\t\t tag_map.object_type='song' )\";\n\t\t if ($object_type == 'artist')\n\t\t $or_sql.= \" or (tag_map.object_id = album.id AND\n\t\t tag_map.object_type='album' )\";\n\t\t $filter_sql = \" `tags`.`id` in $vals AND\n\t\t (($object_type.id = `tag_map`.`object_id` AND tag_map.object_type='$object_type') $or_sql) AND \";\n\t\t }\n\t\tif ($_SESSION['browse']['type'] == 'song') {\n\t\t\tswitch($filter) {\n\t\t\t\tcase 'alpha_match':\n\t\t\t\t\t$filter_sql = \" `song`.`title` LIKE '\" . Dba::escape($value) . \"%' AND \";\n\t\t\t\tbreak;\n\t\t\t\tcase 'unplayed':\n\t\t\t\t\t$filter_sql = \" `song`.`played`='0' AND \";\n\t\t\t\tbreak;\n\t\t\t case 'album':\n\t\t\t\t if ($value)\n\t\t\t\t $filter_sql = \" `album`.`id` = '\".\n\t\t\t\t Dba::escape($value) . \"' AND \";\n\t\t\t\tbreak;\n\t\t\t\tcase 'artist':\n\t\t\t\t if ($value)\n\t\t\t\t $filter_sql = \" `artist`.`id` = '\".\n\t\t\t\t Dba::escape($value) . \"' AND \";\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// Rien a faire\n\t\t\t\tbreak;\n\t\t\t} // end list of sqlable filters\n\t\t} // if it is a song\n\t\telseif ($_SESSION['browse']['type'] == 'album') {\n\t\t\tswitch($filter) {\n\t\t\t\tcase 'alpha_match':\n\t\t\t\t\t$filter_sql = \" `album`.`name` LIKE '\" . Dba::escape($value) . \"%' AND \";\n\t\t\t\tbreak;\n\t\t\t\tcase 'min_count':\n\n\t\t\t\tbreak;\n\t\t\t case 'artist':\n\t\t\t\t if ($value)\n\t\t\t\t $filter_sql = \" `artist`.`id` = '\".\n\t\t\t\t Dba::escape($value) . \"' AND \";\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// Rien a faire\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} // end album\n\t\telseif ($_SESSION['browse']['type'] == 'artist') {\n\t\t\tswitch($filter) {\n\t\t\t\tcase 'alpha_match':\n\t\t\t\t\t$filter_sql = \" `artist`.`name` LIKE '\" . Dba::escape($value) . \"%' AND \";\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// Rien a faire\n\t\t\t\tbreak;\n\t\t\t} // end filter\n\t\t} // end artist\n\t\telseif ($_SESSION['browse']['type'] == 'genre') {\n\t\t\tswitch ($filter) {\n\t\t\t\tcase 'alpha_match':\n\t\t\t\t\t$filter_sql = \" `genre`.`name` LIKE '\" . Dba::escape($value) . \"%' AND \";\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// Rien a faire\n\t\t\t\tbreak;\n\t\t\t} // end filter\n\t\t} // end if genre\n\t\telseif ($_SESSION['browse']['type'] == 'live_stream') {\n\t\t\tswitch ($filter) {\n\t\t\t\tcase 'alpha_match':\n\t\t\t\t\t$filter_sql = \" `live_stream`.`name` LIKE '\" . Dba::escape($value) . \"%' AND \";\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// Rien a faire\n\t\t\t\tbreak;\n\t\t\t} // end filter\n\t\t} // end live_stream\n\t\telseif ($_SESSION['browse']['type'] == 'playlist') {\n\t\t\tswitch ($filter) {\n\t\t\t\tcase 'alpha_match':\n\t\t\t\t\t$filter_sql = \" `playlist`.`name` LIKE '\" . Dba::escape($value) . \"%' AND \";\n\t\t\t\tbreak;\n\t\t\t\tcase 'playlist_type':\n\t\t\t\t\t$user_id = intval($GLOBALS['user']->id);\n\t\t\t\t\t$filter_sql = \" (`playlist`.`type` = 'public' OR `playlist`.`user`='$user_id') AND \";\n\t\t\t\tbreak;\n\t\t\t\tdefault;\n\t\t\t\t\t// Rien a faire\n\t\t\t\tbreak;\n\t\t\t} // end filter\n\t\t} // end playlist\n\n\t\treturn $filter_sql;\n\n\t}",
"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($builder),\n ])->execute($column, $value);\n }",
"public function Thumb()\n {\n return DBField::create_field('HTMLText', $this->Thumbnail\n ? \"<img src=\\\"{$this->getHostedThumbnail()}\\\" style=\\\"width: 100px; height: auto;\\\">\"\n : '');\n }",
"public function thumb() {\n if(!is_null($this->thumb)) return $this->thumb;\n return $this->thumb = $this->parent()->thumbs()->find($this->name() . '.thumb.' . $this->extension());\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(\"/^\\*/\", $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}",
"public function filterBySlug($slug = null)\n\t{\n\t\tif(preg_match('/[\\%\\*]/', $slug)) {\n\t\t\treturn $this->addUsingAlias(cre8ContentTypePeer::SLUG, str_replace('*', '%', $slug), Criteria::LIKE);\n\t\t} else {\n\t\t\treturn $this->addUsingAlias(cre8ContentTypePeer::SLUG, $slug, Criteria::EQUAL);\n\t\t}\n\t}",
"function getThumbURL($m,$q){\r\n // Profile->image_id->getModel() <-- Model_Profile_Image (Model_Image)\r\n // Image->thumb_64 <--- Model_File\r\n //\r\n\r\n \t$m=$this->image_field->getModel();\r\n return $m->refSQL('picture_id/thumb_64')->debug()->fieldQuery('url');\r\n\r\n\r\n // Profile->refSQL('picture_id')->refSQL('thumb_64'); <-- Model_File\r\n // \r\n // selcet * from image where id=profile.picture_id\r\n\r\n // select * from file join image on image.thumb_64=file.id where image.id=<profile.picture_id>\r\n\r\n\r\n exit;\r\n \t$m->debug();\r\n \t$m->setActualFields(array('id'))->load(1);\r\n \texit;\r\n\r\n \t// Construct a good expression\r\n\r\n\r\n\t\t$p=$this->newInstance();\r\n\r\n\t\t// Picture needs to be joined with filestore\r\n\t\t$pic=$p\r\n ->join('filestore_file','filestore_file_id')\r\n ;\r\n\r\n // If we need thumbnail, that's few more joins\r\n if($is_thumb){\r\n \t$pic=$pic\r\n\t \t->join('filestore_image.original_file_id')\r\n\t \t->join('filestore_file','thumb_file_id')\r\n\t \t;\r\n }\r\n\r\n // Finally we need volume\r\n $v=$pic->join('filestore_volume');\r\n\r\n // Construct the field\r\n $p->addExpression($field,function($m,$s)use($v,$p,$pic){\r\n return $s->expr(\r\n 'COALESCE(\r\n concat(\"'.$p->api->pm->base_path.'\",'.\r\n $v->fieldExpr('dirname').\r\n ',\"/\",'.\r\n $pic->fieldExpr('filename').\r\n ')\r\n , \"'.$p->api->locateURL('template','images/portrait.jpg').'\") ');\r\n });\r\n return $p;\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n return $this->owner->_dsql()->expr(\r\n\r\n \t);\r\n\r\n if(!is_string($this->expr) && is_callable($this->expr))\r\n return '('.call_user_func($this->expr,$this->owner,$this->owner->dsql(),$this).')';\r\n \r\n if($this->expr instanceof DB_dsql)return $this->expr;\r\n\r\n }",
"function getThumbnailImages($productId)\n{\n $db = shoesDB();\n $sql = \"SELECT * FROM images\"\n . \" WHERE inventoryId = :productId && path LIKE '%-tn.%'\";\n $stmt = $db->prepare($sql);\n $stmt->bindValue(':productId', $productId, PDO::PARAM_INT);\n $stmt->execute();\n $imageArray = $stmt->fetchAll(PDO::FETCH_NAMED);\n $stmt->closeCursor();\n return $imageArray;\n}",
"public function setThumb( string $thumb )\n {\n $this->thumb = $thumb;\n return $this;\n }",
"public function like($column, $value) { return $this->addCondition($column, $value, Criterion::LIKE); }",
"function show_thumb($id)\n {\n $this->db->select('images.name');\n $this->db->where(array(\"images.tmp_id\"=>$id,\"value\"=>\"item\",\"primary\"=>1));\n $this->db->from('images');\n return $this->db->get()->row();\n }",
"public function getThumbUrl();",
"public function getThumb()\n {\n return $this->imageParam . \"thumbs/\" . CHtml::encode($this->filename);\n }",
"public function makeThumbnail($photo){\n\n\n\n}",
"function cf_custom_image_filterer($val) {\n\tglobal $wp_current_filter, $cf_custom_image_sizes;\n\t\n\t/* Figure out which filter we're acutally running */\n\t$cur_filter = end($wp_current_filter);\n\t\n\t/* Grab the custom image sizes' handle */\n\t$custom_sizes = array_keys($cf_custom_image_sizes);\n\t\n\t/* Loop through each and see if we're doing that one */\n\tforeach ($custom_sizes as $size) {\n\t\t/* Look for the size handle in the current filter string */\n\t\tif (strpos($cur_filter, $size)) { \n\t\t\t/* trim off all but the size detail ('size_w', etc...) */\n\t\t\t$sub_filter = str_replace('pre_option_'.$size.'_', '', $cur_filter);\n\n\t\t\t/* If we got something, go ahead and return it */\n\t\t\tif (isset($cf_custom_image_sizes[$size][$sub_filter])) {\n\t\t\t\treturn $cf_custom_image_sizes[$size][$sub_filter];\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn $val;\n}",
"function applyFilters($q, $au, $roo)\n {\n $tn = $this->tableName();\n \n if(!empty($q['search']['filename'])){\n $this->whereAdd(\"\n $tn.filename LIKE '%{$this->escape($q['search']['filename'])}%' OR $tn.title LIKE '%{$this->escape($q['search']['filename'])}%'\n \");\n }\n\n if(!empty($q['_to_base64']) && !empty($q['image_id'])) {\n $i = DB_DataObject::factory(\"Images\");\n $i->get($q['image_id']);\n $roo->jok($i->toBase64());\n }\n \n\n }",
"public function getThumbAttribute()\n {\n return '//'.Configuration::get('s3url').'/ongs/'.$this->id.'/thumb/'.$this->getOriginal('img');\n }",
"public function filterByAttribute($query, Attribute $attribute, $value): void;",
"public function getThumbnails()\n {\n return DB::findBy('attachment_thumbnail', ['attachment_id' => $this->id]);\n }",
"public function makeGridFilter($table, $grid_query) {\r\n $table_filter = array();\r\n\tif( isset($grid_query['filter']) ){\r\n\t foreach ($grid_query['filter'] as $key => $val){\r\n\t\tif (preg_match('/[a-z_]+/', $key)){\r\n\t\t $table_filter[] = \"$key LIKE '%$val%'\";\r\n\t\t}\r\n\t }\r\n\t}\r\n return $table_filter;\r\n }",
"public function getThumbnailAttribute()\n {\n if ($this->photo) {\n return asset('images/thumbnails/thumb-'.$this->photo);\n } else {\n return asset('assets/images/placeholder.jpg');\n }\n }",
"function &getFilter()\n {\n // override \n }",
"public function filterByProductId($value) {\n $this->_filter->equalTo($this->_nameMapping['product'], $value);\n }",
"protected function getLiipImagine_Filter_Loader_ThumbnailService()\n {\n return $this->services['liip_imagine.filter.loader.thumbnail'] = new \\Liip\\ImagineBundle\\Imagine\\Filter\\Loader\\ThumbnailFilterLoader();\n }"
] | [
"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.45289385",
"0.45240644",
"0.45063645",
"0.44664645",
"0.44489",
"0.4447433",
"0.4432561",
"0.4404808",
"0.4387447",
"0.43870556"
] | 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 Integer or String(i.e \"100%\") - <b style=\"color:red\">' . (is_object($width) ? get_class($width) : gettype($width)) . '</b> given!');\n }\n\n if (Utils::stringEndsWith($width, \"%\")) {\n $this->setAttribute(\"width\", $width);\n } else {\n $this->setAttribute('width', (string) $width);\n }\n return $this;\n }",
"public function testSetWidth() {\n\n $obj = new DataTablesColumn();\n\n $obj->setWidth(\"width\");\n $this->assertEquals(\"width\", $obj->getWidth());\n }",
"private function setWidth( $width )\n { $this->collection[self::width] = $width; }",
"function setColumnWidth($column_width) {\n $this->column_width = $column_width;\n }",
"public function width($width)\n {\n $this->width = $width;\n }",
"function setWidth($width) {\n $this->width = $width;\n }",
"function setWidth($width)\n {\n $this->m_width=$width;\n }",
"public function setWidthLimit($width)\n\t{\n\t\t$this->data[self::KEY_DIMENSIONS][self::KEY_WIDTH] = (double) $width;\n\t\treturn $this;\n\t}",
"public function setWidth($width)\n {\n $this->width = $width;\n }",
"public function filterByWidth($width = null, $comparison = null)\n {\n if (is_array($width)) {\n $useMinMax = false;\n if (isset($width['min'])) {\n $this->addUsingAlias(BannersPeer::WIDTH, $width['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($width['max'])) {\n $this->addUsingAlias(BannersPeer::WIDTH, $width['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(BannersPeer::WIDTH, $width, $comparison);\n }",
"public function setWidth($width) {\n\t\t$this->width = $width;\n\t}",
"public function setWidth($width) {\n\t\t$this->width = $width;\n\t}",
"function setWidth($width) {\n\t\t$this->width = $width;\n\t}",
"function setWidth( $value )\r\n {\r\n $this->Width = $value;\r\n }",
"function setWidth(string $p_width):void\n {\n $this->width=$p_width;\n }",
"public function setWidth($value)\n\t{\n\t\t$this->width = $value;\n\t}",
"public function set_width($width)\n {\n $this->width = $width;\n }",
"public function setWidth($width)\n\t{\n\t\t$this->width = $width;\n\t}",
"public function set_width($width) {\r\n $this->width = $width;\r\n }",
"public function set_width ($width) {\n $this->width = $width;\n }",
"public function setWidth($var)\n {\n GPBUtil::checkInt32($var);\n $this->Width = $var;\n\n return $this;\n }",
"function setWidth($inWidth) {\n\t\tif ( $inWidth !== $this->_Width ) {\n\t\t\t$this->_Width = $inWidth;\n\t\t\t$this->setModified();\n\t\t}\n\t\treturn $this;\n\t}",
"public function width($value) {\n return $this->setProperty('width', $value);\n }",
"public function width($value) {\n return $this->setProperty('width', $value);\n }",
"public function width($value) {\n return $this->setProperty('width', $value);\n }",
"public function width($value) {\n return $this->setProperty('width', $value);\n }",
"public function width($value) {\n return $this->setProperty('width', $value);\n }",
"public function width($value) {\n return $this->setProperty('width', $value);\n }",
"public function width($value) {\n return $this->setProperty('width', $value);\n }",
"public function width($value) {\n return $this->setProperty('width', $value);\n }"
] | [
"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.54495364",
"0.5433167",
"0.5422677",
"0.5422677",
"0.5422677",
"0.5422677",
"0.5422677",
"0.5422677",
"0.5422677",
"0.5422677"
] | 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($builder),\n ])->execute($column, $value);\n }",
"public function getBlockByHeight($height)\n {\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(\"/^\\*/\", $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}",
"private function setHeight( $height )\n { $this->collection[self::height] = $height; }",
"private function filter()\n {\n $this->builder->where(function ($builder) {\n collect($this->request->get('filter', []))->each(function ($value, $column) use ($builder) {\n $this->guardFilter($column);\n $this->filterColumn($builder, $column, $value);\n });\n });\n }",
"protected function sanitizeHeight($height, $width)\n\t{\n\t\t// If no height was given we will assume it is a square and use the width.\n\t\t$height = ($height === null) ? $width : $height;\n\n\t\t// If we were given a percentage, calculate the integer value.\n\t\tif (preg_match('/^[0-9]+(\\.[0-9]+)?\\%$/', $height))\n\t\t{\n\t\t\t$height = (int) round($this->getHeight() * (float) str_replace('%', '', $height) / 100);\n\t\t}\n\t\t// Else do some rounding so we come out with a sane integer value.\n\t\telse\n\t\t{\n\t\t\t$height = (int) round((float) $height);\n\t\t}\n\n\t\treturn $height;\n\t}",
"public function set_height($height)\n {\n $this->height = $height;\n }",
"public function set_height($height) {\r\n $this->height = $height;\r\n }",
"public function exactHeight(Model $Model, $file, $height) {\n return $this->validateImageDimensions($file, 'exactHeight', $height);\n }",
"public function set_height ($height) {\n $this->height = $height;\n }",
"public static function validateHeight($height) {\n\t\t\n\t\t// check if data type is string\n\t\tif (gettype($height) === \"string\") {\n\t\t\t\n\t\t\t// check if height set to predefined value\n\t\t\tif (array_key_exists($height, Config::$RequiredImage['height'])) {\n\t\t\t\treturn array(\n\t\t\t\t\t\t\"type\" => \"i\",\n\t\t\t\t\t\t\"value\" => Config::$RequiredImage['height'][$height]\n\t\t\t\t);\n\t\t\t}\n\t\t\t\n\t\t\t// check if height in percentage and in range (0,100] i.e., 0% < height <= 100%\n\t\t\tif ($height[strlen($height)-1] === \"%\" && preg_match(\"/^(0\\.\\d{1,}\\%)|([1-9][0-9]?(\\.\\d{1,})?\\%)|(100\\%)$/\", $height) == 1) {\n\t\t\t\treturn array(\n\t\t\t\t\t\t\"type\" => \"%\",\n\t\t\t\t\t\t\"value\" => floatval(explode(\"%\", $height)[0])\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tthrow new \\Exception('Invalid percentage value passed for height.');\n\t\t\t}\n\t\t\t\n\t\t\tthrow new \\Exception('Invalid string value passed for height.');\n\t\t\t\n\t\t}\n\t\t\n\t\t// check if height is integer\n\t\telse if (gettype($height) === \"integer\") {\n\t\t\tif ($height <= 0) {\n\t\t\t\tthrow new \\Exception('Height must be greater than 0.');\n\t\t\t} else {\n\t\t\t\treturn array(\n\t\t\t\t\t\t\"type\" => \"i\",\n\t\t\t\t\t\t\"value\" => $height\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\t\n\t\tthrow new \\Exception('Height must be either an integer value greater than 0 or a predefined string value or in percentage.');\n\t\t\n\t}",
"public function setHeight($height)\n {\n $this->height = $height;\n }",
"public function setHeight($Height){\n return $this->height = $Height;\n }",
"public function setHeight(string $height) {\n\t\t$this->height = $height;\n\t}",
"public function height($height)\n {\n return $this->withMeta([\n __FUNCTION__ => $height,\n ]);\n }",
"public function setHeightLimit($height)\n\t{\n\t\t$this->data[self::KEY_DIMENSIONS][self::KEY_HEIGHT] = (double) $height;\n\t\treturn $this;\n\t}",
"public function getHeight($height)\n {\n \treturn $this->height = $height;\n }",
"public function filter($value);",
"public function setHeight($height) {\n\t\t$this->height = $height;\n\t}",
"public function setHeight($height) {\n\t\t$this->height = $height;\n\t}",
"public static function validate_height()\n\t{\n\t\tglobal $modSettings;\n\n\t\treturn function ($data) use ($modSettings) {\n\t\t\t// These may look odd, and they are, but its a way to set or not ;thumb to the url\n\t\t\tif (!empty($modSettings['attachmentThumbHeight']) && $data <= $modSettings['attachmentThumbHeight'])\n\t\t\t{\n\t\t\t\treturn ';thumb\" style=\"max-height:' . $data . 'px;';\n\t\t\t}\n\n\t\t\treturn '\" style=\"max-height:' . $data . 'px;';\n\t\t};\n\t}",
"function filter_search_columns( $columns, $search, $WP_User_Query ) {\n\n\t\t\t/**\n\t\t\t * Filters the column names to be searched.\n\t\t\t *\n\t\t\t * @date 21/5/19\n\t\t\t * @since 5.8.1\n\t\t\t *\n\t\t\t * @param array $columns An array of column names to be searched.\n\t\t\t * @param string $search The search term.\n\t\t\t * @param WP_User_Query $WP_User_Query The WP_User_Query instance.\n\t\t\t * @param ACF_Ajax_Query $query The query object.\n\t\t\t */\n\t\t\treturn apply_filters( 'acf/ajax/query_users/search_columns', $columns, $search, $WP_User_Query, $this );\n\t\t}",
"public function setHeight($var)\n {\n GPBUtil::checkInt32($var);\n $this->Height = $var;\n\n return $this;\n }",
"public function height($value) {\n return $this->setProperty('height', $value);\n }",
"public function height($value) {\n return $this->setProperty('height', $value);\n }",
"public function height($value) {\n return $this->setProperty('height', $value);\n }",
"public function height($value) {\n return $this->setProperty('height', $value);\n }",
"public function setHeight($height)\n\t{\n\t\t$this->height = $height;\n\t}",
"public function setHeight($value)\n\t{\n\t\t$this->height = $value;\n\t}",
"public function filter($predicate);"
] | [
"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.44731325",
"0.4464303",
"0.44601333",
"0.4454559",
"0.4454559",
"0.4454559",
"0.4454559",
"0.44411954",
"0.44248483",
"0.44244975"
] | 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($builder),\n ])->execute($column, $value);\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(\"/^\\*/\", $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}",
"public function filter(Builder $dataSource)\r\n {\r\n $model = $dataSource->getModel();\r\n $filters = [];\r\n\r\n if ($this->_separated) {\r\n foreach ($this->_fields as $field => $criteria) {\r\n if ($field === static::COLUMN_ID) {\r\n $value = (int) $this->_value;\r\n if (!is_numeric($this->_value)) {\r\n continue;\r\n }\r\n $field = $model->getPrimary();\r\n } elseif ($field === static::COLUMN_NAME) {\r\n $field = $model->getNameExpr();\r\n }\r\n if (null === $this->_value) {\r\n $filter = new \\Elastica\\Query\\Filtered();\r\n $filterMissing = new \\Elastica\\Filter\\Missing($field);\r\n //$filterMissing->addParam(\"existence\", true);\r\n //$filterMissing->addParam(\"null_value\", true);\r\n $filter->setFilter($filterMissing);\r\n\r\n $filters[] = $filter;\r\n } else {\r\n if ($criteria === static::CRITERIA_EQ) {\r\n $filter = new \\Elastica\\Query\\Term();\r\n $filter->setTerm($field, $this->_value);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_IN) {\r\n if (is_array($this->_value)) {\r\n $filter = new \\Elastica\\Query\\Terms($field, $this->_value);\r\n } else {\r\n $filter = new \\Elastica\\Query\\Term();\r\n $filter->setTerm($field, $this->_value);\r\n }\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_NOTEQ) {\r\n $filter = new \\Elastica\\Query\\Term();\r\n $filter->setTerm($field, $this->_value);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_LIKE) {\r\n $filter = new \\Elastica\\Query\\Match();\r\n $filter->setField($field, $this->_value);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_BEGINS) {\r\n //$filter = new \\Elastica\\Query\\Prefix();\r\n //$filter->setPrefix($field, $this->_value);\r\n //$filters[] = $filter;\r\n $filter = new \\Elastica\\Query\\QueryString();\r\n $filter->setQuery($this->_value);\r\n $filter->setDefaultField($field);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_MORE) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['gt' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_LESS) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['lt' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_MORER) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['gte' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_LESSER) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['lte' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n }\r\n }\r\n }\r\n } else {\r\n $filters = new \\Elastica\\Query\\MultiMatch();\r\n $fields = [];\r\n foreach ($this->_fields as $field => $criteria) {\r\n if ($field === static::COLUMN_ID) {\r\n $value = (int) $this->_value;\r\n if (!is_numeric($this->_value)) {\r\n continue;\r\n }\r\n $field = $model->getPrimary();\r\n } elseif ($field === static::COLUMN_NAME) {\r\n $field = $model->getNameExpr();\r\n }\r\n $boost = $this->getBoostParam($field);\r\n $fields[] = $field.'^'.$boost;\r\n }\r\n $slop = $this->getSlopParam();\r\n $filters->setParam('slop', $slop);\r\n $filters->setFields($fields);\r\n $filters->setTieBreaker(0.3);\r\n $filters->setType(\\Elastica\\Query\\MultiMatch::TYPE_BEST_FIELDS);\r\n //$filters->setType(\\Elastica\\Query\\MultiMatch::TYPE_MOST_FIELDS);\r\n $filters->setQuery($this->_value);\r\n }\r\n\r\n\r\n return $filters;\r\n }",
"public function onAdvSearchDisplayFilter(&$filter, $value = '', $formName = 'searchForm')\n\t{\n\t\tif ( !in_array($filter->field_type, static::$field_types) ) return;\n\n\t\t$filter->parameters->set( 'display_filter_as_s', 1 ); // Only supports a basic filter of single text search input\n\t\tFlexicontentFields::createFilter($filter, $value, $formName);\n\t}",
"function addCourseFamilySelectFilter($displayName, $columnName)\n\t{\n\t\t$db = DB::getHandle();\n\t\t$db->RESULT_TYPE = MYSQL_ASSOC;\n\t\t$sql = 'select distinct courseFamily from courses';\n\t\t$db->query($sql);\n\t\twhile ( $db->next_record() ) {\n\t\t\t$this->selectFilters[$columnName][$db->Record['courseFamily']] = $db->Record['courseFamily'];\n\t\t}\n\t\t$this->selectFilters[$columnName]['!displayName'] = $displayName;\n\t}",
"public function filterByUserFamily($userFamily, $comparison = null)\n {\n if ($userFamily instanceof \\UserFamily) {\n return $this\n ->addUsingAlias(ParishTableMap::COL_VALUE, $userFamily->getUserId(), $comparison);\n } elseif ($userFamily instanceof ObjectCollection) {\n return $this\n ->useUserFamilyQuery()\n ->filterByPrimaryKeys($userFamily->getPrimaryKeys())\n ->endUse();\n } else {\n throw new PropelException('filterByUserFamily() only accepts arguments of type \\UserFamily or Collection');\n }\n }",
"static function getFamilyFromCategoryName($str){\n $str = self::makeFriendlier($str);\n \n \n // SELECT count(TITULOSUBFAMILIA) FROM csv where TITULOFAMILIA like 'R' group by TITULOSUBFAMILIA\n \n \n \n $results = \\DB::select(\"\n\n SELECT csv.TITULOFAMILIA, csv.TITULOFAMILIA as R, menuBuilder.CODFAMILIA, menuBuilder.ORDER FROM categorias,menuBuilder,\" . self::$productTableName . \" as csv\n where categorias.code = menuBuilder.CODSUBCATEGORIA and\n menuBuilder.CODFAMILIA = csv.CODFAMILIA \n and categorias.name like \\\"$str\\\" \n group by csv.TITULOFAMILIA\n ORDER BY IF(ISNULL(menuBuilder.ORDER),1,0),menuBuilder.ORDER \n \n \n \");\n //print_r($results);\n return $results;\n }",
"public function searchObatSupplierGF()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\n $criteria->with = array('obatalkes','supplier');\n\t\t$criteria->compare('LOWER(obatalkes.obatalkes_nama)', strtolower($this->obatalkes_nama),true);\n\t\t$criteria->compare('LOWER(obatalkes.obatalkes_kode)', strtolower($this->obatalkes_kodeobat),true);\n $criteria->compare('LOWER(supplier.supplier_nama)',strtolower($this->supplier_nama),true);\n\t\t$criteria->compare('LOWER(supplier.supplier_kode)',strtolower($this->supplier_kode),true);\n\t\t$criteria->compare('LOWER(supplier.supplier_alamat)',strtolower($this->supplier_alamat),true);\n\t\t$criteria->compare('t.obatalkes_id',$this->obatalkes_id);\n\t\t$criteria->compare('t.supplier_id',$this->supplier_id);\n\t\t$criteria->compare('t.obatsupplier_id',$this->obatsupplier_id);\n\t\t$criteria->compare('t.satuankecil_id',$this->satuankecil_id);\n\t\t$criteria->compare('t.satuanbesar_id',$this->satuanbesar_id);\n\t\t$criteria->compare('t.hargabelibesar',$this->hargabelibesar);\n\t\t$criteria->compare('t.diskon_persen',$this->diskon_persen);\n\t\t$criteria->compare('t.hargabelikecil',$this->hargabelikecil);\n\t\t$criteria->compare('t.ppn_persen',$this->ppn_persen);\n $criteria->order='supplier.supplier_kode ASC';\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public static function _generateSQLColumnFilter($column, $search_value, PDO $pdoLink, $sRangeSeparator = '~')\n {\n if (preg_match(\"/^\\[(=|!=)\\]$/i\", $search_value, $match)) {\n return $column.' '.$match[1].' '.$pdoLink->quote('');\n }\n\n if (preg_match(\"/^\\[(!|<=|>=|=|<|>|<>|!=)\\](.+)/i\", $search_value, $match)) {\n if ($match[1] == '!=' && $match[2] == 'null') {\n return $column.' IS NOT NULL';\n } elseif ($match[1] == '=' && $match[2] == 'null') {\n return $column.' IS NULL';\n } elseif ($match[1] == '!') {\n return $column.' NOT LIKE '.$pdoLink->quote('%'.$match[2].'%');\n } else {\n return $column.' '.$match[1].' '.$pdoLink->quote($match[2] == 'empty' ? '' : $match[2]);\n }\n } elseif (strpos($search_value, 'lenght:') === 0) {\n return 'CHAR_LENGTH('.$column.') = '.(int) substr($search_value, strlen('lenght:'));\n } elseif (strpos($search_value, 'reg:') === 0) { //&& $column['sFilter']['regex'] === true) {\n return $column.' REGEXP '.$pdoLink->quote(substr($search_value, strlen('reg:')));\n } elseif (preg_match('/(.*)(!?'.$sRangeSeparator.')(.*)/i', $search_value, $matches) && !empty($matches[1]) && !empty($matches[3])) {\n // TODO : use type to format the search value (eg STR_TO_DATE)\n return $column.($matches[2][0] == '!' ? ' NOT' : '')\n .' BETWEEN '.$pdoLink->quote($matches[1]).' AND '.$pdoLink->quote($matches[3]);\n } elseif (strpos($search_value, 'in:') === 0) {\n $search_value = substr($search_value, strlen('in:'));\n\n return $column.' IN('.$search_value.')';\n } elseif (strpos($search_value, '!in:') === 0) {\n $search_value = substr($search_value, strlen('in:'));\n\n return $column.' NOT IN('.$search_value.')';\n } else {\n return $column.' LIKE '.$pdoLink->quote('%'.$search_value.'%');\n }\n }",
"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_kode),true);\n\t\t$criteria->compare('LOWER(programkerja_nama)',strtolower($this->programkerja_nama),true);\n\t\t$criteria->compare('LOWER(programkerja_ket)',strtolower($this->programkerja_ket),true);\n\t\tif(!empty($this->programkerja_nourut)){\n\t\t\t$criteria->addCondition('programkerja_nourut = '.$this->programkerja_nourut);\n\t\t}\n\t\tif(!empty($this->subprogramkerja_id)){\n\t\t\t$criteria->addCondition('subprogramkerja_id = '.$this->subprogramkerja_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subprogramkerja_kode)',strtolower($this->subprogramkerja_kode),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_nama)',strtolower($this->subprogramkerja_nama),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_ket)',strtolower($this->subprogramkerja_ket),true);\n\t\tif(!empty($this->subprogramkerja_nourut)){\n\t\t\t$criteria->addCondition('subprogramkerja_nourut = '.$this->subprogramkerja_nourut);\n\t\t}\n\t\tif(!empty($this->kegiatanprogram_id)){\n\t\t\t$criteria->addCondition('kegiatanprogram_id = '.$this->kegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kegiatanprogram_kode)',strtolower($this->kegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_nama)',strtolower($this->kegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_ket)',strtolower($this->kegiatanprogram_ket),true);\n\t\tif(!empty($this->kegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('kegiatanprogram_nourut = '.$this->kegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->subkegiatanprogram_id)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_id = '.$this->subkegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subkegiatanprogram_kode)',strtolower($this->subkegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_nama)',strtolower($this->subkegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_ket)',strtolower($this->subkegiatanprogram_ket),true);\n\t\tif(!empty($this->subkegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_nourut = '.$this->subkegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->rekening1debit_id)){\n\t\t\t$criteria->addCondition('rekening1debit_id = '.$this->rekening1debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1debit_kode)',strtolower($this->rekening1debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1debit_nama)',strtolower($this->rekening1debit_nama),true);\n\t\tif(!empty($this->rekening2debit_id)){\n\t\t\t$criteria->addCondition('rekening2debit_id = '.$this->rekening2debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2debit_kode)',strtolower($this->rekening2debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2debit_nama)',strtolower($this->rekening2debit_nama),true);\n\t\tif(!empty($this->rekening3debit_id)){\n\t\t\t$criteria->addCondition('rekening3debit_id = '.$this->rekening3debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3debit_kode)',strtolower($this->rekening3debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3debit_nama)',strtolower($this->rekening3debit_nama),true);\n\t\tif(!empty($this->rekening4debit_id)){\n\t\t\t$criteria->addCondition('rekening4debit_id = '.$this->rekening4debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4debit_kode)',strtolower($this->rekening4debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4debit_nama)',strtolower($this->rekening4debit_nama),true);\n\t\tif(!empty($this->rekening5debit_id)){\n\t\t\t$criteria->addCondition('rekening5debit_id = '.$this->rekening5debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5debit_kode)',strtolower($this->rekening5debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5debit_nama)',strtolower($this->rekening5debit_nama),true);\n\t\tif(!empty($this->rekening1kredit_id)){\n\t\t\t$criteria->addCondition('rekening1kredit_id = '.$this->rekening1kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1kredit_kode)',strtolower($this->rekening1kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1kredit_nama)',strtolower($this->rekening1kredit_nama),true);\n\t\tif(!empty($this->rekening2kredit_id)){\n\t\t\t$criteria->addCondition('rekening2kredit_id = '.$this->rekening2kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2kredit_kode)',strtolower($this->rekening2kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2kredit_nama)',strtolower($this->rekening2kredit_nama),true);\n\t\tif(!empty($this->rekening3kredit_id)){\n\t\t\t$criteria->addCondition('rekening3kredit_id = '.$this->rekening3kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3kredit_kode)',strtolower($this->rekening3kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3kredit_nama)',strtolower($this->rekening3kredit_nama),true);\n\t\tif(!empty($this->rekening4kredit_id)){\n\t\t\t$criteria->addCondition('rekening4kredit_id = '.$this->rekening4kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4kredit_kode)',strtolower($this->rekening4kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4kredit_nama)',strtolower($this->rekening4kredit_nama),true);\n\t\tif(!empty($this->rekening5kredit_id)){\n\t\t\t$criteria->addCondition('rekening5kredit_id = '.$this->rekening5kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5kredit_kode)',strtolower($this->rekening5kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5kredit_nama)',strtolower($this->rekening5kredit_nama),true);\n\t\t\n $criteria->compare('subkegiatanprogram_aktif', $this->subkegiatanprogram_aktif);\n $criteria->compare('programkerja_aktif', $this->programkerja_aktif);\n $criteria->compare('subprogramkerja_aktif', $this->subprogramkerja_aktif);\n $criteria->compare('kegiatanprogram_aktif', $this->kegiatanprogram_aktif);\n//$criteria->order = 'programkerja_id,subprogramkerja_id,kegiatanprogram_id,subkegiatanprogram_id';\n\t\t\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n\t}",
"public function filterOptionRecipientName($collection, $column)\n {\n $filterValue = $column->getFilter()->getValue();\n if (!$filterValue)\n {\n return;\n }\n\n // remove spaces\n $filterValue = $this->removeSpaces($filterValue);\n\n $collection->getSelect()\n ->where('CONCAT(recipient_firstname, recipient_lastname) LIKE ?', \"%{$filterValue}%\");\n }",
"public function filterByForename($forename = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($forename)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $forename)) {\n $forename = str_replace('*', '%', $forename);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(UserPeer::FORENAME, $forename, $comparison);\n }",
"public function filter($value)\n {\n \t$value = ucfirst($value);\n \t\n \t// To camel case\n \tif (false !== strpos($value, '_')) {\n\t \t$filter = new Zend_Filter_Word_UnderscoreToCamelCase();\n\t \t$value = $filter->filter($value);\n \t}\n \t\n \t$value .= 'Peer';\n \treturn $value;\n }",
"public function filter($args) {\n switch (true) {\n case is_string($args): return $this->where($args);\n default:\n return $this->spawn()->apply_filter($args);\n }\n }",
"public function filterByProductId($value) {\n $this->_filter->equalTo($this->_nameMapping['product'], $value);\n }",
"function filterStr($field, $value) {\n if (\"$value\" !== '') {\n if ($value[0] === '=') {\n $this->where($field, '=', trim( substr($value, 1) ));\n } else {\n $wrapped = $this->table->grammar->wrap($field);\n\n switch ($value[0]) {\n case '^':\n $cond = '= 1';\n case '?':\n isset($cond) or $cond = '!= 0';\n $this->raw_where(\"LOCATE(?, $wrapped) $cond\", array($value));\n break;\n\n case '%':\n $this->raw_where(\"$wrapped LIKE ?\", array($value));\n break;\n\n default:\n $this->where($field, '=', trim($value));\n break;\n }\n }\n }\n }",
"public function filterByClasificado($clasificado = null, $comparison = null)\n\t{\n\t\tif (null === $comparison) {\n\t\t\tif (is_array($clasificado)) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t} elseif (preg_match('/[\\%\\*]/', $clasificado)) {\n\t\t\t\t$clasificado = str_replace('*', '%', $clasificado);\n\t\t\t\t$comparison = Criteria::LIKE;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(EquipoPeer::CLASIFICADO, $clasificado, $comparison);\n\t}",
"public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id_ant_fam',$this->id_ant_fam);\n\t\t$criteria->compare('alergia',$this->alergia);\n\t\t$criteria->compare('artritis',$this->artritis);\n\t\t$criteria->compare('asma',$this->asma);\n\t\t$criteria->compare('cancer',$this->cancer);\n\t\t$criteria->compare('cardiovasculares',$this->cardiovasculares);\n\t\t$criteria->compare('diabetes',$this->diabetes);\n\t\t$criteria->compare('enfermedades_digestivas',$this->enfermedades_digestivas);\n\t\t$criteria->compare('enfermedades_renales',$this->enfermedades_renales);\n\t\t$criteria->compare('intoxicacion',$this->intoxicacion);\n\t\t$criteria->compare('neuromentales',$this->neuromentales);\n\t\t$criteria->compare('sifilis',$this->sifilis);\n\t\t$criteria->compare('tbc',$this->tbc);\n\t\t$criteria->compare('tifoidea',$this->tifoidea);\n\t\t$criteria->compare('tosferina',$this->tosferina);\n\t\t$criteria->compare('traumatismo',$this->traumatismo);\n\t\t$criteria->compare('vacunaciones',$this->vacunaciones);\n\t\t$criteria->compare('otros',$this->otros);\n\t\t$criteria->compare('observaciones',$this->observaciones,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public static function apply(Builder $builder, $value) {\n \n return $builder->whereRaw('LOWER(`products`.`name`) LIKE ? ',[trim(strtolower($value)).'%']);\n }",
"public function columnasFiltro($columnasBD) {\n $filtro=null;\n foreach ($columnasBD as $cBD) {\n\n if($cBD['tipo']=='string')\n $filtro .='LOWER('.substr($cBD['nombre'],0,1).'.'.substr($cBD['nombre'],1).') like :'.substr($cBD['nombre'],1).' or '; \n else\n $filtro .=substr($cBD['nombre'],0,1).'.'.substr($cBD['nombre'],1).' = :'.substr($cBD['nombre'],1).' or '; \n }\n $filtro= substr($filtro,0, -4);\n \n return $filtro;\n }",
"public function Filter($filter=null){\n $results = $this->where(function($query) use ($filter){\n if($filter){\n $query->where('cliente','LIKE',\"%{$filter}%\" or 'vendedor','LIKE',\"%{$filter}%\" or 'data','LIKE',\"%{$filter}%\")->orderBy(\"%{$filter}%\", 'desc')->get() ;\n }\n });\n return $results;\n }",
"public function filter($value);",
"public function searchCustomFoods($food) {\n\t\t// Upcase input and strip leading and trailing blanks\n\t\t$sf = strtoupper($food);\n\t\t$sf = preg_replace(\"/^\\\\s+/\", \"\", $sf);\n\t\t$sf = preg_replace(\"/\\\\s+$/\", \"\", $sf);\n\n\t\t// Split input into separate words so the order doesn't matter\n\t\t$words = preg_split(\"/\\\\s+/\", $sf);\n\n\t\t// Build the WHERE clause with all the words in LIKE phrases\n\t\t$where = \"WHERE (\";\n\n\t\tforeach ($words as $word) {\n\t\t\tif (strcasecmp($where, \"WHERE (\") == 0) {\n\t\t\t\t$and = \"\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$and = \" AND \";\n\t\t\t}\n\t\t\t$where .= $and . \"fd.FoodNameNormalized LIKE '%\". $word . \"%'\";\n\t\t}\n\t\t$where .= \") \";\n\n\t\ttry {\n\t\t\t$sql = \"SELECT concat(fd.FoodName, ' (', srv.ServingAmountValue, ' ', unit.UnitName, ') (', nut.NutrientValue, ' calories)') as display, fd.FoodName as selected, fd.FoodID as value, 1 as servingSize, unit.UnitID as UnitID, 1 as custom \" .\n\t\t\t\t\t\t\t\"FROM u_custom_foods AS fd \" .\n\t\t\t\t\t\t\t\"JOIN u_custom_foods_serving_types AS srv ON fd.FoodID = srv.FoodID \" .\n\t\t\t\t\t\t\t\"JOIN u_custom_foods_nutrients AS nut ON fd.FoodID = nut.FoodID \" .\n\t\t\t\t\t\t\t\"JOIN p_food_unit AS unit ON unit.UnitID = srv.ServingAmountUnitID \" .\n\t\t\t\t\t\t\t$where .\n\t\t\t\t\t\t\t\"AND fd.is_active = 1 \" .\n\t\t\t\t\t\t\t\"AND nut.NutrientID = 1 \" .\n\t\t\t\t\t\t\t\"AND fd.z_user_id = \" . $this->id;\n\t\t\t$data = $this->dbOb->query($sql);\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\tthrow($e);\n\t\t}\n\n\t\treturn $data;\n\t}",
"public function filterByGsHandelsproducten($gsHandelsproducten, $comparison = null)\n {\n if ($gsHandelsproducten instanceof GsHandelsproducten) {\n return $this\n ->addUsingAlias(GsIngegevenSamenstellingenPeer::HANDELSPRODUKTKODE, $gsHandelsproducten->getHandelsproduktkode(), $comparison);\n } elseif ($gsHandelsproducten instanceof PropelObjectCollection) {\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n\n return $this\n ->addUsingAlias(GsIngegevenSamenstellingenPeer::HANDELSPRODUKTKODE, $gsHandelsproducten->toKeyValue('PrimaryKey', 'Handelsproduktkode'), $comparison);\n } else {\n throw new PropelException('filterByGsHandelsproducten() only accepts arguments of type GsHandelsproducten or PropelCollection');\n }\n }",
"static function filter ( $request, $columns, $query)\r\n\t{\r\n $query->where(function($query) use($columns,$request) {\r\n \r\n \r\n\t\t$globalSearch = array();\r\n\t\t$columnSearch = array();\r\n\t\t$dtColumns = self::pluck( $columns, 'dt' );\r\n $newstring = \"\";\r\n\t\tif ( isset($request['search']) && $request['search']['value'] != '' ) {\r\n\t\t\t$str = $request['search']['value'];\r\n\r\n\t\t\tfor ( $i=0, $ien=count($request['columns']) ; $i<$ien ; $i++ ) {\r\n\t\t\t\t$requestColumn = $request['columns'][$i];\r\n\t\t\t\t$columnIdx = array_search( $requestColumn['data'], $dtColumns );\r\n\t\t\t\t$column = $columns[ $columnIdx ];\r\n\r\n\t\t\t\tif ( $requestColumn['searchable'] == 'true' ) {\r\n\t\t\t\t\t//$binding = self::bind( $bindings, '%'.$str.'%', PDO::PARAM_STR );\r\n\t\t\t\t\t//$globalSearch[] = \"`\".$column['db'].\"` LIKE \".$binding;\r\n\t\t\t\t\tif($column['db']==='main_agent') {\r\n\t\t\t\t\t\t$query->orWhereHas('mainagent', function($query) use ($str) {\r\n\t\t\t\t\t\t\t$query->WhereHas('user', function($query) use($str) {\r\n\t\t\t\t\t\t\t\t$query->where('first_name','LIKE','%'.$str.'%')->orWhere('last_name','LIKE','%'.$str.'%');\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t} elseif($column['db']==='influencers') {\r\n \r\n } else {\r\n\t\t\t\t\t\t$query->orWhere($column['db'],'LIKE','%'.$str.'%');\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n \r\n\t\t// Individual column filtering\r\n\t\t/*for ( $i=0, $ien=count($request['columns']) ; $i<$ien ; $i++ ) {\r\n\t\t\t$requestColumn = $request['columns'][$i];\r\n\t\t\t$columnIdx = array_search( $requestColumn['data'], $dtColumns );\r\n\t\t\t$column = $columns[ $columnIdx ];\r\n\r\n\t\t\t$str = $requestColumn['search']['value'];\r\n\r\n\t\t\tif ( $requestColumn['searchable'] == 'true' &&\r\n\t\t\t $str != '' ) {\r\n\t\t\t\t$binding = self::bind( $bindings, '%'.$str.'%', PDO::PARAM_STR );\r\n\t\t\t\t$columnSearch[] = \"`\".$column['db'].\"` LIKE \".$binding;\r\n\t\t\t}\r\n\t\t}*/\r\n\r\n\t\t// Combine the filters into a single string\r\n\t\t/*$where = '';\r\n\r\n\t\tif ( count( $globalSearch ) ) {\r\n\t\t\t$where = '('.implode(' OR ', $globalSearch).')';\r\n\t\t}\r\n\r\n\t\tif ( count( $columnSearch ) ) {\r\n\t\t\t$where = $where === '' ?\r\n\t\t\t\timplode(' AND ', $columnSearch) :\r\n\t\t\t\t$where .' AND '. implode(' AND ', $columnSearch);\r\n\t\t}\r\n\r\n\t\tif ( $where !== '' ) {\r\n\t\t\t$where = 'WHERE '.$where;\r\n\t\t}\r\n\r\n\t\treturn $where;*/\r\n \r\n return $query;\r\n });\r\n return $query;\r\n\t}",
"public function searchObatSupplier()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n// $criteria->with = array('obatalkes','supplier');\n $criteria->select=' supplier_m.supplier_kode, supplier_m.supplier_nama, supplier_m.supplier_aktif, supplier_m.supplier_id, obatalkes_m.obatalkes_nama,obatalkes_m.obatalkes_id';\n $criteria->join = 'LEFT JOIN supplier_m ON supplier_m.supplier_id=t.supplier_id LEFT JOIN obatalkes_m ON obatalkes_m.obatalkes_id=t.obatalkes_id';\n $criteria->compare('obatalkes_m.obatalkes_id',$this->obatalkes_id);\n\t\t$criteria->compare('supplier_m.supplier_id',$this->supplier_id);\n $criteria->compare('LOWER(obatalkes_m.obatalkes_nama)',strtolower('$this->obatalkes_nama'));\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function filterByFactura($factura, $comparison = null)\n\t{\n\t\tif ($factura instanceof Factura) {\n\t\t\treturn $this\n\t\t\t\t->addUsingAlias(ClientePeer::ID_CLIENTE, $factura->getIdCliente(), $comparison);\n\t\t} elseif ($factura instanceof PropelCollection) {\n\t\t\treturn $this\n\t\t\t\t->useFacturaQuery()\n\t\t\t\t\t->filterByPrimaryKeys($factura->getPrimaryKeys())\n\t\t\t\t->endUse();\n\t\t} else {\n\t\t\tthrow new PropelException('filterByFactura() only accepts arguments of type Factura or PropelCollection');\n\t\t}\n\t}",
"public static function apply(Builder $builder, $value)\n {\n return $builder->whereHas('authors', function($query) use($value){\n return $query->where('name', 'like', '%' . strtolower(trim($value)) . '%');\n });\n }",
"public function filter($predicate);",
"public static function brokerByColumnSearch($column = '', $value = '')\n {\n return false;\n }"
] | [
"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.46047717",
"0.46038768",
"0.45575863",
"0.45242178",
"0.45163152",
"0.4501541",
"0.44944602",
"0.44774896",
"0.44771227",
"0.4467805"
] | 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_str($key) . \"%'\"];\n\n\t\t//==\n\t\t$keys = preg_replace('/\\s+/', ' ', $key);\n\t\t$keys = explode(' ', $keys);\n\t\tforeach ($keys as $v) {\n\t\t\t$v = t('db')->escape_like_str($v);\n\n\t\t\t$query[] = \"`keywords` LIKE '%{$v}%'\";\n\t\t}\n\t\t$query = implode(' OR ', $query);\n\t\treturn \"($query)\";\n\t}",
"function filterSearchKeys($query){\n global $db;\n $query = trim(preg_replace(\"/(\\s+)+/\", \" \", $query));\n $words = array();\n // expand this list with your words.\n $list = array(\"in\",\"it\",\"a\",\"the\",\"of\",\"or\",\"I\",\"you\",\"he\",\"me\",\"us\",\"they\",\"she\",\"to\",\"but\",\"that\",\"this\",\"those\",\"then\");\n $c = 0;\n foreach(explode(\" \", $query) as $key){\n if (in_array($key, $list)){\n continue;\n }\n $words[] = $key;\n if ($c >= 15){\n break;\n }\n $c++;\n }\n return $words;\n}",
"function keywords($keywords){\n\t$string = \"\";\n\t$string .= ' AND(';\n\t$string .= ' (contains(p.first_name, \\'' . $keywords. '\\', '.'1'. ') > 0)';\n\t$string .= ' OR (contains(p.last_name, \\'' . $keywords.'\\', '.'2'. ') > 0)';\n\t$string .= ' OR (contains(r.diagnosis, \\'' . $keywords. '\\', '.'3'. ') > 0)';\n\t$string .= ' OR (contains(r.description, \\'' . $keywords. '\\','.'4'. ' ) > 0)';\n\t$string .= ')';\n\treturn $string;\n}",
"public function getKeywords ( Request $request ){\n \n if( $request->has('key') ){\n $ids = [];\n $search = $request->key;\n if( $request->has('present') ){\n $ids = $request->present;\n }\n //$results = DB::select(\"SELECT * FROM `keywords` WHERE ( `id` NOT IN ( {$ids} ) ) AND ( `name` LIKE :s ) \", [ 's' => \"%{$search}%\" ] );\n $results = DB::table('keywords')\n ->whereNotIn( 'id', $ids )\n ->where( 'name', 'LIKE', \"%{$search}%\" )\n ->get();\n return response()->json( $results );\n }\n }",
"public static function applicationSearch($keywords, $constraints = null) {\r\n //creates database connection if one doesn't already exist\r\n self::setInstance();\r\n\r\n //remove whitespace and escape keywords, surround in single quotes\r\n for($i = 0; $i < count($keywords); $i++) {\r\n $keywords[$i] = \"'\" . (htmlspecialchars($keywords[$i], ENT_QUOTES)) . \"'\";\r\n }\r\n \r\n //prevent SQL injection and create constraints SQL\r\n $constraints_query = \" \";\r\n if($constraints !== null) {\r\n foreach($constraints as $field => $array) {\r\n //ensure there's at least one constraint\r\n if(count($array) > 0) {\r\n $constraints_query .= \" AND $field IN(\";\r\n foreach($array as $key => $value) {\r\n //escape and quote value\r\n $array[$key] = \"'\".htmlspecialchars($value, ENT_QUOTES).\"'\";\r\n }\r\n $constraints_query .= implode(',', $array).\")\";\r\n }\r\n }\r\n }\r\n \r\n //create an array of LIKE SELECT statements for each word \r\n //-- this way the query will match titles if it's only part of the title\r\n $title_selects = array();\r\n foreach($keywords as $word) {\r\n $title_selects[] = \"SELECT id, '5' as weight FROM applications WHERE(\"\r\n . \" moderation_state = 'ACTIVE'\"\r\n . \" AND title LIKE $word\"\r\n . $constraints_query\r\n . \")\";\r\n }\r\n \r\n //create a comma separated list of keywords\r\n $keyword_list = implode(',', $keywords);\r\n \r\n //generate query for search using parts from above\r\n $query = \"SELECT id FROM(\"\r\n . \"SELECT id, weight FROM(\"\r\n . \"SELECT applications.*, keywords.word, '2' as weight FROM keywords\"\r\n . \" JOIN applications ON (keywords.id = applications.id)\"\r\n . \" WHERE word IN ($keyword_list)\"\r\n . \" ) AS keyword_results\"\r\n . \" WHERE moderation_state = 'ACTIVE'\";\r\n $query .= $constraints_query;\r\n $query .= \" UNION ALL \"\r\n . implode(\" UNION ALL \", $title_selects)\r\n . \") AS search_results GROUP BY id ORDER BY SUM(weight) DESC;\";\r\n\r\n //get array of results\r\n $raw_results = self::$instance->query($query)->fetchAll(PDO::FETCH_ASSOC);\r\n \r\n //cleanup array so it only returns application ids\r\n $results = array();\r\n foreach($raw_results as $result) { //cleanup MySQL results and change into an array of ints\r\n $results[] = $result[\"id\"];\r\n }\r\n \r\n return $results;\r\n }",
"public function search($keywords = '', array $params = array())\n {\n foreach ($params as $alias => $value)\n {\n $this->search_param($alias, $value);\n }\n\n $this->search_param('words', $keywords);\n\n $params = $this->_prepare_search_params();\n $result_columns = NULL;\n\n if (array_key_exists('result_columns', $params))\n {\n $result_columns = $params['result_columns'];\n unset($params['result_columns']);\n }\n\n $results = $this->get_search_results($params, $result_columns);\n\n return $this->_parse_search_results($results);\n }",
"private function createWhereClauseForMultipleKeywords($keywords) {\n $whereClause = \"\";\n foreach ($keywords as $keyword) {\n $whereClause .= \"OR ik.keyword_name = '$keyword' \";\n }\n return substr($whereClause, 3);\n }",
"public function keywords();",
"function search($keywords){\r\n \r\n }",
"public function getKeywords();",
"function keywords($data){$this->set_keywords($data);}",
"function setKeywords($keywords)\n {\n $this->keywords = $keywords;\n }",
"public function setKeywords($keywords)\n {\n $this->keywords = $keywords;\n\n return $this;\n }",
"public function getAllKeywords()\n {\n $_allKeywords = [];\n $WordsArr = [];\n\n $allData = $this->index();\n\n foreach ($allData as $oneData) {\n $_allKeywords[] = trim($oneData->name);\n }\n\n $allData = $this->index();\n\n foreach ($allData as $oneData) {\n $eachString = strip_tags($oneData->name);\n $eachString = trim($eachString);\n $eachString = preg_replace(\"/\\r|\\n/\", ' ', $eachString);\n $eachString = str_replace(' ', '', $eachString);\n\n $WordsArr = explode(' ', $eachString);\n\n foreach ($WordsArr as $eachWord) {\n $_allKeywords[] = trim($eachWord);\n }\n }\n // for each search field block end\n\n return array_unique($_allKeywords);\n }",
"function split_keywords(&$keywords, $terms)\n\t{\n\t\tglobal $config;\n\n\t\tif ($terms == 'all')\n\t\t{\n\t\t\t$match\t\t= array('#\\sand\\s#i', '#\\sor\\s#i', '#\\snot\\s#i', '#\\+#', '#-#', '#\\|#', '#@#');\n\t\t\t$replace\t= array(' & ', ' | ', ' - ', ' +', ' -', ' |', '');\n\n\t\t\t$replacements = 0;\n\t\t\t$keywords = preg_replace($match, $replace, $keywords);\n\t\t\t$this->sphinx->SetMatchMode(SPH_MATCH_EXTENDED);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->sphinx->SetMatchMode(SPH_MATCH_ANY);\n\t\t}\n\n\t\t$match = array();\n\t\t// Keep quotes\n\t\t$match[] = \"#"#\";\n\t\t// KeepNew lines\n\t\t$match[] = \"#[\\n]+#\";\n\n\t\t$replace = array('\"', \" \");\n\n\t\t$keywords = str_replace(array('"', \"\\n\"), array('\"', ' '), trim($keywords));\n\n\t\tif (strlen($keywords) > 0)\n\t\t{\n\t\t\t$this->search_query = str_replace('\"', '"', $keywords);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"public function findByKeyword($keyword) {\n\n }",
"function searchFromKeywords($keywords){\n\t\tglobal $potodb;\n\t\t$l = count($keywords);\n\t\t$str = \"select file_id, count(file_id) from term_relationship where\";\n\t\tfor($i = 0; $i < $l-1; $i++){\n\t\t\t$keyword = $keywords[$i];\n\t\t\t$term_id = getTermId($keyword);\n\t\t\t$str.=\" term_id=$term_id or\";\n\t\t}\n\t\t$keyword = $keywords[$i];\n\t\t$term_id = getTermId($keyword);\n\t\t$str.=\" term_id=$term_id GROUP by file_id;\";\n\n\t\t$res = $potodb->get_result($str);\n\t\t$file_ids = [];\n\t\tif($res){\n\t\t\tforeach($res as $row){\n\t\t\t\tif($row[\"count(file_id)\"] == $l){\n\t\t\t\t\t$file_ids[] = 0+$row[\"file_id\"];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(count($file_ids) == 0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn $file_ids;\n\t\t}\n\t\telse{\n\t\t\treturn $res;\n\t\t}\n\t}",
"public function byKeyword($keyword)\n {\n return parent::andWhere(\"MATCH(title,body) AGAINST (:keyword)\", ['keyword' => $keyword]);\n }",
"public function search($keyWord)\n {\n return $this->builder->where('domain_id', 'LIKE', \"%{$keyWord['value']}%\")\n ->orWhere('domain_url', 'LIKE', \"%{$keyWord['value']}%\")\n ->orWhere('domain_name', 'LIKE', \"%{$keyWord['value']}%\")\n ->orWhere('domain_xpath', 'LIKE', \"%{$keyWord['value']}%\");\n }",
"public function getSearchKey(): string\n {\n return 'keywords';\n }",
"public function getKeywords(Request $request)\n {\n $keyWords = [];\n if(!empty($request->search))\n {\n $keyWords = DB::select(\"SELECT * FROM\n ( SELECT keyword AS name\n FROM keywords\n UNION\n SELECT store_name as name\n FROM stores\n UNION\n SELECT product_title as name\n FROM products) AS search\n WHERE name LIKE '%\".$request->search.\"%'\n ORDER BY name\n LIMIT 5\");\n \n if(!empty($keyWords))\n {\n $result = collect($keyWords)->pluck('name')->toArray();\n \n if($request->app_type == 1)\n {\n return $this->toJson(['keywords' => $result]);\n }\n\n return $this->toJson(['keywords' => $keyWords]);\n }\n }\n\n $result = [\n 'keywords' => $keyWords,\n ];\n\n return $this->toJson($result);\n }",
"public function setKeywords($keywords)\n\t\t{\n\t\t\t$this->keywords = (array)$keywords;\n\t\t}",
"public function getActiveListingsByKeywordsInTitle( $keywords )\n {\n $keywords = is_array($keywords) ? $keywords : [$keywords];\n $keywords = implode(',', $keywords);\n\n return $this->make(\n \"listings/active?includes=Images&title=$keywords\",\n \"get\"\n );\n }",
"function search($keywords){\n \n // Query sql\n $query = \"SELECT * FROM \".$this->table . \" WHERE judul LIKE ?\";\n \n // Prepare statement\n $stmt = $this->koneksi->prepare($query);\n \n // Sanitize isi\n $keywords=htmlspecialchars(strip_tags($keywords));\n $keywords = \"%{$keywords}%\";\n \n // Bind isi\n $stmt->bindParam(1, $keywords);\n \n // Eksekusi query\n $stmt->execute();\n \n // Kembalikan nilai statement atau hasil eksekusi\n return $stmt;\n }",
"public function findByKeywords($pageUids, $keywords, $excludeNoSearchPages = TRUE) {\n\t\t$query = $this->createQuery();\n\n\t\t$constraints = $this->setPageTypeConstraints($query);\n\t\t$constraints[] = $query->in('uid', $pageUids);\n\n\t\tif ($excludeNoSearchPages) {\n\t\t\t$constraints[] = $query->equals('no_search', 0);\n\t\t} else {\n\t\t\t$constraints[] = $query->equals('no_search', 1);\n\t\t}\n\n\t\t$keywordConstraints = array();\n\t\tforeach($keywords as $keyword) {\n\t\t\t$keywordConstraints[] = $query->like('keywords', '%' . $keyword . '%');\n\t\t}\n\n\t\t$constraints[] = $query->logicalOr(\n\t\t\t$keywordConstraints\n\t\t);\n\n\n\n\t\t$query->matching(\n\t\t\t$query->logicalAnd(\n\t\t\t\t$constraints\n\t\t\t)\n\t\t);\n\n\t\treturn $query->execute();\n\t}",
"private function loadKeywords() {\n $keywords = array();\n $statement = \"SELECT terms.name AS keyword\n FROM node node\n INNER JOIN field_revision_field_fact_tags tags ON node.nid = tags.entity_id\n INNER JOIN taxonomy_term_data terms ON tags.field_fact_tags_tid = terms.tid\n WHERE node.type = 'fact' AND node.nid = \" . $this->guid;\n $query = $this->connection->execute($statement);\n while ($row = $query->fetch(PDO::FETCH_ASSOC)) {\n $keywords[] = $row['keyword'];\n }\n $this->keywords = $keywords;\n }",
"public function baseFilter() {\n\t\t$querySearched = \"\";\n\n\t\tif (Auth::user()->groupe->id === 1)\n \t\t\t$querySearched = '*:* ';\n \n \telse {\n \t\t$user = Auth::user();\n \t\t$themes = $user->groupe->themes;\n\t\t\t$querySearched = (new GetKeywords($user))->getKeywordsByThemes($themes);\n \t}\n\n\t\t\n//dd($querySearched);\n\t\t\n\t\t// get a select query instance\n\t\t$query = $this->client->createSelect();\n\t\t$this->client->getPlugin('postbigrequest');\n\n\t\t$helper = $query->getHelper();\n\t\t//$querySearched = (new GetKeywords(Auth::user()))->get();\n\t\t//dd($querySearched);\n\t\t//dd($querySearched);\n\t\t$keywordsquery = \"\";\n\t\t$Textfields = ['Title_en', 'Title_fr', 'Title_ar' ,'Fulltext_en','Fulltext_fr', 'Fulltext_ar'];\n\n\t\tforeach ($Textfields as $value) {\n\t\t $keywordsquery .= $value.\":(\".$querySearched.\") \";\n\t\t}\n\t\t\n\t\t$query->createFilterQuery('filterkeywords')->setQuery($keywordsquery);\n\t\t\n\t\t$query->setFields([\n\t\t\t'id',\n\t\t\t'Title_en','Title_fr', 'Title_ar',\n\t\t\t'Fulltext_en','Fulltext_fr','Fulltext_ar',\n\t\t\t'document', 'Source','SourceName','ArticleLanguage', 'SourceDate','Author','score']);\n\n\t\t$facetSet = $query->getFacetSet();\n\t\t$facetSet->createFacetField('language')->setField('ArticleLanguage');\n\t\t$facetSet->createFacetField('author')->setField('Author');\n\t\t$facetSet->createFacetField('source')->setField('SourceName');\n\t\t$facetSet->createFacetField('date')->setField('SourceDate');\n\t\t$facetSet->setMinCount(1);\n\t\treturn $query;\n\n\t}"
] | [
"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.5476281",
"0.5475484",
"0.5410104",
"0.54007554",
"0.5393392",
"0.5385025",
"0.53789985",
"0.5372036",
"0.53646904"
] | 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)->paginate($perPage);\n }",
"public function vmRunOnHostFilter($vmID)\n\t{\n\t\t//If all clients running on a special VM host should be searched, no search string is allowed\n\t\t$this->searchWHERE = '';\n\t\t$this->vmRunOnHostWHERE = 'clients.vmRunOnHost = '.$vmID.' ';\n\t}",
"public function get_list_provincia(Request $request)\n {\n $filter = json_decode($request->get('filter'));\n $sql=\"\";\n if($filter->buscar!=\"\"){\n $sql=\" AND descripcion LIKE '%\".$filter->buscar.\"%' \";\n }\n $data=Provincia::with(\"pais\")\n ->whereRaw(\" estado='\".$filter->estado.\"' \".$sql)\n ->orderBy(\"descripcion\",\"ASC\");\n return $data->paginate(5);\n }",
"public function getByVPN($vpn) {\n return \"Hello, \" . $vpn;\n }",
"public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(OptionsViTableMap::COL_VITBOPTNCODE, $key, Criteria::EQUAL);\n }",
"public function filterByPv($pv = null, $comparison = null)\n {\n if (is_array($pv)) {\n $useMinMax = false;\n if (isset($pv['min'])) {\n $this->addUsingAlias(AliProductTableMap::COL_PV, $pv['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($pv['max'])) {\n $this->addUsingAlias(AliProductTableMap::COL_PV, $pv['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliProductTableMap::COL_PV, $pv, $comparison);\n }",
"public function Filter($filter=null){\n $results = $this->where(function($query) use ($filter){\n if($filter){\n $query->where('cliente','LIKE',\"%{$filter}%\" or 'vendedor','LIKE',\"%{$filter}%\" or 'data','LIKE',\"%{$filter}%\")->orderBy(\"%{$filter}%\", 'desc')->get() ;\n }\n });\n return $results;\n }",
"protected function generateSQLColumnFilter($column, $search_value)\n {\n return self::_generateSQLColumnFilter($column, $search_value, $this->pdoLink, isset($this->sRangeSeparator) ? $this->sRangeSeparator : '~');\n }",
"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($builder),\n ])->execute($column, $value);\n }",
"public function filterByPv($pv = null, $comparison = null)\n {\n if (is_array($pv)) {\n $useMinMax = false;\n if (isset($pv['min'])) {\n $this->addUsingAlias(AliPcTableMap::COL_PV, $pv['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($pv['max'])) {\n $this->addUsingAlias(AliPcTableMap::COL_PV, $pv['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliPcTableMap::COL_PV, $pv, $comparison);\n }",
"public function search($params)\n {\n $query = Vod::find()->with('groups');\n\n // add conditions that should always apply here\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n 'pagination' => [\n 'pageSize' => 30\n ],\n 'sort' => [\n 'defaultOrder' => [\n 'sort' => SORT_ASC,\n 'vod_addtime' => SORT_DESC\n ]\n ]\n ]);\n\n $this->load($params);\n\n if (!$this->validate()) {\n return $dataProvider;\n }\n\n if ($this->vod_cid) {\n $list = VodList::findOne($this->vod_cid);\n\n if (in_array(strtolower($list->list_dir),['shouye', 'index', 'recommend'])) {\n $query->andFilterWhere(['vod_home' => 1]);\n unset($this->vod_cid);\n }\n\n }\n\n // grid filtering conditions\n $query->andFilterWhere([\n 'vod_id' => $this->vod_id,\n 'vod_cid' => $this->vod_cid,\n 'vod_price' => $this->vod_price,\n 'vod_status' => $this->vod_status,\n ]);\n\n $query->andFilterWhere(['like', 'vod_name', $this->vod_name])\n ->andFilterWhere(['like', 'vod_ename', $this->vod_ename])\n ->andFilterWhere(['like', 'vod_title', $this->vod_title])\n ->andFilterWhere(['like', 'vod_keywords', $this->vod_keywords])\n ->andFilterWhere(['like', 'vod_type', $this->vod_type])\n ->andFilterWhere(['like', 'vod_actor', $this->vod_actor])\n ->andFilterWhere(['like', 'vod_director', $this->vod_director])\n ->andFilterWhere(['like', 'vod_area', $this->vod_area])\n ->andFilterWhere(['like', 'vod_language', $this->vod_language])\n ->andFilterWhere(['like', 'vod_url', $this->vod_url])\n ->andFilterWhere(['like', 'vod_letter', $this->vod_letter])\n ->andFilterWhere(['like', 'vod_series', $this->vod_series])\n ->andFilterWhere(['like', 'vod_state', $this->vod_state])\n ->andFilterWhere(['like', 'vod_version', $this->vod_version])\n ->andFilterWhere(['like', 'vod_scenario', $this->vod_scenario]);\n\n return $dataProvider;\n }",
"function filterStr($field, $value) {\n if (\"$value\" !== '') {\n if ($value[0] === '=') {\n $this->where($field, '=', trim( substr($value, 1) ));\n } else {\n $wrapped = $this->table->grammar->wrap($field);\n\n switch ($value[0]) {\n case '^':\n $cond = '= 1';\n case '?':\n isset($cond) or $cond = '!= 0';\n $this->raw_where(\"LOCATE(?, $wrapped) $cond\", array($value));\n break;\n\n case '%':\n $this->raw_where(\"$wrapped LIKE ?\", array($value));\n break;\n\n default:\n $this->where($field, '=', trim($value));\n break;\n }\n }\n }\n }",
"public function search($params) {\n $query = ProductVendor::find();\n\n // add conditions that should always apply here\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n\n $this->load($params);\n if (!isset($params[\"ProductVendor\"][\"compareOp\"])) {\n $operator = '';\n } else {\n $operator = $params[\"ProductVendor\"][\"compareOp\"];\n }\n if (!isset($params[\"ProductVendor\"][\"compare\"])) {\n $val = '';\n } else {\n $val = $params[\"ProductVendor\"][\"compare\"];\n }\n\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n }\n\n // grid filtering conditions\n $query->andFilterWhere([\n 'id' => $this->id,\n 'product_id' => $this->product_id,\n 'vendor_id' => $this->vendor_id,\n 'qty' => $this->qty,\n 'sku' => $this->sku,\n 'offer' => $this->offer,\n 'handling_time' => $this->handling_time,\n 'pick_up_location' => $this->pick_up_location,\n 'free_shipping' => $this->free_shipping,\n 'courier_handover' => $this->courier_handover,\n 'offer_price' => $this->offer_price,\n 'full_fill' => $this->full_fill,\n 'vendor_status' => $this->vendor_status,\n 'admin_status' => $this->admin_status,\n 'CB' => $this->CB,\n 'UB' => $this->UB,\n 'DOC' => $this->DOC,\n 'DOU' => $this->DOU,\n ]);\n\n $query->andFilterWhere(['like', 'offer_note', $this->offer_note])\n ->andFilterWhere(['like', 'conditions', $this->conditions])\n ->andFilterWhere([$operator, 'price', $val])\n ->andFilterWhere(['like', 'field1', $this->field1])\n ->andFilterWhere(['like', 'field2', $this->field2])\n ->andFilterWhere(['like', 'field3', $this->field3]);\n\n return $dataProvider;\n }",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('pemeriksaanpartograf_id',$this->pemeriksaanpartograf_id);\n\t\t$criteria->compare('persalinan_id',$this->persalinan_id);\n\t\t$criteria->compare('pto_tglperiksa',$this->pto_tglperiksa,true);\n\t\t$criteria->compare('pto_ketubanpecah',$this->pto_ketubanpecah,true);\n\t\t$criteria->compare('pto_mules',$this->pto_mules,true);\n\t\t$criteria->compare('pto_djj_menit',$this->pto_djj_menit);\n\t\t$criteria->compare('pto_airketuban',$this->pto_airketuban,true);\n\t\t$criteria->compare('pto_penyusupan',$this->pto_penyusupan,true);\n\t\t$criteria->compare('pto_pembukaan',$this->pto_pembukaan);\n\t\t$criteria->compare('pto_penutupan',$this->pto_penutupan);\n\t\t$criteria->compare('kontraksi_jml',$this->kontraksi_jml);\n\t\t$criteria->compare('kontraksi_lama_detik',$this->kontraksi_lama_detik);\n\t\t$criteria->compare('kontraksi_oksitosin_unit',$this->kontraksi_oksitosin_unit);\n\t\t$criteria->compare('kontraksi_tetes_menit',$this->kontraksi_tetes_menit);\n\t\t$criteria->compare('pto_tekanandarah',$this->pto_tekanandarah,true);\n\t\t$criteria->compare('pto_systolic',$this->pto_systolic);\n\t\t$criteria->compare('pto_diastolic',$this->pto_diastolic);\n\t\t$criteria->compare('urine_protein',$this->urine_protein,true);\n\t\t$criteria->compare('urine_aseton',$this->urine_aseton,true);\n\t\t$criteria->compare('urine_volumen',$this->urine_volumen);\n\t\t$criteria->compare('create_time',$this->create_time,true);\n\t\t$criteria->compare('update_time',$this->update_time,true);\n\t\t$criteria->compare('create_loginpemakai_id',$this->create_loginpemakai_id);\n\t\t$criteria->compare('update_loginpemakai_id',$this->update_loginpemakai_id);\n\t\t$criteria->compare('create_ruangan',$this->create_ruangan);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function criteriaSearch() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n if (!empty($this->pasienujk_id)) {\n $criteria->addCondition('pasienujk_id = ' . $this->pasienujk_id);\n }\n $criteria->compare('LOWER(tanggal)', strtolower($this->tanggal), true);\n $criteria->compare('LOWER(golonganumur)', strtolower($this->golonganumur), true);\n if (!empty($this->lakilaki)) {\n $criteria->addCondition('lakilaki = ' . $this->lakilaki);\n }\n if (!empty($this->perempuan)) {\n $criteria->addCondition('perempuan = ' . $this->perempuan);\n }\n \n\n return $criteria;\n }",
"public function globalFilter()\n {\n $globalSearch = [];\n if (isset($this->request['search']) && !empty($this->request['search']['value'])) {\n for ($i = 0, $ien = count($this->request['columns']); $i<$ien; $i++) {\n if (self::isSearchable($this->columns[$i])) {\n $where_condition = $this->toSQLColumn($this->columns[$i], 2).' LIKE '.$this->pdoLink->quote('%'.$this->request['search']['value'].'%');\n if (!$this->setHaving($where_condition, $this->columns[$i])) {\n $globalSearch[] = $where_condition;\n }\n }\n }\n }\n\n return empty($globalSearch) ? '' : '('.implode(' OR ', $globalSearch).')';\n }",
"public function criteriaSearch()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\tif(!empty($this->lappenjualanresep_id)){\n\t\t\t$criteria->addCondition('lappenjualanresep_id = '.$this->lappenjualanresep_id);\n\t\t}\n\t\t$criteria->compare('LOWER(tanggal)',strtolower($this->tanggal),true);\n\t\tif(!empty($this->penjualanresep)){\n\t\t\t$criteria->addCondition('penjualanresep = '.$this->penjualanresep);\n\t\t}\n\t\tif(!empty($this->penjualanresepluar)){\n\t\t\t$criteria->addCondition('penjualanresepluar = '.$this->penjualanresepluar);\n\t\t}\n\t\tif(!empty($this->penjualanbebas)){\n\t\t\t$criteria->addCondition('penjualanbebas = '.$this->penjualanbebas);\n\t\t}\n\t\tif(!empty($this->penjualandokter)){\n\t\t\t$criteria->addCondition('penjualandokter = '.$this->penjualandokter);\n\t\t}\n\t\tif(!empty($this->penjualankaryawan)){\n\t\t\t$criteria->addCondition('penjualankaryawan = '.$this->penjualankaryawan);\n\t\t}\n\n\t\treturn $criteria;\n\t}",
"public function search($params)\r\n {\r\n $query = Ventas::find();\r\n\r\n $dataProvider = new ActiveDataProvider([\r\n 'query' => $query,\r\n ]);\r\n\r\n $this->load($params);\r\n\r\n if (!$this->validate()) {\r\n // uncomment the following line if you do not want to return any records when validation fails\r\n // $query->where('0=1');\r\n return $dataProvider;\r\n }\r\n\r\n $query->andFilterWhere([\r\n 'id' => $this->id,\r\n //'idProducto' => $this->idProducto,\r\n 'cantidad' => $this->cantidad,\r\n 'vendedor' => $this->vendedor,\r\n 'cliente' => $this->cliente,\r\n 'fecha_venta' => $this->fecha_venta == null ? null : date('Y-m-d',(strtotime($this->fecha_venta))),\r\n 'estado' => 2,\r\n 'carga_venta' => 0,\r\n 'fecha_carga' => $this->fecha_carga == null ? null : date('Y-m-d',(strtotime($this->fecha_carga))),\r\n ]);\r\n\r\n $query->andFilterWhere(['like', 'importe', $this->importe])->andFilterWhere(['like', 'idProducto', $this->idProducto])\r\n ->andFilterWhere(['like', 'importe_unitario', $this->importe_unitario]);\r\n\r\n return $dataProvider;\r\n }",
"public static function searchableColumns()\n {\n return config('nova-subscriber.subscriber.search');\n }",
"public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('codboletoretorno',$this->codboletoretorno,true);\n\t\t$criteria->compare('codboletomotivoocorrencia',$this->codboletomotivoocorrencia,true);\n\t\t$criteria->compare('codportador',$this->codportador,true);\n\t\t$criteria->compare('dataretorno',$this->dataretorno,true);\n\t\t$criteria->compare('linha',$this->linha,true);\n\t\t$criteria->compare('nossonumero',$this->nossonumero,true);\n\t\t$criteria->compare('numero',$this->numero,true);\n\t\t$criteria->compare('valor',$this->valor,true);\n\t\t$criteria->compare('codbancocobrador',$this->codbancocobrador,true);\n\t\t$criteria->compare('agenciacobradora',$this->agenciacobradora,true);\n\t\t$criteria->compare('despesas',$this->despesas,true);\n\t\t$criteria->compare('outrasdespesas',$this->outrasdespesas,true);\n\t\t$criteria->compare('jurosatraso',$this->jurosatraso,true);\n\t\t$criteria->compare('abatimento',$this->abatimento,true);\n\t\t$criteria->compare('desconto',$this->desconto,true);\n\t\t$criteria->compare('pagamento',$this->pagamento,true);\n\t\t$criteria->compare('jurosmora',$this->jurosmora,true);\n\t\t$criteria->compare('protesto',$this->protesto,true);\n\t\t$criteria->compare('codtitulo',$this->codtitulo,true);\n\t\t$criteria->compare('arquivo',$this->arquivo,true);\n\t\t$criteria->compare('alteracao',$this->alteracao,true);\n\t\t$criteria->compare('codusuarioalteracao',$this->codusuarioalteracao,true);\n\t\t$criteria->compare('criacao',$this->criacao,true);\n\t\t$criteria->compare('codusuariocriacao',$this->codusuariocriacao,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'periode': return \"periode = '$key'\";\n\t\t\t\tcase 'kodemk': return \"kodemk = '$key'\";\n\t\t\t\tcase 'kelasmk': return \"kelasmk = '$key'\";\n\t\t\t\tcase 'sistemkuliah': return \"sistemkuliah = '$key'\";\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once(Route::getModelPath('unit'));\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t}\n\t\t}",
"public function like($column, $value) { return $this->addCondition($column, $value, Criterion::LIKE); }",
"public function criteriaSearch()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('pesanmenudiet_id',$this->pesanmenudiet_id);\n\t\t$criteria->compare('ruangan_id',$this->ruangan_id);\n\t\t$criteria->compare('kirimmenudiet_id',$this->kirimmenudiet_id);\n\t\t$criteria->compare('jenisdiet_id',$this->jenisdiet_id);\n\t\t$criteria->compare('bahandiet_id',$this->bahandiet_id);\n\t\t$criteria->compare('LOWER(jenispesanmenu)',strtolower($this->jenispesanmenu),true);\n\t\t$criteria->compare('LOWER(nopesanmenu)',strtolower($this->nopesanmenu),true);\n\t\t$criteria->compare('LOWER(tglpesanmenu)',strtolower($this->tglpesanmenu),true);\n\t\t$criteria->compare('LOWER(adaalergimakanan)',strtolower($this->adaalergimakanan),true);\n\t\t$criteria->compare('LOWER(keterangan_pesan)',strtolower($this->keterangan_pesan),true);\n\t\t$criteria->compare('LOWER(nama_pemesan)',strtolower($this->nama_pemesan),true);\n\t\t$criteria->compare('totalpesan_org',$this->totalpesan_org);\n\t\t$criteria->compare('LOWER(create_time)',strtolower($this->create_time),true);\n\t\t$criteria->compare('LOWER(update_time)',strtolower($this->update_time),true);\n\t\t$criteria->compare('LOWER(create_loginpemakai_id)',strtolower($this->create_loginpemakai_id),true);\n\t\t$criteria->compare('LOWER(update_loginpemakai_id)',strtolower($this->update_loginpemakai_id),true);\n\t\t$criteria->compare('LOWER(create_ruangan)',strtolower($this->create_ruangan),true);\n\n\t\treturn $criteria;\n\t}",
"public static function _generateSQLColumnFilter($column, $search_value, PDO $pdoLink, $sRangeSeparator = '~')\n {\n if (preg_match(\"/^\\[(=|!=)\\]$/i\", $search_value, $match)) {\n return $column.' '.$match[1].' '.$pdoLink->quote('');\n }\n\n if (preg_match(\"/^\\[(!|<=|>=|=|<|>|<>|!=)\\](.+)/i\", $search_value, $match)) {\n if ($match[1] == '!=' && $match[2] == 'null') {\n return $column.' IS NOT NULL';\n } elseif ($match[1] == '=' && $match[2] == 'null') {\n return $column.' IS NULL';\n } elseif ($match[1] == '!') {\n return $column.' NOT LIKE '.$pdoLink->quote('%'.$match[2].'%');\n } else {\n return $column.' '.$match[1].' '.$pdoLink->quote($match[2] == 'empty' ? '' : $match[2]);\n }\n } elseif (strpos($search_value, 'lenght:') === 0) {\n return 'CHAR_LENGTH('.$column.') = '.(int) substr($search_value, strlen('lenght:'));\n } elseif (strpos($search_value, 'reg:') === 0) { //&& $column['sFilter']['regex'] === true) {\n return $column.' REGEXP '.$pdoLink->quote(substr($search_value, strlen('reg:')));\n } elseif (preg_match('/(.*)(!?'.$sRangeSeparator.')(.*)/i', $search_value, $matches) && !empty($matches[1]) && !empty($matches[3])) {\n // TODO : use type to format the search value (eg STR_TO_DATE)\n return $column.($matches[2][0] == '!' ? ' NOT' : '')\n .' BETWEEN '.$pdoLink->quote($matches[1]).' AND '.$pdoLink->quote($matches[3]);\n } elseif (strpos($search_value, 'in:') === 0) {\n $search_value = substr($search_value, strlen('in:'));\n\n return $column.' IN('.$search_value.')';\n } elseif (strpos($search_value, '!in:') === 0) {\n $search_value = substr($search_value, strlen('in:'));\n\n return $column.' NOT IN('.$search_value.')';\n } else {\n return $column.' LIKE '.$pdoLink->quote('%'.$search_value.'%');\n }\n }",
"public function search1($params)\r\n {\r\n $query = Ventas::find();\r\n\r\n $dataProvider = new ActiveDataProvider([\r\n 'query' => $query,\r\n ]);\r\n\r\n $this->load($params);\r\n\r\n if (!$this->validate()) {\r\n // uncomment the following line if you do not want to return any records when validation fails\r\n // $query->where('0=1');\r\n return $dataProvider;\r\n }\r\n\r\n $query->andFilterWhere([\r\n 'id' => $this->id,\r\n 'idProducto' => $this->idProducto,\r\n 'cantidad' => $this->cantidad,\r\n 'vendedor' => $this->vendedor,\r\n 'cliente' => $this->cliente,\r\n 'fecha_venta' => $this->fecha_venta,\r\n 'estado' => 3,\r\n //'carga_venta' => 0,\r\n 'fecha_carga' => $this->fecha_carga,\r\n ]);\r\n\r\n $query->andFilterWhere(['like', 'importe', $this->importe])\r\n ->andFilterWhere(['like', 'importe_unitario', $this->importe_unitario]);\r\n\r\n return $dataProvider;\r\n }",
"public function search($params)\n {\n $query = Vessel::find();\n\n // add conditions that should always apply here\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n\n $this->load($params);\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n }\n\n // grid filtering conditions\n $query->andFilterWhere([\n 'id' => $this->id,\n 'vessel_type' => $this->vessel_type,\n 'status' => $this->status,\n 'CB' => $this->CB,\n 'UB' => $this->UB,\n 'DOC' => $this->DOC,\n 'DOU' => $this->DOU,\n ]);\n\n $query->andFilterWhere(['like', 'vessel_name', $this->vessel_name])\n ->andFilterWhere(['like', 'imo_no', $this->imo_no])\n ->andFilterWhere(['like', 'official', $this->official])\n ->andFilterWhere(['like', 'mmsi_no', $this->mmsi_no])\n ->andFilterWhere(['like', 'owners_info', $this->owners_info])\n ->andFilterWhere(['like', 'mobile', $this->mobile])\n ->andFilterWhere(['like', 'land_line', $this->land_line])\n ->andFilterWhere(['like', 'direct_line', $this->direct_line])\n ->andFilterWhere(['like', 'fax', $this->fax])\n ->andFilterWhere(['like', 'picture', $this->picture])\n ->andFilterWhere(['like', 'dwt', $this->dwt])\n ->andFilterWhere(['like', 'grt', $this->grt])\n ->andFilterWhere(['like', 'nrt', $this->nrt])\n ->andFilterWhere(['like', 'loa', $this->loa])\n ->andFilterWhere(['like', 'beam', $this->beam]);\n\n return $dataProvider;\n }",
"public function filterByPv($pv = null, $comparison = null)\n {\n if (is_array($pv)) {\n $useMinMax = false;\n if (isset($pv['min'])) {\n $this->addUsingAlias(AliAcTableMap::COL_PV, $pv['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($pv['max'])) {\n $this->addUsingAlias(AliAcTableMap::COL_PV, $pv['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliAcTableMap::COL_PV, $pv, $comparison);\n }",
"public function search2($params)\r\n {\r\n $query = Ventas::find();\r\n\r\n $dataProvider = new ActiveDataProvider([\r\n 'query' => $query,\r\n ]);\r\n\r\n $this->load($params);\r\n\r\n if (!$this->validate()) {\r\n // uncomment the following line if you do not want to return any records when validation fails\r\n // $query->where('0=1');\r\n return $dataProvider;\r\n }\r\n\r\n $query->andFilterWhere([\r\n 'id' => $this->id,\r\n 'idProducto' => $this->idProducto,\r\n 'cantidad' => $this->cantidad,\r\n 'vendedor' => $this->vendedor,\r\n 'cliente' => $this->cliente,\r\n 'fecha_venta' => $this->fecha_venta,\r\n 'estado' => 0,\r\n 'carga_venta' => 0,\r\n 'fecha_carga' => $this->fecha_carga,\r\n ]);\r\n\r\n $query->andFilterWhere(['like', 'importe', $this->importe])\r\n ->andFilterWhere(['like', 'importe_unitario', $this->importe_unitario]);\r\n\r\n return $dataProvider;\r\n }",
"public function filterOptionRecipientName($collection, $column)\n {\n $filterValue = $column->getFilter()->getValue();\n if (!$filterValue)\n {\n return;\n }\n\n // remove spaces\n $filterValue = $this->removeSpaces($filterValue);\n\n $collection->getSelect()\n ->where('CONCAT(recipient_firstname, recipient_lastname) LIKE ?', \"%{$filterValue}%\");\n }"
] | [
"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.45059255",
"0.44999215",
"0.44814032",
"0.44730398",
"0.44710088",
"0.44677255",
"0.44660372",
"0.4456906",
"0.44540003",
"0.44442433"
] | 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::DESCRIPTION, $description, Criteria::EQUAL);\n\t\t}\n\t}",
"public function searchPoItemDescAction($desc, $minDate, $maxDate)\n {\n\t$filterDate = PoManagerControllerUtility::convertDateFilter($minDate, $maxDate);\n\n\t$repository = $this->getDoctrine()\n\t ->getManager()\n\t\t\t ->getRepository('AchPoManagerBundle:PoItem');\n\t$poItems = $repository->findDescription($desc, $filterDate);\n\t\n\t$request = $this->getRequest();\n\n\treturn $this->generateResponse($request, $poItems);\n\t\n }",
"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 static function GetUsersByDescription($description)\n {\n if ($description == '')\n # code...\n $query = \"select * from app.users order by nodip, descripcion, usuario\";\n else\n $query = \"select * from app.users where nodip ='\" . $description . \"' order by nodip, descripcion, usuario\";\n \\Log::info($query);\n $data = collect(DB::select(DB::raw($query)));\n return $data;\n }",
"public function filter_wpseo_twitter_description($metadesc){\n\t\t \n\t\t\treturn $metadesc;\n\t\t}",
"protected function applyDescriptionFilter(string $value)\n {\n $this->excludeKeyWords('description',$value);\n }",
"public function findProductWhereDescLorem(){\n $q = $this->createQueryBuilder('prod')\n ->where('prod.description = :lorem')\n ->setParameter('lorem','lorem')\n ->getQuery();\n\n return $q->getResult();\n }",
"public function test_filter_ucgraph() {\n $this->resetAfterTest();\n\n $filter = new filter_competvetsuivi(context_system::instance(), array('originalformat' => FORMAT_HTML));\n\n $input = '[competvetsuivi uename=\"UC51\" matrix=\"MATRIXAAA\" type=\"ucdetails\"][/competvetsuivi]';\n $expected = '';\n\n $this->assertEquals($expected, $filter->filter($input, [\n 'originalformat' => FORMAT_HTML,\n ]));\n\n $input = '[competvetsuivi uename=\"UC51\" matrix=\"MATRIX1\" type=\"ucdetails\"][/competvetsuivi]';\n $this->assertContains(\n \"Percentage the UC51 contributes to competencies and knowledge for the <strong>whole cursus</strong>\",\n $filter->filter($input, ['originalformat' => FORMAT_HTML]));\n }",
"function kpl_user_bio_visual_editor_unfiltered() {\n\t\tremove_all_filters('pre_user_description');\n\t}",
"public function search_por_docu($codocu)\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('codestado',$this->codestado,true);\n\t\t$criteria->addcondition(\"codocu='\".$codocu.\"'\");\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"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 listingDescription was\n //probably already called for the same text.\n\n return $desc;\n }",
"public function testSearchOnDescription()\r\n {\r\n // create a new Repository to be used later\r\n $repo = $this->em->getRepository(Communication::class);\r\n\r\n // create an array with values to search with\r\n $cleanQuery = array();\r\n $cleanQuery[] = \"Its a bin\";\r\n\r\n // query the database\r\n $results = $repo->CommunicationSearch($cleanQuery);\r\n\r\n // Assert that size of the query returns the expected number of results\r\n $this->assertEquals(3, sizeof($results));\r\n }",
"public function filter_wpseo_opengraph_desc($ogdesc){\n\t\t \n\t\t\treturn $ogdesc;\n\t\t}",
"function Query_Filter()\r\n {\r\n $sql = \"select cod_materia , descricao_materia from materia where 1=1 \";\r\n if ( $this->getcod_materia() != \"\" ) \r\n $sql = $sql . \" and cod_materia = \".$this->getcod_materia();\r\n if ( $this->getdescrica_materia() != \"\" ) \r\n $sql = $sql . \" and descrica_materia like '%\".$this->getdescrica_materia().\"%' \";\r\n\r\n $result = mysql_query( $sql );\r\n return $result;\r\n }",
"public function setDescription($desc)\n\t{\n\t\t$this->description = $desc;\n\t}",
"static public function updateCityDescription( &$article, &$user ) {\r\n\t\tglobal $wgCityId;\r\n\r\n\t\tif ( strtolower($article->getTitle()) == \"mediawiki:description\" ) {\r\n\t\t\t$out = trim( strip_tags( wfMsg('description') ) );\r\n\t\t\t$db = WikiFactory::db( DB_MASTER );\r\n\t\t\t$db->update(\r\n\t\t\t\t\"city_list\",\r\n\t\t\t\tarray( \"city_description\" => $out ),\r\n\t\t\t\tarray( \"city_id\" => $wgCityId ),\r\n\t\t\t\t__METHOD__\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}",
"public function filterByMobileDesc($mobileDesc = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($mobileDesc)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliSmsTableMap::COL_MOBILE_DESC, $mobileDesc, $comparison);\n }",
"public function setDescription($value){\n return $this->setParameter('description', $value);\n }",
"public function Fordefcatpre_Forpoa_uae($params) {\n if ($params[0] != '') {\n //$Longitud = $params[0];\n $formatouae = strlen(Herramientas :: ObtenerFormato('Fordefegrgen', 'Foruae'));\n $this->c = new Criteria();\n $this->sql = \"length(Codcat) = '\" . $formatouae . \"'\";\n $this->c->add(FordefcatprePeer :: CODCAT, $this->sql, Criteria :: CUSTOM);\n $this->c->addAscendingOrderByColumn(FordefcatprePeer::CODCAT);\n } else {\n $this->c = new Criteria();\n }\n $this->columnas = array(\n FordefcatprePeer :: CODCAT => 'Codigo',\n FordefcatprePeer :: NOMCAT => 'Nombre Categoria'\n );\n }",
"public function setDescription($desc)\n {\n $this->_description = (string)$desc;\n return $this;\n }",
"public function filterByDescrip($descrip = null, $comparison = null)\n\t{\n\t\tif (null === $comparison) {\n\t\t\tif (is_array($descrip)) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t} elseif (preg_match('/[\\%\\*]/', $descrip)) {\n\t\t\t\t$descrip = str_replace('*', '%', $descrip);\n\t\t\t\t$comparison = Criteria::LIKE;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(FormsPeer::DESCRIP, $descrip, $comparison);\n\t}",
"public function filterByDescription($description)\n {\n $this->filter[] = $this->field('description').' = '.$this->quote($description);\n return $this;\n }",
"public function filterByDescricao($descricao = null, $comparison = null)\n\t{\n\t\tif (null === $comparison) {\n\t\t\tif (is_array($descricao)) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t} elseif (preg_match('/[\\%\\*]/', $descricao)) {\n\t\t\t\t$descricao = str_replace('*', '%', $descricao);\n\t\t\t\t$comparison = Criteria::LIKE;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(VideoPeer::DESCRICAO, $descricao, $comparison);\n\t}",
"public function Forencpryaccespmet_Forpoa_uae($params = array()) {\n $this->c = new Criteria();\n $this->sql = \"length(codcat) = length('\" . $params . \"')\";\n $this->c->add(CpdefnivPeer :: FORPRE, $this->sql, Criteria :: CUSTOM);\n\n $this->c->addAscendingOrderByColumn(FordefcatprePeer::CODCAT);\n $this->columnas = array(\n FordefcatprePeer :: CODEMP => 'Código',\n FordefcatprePeer :: NOMEMP => 'Nombre'\n );\n }",
"public function setDesc($value) {\n return $this->set(self::DESC, $value);\n }",
"public function filter_wpseo_metadesc($wpseo_get_value_metadesc){\n\t\t\n\t\t\treturn $wpseo_get_value_metadesc;\n\t\t}",
"public function setStatoWfDesc(string $statoWfDesc) \r\n {\r\n $this->statoWfDesc = $statoWfDesc;\r\n }",
"function filterStats($itemDescr){\r\n return array_filter($itemDescr, fn ($stat) => !in_array($stat, ['price', 'type']), ARRAY_FILTER_USE_KEY);\r\n }",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n $tempUserID = -999;\n if (!Yii::app()->user->getIsGuest()){\n $tempUserID = Yii::app()->user->id;\n }\n $criteria->params = array(\":userID\"=>$tempUserID);\n//\t\t$criteria->compare('user_id',$this->user_id,true);\n// $criteria->compare('update_user_id',$this->update_user_id,true);\n//\t\t$criteria->compare('first_university_id',$this->first_university_id);\n// $criteria->compare('name',$this->firstUniversity,true);\n//\t\t$criteria->compare('curr_university_id',$this->curr_university_id);\n//\t\t$criteria->compare('isTransfer',$this->isTransfer,true);\n//\t\t$criteria->compare('gender',$this->gender,true);\n//\t\t$criteria->compare('highSchoolType',$this->highSchoolType,true);\n//\t\t$criteria->compare('race_id',$this->race_id,true);\n//\t\t$criteria->compare('sat_I_score_range',$this->sat_I_score_range);\n//\t\t$criteria->compare('num_scores',$this->num_scores);\n//\t\t$criteria->compare('num_aps',$this->num_aps);\n//\t\t$criteria->compare('num_sat2s',$this->num_sat2s);\n//\t\t$criteria->compare('num_competitions',$this->num_competitions);\n//\t\t$criteria->compare('num_sports',$this->num_sports);\n//\t\t$criteria->compare('num_academics',$this->num_academics);\n//\t\t$criteria->compare('num_extracurriculars',$this->num_extracurriculars);\n//\t\t$criteria->compare('num_essays',$this->num_essays);\n//\t\t$criteria->compare('profile_type',$this->profile_type);\n//\t $criteria->with = array('firstUniversity');\n//\t \n\t\t$criteria->compare('user_id',$this->user_id,true);\n\t\t$criteria->compare('sat_I_score_range',$this->sat_I_score_range);\n\t\t$criteria->compare('num_scores',$this->num_scores);\n\t\t$criteria->compare('num_academics',$this->num_academics);\n\t\t$criteria->compare('num_extracurriculars',$this->num_extracurriculars);\n\t\t$criteria->compare('num_essays',$this->num_essays);\n\t\t$criteria->compare('avg_profile_rating',$this->avg_profile_rating);\n\t\t$criteria->compare('l1ForSale',$this->l1ForSale);\n\t\t$criteria->compare('l2ForSale',$this->l2ForSale);\n\t\t$criteria->compare('l3ForSale',$this->l3ForSale);\n\t\t$criteria->compare('musical_instrument_id',$this->musical_instrument_id,true);\n\t\t$criteria->compare('profile_type',$this->profile_type);\n $criteria->compare('name',$this->firstUniversity,true);\n $criteria->compare('name',$this->hsName,true);\n\t\t$criteria->compare('name',$this->race,true);\n\t $criteria->with = array('firstUniversity');\n $criteria->with = array('hsName');\n \t $criteria->with = array('race'); \n \t$criteria->compare('gender',$this->gender,true);\n $criteria->condition = \"(l1ForSale = 1 or l2ForSale=1 or l3ForSale=1) and (user_id!=:userID)\";\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function search($id_user,$view=TRUE)\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('ID_MSG',$this->ID_MSG);\n\t\t$criteria->compare('CONTEUDO',$this->CONTEUDO,true);\n \n if($id_user)\n $criteria->compare('ID_USER',$id_user,true);\n else\n $criteria->compare('ID_USER',$this->ID_USER);\n \n if($view)\n $criteria->compare('APAGADA','0');\n \n\t\t$criteria->compare('DATA_ENVIO',$this->DATA_ENVIO,true);\n $criteria->order = 'DATA_ENVIO DESC';\n \n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}"
] | [
"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.4450342",
"0.44150123",
"0.44037142",
"0.43942016",
"0.43901578",
"0.43809086",
"0.43648314",
"0.43507662",
"0.43413866",
"0.43388757"
] | 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 }\n if (isset($fv['max'])) {\n $this->addUsingAlias(AliProductTableMap::COL_FV, $fv['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliProductTableMap::COL_FV, $fv, $comparison);\n }",
"public function filterByTotFv($totFv = null, $comparison = null)\n {\n if (is_array($totFv)) {\n $useMinMax = false;\n if (isset($totFv['min'])) {\n $this->addUsingAlias(AliTsalehTableMap::COL_TOT_FV, $totFv['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($totFv['max'])) {\n $this->addUsingAlias(AliTsalehTableMap::COL_TOT_FV, $totFv['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliTsalehTableMap::COL_TOT_FV, $totFv, $comparison);\n }",
"public function search4($params)\r\n {\r\n $query = Ventas::find();\r\n\r\n $dataProvider = new ActiveDataProvider([\r\n 'query' => $query,\r\n ]);\r\n\r\n $this->load($params);\r\n\r\n if (!$this->validate()) {\r\n // uncomment the following line if you do not want to return any records when validation fails\r\n // $query->where('0=1');\r\n return $dataProvider;\r\n }\r\n\r\n $query->andFilterWhere([\r\n 'id' => $this->id,\r\n 'idProducto' => $this->idProducto,\r\n 'cantidad' => $this->cantidad,\r\n 'vendedor' => $this->vendedor,\r\n 'cliente' => $this->cliente,\r\n 'fecha_venta' => $this->fecha_venta,\r\n //'estado' => 1,\r\n 'carga_venta' => 0,\r\n 'caracter' => 1,\r\n 'fecha_carga' => $this->fecha_carga,\r\n ]);\r\n\r\n $query->andFilterWhere(['like', 'importe', $this->importe])\r\n ->andFilterWhere(['like', 'importe_unitario', $this->importe_unitario]);\r\n\r\n return $dataProvider;\r\n }",
"protected function sqlKeyFilter()\n\t{\n\t\treturn \"`ValuationNo` = @ValuationNo@\";\n\t}",
"public function filterByVervolgActie($vervolgActie = null, $comparison = null)\n {\n if (is_array($vervolgActie)) {\n $useMinMax = false;\n if (isset($vervolgActie['min'])) {\n $this->addUsingAlias(GsInteractiesGegevensPeer::VERVOLG_ACTIE, $vervolgActie['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($vervolgActie['max'])) {\n $this->addUsingAlias(GsInteractiesGegevensPeer::VERVOLG_ACTIE, $vervolgActie['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(GsInteractiesGegevensPeer::VERVOLG_ACTIE, $vervolgActie, $comparison);\n }",
"public function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n $filters = [];\n\n TSession::setValue(__CLASS__.'_filter_data', NULL);\n TSession::setValue(__CLASS__.'_filters', NULL);\n\n if (isset($data->id) AND ( (is_scalar($data->id) AND $data->id !== '') OR (is_array($data->id) AND (!empty($data->id)) )) )\n {\n\n $filters[] = new TFilter('id', '=', $data->id);// create the filter \n }\n\n if (isset($data->editora_id) AND ( (is_scalar($data->editora_id) AND $data->editora_id !== '') OR (is_array($data->editora_id) AND (!empty($data->editora_id)) )) )\n {\n\n $filters[] = new TFilter('editora_id', '=', $data->editora_id);// create the filter \n }\n\n if (isset($data->titulo) AND ( (is_scalar($data->titulo) AND $data->titulo !== '') OR (is_array($data->titulo) AND (!empty($data->titulo)) )) )\n {\n\n $filters[] = new TFilter('titulo', 'like', \"%{$data->titulo}%\");// create the filter \n }\n\n if (isset($data->autor_principal_id) AND ( (is_scalar($data->autor_principal_id) AND $data->autor_principal_id !== '') OR (is_array($data->autor_principal_id) AND (!empty($data->autor_principal_id)) )) )\n {\n\n $filters[] = new TFilter('autor_principal_id', '=', $data->autor_principal_id);// create the filter \n }\n\n if (isset($data->colecao_id) AND ( (is_scalar($data->colecao_id) AND $data->colecao_id !== '') OR (is_array($data->colecao_id) AND (!empty($data->colecao_id)) )) )\n {\n\n $filters[] = new TFilter('colecao_id', '=', $data->colecao_id);// create the filter \n }\n\n if (isset($data->classificacao_id) AND ( (is_scalar($data->classificacao_id) AND $data->classificacao_id !== '') OR (is_array($data->classificacao_id) AND (!empty($data->classificacao_id)) )) )\n {\n\n $filters[] = new TFilter('classificacao_id', '=', $data->classificacao_id);// create the filter \n }\n\n $param = array();\n $param['offset'] = 0;\n $param['first_page'] = 1;\n\n // fill the form with data again\n $this->form->setData($data);\n\n // keep the search data in the session\n TSession::setValue(__CLASS__.'_filter_data', $data);\n TSession::setValue(__CLASS__.'_filters', $filters);\n\n $this->onReload($param);\n }",
"protected function generateSQLColumnFilter($column, $search_value)\n {\n return self::_generateSQLColumnFilter($column, $search_value, $this->pdoLink, isset($this->sRangeSeparator) ? $this->sRangeSeparator : '~');\n }",
"public function search($params)\r\n {\r\n $query = Ventas::find();\r\n\r\n $dataProvider = new ActiveDataProvider([\r\n 'query' => $query,\r\n ]);\r\n\r\n $this->load($params);\r\n\r\n if (!$this->validate()) {\r\n // uncomment the following line if you do not want to return any records when validation fails\r\n // $query->where('0=1');\r\n return $dataProvider;\r\n }\r\n\r\n $query->andFilterWhere([\r\n 'id' => $this->id,\r\n //'idProducto' => $this->idProducto,\r\n 'cantidad' => $this->cantidad,\r\n 'vendedor' => $this->vendedor,\r\n 'cliente' => $this->cliente,\r\n 'fecha_venta' => $this->fecha_venta == null ? null : date('Y-m-d',(strtotime($this->fecha_venta))),\r\n 'estado' => 2,\r\n 'carga_venta' => 0,\r\n 'fecha_carga' => $this->fecha_carga == null ? null : date('Y-m-d',(strtotime($this->fecha_carga))),\r\n ]);\r\n\r\n $query->andFilterWhere(['like', 'importe', $this->importe])->andFilterWhere(['like', 'idProducto', $this->idProducto])\r\n ->andFilterWhere(['like', 'importe_unitario', $this->importe_unitario]);\r\n\r\n return $dataProvider;\r\n }",
"public function search($params)\n {\n $query = Venting::find();\n\n // add conditions that should always apply here\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n\n $this->load($params);\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n }\n\n // grid filtering conditions\n $query->andFilterWhere([\n 'id' => $this->id,\n 'vent_mode' => $this->vent_mode,\n 'charging' => $this->charging,\n 'valve_in' => $this->valve_in,\n 'valve_out' => $this->valve_out,\n 'valve_cyr' => $this->valve_cyr,\n 'time_added' => $this->time_added,\n ]);\n\n $query->andFilterWhere(['like', 'damp1', $this->damp1])\n ->andFilterWhere(['like', 'damp2', $this->damp2])\n ->andFilterWhere(['like', 'temp1', $this->temp1])\n ->andFilterWhere(['like', 'temp2', $this->temp2]);\n\n return $dataProvider;\n }",
"public function search2($params)\r\n {\r\n $query = Ventas::find();\r\n\r\n $dataProvider = new ActiveDataProvider([\r\n 'query' => $query,\r\n ]);\r\n\r\n $this->load($params);\r\n\r\n if (!$this->validate()) {\r\n // uncomment the following line if you do not want to return any records when validation fails\r\n // $query->where('0=1');\r\n return $dataProvider;\r\n }\r\n\r\n $query->andFilterWhere([\r\n 'id' => $this->id,\r\n 'idProducto' => $this->idProducto,\r\n 'cantidad' => $this->cantidad,\r\n 'vendedor' => $this->vendedor,\r\n 'cliente' => $this->cliente,\r\n 'fecha_venta' => $this->fecha_venta,\r\n 'estado' => 0,\r\n 'carga_venta' => 0,\r\n 'fecha_carga' => $this->fecha_carga,\r\n ]);\r\n\r\n $query->andFilterWhere(['like', 'importe', $this->importe])\r\n ->andFilterWhere(['like', 'importe_unitario', $this->importe_unitario]);\r\n\r\n return $dataProvider;\r\n }",
"public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('vkl',$this->vkl);\n\t\t$criteria->compare('id_gn',$this->id_gn);\n\t\t$criteria->compare('status',$this->status);\n\t\t$criteria->compare('tabl_id',$this->tabl_id);\n\t\t$criteria->compare('tabl',$this->tabl,true);\n\t\t$criteria->compare('samonazvanie',$this->samonazvanie,true);\n\t\t$criteria->compare('mfa',$this->mfa,true);\n\t\t$criteria->compare('samonazvanie_1',$this->samonazvanie_1,true);\n\t\t$criteria->compare('oficialno_1',$this->oficialno_1,true);\n\t\t$criteria->compare('flag',$this->flag,true);\n\t\t$criteria->compare('flag_svg',$this->flag_svg,true);\n\t\t$criteria->compare('gerb',$this->gerb,true);\n\t\t$criteria->compare('gerb_svg',$this->gerb_svg,true);\n\t\t$criteria->compare('giddom',$this->giddom,true);\n\t\t$criteria->compare('tip',$this->tip);\n\t\t$criteria->compare('gorod_id',$this->gorod_id);\n\t\t$criteria->compare('region_id',$this->region_id);\n\t\t$criteria->compare('strana_id',$this->strana_id);\n\t\t$criteria->compare('mir_id',$this->mir_id);\n\t\t$criteria->compare('obj_id',$this->obj_id);\n\t\t$criteria->compare('ksi1',$this->ksi1,true);\n\t\t$criteria->compare('ksi2',$this->ksi2,true);\n\t\t$criteria->compare('ksi_sort',$this->ksi_sort,true);\n\t\t$criteria->compare('ksi_lat',$this->ksi_lat,true);\n\t\t$criteria->compare('ksi_uni',$this->ksi_uni,true);\n\t\t$criteria->compare('telefon',$this->telefon,true);\n\t\t$criteria->compare('pochta',$this->pochta,true);\n\t\t$criteria->compare('avto',$this->avto,true);\n\t\t$criteria->compare('naselenie',$this->naselenie);\n\t\t$criteria->compare('ploshad',$this->ploshad,true);\n\t\t$criteria->compare('vysota',$this->vysota);\n\t\t$criteria->compare('osnovan',$this->osnovan);\n\t\t$criteria->compare('upominanie',$this->upominanie);\n\t\t$criteria->compare('kontinent',$this->kontinent,true);\n\t\t$criteria->compare('shirota',$this->shirota);\n\t\t$criteria->compare('dolgota',$this->dolgota);\n\t\t$criteria->compare('shirota_gradus',$this->shirota_gradus);\n\t\t$criteria->compare('shirota_minuta',$this->shirota_minuta);\n\t\t$criteria->compare('shirota_sekunda',$this->shirota_sekunda);\n\t\t$criteria->compare('dolgota_gradus',$this->dolgota_gradus);\n\t\t$criteria->compare('dolgota_minuta',$this->dolgota_minuta);\n\t\t$criteria->compare('dolgota_sekunda',$this->dolgota_sekunda);\n\t\t$criteria->compare('sozdan',$this->sozdan,true);\n\t\t$criteria->compare('izmenen',$this->izmenen,true);\n\t\t$criteria->compare('vrem_pojas',$this->vrem_pojas,true);\n\t\t$criteria->compare('dop_nazvanie',$this->dop_nazvanie,true);\n\t\t$criteria->compare('gn_tip_np',$this->gn_tip_np,true);\n\t\t$criteria->compare('nazvanie_1',$this->nazvanie_1,true);\n\t\t$criteria->compare('opisanie_1',$this->opisanie_1,true);\n\t\t$criteria->compare('nazvanie_2',$this->nazvanie_2,true);\n\t\t$criteria->compare('opisanie_2',$this->opisanie_2,true);\n\t\t$criteria->compare('nazvanie_3',$this->nazvanie_3,true);\n\t\t$criteria->compare('opisanie_3',$this->opisanie_3,true);\n\t\t$criteria->compare('nazvanie_4',$this->nazvanie_4,true);\n\t\t$criteria->compare('opisanie_4',$this->opisanie_4,true);\n\t\t$criteria->compare('nazvanie_5',$this->nazvanie_5,true);\n\t\t$criteria->compare('opisanie_5',$this->opisanie_5,true);\n\t\t$criteria->compare('nazvanie_6',$this->nazvanie_6,true);\n\t\t$criteria->compare('opisanie_6',$this->opisanie_6,true);\n\t\t$criteria->compare('nazvanie_7',$this->nazvanie_7,true);\n\t\t$criteria->compare('opisanie_7',$this->opisanie_7,true);\n\t\t$criteria->compare('nazvanie_8',$this->nazvanie_8,true);\n\t\t$criteria->compare('opisanie_8',$this->opisanie_8,true);\n\t\t$criteria->compare('nazvanie_9',$this->nazvanie_9,true);\n\t\t$criteria->compare('opisanie_9',$this->opisanie_9,true);\n\t\t$criteria->compare('nazvanie_10',$this->nazvanie_10,true);\n\t\t$criteria->compare('opisanie_10',$this->opisanie_10,true);\n\t\t$criteria->compare('nazvanie_11',$this->nazvanie_11,true);\n\t\t$criteria->compare('opisanie_11',$this->opisanie_11,true);\n\t\t$criteria->compare('nazvanie_12',$this->nazvanie_12,true);\n\t\t$criteria->compare('opisanie_12',$this->opisanie_12,true);\n\t\t$criteria->compare('nazvanie_13',$this->nazvanie_13,true);\n\t\t$criteria->compare('opisanie_13',$this->opisanie_13,true);\n\t\t$criteria->compare('nazvanie_14',$this->nazvanie_14,true);\n\t\t$criteria->compare('opisanie_14',$this->opisanie_14,true);\n\t\t$criteria->compare('nazvanie_15',$this->nazvanie_15,true);\n\t\t$criteria->compare('opisanie_15',$this->opisanie_15,true);\n\t\t$criteria->compare('nazvanie_16',$this->nazvanie_16,true);\n\t\t$criteria->compare('opisanie_16',$this->opisanie_16,true);\n\t\t$criteria->compare('nazvanie_17',$this->nazvanie_17,true);\n\t\t$criteria->compare('opisanie_17',$this->opisanie_17,true);\n\t\t$criteria->compare('nazvanie_18',$this->nazvanie_18,true);\n\t\t$criteria->compare('opisanie_18',$this->opisanie_18,true);\n\t\t$criteria->compare('nazvanie_19',$this->nazvanie_19,true);\n\t\t$criteria->compare('opisanie_19',$this->opisanie_19,true);\n\t\t$criteria->compare('nazvanie_20',$this->nazvanie_20,true);\n\t\t$criteria->compare('opisanie_20',$this->opisanie_20,true);\n\t\t$criteria->compare('nazvanie_21',$this->nazvanie_21,true);\n\t\t$criteria->compare('opisanie_21',$this->opisanie_21,true);\n\t\t$criteria->compare('nazvanie_22',$this->nazvanie_22,true);\n\t\t$criteria->compare('opisanie_22',$this->opisanie_22,true);\n\t\t$criteria->compare('nazvanie_23',$this->nazvanie_23,true);\n\t\t$criteria->compare('opisanie_23',$this->opisanie_23,true);\n\t\t$criteria->compare('nazvanie_24',$this->nazvanie_24,true);\n\t\t$criteria->compare('opisanie_24',$this->opisanie_24,true);\n\t\t$criteria->compare('nazvanie_25',$this->nazvanie_25,true);\n\t\t$criteria->compare('opisanie_25',$this->opisanie_25,true);\n\t\t$criteria->compare('nazvanie_26',$this->nazvanie_26,true);\n\t\t$criteria->compare('opisanie_26',$this->opisanie_26,true);\n\t\t$criteria->compare('nazvanie_27',$this->nazvanie_27,true);\n\t\t$criteria->compare('opisanie_27',$this->opisanie_27,true);\n\t\t$criteria->compare('nazvanie_28',$this->nazvanie_28,true);\n\t\t$criteria->compare('opisanie_28',$this->opisanie_28,true);\n\t\t$criteria->compare('nazvanie_29',$this->nazvanie_29,true);\n\t\t$criteria->compare('opisanie_29',$this->opisanie_29,true);\n\t\t$criteria->compare('nazvanie_30',$this->nazvanie_30,true);\n\t\t$criteria->compare('opisanie_30',$this->opisanie_30,true);\n\t\t$criteria->compare('nazvanie_31',$this->nazvanie_31,true);\n\t\t$criteria->compare('opisanie_31',$this->opisanie_31,true);\n\t\t$criteria->compare('nazvanie_32',$this->nazvanie_32,true);\n\t\t$criteria->compare('opisanie_32',$this->opisanie_32,true);\n\t\t$criteria->compare('nazvanie_33',$this->nazvanie_33,true);\n\t\t$criteria->compare('opisanie_33',$this->opisanie_33,true);\n\t\t$criteria->compare('nazvanie_34',$this->nazvanie_34,true);\n\t\t$criteria->compare('opisanie_34',$this->opisanie_34,true);\n\t\t$criteria->compare('nazvanie_35',$this->nazvanie_35,true);\n\t\t$criteria->compare('opisanie_35',$this->opisanie_35,true);\n\t\t$criteria->compare('nazvanie_36',$this->nazvanie_36,true);\n\t\t$criteria->compare('opisanie_36',$this->opisanie_36,true);\n\t\t$criteria->compare('nazvanie_37',$this->nazvanie_37,true);\n\t\t$criteria->compare('opisanie_37',$this->opisanie_37,true);\n\t\t$criteria->compare('nazvanie_38',$this->nazvanie_38,true);\n\t\t$criteria->compare('opisanie_38',$this->opisanie_38,true);\n\t\t$criteria->compare('nazvanie_39',$this->nazvanie_39,true);\n\t\t$criteria->compare('opisanie_39',$this->opisanie_39,true);\n\t\t$criteria->compare('nazvanie_40',$this->nazvanie_40,true);\n\t\t$criteria->compare('opisanie_40',$this->opisanie_40,true);\n\t\t$criteria->compare('nazvanie_41',$this->nazvanie_41,true);\n\t\t$criteria->compare('opisanie_41',$this->opisanie_41,true);\n\t\t$criteria->compare('nazvanie_42',$this->nazvanie_42,true);\n\t\t$criteria->compare('opisanie_42',$this->opisanie_42,true);\n\t\t$criteria->compare('nazvanie_43',$this->nazvanie_43,true);\n\t\t$criteria->compare('opisanie_43',$this->opisanie_43,true);\n\t\t$criteria->compare('nazvanie_44',$this->nazvanie_44,true);\n\t\t$criteria->compare('opisanie_44',$this->opisanie_44,true);\n\t\t$criteria->compare('nazvanie_45',$this->nazvanie_45,true);\n\t\t$criteria->compare('opisanie_45',$this->opisanie_45,true);\n\t\t$criteria->compare('nazvanie_46',$this->nazvanie_46,true);\n\t\t$criteria->compare('opisanie_46',$this->opisanie_46,true);\n\t\t$criteria->compare('nazvanie_47',$this->nazvanie_47,true);\n\t\t$criteria->compare('opisanie_47',$this->opisanie_47,true);\n\t\t$criteria->compare('nazvanie_48',$this->nazvanie_48,true);\n\t\t$criteria->compare('opisanie_48',$this->opisanie_48,true);\n\t\t$criteria->compare('nazvanie_49',$this->nazvanie_49,true);\n\t\t$criteria->compare('opisanie_49',$this->opisanie_49,true);\n\t\t$criteria->compare('nazvanie_50',$this->nazvanie_50,true);\n\t\t$criteria->compare('opisanie_50',$this->opisanie_50,true);\n\t\t$criteria->compare('nazvanie_51',$this->nazvanie_51,true);\n\t\t$criteria->compare('opisanie_51',$this->opisanie_51,true);\n\t\t$criteria->compare('nazvanie_52',$this->nazvanie_52,true);\n\t\t$criteria->compare('opisanie_52',$this->opisanie_52,true);\n\t\t$criteria->compare('nazvanie_53',$this->nazvanie_53,true);\n\t\t$criteria->compare('opisanie_53',$this->opisanie_53,true);\n\t\t$criteria->compare('nazvanie_54',$this->nazvanie_54,true);\n\t\t$criteria->compare('opisanie_54',$this->opisanie_54,true);\n\t\t$criteria->compare('nazvanie_55',$this->nazvanie_55,true);\n\t\t$criteria->compare('opisanie_55',$this->opisanie_55,true);\n\t\t$criteria->compare('nazvanie_56',$this->nazvanie_56,true);\n\t\t$criteria->compare('opisanie_56',$this->opisanie_56,true);\n\t\t$criteria->compare('nazvanie_57',$this->nazvanie_57,true);\n\t\t$criteria->compare('opisanie_57',$this->opisanie_57,true);\n\t\t$criteria->compare('nazvanie_58',$this->nazvanie_58,true);\n\t\t$criteria->compare('opisanie_58',$this->opisanie_58,true);\n\t\t$criteria->compare('nazvanie_59',$this->nazvanie_59,true);\n\t\t$criteria->compare('opisanie_59',$this->opisanie_59,true);\n\t\t$criteria->compare('nazvanie_60',$this->nazvanie_60,true);\n\t\t$criteria->compare('opisanie_60',$this->opisanie_60,true);\n\t\t$criteria->compare('nazvanie_61',$this->nazvanie_61,true);\n\t\t$criteria->compare('opisanie_61',$this->opisanie_61,true);\n\t\t$criteria->compare('nazvanie_62',$this->nazvanie_62,true);\n\t\t$criteria->compare('opisanie_62',$this->opisanie_62,true);\n\t\t$criteria->compare('nazvanie_63',$this->nazvanie_63,true);\n\t\t$criteria->compare('opisanie_63',$this->opisanie_63,true);\n\t\t$criteria->compare('nazvanie_64',$this->nazvanie_64,true);\n\t\t$criteria->compare('opisanie_64',$this->opisanie_64,true);\n\t\t$criteria->compare('nazvanie_65',$this->nazvanie_65,true);\n\t\t$criteria->compare('opisanie_65',$this->opisanie_65,true);\n\t\t$criteria->compare('nazvanie_66',$this->nazvanie_66,true);\n\t\t$criteria->compare('opisanie_66',$this->opisanie_66,true);\n\t\t$criteria->compare('nazvanie_67',$this->nazvanie_67,true);\n\t\t$criteria->compare('opisanie_67',$this->opisanie_67,true);\n\t\t$criteria->compare('region_1',$this->region_1);\n\t\t$criteria->compare('region_2',$this->region_2);\n\t\t$criteria->compare('region_3',$this->region_3);\n\t\t$criteria->compare('admin_zametka',$this->admin_zametka,true);\n\t\t$criteria->compare('nazvanie_68',$this->nazvanie_68,true);\n\t\t$criteria->compare('opisanie_68',$this->opisanie_68,true);\n\t\t$criteria->compare('nazvanie_69',$this->nazvanie_69,true);\n\t\t$criteria->compare('opisanie_69',$this->opisanie_69,true);\n\t\t$criteria->compare('nazvanie_70',$this->nazvanie_70,true);\n\t\t$criteria->compare('opisanie_70',$this->opisanie_70,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function search1($params)\r\n {\r\n $query = Ventas::find();\r\n\r\n $dataProvider = new ActiveDataProvider([\r\n 'query' => $query,\r\n ]);\r\n\r\n $this->load($params);\r\n\r\n if (!$this->validate()) {\r\n // uncomment the following line if you do not want to return any records when validation fails\r\n // $query->where('0=1');\r\n return $dataProvider;\r\n }\r\n\r\n $query->andFilterWhere([\r\n 'id' => $this->id,\r\n 'idProducto' => $this->idProducto,\r\n 'cantidad' => $this->cantidad,\r\n 'vendedor' => $this->vendedor,\r\n 'cliente' => $this->cliente,\r\n 'fecha_venta' => $this->fecha_venta,\r\n 'estado' => 3,\r\n //'carga_venta' => 0,\r\n 'fecha_carga' => $this->fecha_carga,\r\n ]);\r\n\r\n $query->andFilterWhere(['like', 'importe', $this->importe])\r\n ->andFilterWhere(['like', 'importe_unitario', $this->importe_unitario]);\r\n\r\n return $dataProvider;\r\n }",
"public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(VideoPeer::ID, $key, Criteria::EQUAL);\n\t}",
"public function filter($value);",
"public function vmRunOnHostFilter($vmID)\n\t{\n\t\t//If all clients running on a special VM host should be searched, no search string is allowed\n\t\t$this->searchWHERE = '';\n\t\t$this->vmRunOnHostWHERE = 'clients.vmRunOnHost = '.$vmID.' ';\n\t}",
"public function onAdvSearchDisplayFilter(&$filter, $value = '', $formName = 'searchForm')\n\t{\n\t\tif ( !in_array($filter->field_type, static::$field_types) ) return;\n\n\t\t$filter->parameters->set( 'display_filter_as_s', 1 ); // Only supports a basic filter of single text search input\n\t\tFlexicontentFields::createFilter($filter, $value, $formName);\n\t}",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria= new CDbCriteria;\n\n\t\t$criteria->compare('drg_lid',$this->drg_lid);\n\t\t$criteria->compare('drg_uid',$this->drg_uid,true);\n\t\t$criteria->compare('drg_category',$this->drg_category,true);\n\t\t$criteria->compare('drg_profession',$this->drg_profession,true);\n\t\t$criteria->compare('drg_viewlimit',$this->drg_viewlimit,true);\n\t\t$criteria->compare('drg_logo',$this->drg_logo,true);\n\t\t$criteria->compare('drg_title',$this->drg_title,true);\n\t\t$criteria->compare('drg_desc',$this->drg_desc,true);\n\t\t$criteria->compare('drg_explanation',$this->drg_explanation,true);\n\t\t$criteria->compare('drg_businessidea',$this->drg_businessidea,true);\n\t\t$criteria->compare('drg_fprojections',$this->drg_fprojections,true);\n\t\t$criteria->compare('drg_favailable',$this->drg_favailable,true);\n\t\t$criteria->compare('drg_famount',$this->drg_famount,true);\n\t\t$criteria->compare('drg_financial_data',$this->drg_financial_data);\n\t\t$criteria->compare('drg_want',$this->drg_want,true);\n\t\t$criteria->compare('drg_keyword',$this->drg_keyword,true);\n\t\t$criteria->compare('drg_video1',$this->drg_video1,true);\n\t\t$criteria->compare('drg_video2',$this->drg_video2,true);\n\t\t$criteria->compare('drg_mktquestion',$this->drg_mktquestion,true);\n\t\t$criteria->compare('drg_mktqstatus',$this->drg_mktqstatus,true);\n\t\t$criteria->compare('drg_reporttime',$this->drg_reporttime,true);\n\t\t$criteria->compare('drg_date',$this->drg_date,true);\n\t\t$criteria->compare('drg_datetime',$this->drg_datetime,true);\n\t\t$criteria->compare('drg_status',$this->drg_status,true);\n\t\t$criteria->compare('drg_lstatus',$this->drg_lstatus,true);\n\t\t$criteria->compare('drg_listtype',$this->drg_listtype,true);\n\t\t$criteria->compare('drg_company_name',$this->drg_company_name,true);\n\t\t$criteria->compare('drg_company_address1',$this->drg_company_address1,true);\n\t\t$criteria->compare('drg_company_address2',$this->drg_company_address2,true);\n\t\t$criteria->compare('drg_company_address3',$this->drg_company_address3,true);\n\t\t$criteria->compare('drg_company_town',$this->drg_company_town,true);\n\t\t$criteria->compare('drg_company_county',$this->drg_company_county,true);\n\t\t$criteria->compare('drg_company_zip_code',$this->drg_company_zip_code,true);\n\t\t$criteria->compare('drg_company_country',$this->drg_company_country,true);\n\t\t$criteria->compare('drg_company_tel_no',$this->drg_company_tel_no,true);\n\t\t$criteria->compare('drg_company_fax_no',$this->drg_company_fax_no,true);\n\t\t$criteria->compare('drg_listingstatus',$this->drg_listingstatus);\n\t\t$criteria->compare('drg_approvedate',$this->drg_approvedate,true);\n\t\t$criteria->compare('reject_list',$this->reject_list); \n $criteria->compare('drg_uid',Yii::app()->user->getState('uid'),true); \n \n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('pemeriksaanpartograf_id',$this->pemeriksaanpartograf_id);\n\t\t$criteria->compare('persalinan_id',$this->persalinan_id);\n\t\t$criteria->compare('pto_tglperiksa',$this->pto_tglperiksa,true);\n\t\t$criteria->compare('pto_ketubanpecah',$this->pto_ketubanpecah,true);\n\t\t$criteria->compare('pto_mules',$this->pto_mules,true);\n\t\t$criteria->compare('pto_djj_menit',$this->pto_djj_menit);\n\t\t$criteria->compare('pto_airketuban',$this->pto_airketuban,true);\n\t\t$criteria->compare('pto_penyusupan',$this->pto_penyusupan,true);\n\t\t$criteria->compare('pto_pembukaan',$this->pto_pembukaan);\n\t\t$criteria->compare('pto_penutupan',$this->pto_penutupan);\n\t\t$criteria->compare('kontraksi_jml',$this->kontraksi_jml);\n\t\t$criteria->compare('kontraksi_lama_detik',$this->kontraksi_lama_detik);\n\t\t$criteria->compare('kontraksi_oksitosin_unit',$this->kontraksi_oksitosin_unit);\n\t\t$criteria->compare('kontraksi_tetes_menit',$this->kontraksi_tetes_menit);\n\t\t$criteria->compare('pto_tekanandarah',$this->pto_tekanandarah,true);\n\t\t$criteria->compare('pto_systolic',$this->pto_systolic);\n\t\t$criteria->compare('pto_diastolic',$this->pto_diastolic);\n\t\t$criteria->compare('urine_protein',$this->urine_protein,true);\n\t\t$criteria->compare('urine_aseton',$this->urine_aseton,true);\n\t\t$criteria->compare('urine_volumen',$this->urine_volumen);\n\t\t$criteria->compare('create_time',$this->create_time,true);\n\t\t$criteria->compare('update_time',$this->update_time,true);\n\t\t$criteria->compare('create_loginpemakai_id',$this->create_loginpemakai_id);\n\t\t$criteria->compare('update_loginpemakai_id',$this->update_loginpemakai_id);\n\t\t$criteria->compare('create_ruangan',$this->create_ruangan);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('video_id',$this->video_id);\n\t\t$criteria->compare('video_category_id',$this->video_category_id);\n\t\t$criteria->compare('video_title',$this->video_title,true);\n\t\t$criteria->compare('video_description',$this->video_description,true);\n\t\t$criteria->compare('video_url',$this->video_url,true);\n\t\t$criteria->compare('video_image',$this->video_image,true);\n\t\t$criteria->compare('video_total_view',$this->video_total_view);\n\t\t$criteria->compare('video_date_create',$this->video_date_create,true);\n\t\t$criteria->compare('video_active',$this->video_active);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"function filterStr($field, $value) {\n if (\"$value\" !== '') {\n if ($value[0] === '=') {\n $this->where($field, '=', trim( substr($value, 1) ));\n } else {\n $wrapped = $this->table->grammar->wrap($field);\n\n switch ($value[0]) {\n case '^':\n $cond = '= 1';\n case '?':\n isset($cond) or $cond = '!= 0';\n $this->raw_where(\"LOCATE(?, $wrapped) $cond\", array($value));\n break;\n\n case '%':\n $this->raw_where(\"$wrapped LIKE ?\", array($value));\n break;\n\n default:\n $this->where($field, '=', trim($value));\n break;\n }\n }\n }\n }",
"public function Filter_Query()\n\t\t{\n\t\t\t\n // Temporary Filtering for replacing spaces with '+' for Google's Queries\n $this->search_query = str_replace(' ', '+', $this->search_query);\n\t\t\t\n\t\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}",
"public function filterByVidinflk($vidinflk = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($vidinflk)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_VIDINFLK, $vidinflk, $comparison);\n }",
"public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('user_id', $this->user_id, true);\n $criteria->compare('voice_dictation', $this->voice_dictation, true);\n $criteria->compare('type_transcription', $this->type_transcription, true);\n $criteria->compare('entertainment', $this->entertainment, true);\n $criteria->compare('technical', $this->technical, true);\n $criteria->compare('other', $this->other, true);\n $criteria->compare('proofreading', $this->proofreading, true);\n $criteria->compare('impaired_hearing', $this->impaired_hearing, true);\n $criteria->compare('voice_over', $this->voice_over, true);\n $criteria->compare('genre_action', $this->genre_action, true);\n $criteria->compare('genre_anime', $this->genre_anime, true);\n $criteria->compare('genre_children', $this->genre_children, true);\n $criteria->compare('genre_classics', $this->genre_classics, true);\n $criteria->compare('genre_documentary', $this->genre_documentary, true);\n $criteria->compare('genre_faith', $this->genre_faith, true);\n $criteria->compare('genre_foreign', $this->genre_foreign, true);\n $criteria->compare('genre_gay_lesbian', $this->genre_gay_lesbian, true);\n $criteria->compare('genre_horror', $this->genre_horror, true);\n $criteria->compare('genre_musical', $this->genre_musical, true);\n $criteria->compare('genre_sf', $this->genre_sf, true);\n $criteria->compare('genre_special_interest', $this->genre_special_interest, true);\n $criteria->compare('genre_sports', $this->genre_sports, true);\n $criteria->compare('genre_tv', $this->genre_tv, true);\n $criteria->compare('genre_thrillers', $this->genre_thrillers, true);\n $criteria->compare('genre_wars', $this->genre_wars, true);\n $criteria->compare('genre_westerns', $this->genre_westerns, true);\n $criteria->compare('subtitling_companies', $this->subtitling_companies, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }",
"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($builder),\n ])->execute($column, $value);\n }",
"public function filterByVicecampeon($vicecampeon = null, $comparison = null)\n\t{\n\t\tif (null === $comparison) {\n\t\t\tif (is_array($vicecampeon)) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t} elseif (preg_match('/[\\%\\*]/', $vicecampeon)) {\n\t\t\t\t$vicecampeon = str_replace('*', '%', $vicecampeon);\n\t\t\t\t$comparison = Criteria::LIKE;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(EquipoPeer::VICECAMPEON, $vicecampeon, $comparison);\n\t}",
"public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('codboletoretorno',$this->codboletoretorno,true);\n\t\t$criteria->compare('codboletomotivoocorrencia',$this->codboletomotivoocorrencia,true);\n\t\t$criteria->compare('codportador',$this->codportador,true);\n\t\t$criteria->compare('dataretorno',$this->dataretorno,true);\n\t\t$criteria->compare('linha',$this->linha,true);\n\t\t$criteria->compare('nossonumero',$this->nossonumero,true);\n\t\t$criteria->compare('numero',$this->numero,true);\n\t\t$criteria->compare('valor',$this->valor,true);\n\t\t$criteria->compare('codbancocobrador',$this->codbancocobrador,true);\n\t\t$criteria->compare('agenciacobradora',$this->agenciacobradora,true);\n\t\t$criteria->compare('despesas',$this->despesas,true);\n\t\t$criteria->compare('outrasdespesas',$this->outrasdespesas,true);\n\t\t$criteria->compare('jurosatraso',$this->jurosatraso,true);\n\t\t$criteria->compare('abatimento',$this->abatimento,true);\n\t\t$criteria->compare('desconto',$this->desconto,true);\n\t\t$criteria->compare('pagamento',$this->pagamento,true);\n\t\t$criteria->compare('jurosmora',$this->jurosmora,true);\n\t\t$criteria->compare('protesto',$this->protesto,true);\n\t\t$criteria->compare('codtitulo',$this->codtitulo,true);\n\t\t$criteria->compare('arquivo',$this->arquivo,true);\n\t\t$criteria->compare('alteracao',$this->alteracao,true);\n\t\t$criteria->compare('codusuarioalteracao',$this->codusuarioalteracao,true);\n\t\t$criteria->compare('criacao',$this->criacao,true);\n\t\t$criteria->compare('codusuariocriacao',$this->codusuariocriacao,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function filter($filter_param);",
"public function addFilterQuery($fq) {}",
"public function filterByVolgnummer($volgnummer = null, $comparison = null)\n {\n if (is_array($volgnummer)) {\n $useMinMax = false;\n if (isset($volgnummer['min'])) {\n $this->addUsingAlias(GsIngegevenSamenstellingenPeer::VOLGNUMMER, $volgnummer['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($volgnummer['max'])) {\n $this->addUsingAlias(GsIngegevenSamenstellingenPeer::VOLGNUMMER, $volgnummer['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(GsIngegevenSamenstellingenPeer::VOLGNUMMER, $volgnummer, $comparison);\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.46521792",
"0.46351475",
"0.46232674",
"0.4622204",
"0.4622025",
"0.4606883",
"0.45956454",
"0.4589346",
"0.4584663",
"0.45755523"
] | 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($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'periode': return \"periode = '$key'\";\n\t\t\t\tcase 'kodemk': return \"kodemk = '$key'\";\n\t\t\t\tcase 'kelasmk': return \"kelasmk = '$key'\";\n\t\t\t\tcase 'sistemkuliah': return \"sistemkuliah = '$key'\";\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once(Route::getModelPath('unit'));\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t}\n\t\t}",
"function getListFilter($col,$key) {\n\t\t\tif($col == 'unit') {\n\t\t\t\tglobal $conn, $conf;\n\t\t\t\trequire_once($conf['gate_dir'].'model/m_unit.php');\n\t\t\t\t\n\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\n\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t}\n\t\t\tif($col == 'tahun')\n\t\t\t\treturn \"substring(cast(cast(r.tglusulan as date) as varchar),1,4) = '$key'\";\n\t\t\tif($col == 'input'){\n\t\t\t\tif(!empty($key)){\n\t\t\t\t\tif($key == 'Y')\n\t\t\t\t\t\treturn \"r.isinput = 'Y'\";\n\t\t\t\t\telse\n\t\t\t\t\t\treturn \"(r.isinput = 'T' or r.isinput is null)\";\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'periodebayar': return \"tglbayar BETWEEN '$key-01-01' AND '$key-12-31'\";\n\t\t\t}\n\t\t}",
"function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once($conf['gate_dir'].'model/m_unit.php');\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periodebobot' :\n\t\t\t\t\treturn \"f.kodeperiodebobot='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periode' :\n\t\t\t\t\treturn \"n.kodeperiode='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periodetim' :\n\t\t\t\t\treturn \"kodeperiode='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'penilai' :\n\t\t\t\t\treturn \"idpenilai='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"public function filterByVidinffg($vidinffg = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($vidinffg)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_VIDINFFG, $vidinffg, $comparison);\n }",
"public function filterByPrimaryKey($key)\n {\n $this->addUsingAlias(GsIngegevenSamenstellingenPeer::HANDELSPRODUKTKODE, $key[0], Criteria::EQUAL);\n $this->addUsingAlias(GsIngegevenSamenstellingenPeer::VOLGNUMMER, $key[1], Criteria::EQUAL);\n\n return $this;\n }",
"function SqlKeyFilter() {\n\t\treturn \"`dept_id` = @dept_id@\";\n\t}",
"public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(VideoPeer::ID, $key, Criteria::EQUAL);\n\t}",
"public function filterByHoeveelheidVerpakking($hoeveelheidVerpakking = null, $comparison = null)\n {\n if (is_array($hoeveelheidVerpakking)) {\n $useMinMax = false;\n if (isset($hoeveelheidVerpakking['min'])) {\n $this->addUsingAlias(GsLogistiekeInformatiePeer::HOEVEELHEID_VERPAKKING, $hoeveelheidVerpakking['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($hoeveelheidVerpakking['max'])) {\n $this->addUsingAlias(GsLogistiekeInformatiePeer::HOEVEELHEID_VERPAKKING, $hoeveelheidVerpakking['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(GsLogistiekeInformatiePeer::HOEVEELHEID_VERPAKKING, $hoeveelheidVerpakking, $comparison);\n }",
"public function searchKinerja()\n {\n // should not be searched.\n\n $criteria=new CDbCriteria;\n\n $criteria->select = \"t.kelaspelayanan_id,t.kelaspelayanan_nama, t.no_rekam_medik, t.nama_pasien, t.jeniskelamin, t.daftartindakan_nama,date(tglmasukpenunjang) as tgl_masukpenunjang,\n t.ruanganpenunj_nama,sum(t.qty_tindakan) as qty_tindakan,t.tarif_satuan, sum(t.tarif_satuan * t.qty_tindakan) as total\";\n $criteria->group = \"t.kelaspelayanan_id,t.kelaspelayanan_nama,t.no_rekam_medik, t.nama_pasien, t.jeniskelamin, t.daftartindakan_nama, date(tglmasukpenunjang),t.ruanganpenunj_nama,\n t.tarif_satuan\";\n\t\t\tif(!empty($this->pasien_id)){\n\t\t\t\t$criteria->addCondition('pasien_id = '.$this->pasien_id);\n\t\t\t}\n $criteria->addBetweenCondition('t.tglmasukpenunjang',$this->tgl_awal,$this->tgl_akhir,true);\n if(isset($this->ruanganpenunj_id)){\n\t\t\t\tif(!empty($this->ruanganpenunj_id)){\n\t\t\t\t\t$criteria->addCondition('ruanganpenunj_id = '.$this->ruanganpenunj_id);\n\t\t\t\t}\n }\n if(isset($this->kelaspelayanan_id)){\n\t\t\t\tif(!empty($this->kelaspelayanan_id)){\n\t\t\t\t\t$criteria->addCondition('kelaspelayanan_id = '.$this->kelaspelayanan_id);\n\t\t\t\t}\n }\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }",
"function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once($conf['gate_dir'].'model/m_unit.php');\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t}\n\t\t}",
"public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(GsRzvAanspraakPeer::ZINUMMER, $key, Criteria::EQUAL);\n }",
"public function getName()\n {\n return \"filter_vista\";\n }",
"public function CreeFiltro($Vector){\r\n if(!isset($_REQUEST[\"st\"])){ \r\n $Columnas=$this->Columnas($Vector);\r\n $Tabla=$Vector[\"Tabla\"];\r\n $Filtro=\" $Tabla\";\r\n $z=0;\r\n $NumCols=count($Columnas);\r\n foreach($Columnas as $NombreCol){\r\n $IndexFiltro=\"Filtro_\".$NombreCol; //Campo que trae el valor del filtro a aplicar\r\n $IndexCondicion=\"Cond_\".$NombreCol; // Condicional para aplicacion del filtro\r\n $IndexTablaVinculo=\"TablaVinculo_\".$NombreCol; // Si hay campos vinculados se encontra la tabla vinculada aqui \r\n $IndexIDTabla=\"IDTabla_\".$NombreCol; // Id de la tabla vinculada\r\n $IndexDisplay=\"Display_\".$NombreCol; // Campo que se quiere ver\r\n if(!empty($_REQUEST[$IndexFiltro])){\r\n $Valor=$this->obCon->normalizar($_REQUEST[$IndexFiltro]);\r\n if(!empty($_REQUEST[$IndexTablaVinculo])){\r\n \r\n switch ($_REQUEST[$IndexCondicion]){\r\n case 1:\r\n $FiltroVinculo=\" = '$Valor'\";\r\n break;\r\n case 2:\r\n $FiltroVinculo=\" LIKE '%$Valor%'\";\r\n break;\r\n case 3:\r\n $FiltroVinculo=\" > '$Valor'\";\r\n break;\r\n case 4:\r\n $FiltroVinculo=\" < '$Valor'\";\r\n break;\r\n case 5:\r\n $FiltroVinculo=\" >= '$Valor'\";\r\n break;\r\n case 6:\r\n $FiltroVinculo=\" <= '$Valor'\";\r\n break;\r\n case 7:\r\n $FiltroVinculo=\" <> '$Valor'\";\r\n break;\r\n case 8:\r\n $FiltroVinculo=\" LIKE '$Valor%'\";\r\n break;\r\n }\r\n \r\n $sql=\"SELECT $_REQUEST[$IndexIDTabla] FROM $_REQUEST[$IndexTablaVinculo] \"\r\n . \"WHERE $_REQUEST[$IndexDisplay] $FiltroVinculo\";\r\n $DatosVinculados=$this->obCon->Query($sql);\r\n $DatosVinculados=$this->obCon->FetchArray($DatosVinculados);\r\n //print($sql);\r\n $Valor=$DatosVinculados[$_REQUEST[$IndexIDTabla]];\r\n }\r\n if($z==0){\r\n $Filtro.=\" WHERE \";\r\n $z=1;\r\n }\r\n $Filtro.=$NombreCol;\r\n switch ($_REQUEST[$IndexCondicion]){\r\n case 1:\r\n $Filtro.=\" = '$Valor'\";\r\n break;\r\n case 2:\r\n $Filtro.=\" LIKE '%$Valor%'\";\r\n break;\r\n case 3:\r\n $Filtro.=\" > '$Valor'\";\r\n break;\r\n case 4:\r\n $Filtro.=\" < '$Valor'\";\r\n break;\r\n case 5:\r\n $Filtro.=\" >= '$Valor'\";\r\n break;\r\n case 6:\r\n $Filtro.=\" <= '$Valor'\";\r\n break;\r\n case 7:\r\n $Filtro.=\" <> '$Valor'\";\r\n break;\r\n case 8:\r\n $Filtro.=\" LIKE '$Valor%'\";\r\n break;\r\n }\r\n $And=\" AND \";\r\n $Filtro.=$And;\r\n }\r\n }\r\n if($z>0){\r\n $Filtro=substr($Filtro, 0, -4);\r\n }\r\n }else{\r\n $Filtro= base64_decode($_REQUEST[\"st\"]);\r\n }\r\n return($Filtro);\r\n}",
"public function searchPrintKinerja()\n {\n // should not be searched.\n\n $criteria=new CDbCriteria;\n\n $criteria->select = \"t.kelaspelayanan_id,t.kelaspelayanan_nama,t.no_rekam_medik, t.nama_pasien, t.jeniskelamin, t.daftartindakan_nama,date(tglmasukpenunjang) as tgl_masukpenunjang,\n t.ruanganpenunj_nama,sum(t.qty_tindakan) as qty_tindakan,t.tarif_satuan, sum(t.tarif_satuan * t.qty_tindakan) as total\";\n $criteria->group = \"t.kelaspelayanan_id,t.kelaspelayanan_nama,t.no_rekam_medik, t.nama_pasien, t.jeniskelamin, t.daftartindakan_nama, date(tglmasukpenunjang),t.ruanganpenunj_nama,\n t.tarif_satuan\";\n\t\t\tif(!empty($this->pasien_id)){\n\t\t\t\t$criteria->addCondition('pasien_id = '.$this->pasien_id);\n\t\t\t}\n $criteria->addBetweenCondition('t.tglmasukpenunjang',$this->tgl_awal,$this->tgl_akhir,true); \n if(isset($this->ruanganpenunj_id)){\n\t\t\t\tif(!empty($this->ruanganpenunj_id)){\n\t\t\t\t\t$criteria->addCondition('ruanganpenunj_id = '.$this->ruanganpenunj_id);\n\t\t\t\t}\n }\n if(isset($this->kelaspelayanan_id)){\n\t\t\t\tif(!empty($this->kelaspelayanan_id)){\n\t\t\t\t\t$criteria->addCondition('kelaspelayanan_id = '.$this->kelaspelayanan_id);\n\t\t\t\t}\n }\n $criteria->limit = -1;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n 'pagination'=>false,\n ));\n }",
"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_kode),true);\n\t\t$criteria->compare('LOWER(programkerja_nama)',strtolower($this->programkerja_nama),true);\n\t\t$criteria->compare('LOWER(programkerja_ket)',strtolower($this->programkerja_ket),true);\n\t\tif(!empty($this->programkerja_nourut)){\n\t\t\t$criteria->addCondition('programkerja_nourut = '.$this->programkerja_nourut);\n\t\t}\n\t\tif(!empty($this->subprogramkerja_id)){\n\t\t\t$criteria->addCondition('subprogramkerja_id = '.$this->subprogramkerja_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subprogramkerja_kode)',strtolower($this->subprogramkerja_kode),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_nama)',strtolower($this->subprogramkerja_nama),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_ket)',strtolower($this->subprogramkerja_ket),true);\n\t\tif(!empty($this->subprogramkerja_nourut)){\n\t\t\t$criteria->addCondition('subprogramkerja_nourut = '.$this->subprogramkerja_nourut);\n\t\t}\n\t\tif(!empty($this->kegiatanprogram_id)){\n\t\t\t$criteria->addCondition('kegiatanprogram_id = '.$this->kegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kegiatanprogram_kode)',strtolower($this->kegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_nama)',strtolower($this->kegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_ket)',strtolower($this->kegiatanprogram_ket),true);\n\t\tif(!empty($this->kegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('kegiatanprogram_nourut = '.$this->kegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->subkegiatanprogram_id)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_id = '.$this->subkegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subkegiatanprogram_kode)',strtolower($this->subkegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_nama)',strtolower($this->subkegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_ket)',strtolower($this->subkegiatanprogram_ket),true);\n\t\tif(!empty($this->subkegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_nourut = '.$this->subkegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->rekening1debit_id)){\n\t\t\t$criteria->addCondition('rekening1debit_id = '.$this->rekening1debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1debit_kode)',strtolower($this->rekening1debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1debit_nama)',strtolower($this->rekening1debit_nama),true);\n\t\tif(!empty($this->rekening2debit_id)){\n\t\t\t$criteria->addCondition('rekening2debit_id = '.$this->rekening2debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2debit_kode)',strtolower($this->rekening2debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2debit_nama)',strtolower($this->rekening2debit_nama),true);\n\t\tif(!empty($this->rekening3debit_id)){\n\t\t\t$criteria->addCondition('rekening3debit_id = '.$this->rekening3debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3debit_kode)',strtolower($this->rekening3debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3debit_nama)',strtolower($this->rekening3debit_nama),true);\n\t\tif(!empty($this->rekening4debit_id)){\n\t\t\t$criteria->addCondition('rekening4debit_id = '.$this->rekening4debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4debit_kode)',strtolower($this->rekening4debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4debit_nama)',strtolower($this->rekening4debit_nama),true);\n\t\tif(!empty($this->rekening5debit_id)){\n\t\t\t$criteria->addCondition('rekening5debit_id = '.$this->rekening5debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5debit_kode)',strtolower($this->rekening5debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5debit_nama)',strtolower($this->rekening5debit_nama),true);\n\t\tif(!empty($this->rekening1kredit_id)){\n\t\t\t$criteria->addCondition('rekening1kredit_id = '.$this->rekening1kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1kredit_kode)',strtolower($this->rekening1kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1kredit_nama)',strtolower($this->rekening1kredit_nama),true);\n\t\tif(!empty($this->rekening2kredit_id)){\n\t\t\t$criteria->addCondition('rekening2kredit_id = '.$this->rekening2kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2kredit_kode)',strtolower($this->rekening2kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2kredit_nama)',strtolower($this->rekening2kredit_nama),true);\n\t\tif(!empty($this->rekening3kredit_id)){\n\t\t\t$criteria->addCondition('rekening3kredit_id = '.$this->rekening3kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3kredit_kode)',strtolower($this->rekening3kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3kredit_nama)',strtolower($this->rekening3kredit_nama),true);\n\t\tif(!empty($this->rekening4kredit_id)){\n\t\t\t$criteria->addCondition('rekening4kredit_id = '.$this->rekening4kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4kredit_kode)',strtolower($this->rekening4kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4kredit_nama)',strtolower($this->rekening4kredit_nama),true);\n\t\tif(!empty($this->rekening5kredit_id)){\n\t\t\t$criteria->addCondition('rekening5kredit_id = '.$this->rekening5kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5kredit_kode)',strtolower($this->rekening5kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5kredit_nama)',strtolower($this->rekening5kredit_nama),true);\n\t\t\n $criteria->compare('subkegiatanprogram_aktif', $this->subkegiatanprogram_aktif);\n $criteria->compare('programkerja_aktif', $this->programkerja_aktif);\n $criteria->compare('subprogramkerja_aktif', $this->subprogramkerja_aktif);\n $criteria->compare('kegiatanprogram_aktif', $this->kegiatanprogram_aktif);\n//$criteria->order = 'programkerja_id,subprogramkerja_id,kegiatanprogram_id,subkegiatanprogram_id';\n\t\t\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n\t}",
"private function getFilters()\r\n { \r\n $this->searchfilters = '';\r\n \r\n if ($this->streek != '')\r\n {\r\n $id = substr($this->streek, 1);\r\n \r\n if (substr($this->streek, 0, 1) == 's')\r\n {\r\n $this->streek_id = $id;\r\n $sql = \"SELECT streek_naam AS name FROM tblStreek WHERE streek_id = '$id'\";\r\n } \r\n else\r\n {\r\n $this->dept_id = $id;\r\n $sql = \"SELECT dpt.dept_naam AS name FROM tblDepts dpt WHERE dpt.dept_id = '$id'\";\r\n } \r\n \r\n $komma = 1;\r\n }\r\n \r\n if (isset($komma))\r\n {\r\n $name = $this->get_name($sql);\r\n $this->searchfilters .= $name;\r\n }\r\n \r\n /** aantal personen */\r\n if ($this->aantalpersonen != '' && $this->aantalpersonen != 0)\r\n { \r\n if (isset($komma))\r\n {\r\n $this->searchfilters .= ', ';\r\n } \r\n if ($this->aantalpersonen != '12-12')\r\n {\r\n $this->searchfilters .= $this->aantalpersonen . ' pers.';\r\n } \r\n else\r\n {\r\n $this->searchfilters .= 'vanaf 12 pers.';\r\n } \r\n $komma = 1; \r\n }\r\n \r\n /** aankomst */\r\n if ($this->aankomst != '')\r\n {\r\n $dt = new Datum();\r\n $tmp = strtotime($this->aankomst);\r\n $dt->setTmp($tmp);\r\n $datum = $dt->setFormat('dkdmlj');\r\n if (isset($komma))\r\n {\r\n $this->searchfilters .= ', ';\r\n } \r\n $this->searchfilters .= $datum.' ';\r\n \r\n if($this->weken == 1 || $this->weken == 0)\r\n {\r\n $this->searchfilters .= ', 1 week';\r\n }\r\n else \r\n {\r\n $this->searchfilters .= ', '.$this->weken.' weken'; \r\n }\r\n $komma = 1; \r\n } \r\n \r\n /** checkboxen */\r\n if ($this->count_checkbox != 0)\r\n {\r\n if (isset($komma)) $this->searchfilters .= ', ';\r\n \r\n for ($x = 0; $x < $this->arrcheckbox; $x++)\r\n {\r\n $str = $this->formatFac($this->arrcheckbox[$x]);\r\n $this->searchfilters .= $str.', ';\r\n }\r\n $komma = 1; \r\n // laatste komma weg\r\n $this->searchfilters = substr($this->searchfilters, 0, strlen($this->searchfilters)-2); \r\n } \r\n $this->searchfilters = 'Zoekfilters: '.$this->searchfilters;\r\n }",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('invasetlain_id',$this->invasetlain_id);\n\t\t$criteria->compare('asalaset_id',$this->asalaset_id);\n\t\t$criteria->compare('barang_id',$this->barang_id);\n\t\t$criteria->compare('lokasi_id',$this->lokasi_id);\n\t\t$criteria->compare('pemilikbarang_id',$this->pemilikbarang_id);\n\t\t$criteria->compare('LOWER(invasetlain_kode)',strtolower($this->invasetlain_kode),true);\n\t\t$criteria->compare('LOWER(invasetlain_noregister)',strtolower($this->invasetlain_noregister),true);\n\t\t$criteria->compare('LOWER(invasetlain_namabrg)',strtolower($this->invasetlain_namabrg),true);\n\t\t$criteria->compare('LOWER(invasetlain_judulbuku)',strtolower($this->invasetlain_judulbuku),true);\n\t\t$criteria->compare('LOWER(invasetlain_spesifikasibuku)',strtolower($this->invasetlain_spesifikasibuku),true);\n\t\t$criteria->compare('LOWER(invasetlain_asalkesenian)',strtolower($this->invasetlain_asalkesenian),true);\n\t\t$criteria->compare('invasetlain_jumlah',$this->invasetlain_jumlah);\n\t\t$criteria->compare('LOWER(invasetlain_thncetak)',strtolower($this->invasetlain_thncetak),true);\n\t\t$criteria->compare('invasetlain_harga',$this->invasetlain_harga);\n\t\t$criteria->compare('LOWER(invasetlain_tglguna)',strtolower($this->invasetlain_tglguna),true);\n\t\t$criteria->compare('invasetlain_akumsusut',$this->invasetlain_akumsusut);\n\t\t$criteria->compare('LOWER(invasetlain_ket)',strtolower($this->invasetlain_ket),true);\n\t\t$criteria->compare('LOWER(invasetlain_penciptakesenian)',strtolower($this->invasetlain_penciptakesenian),true);\n\t\t$criteria->compare('LOWER(invasetlain_bahankesenian)',strtolower($this->invasetlain_bahankesenian),true);\n\t\t$criteria->compare('LOWER(invasetlain_jenishewan_tum)',strtolower($this->invasetlain_jenishewan_tum),true);\n\t\t$criteria->compare('LOWER(invasetlain_ukuranhewan_tum)',strtolower($this->invasetlain_ukuranhewan_tum),true);\n\t\t$criteria->compare('LOWER(create_time)',strtolower($this->create_time),true);\n\t\t$criteria->compare('LOWER(update_time)',strtolower($this->update_time),true);\n\t\t$criteria->compare('LOWER(create_loginpemakai_id)',strtolower($this->create_loginpemakai_id),true);\n\t\t$criteria->compare('LOWER(update_loginpemakai_id)',strtolower($this->update_loginpemakai_id),true);\n\t\t$criteria->compare('LOWER(create_ruangan)',strtolower($this->create_ruangan),true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function vmRunOnHostFilter($vmID)\n\t{\n\t\t//If all clients running on a special VM host should be searched, no search string is allowed\n\t\t$this->searchWHERE = '';\n\t\t$this->vmRunOnHostWHERE = 'clients.vmRunOnHost = '.$vmID.' ';\n\t}",
"public function searchGrafikKinerja()\n {\n // should not be searched.\n\n $criteria=new CDbCriteria;\n\n $criteria->select = \"count(t.pasien_id) as jumlah, t.daftartindakan_nama as data, t.no_rekam_medik, t.nama_pasien, t.jeniskelamin,\n date(t.tglmasukpenunjang) as tgl_masukpenunjang, t.ruanganpenunj_nama,\n sum(t.qty_tindakan) as qty_tindakan,t.tarif_satuan, sum(t.tarif_satuan * t.qty_tindakan) as total\";\n $criteria->group = \"t.no_rekam_medik, t.nama_pasien, t.jeniskelamin, date(t.tglmasukpenunjang), t.daftartindakan_nama, t.ruanganpenunj_nama,\n t.tarif_satuan\";\n\t\t\tif(!empty($this->pasien_id)){\n\t\t\t\t$criteria->addCondition('pasien_id = '.$this->pasien_id);\n\t\t\t}\n $criteria->addBetweenCondition('t.tglmasukpenunjang',$this->tgl_awal,$this->tgl_akhir,true);\n if(isset($this->ruanganpenunj_id)){\n\t\t\t\tif(!empty($this->ruanganpenunj_id)){\n\t\t\t\t\t$criteria->addCondition('ruanganpenunj_id = '.$this->ruanganpenunj_id);\n\t\t\t\t}\n }\n $criteria->limit = -1;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n 'pagination'=>false,\n ));\n }",
"public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(BonPlanPeer::ID, $key, Criteria::EQUAL);\n }",
"protected function sqlKeyFilter()\n\t{\n\t\treturn \"\";\n\t}",
"public function filterByPrimaryKey($key)\r\n\t{\r\n\t\treturn $this->addUsingAlias(FlightPeer::ID, $key, Criteria::EQUAL);\r\n\t}",
"public function search()\r\n\t{\r\n\t\t// Warning: Please modify the following code to remove attributes that\r\n\t\t// should not be searched.\r\n\r\n\t\t$criteria=new CDbCriteria;\r\n\r\n\t\t$criteria->compare('inventarisasi_id',$this->inventarisasi_id);\r\n\t\t$criteria->compare('tgltransaksi',$this->tgltransaksi,true);\r\n\t\t$criteria->compare('inventarisasi_kode',$this->inventarisasi_kode,true);\r\n\t\t$criteria->compare('inventarisasi_hargabeli',$this->inventarisasi_hargabeli);\r\n\t\t$criteria->compare('inventarisasi_hargasatuan',$this->inventarisasi_hargasatuan);\r\n\t\t$criteria->compare('inventarisasi_qty_in',$this->inventarisasi_qty_in);\r\n\t\t$criteria->compare('inventarisasi_qty_out',$this->inventarisasi_qty_out);\r\n\t\t$criteria->compare('inventarisasi_qty_skrg',$this->inventarisasi_qty_skrg);\r\n\t\t$criteria->compare('inventarisasi_jmlmin',$this->inventarisasi_jmlmin);\r\n\t\t$criteria->compare('inventarisasi_keadaan',$this->inventarisasi_keadaan,true);\r\n\t\t$criteria->compare('inventarisasi_keterangan',$this->inventarisasi_keterangan,true);\r\n\t\t$criteria->compare('barang_id',$this->barang_id);\r\n\t\t$criteria->compare('barang_nama',$this->barang_nama,true);\r\n\t\t$criteria->compare('barang_namalainnya',$this->barang_namalainnya,true);\r\n\t\t$criteria->compare('barang_merk',$this->barang_merk,true);\r\n\t\t$criteria->compare('barang_noseri',$this->barang_noseri,true);\r\n\t\t$criteria->compare('barang_ukuran',$this->barang_ukuran,true);\r\n\t\t$criteria->compare('barang_bahan',$this->barang_bahan,true);\r\n\t\t$criteria->compare('barang_kode',$this->barang_kode,true);\r\n\t\t$criteria->compare('barang_type',$this->barang_type,true);\r\n\t\t$criteria->compare('barang_ppn',$this->barang_ppn);\r\n\t\t$criteria->compare('barang_hpp',$this->barang_hpp);\r\n\t\t$criteria->compare('ruangan_id',$this->ruangan_id);\r\n\t\t$criteria->compare('ruangan_nama',$this->ruangan_nama,true);\r\n\t\t$criteria->compare('ruangan_namalainnya',$this->ruangan_namalainnya,true);\r\n\t\t$criteria->compare('barang_thnbeli',$this->barang_thnbeli,true);\r\n\t\t$criteria->compare('barang_warna',$this->barang_warna,true);\r\n\t\t$criteria->compare('barang_ekonomis_thn',$this->barang_ekonomis_thn);\r\n\t\t$criteria->compare('barang_statusregister',$this->barang_statusregister);\r\n\t\t$criteria->compare('barang_satuan',$this->barang_satuan,true);\r\n\t\t$criteria->compare('barang_jmldlmkemasan',$this->barang_jmldlmkemasan);\r\n\r\n\t\treturn new CActiveDataProvider($this, array(\r\n\t\t\t'criteria'=>$criteria,\r\n\t\t));\r\n\t}",
"function SqlKeyFilter() {\n\t\treturn \"`nomor` = @nomor@\";\n\t}",
"public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('vkl',$this->vkl);\n\t\t$criteria->compare('id_gn',$this->id_gn);\n\t\t$criteria->compare('status',$this->status);\n\t\t$criteria->compare('tabl_id',$this->tabl_id);\n\t\t$criteria->compare('tabl',$this->tabl,true);\n\t\t$criteria->compare('samonazvanie',$this->samonazvanie,true);\n\t\t$criteria->compare('mfa',$this->mfa,true);\n\t\t$criteria->compare('samonazvanie_1',$this->samonazvanie_1,true);\n\t\t$criteria->compare('oficialno_1',$this->oficialno_1,true);\n\t\t$criteria->compare('flag',$this->flag,true);\n\t\t$criteria->compare('flag_svg',$this->flag_svg,true);\n\t\t$criteria->compare('gerb',$this->gerb,true);\n\t\t$criteria->compare('gerb_svg',$this->gerb_svg,true);\n\t\t$criteria->compare('giddom',$this->giddom,true);\n\t\t$criteria->compare('tip',$this->tip);\n\t\t$criteria->compare('gorod_id',$this->gorod_id);\n\t\t$criteria->compare('region_id',$this->region_id);\n\t\t$criteria->compare('strana_id',$this->strana_id);\n\t\t$criteria->compare('mir_id',$this->mir_id);\n\t\t$criteria->compare('obj_id',$this->obj_id);\n\t\t$criteria->compare('ksi1',$this->ksi1,true);\n\t\t$criteria->compare('ksi2',$this->ksi2,true);\n\t\t$criteria->compare('ksi_sort',$this->ksi_sort,true);\n\t\t$criteria->compare('ksi_lat',$this->ksi_lat,true);\n\t\t$criteria->compare('ksi_uni',$this->ksi_uni,true);\n\t\t$criteria->compare('telefon',$this->telefon,true);\n\t\t$criteria->compare('pochta',$this->pochta,true);\n\t\t$criteria->compare('avto',$this->avto,true);\n\t\t$criteria->compare('naselenie',$this->naselenie);\n\t\t$criteria->compare('ploshad',$this->ploshad,true);\n\t\t$criteria->compare('vysota',$this->vysota);\n\t\t$criteria->compare('osnovan',$this->osnovan);\n\t\t$criteria->compare('upominanie',$this->upominanie);\n\t\t$criteria->compare('kontinent',$this->kontinent,true);\n\t\t$criteria->compare('shirota',$this->shirota);\n\t\t$criteria->compare('dolgota',$this->dolgota);\n\t\t$criteria->compare('shirota_gradus',$this->shirota_gradus);\n\t\t$criteria->compare('shirota_minuta',$this->shirota_minuta);\n\t\t$criteria->compare('shirota_sekunda',$this->shirota_sekunda);\n\t\t$criteria->compare('dolgota_gradus',$this->dolgota_gradus);\n\t\t$criteria->compare('dolgota_minuta',$this->dolgota_minuta);\n\t\t$criteria->compare('dolgota_sekunda',$this->dolgota_sekunda);\n\t\t$criteria->compare('sozdan',$this->sozdan,true);\n\t\t$criteria->compare('izmenen',$this->izmenen,true);\n\t\t$criteria->compare('vrem_pojas',$this->vrem_pojas,true);\n\t\t$criteria->compare('dop_nazvanie',$this->dop_nazvanie,true);\n\t\t$criteria->compare('gn_tip_np',$this->gn_tip_np,true);\n\t\t$criteria->compare('nazvanie_1',$this->nazvanie_1,true);\n\t\t$criteria->compare('opisanie_1',$this->opisanie_1,true);\n\t\t$criteria->compare('nazvanie_2',$this->nazvanie_2,true);\n\t\t$criteria->compare('opisanie_2',$this->opisanie_2,true);\n\t\t$criteria->compare('nazvanie_3',$this->nazvanie_3,true);\n\t\t$criteria->compare('opisanie_3',$this->opisanie_3,true);\n\t\t$criteria->compare('nazvanie_4',$this->nazvanie_4,true);\n\t\t$criteria->compare('opisanie_4',$this->opisanie_4,true);\n\t\t$criteria->compare('nazvanie_5',$this->nazvanie_5,true);\n\t\t$criteria->compare('opisanie_5',$this->opisanie_5,true);\n\t\t$criteria->compare('nazvanie_6',$this->nazvanie_6,true);\n\t\t$criteria->compare('opisanie_6',$this->opisanie_6,true);\n\t\t$criteria->compare('nazvanie_7',$this->nazvanie_7,true);\n\t\t$criteria->compare('opisanie_7',$this->opisanie_7,true);\n\t\t$criteria->compare('nazvanie_8',$this->nazvanie_8,true);\n\t\t$criteria->compare('opisanie_8',$this->opisanie_8,true);\n\t\t$criteria->compare('nazvanie_9',$this->nazvanie_9,true);\n\t\t$criteria->compare('opisanie_9',$this->opisanie_9,true);\n\t\t$criteria->compare('nazvanie_10',$this->nazvanie_10,true);\n\t\t$criteria->compare('opisanie_10',$this->opisanie_10,true);\n\t\t$criteria->compare('nazvanie_11',$this->nazvanie_11,true);\n\t\t$criteria->compare('opisanie_11',$this->opisanie_11,true);\n\t\t$criteria->compare('nazvanie_12',$this->nazvanie_12,true);\n\t\t$criteria->compare('opisanie_12',$this->opisanie_12,true);\n\t\t$criteria->compare('nazvanie_13',$this->nazvanie_13,true);\n\t\t$criteria->compare('opisanie_13',$this->opisanie_13,true);\n\t\t$criteria->compare('nazvanie_14',$this->nazvanie_14,true);\n\t\t$criteria->compare('opisanie_14',$this->opisanie_14,true);\n\t\t$criteria->compare('nazvanie_15',$this->nazvanie_15,true);\n\t\t$criteria->compare('opisanie_15',$this->opisanie_15,true);\n\t\t$criteria->compare('nazvanie_16',$this->nazvanie_16,true);\n\t\t$criteria->compare('opisanie_16',$this->opisanie_16,true);\n\t\t$criteria->compare('nazvanie_17',$this->nazvanie_17,true);\n\t\t$criteria->compare('opisanie_17',$this->opisanie_17,true);\n\t\t$criteria->compare('nazvanie_18',$this->nazvanie_18,true);\n\t\t$criteria->compare('opisanie_18',$this->opisanie_18,true);\n\t\t$criteria->compare('nazvanie_19',$this->nazvanie_19,true);\n\t\t$criteria->compare('opisanie_19',$this->opisanie_19,true);\n\t\t$criteria->compare('nazvanie_20',$this->nazvanie_20,true);\n\t\t$criteria->compare('opisanie_20',$this->opisanie_20,true);\n\t\t$criteria->compare('nazvanie_21',$this->nazvanie_21,true);\n\t\t$criteria->compare('opisanie_21',$this->opisanie_21,true);\n\t\t$criteria->compare('nazvanie_22',$this->nazvanie_22,true);\n\t\t$criteria->compare('opisanie_22',$this->opisanie_22,true);\n\t\t$criteria->compare('nazvanie_23',$this->nazvanie_23,true);\n\t\t$criteria->compare('opisanie_23',$this->opisanie_23,true);\n\t\t$criteria->compare('nazvanie_24',$this->nazvanie_24,true);\n\t\t$criteria->compare('opisanie_24',$this->opisanie_24,true);\n\t\t$criteria->compare('nazvanie_25',$this->nazvanie_25,true);\n\t\t$criteria->compare('opisanie_25',$this->opisanie_25,true);\n\t\t$criteria->compare('nazvanie_26',$this->nazvanie_26,true);\n\t\t$criteria->compare('opisanie_26',$this->opisanie_26,true);\n\t\t$criteria->compare('nazvanie_27',$this->nazvanie_27,true);\n\t\t$criteria->compare('opisanie_27',$this->opisanie_27,true);\n\t\t$criteria->compare('nazvanie_28',$this->nazvanie_28,true);\n\t\t$criteria->compare('opisanie_28',$this->opisanie_28,true);\n\t\t$criteria->compare('nazvanie_29',$this->nazvanie_29,true);\n\t\t$criteria->compare('opisanie_29',$this->opisanie_29,true);\n\t\t$criteria->compare('nazvanie_30',$this->nazvanie_30,true);\n\t\t$criteria->compare('opisanie_30',$this->opisanie_30,true);\n\t\t$criteria->compare('nazvanie_31',$this->nazvanie_31,true);\n\t\t$criteria->compare('opisanie_31',$this->opisanie_31,true);\n\t\t$criteria->compare('nazvanie_32',$this->nazvanie_32,true);\n\t\t$criteria->compare('opisanie_32',$this->opisanie_32,true);\n\t\t$criteria->compare('nazvanie_33',$this->nazvanie_33,true);\n\t\t$criteria->compare('opisanie_33',$this->opisanie_33,true);\n\t\t$criteria->compare('nazvanie_34',$this->nazvanie_34,true);\n\t\t$criteria->compare('opisanie_34',$this->opisanie_34,true);\n\t\t$criteria->compare('nazvanie_35',$this->nazvanie_35,true);\n\t\t$criteria->compare('opisanie_35',$this->opisanie_35,true);\n\t\t$criteria->compare('nazvanie_36',$this->nazvanie_36,true);\n\t\t$criteria->compare('opisanie_36',$this->opisanie_36,true);\n\t\t$criteria->compare('nazvanie_37',$this->nazvanie_37,true);\n\t\t$criteria->compare('opisanie_37',$this->opisanie_37,true);\n\t\t$criteria->compare('nazvanie_38',$this->nazvanie_38,true);\n\t\t$criteria->compare('opisanie_38',$this->opisanie_38,true);\n\t\t$criteria->compare('nazvanie_39',$this->nazvanie_39,true);\n\t\t$criteria->compare('opisanie_39',$this->opisanie_39,true);\n\t\t$criteria->compare('nazvanie_40',$this->nazvanie_40,true);\n\t\t$criteria->compare('opisanie_40',$this->opisanie_40,true);\n\t\t$criteria->compare('nazvanie_41',$this->nazvanie_41,true);\n\t\t$criteria->compare('opisanie_41',$this->opisanie_41,true);\n\t\t$criteria->compare('nazvanie_42',$this->nazvanie_42,true);\n\t\t$criteria->compare('opisanie_42',$this->opisanie_42,true);\n\t\t$criteria->compare('nazvanie_43',$this->nazvanie_43,true);\n\t\t$criteria->compare('opisanie_43',$this->opisanie_43,true);\n\t\t$criteria->compare('nazvanie_44',$this->nazvanie_44,true);\n\t\t$criteria->compare('opisanie_44',$this->opisanie_44,true);\n\t\t$criteria->compare('nazvanie_45',$this->nazvanie_45,true);\n\t\t$criteria->compare('opisanie_45',$this->opisanie_45,true);\n\t\t$criteria->compare('nazvanie_46',$this->nazvanie_46,true);\n\t\t$criteria->compare('opisanie_46',$this->opisanie_46,true);\n\t\t$criteria->compare('nazvanie_47',$this->nazvanie_47,true);\n\t\t$criteria->compare('opisanie_47',$this->opisanie_47,true);\n\t\t$criteria->compare('nazvanie_48',$this->nazvanie_48,true);\n\t\t$criteria->compare('opisanie_48',$this->opisanie_48,true);\n\t\t$criteria->compare('nazvanie_49',$this->nazvanie_49,true);\n\t\t$criteria->compare('opisanie_49',$this->opisanie_49,true);\n\t\t$criteria->compare('nazvanie_50',$this->nazvanie_50,true);\n\t\t$criteria->compare('opisanie_50',$this->opisanie_50,true);\n\t\t$criteria->compare('nazvanie_51',$this->nazvanie_51,true);\n\t\t$criteria->compare('opisanie_51',$this->opisanie_51,true);\n\t\t$criteria->compare('nazvanie_52',$this->nazvanie_52,true);\n\t\t$criteria->compare('opisanie_52',$this->opisanie_52,true);\n\t\t$criteria->compare('nazvanie_53',$this->nazvanie_53,true);\n\t\t$criteria->compare('opisanie_53',$this->opisanie_53,true);\n\t\t$criteria->compare('nazvanie_54',$this->nazvanie_54,true);\n\t\t$criteria->compare('opisanie_54',$this->opisanie_54,true);\n\t\t$criteria->compare('nazvanie_55',$this->nazvanie_55,true);\n\t\t$criteria->compare('opisanie_55',$this->opisanie_55,true);\n\t\t$criteria->compare('nazvanie_56',$this->nazvanie_56,true);\n\t\t$criteria->compare('opisanie_56',$this->opisanie_56,true);\n\t\t$criteria->compare('nazvanie_57',$this->nazvanie_57,true);\n\t\t$criteria->compare('opisanie_57',$this->opisanie_57,true);\n\t\t$criteria->compare('nazvanie_58',$this->nazvanie_58,true);\n\t\t$criteria->compare('opisanie_58',$this->opisanie_58,true);\n\t\t$criteria->compare('nazvanie_59',$this->nazvanie_59,true);\n\t\t$criteria->compare('opisanie_59',$this->opisanie_59,true);\n\t\t$criteria->compare('nazvanie_60',$this->nazvanie_60,true);\n\t\t$criteria->compare('opisanie_60',$this->opisanie_60,true);\n\t\t$criteria->compare('nazvanie_61',$this->nazvanie_61,true);\n\t\t$criteria->compare('opisanie_61',$this->opisanie_61,true);\n\t\t$criteria->compare('nazvanie_62',$this->nazvanie_62,true);\n\t\t$criteria->compare('opisanie_62',$this->opisanie_62,true);\n\t\t$criteria->compare('nazvanie_63',$this->nazvanie_63,true);\n\t\t$criteria->compare('opisanie_63',$this->opisanie_63,true);\n\t\t$criteria->compare('nazvanie_64',$this->nazvanie_64,true);\n\t\t$criteria->compare('opisanie_64',$this->opisanie_64,true);\n\t\t$criteria->compare('nazvanie_65',$this->nazvanie_65,true);\n\t\t$criteria->compare('opisanie_65',$this->opisanie_65,true);\n\t\t$criteria->compare('nazvanie_66',$this->nazvanie_66,true);\n\t\t$criteria->compare('opisanie_66',$this->opisanie_66,true);\n\t\t$criteria->compare('nazvanie_67',$this->nazvanie_67,true);\n\t\t$criteria->compare('opisanie_67',$this->opisanie_67,true);\n\t\t$criteria->compare('region_1',$this->region_1);\n\t\t$criteria->compare('region_2',$this->region_2);\n\t\t$criteria->compare('region_3',$this->region_3);\n\t\t$criteria->compare('admin_zametka',$this->admin_zametka,true);\n\t\t$criteria->compare('nazvanie_68',$this->nazvanie_68,true);\n\t\t$criteria->compare('opisanie_68',$this->opisanie_68,true);\n\t\t$criteria->compare('nazvanie_69',$this->nazvanie_69,true);\n\t\t$criteria->compare('opisanie_69',$this->opisanie_69,true);\n\t\t$criteria->compare('nazvanie_70',$this->nazvanie_70,true);\n\t\t$criteria->compare('opisanie_70',$this->opisanie_70,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function filter($filter_param);",
"protected function sqlKeyFilter()\n\t{\n\t\treturn \"`id` = @id@ AND `disposaldetail_id` = @disposaldetail_id@\";\n\t}"
] | [
"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.4742657",
"0.47370857",
"0.47101632",
"0.47072986",
"0.46998367",
"0.46967095",
"0.4688061",
"0.46868318",
"0.46850935",
"0.4677451"
] | 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 {\n global $injector;\n\n if (($indices instanceof IMP_Indices_Mailbox) &&\n (!$indices->mailbox->access_flags ||\n !count($indices = $indices->joinIndices()))) {\n return;\n }\n\n $changed = $injector->getInstance('IMP_Flags')->changed($flags, $add);\n\n $result = new stdClass;\n if (!empty($changed['add'])) {\n $result->add = array_map('strval', $changed['add']);\n }\n if (!empty($changed['remove'])) {\n $result->remove = array_map('strval', $changed['remove']);\n }\n\n $result->buids = $indices->toArray();\n $this->_flag[] = $result;\n }",
"public function addSearchFilter($search)\n\t{\n\t\t$firstSearchEntry = true;\n\n\t\t$this->searchWHERE = \" (\";\n\t\tforeach (DB_getLikeableColumns(\"clients\") as $field)\n\t\t{\n\t\t\tif ($firstSearchEntry)\n\t\t\t{\n\t\t\t\t$this->searchWHERE .= \"($field LIKE \\\"%$search%\\\") \";\n\t\t\t\t$firstSearchEntry = false;\n\t\t\t}\n\t\t\telse\n\t\t\t\t$this->searchWHERE .= \"|| ($field LIKE \\\"%$search%\\\") \";\n\t\t}\n\n\t\t$this->searchWHERE .= \") \";\n\t}",
"public function filterQuery(callable $callable, $flag = Collection::FILTER_USE_VALUE);",
"public function addFilter(string $key, string $value);",
"abstract public function addFlag(Request $request, $selected);",
"function addFilter() {\n $data = array(\n 'importfilter_ext' => $this->params['importfilter_ext'],\n 'module_guid' => $this->params['module_guid']\n );\n return $this->databaseInsertRecord(\n $this->tableImportFilter, 'importfilter_id', $data\n );\n }",
"public function filterByAddTime($value, $operator = Rule::OP_EQ)\n\t{\n\t\treturn $this->filterBy('add_time', $value, $operator);\n\t}",
"public function add_to_filter($add_to_filter)\n {\n $ids = Request::get(\"id\");\n\n $ids = is_array($ids) ? $ids : [$ids];\n\n foreach ($ids as $id) {\n\n $color = Color::findOrFail($id);\n\n // Fire saving action\n Action::fire(\"color.saving\", $color);\n\n $color->add_to_filter = $add_to_filter;\n $color->save();\n\n // Fire saved action\n\n Action::fire(\"color.saved\", $color);\n }\n\n if ($add_to_filter) {\n $message = trans(\"colors::colors.events.activated\");\n } else {\n $message = trans(\"colors::colors.events.deactivated\");\n }\n\n return Redirect::back()->with(\"message\", $message);\n }",
"public function addValueBool(bool $value): ISearchRequestSimpleQuery;",
"public function addFilter( string $key, string $operator, $value = null )\n {\n $this->filters[] = [ 'column' => $key, 'operator' => $operator, 'value' => $value ];\n }",
"function addflag($val, $flag) {\n\treturn $val | $flag;\n}",
"function query() {\n if (!($flag = $this->get_flag())) {\n return;\n }\n\n $this->definition['extra'][] = array(\n 'field' => 'fid',\n 'value' => $flag->fid,\n 'numeric' => TRUE,\n );\n parent::query();\n }",
"public function admin_add_filters() {\n\t\t\n\t}",
"public function addFilter($alias, $column)\n {\n $this->filterMap[$alias] = $column;\n\n $this->enableFilterMap = true;\n }",
"public function setAddService(array $addService)\n {\n $this->addService = $addService;\n return $this;\n }",
"public function addSearchFilter ($query = NULL)\n {\n //die('/Users/sebastian/Documents/code/solr-modul/app/code/local/DMC/Solr/Model/SolrServer/Adapter/Product/Collection.php//addSearchFilter');\n\n if (is_null($query))\n $query = Mage::helper('solr')->getQuery();\n $where = '';\n $query = self::escape($query);\n $words = preg_split(\"/\\s+/\", $query);\n if (count($words) > 1) {\n $proximity_search = Mage::helper('solr')->getProximitySearch();\n $nquery = ($proximity_search) ? '(\"' : '(';\n $nquery .= implode(' ', $words);\n $nquery .= ($proximity_search) ? '\"~' . $proximity_search . ')' : ')';\n $query = $nquery;\n } else {\n $query = $this->addFuzzySearch($query);\n }\n\n foreach ($this->_searchableAttributes as $attribute) {\n $typeConverter = new DMC_Solr_Model_SolrServer_Adapter_Product_TypeConverter(\n $attribute->getFrontend()->getInputType());\n if (isset($typeConverter->solr_search) && $typeConverter->solr_search) {\n $code = $attribute->getAttributeCode();\n $field = $typeConverter->solr_search_prefix .\n DMC_Solr_Model_SolrServer_Adapter_Product_TypeConverter::SUBPREFIX_SEARCH .\n $attribute->getAttributeCode();\n $where = strlen($where) ? $where . ' OR ' . $field . ':' . $query : $field .\n ':' . $query;\n }\n }\n echo '- addSearchFilter ->'.$query;\n\n $this->getSelect()->where($query);\n return $this;\n }",
"function encode_item_flags($item) {\n// We may need those for the case of syncing other hub locations which you are attached to.\n\n\t$ret = array();\n\n\tif($item['item_restrict'] & ITEM_DELETED)\n\t\t$ret[] = 'deleted';\n\tif($item['item_restrict'] & ITEM_HIDDEN)\n\t\t$ret[] = 'hidden';\n\tif($item['item_flags'] & ITEM_THREAD_TOP)\n\t\t$ret[] = 'thread_parent';\n\tif($item['item_flags'] & ITEM_NSFW)\n\t\t$ret[] = 'nsfw';\n\tif($item['item_flags'] & ITEM_CONSENSUS)\n\t\t$ret[] = 'consensus';\n\tif($item['item_private'])\n\t\t$ret[] = 'private';\n\n\treturn $ret;\n}",
"public function sql_AddFilterBy($where) {\n return $this->slplus->database->extend_Where($where, \" {$this->filter_by} \");\n }",
"public function filterGroupflag($groupflag = null)\n {\n $this->_group_filter = $groupflag;\n }",
"function addColumnQtyFilterToCollection($collection, $column) {\n\t\t\t$helper = $this->getWarehouseHelper( );\n\t\t\t$config = $helper->getConfig( );\n\n\t\t\tif (!$config->isCatalogBackendGridQtyVisible( )) {\n\t\t\t\treturn $this;\n\t\t\t}\n\n\t\t\t$adapter = $collection->getConnection( );\n\t\t\t$condition = $column->getFilter( )->getCondition( );\n\t\t\t$select = $collection->getSelect( );\n\t\t\t$qtys = 'SUM(si.qty)';\n\t\t\t$table = $collection->getTable( 'cataloginventory/stock_item' );\n\t\t\t$select->joinInner( array( 'si' => $table ), '(e.entity_id = si.product_id)', array( 'qtys' => $qtys ) );\n\t\t\t$select->group( array( 'e.entity_id' ) );\n\t\t\t$conditionPieces = array( );\n\n\t\t\tif (isset( $condition['from'] )) {\n\t\t\t\tarray_push( $conditionPieces, $qtys . ' >= ' . $adapter->quote( $condition['from'] ) );\n\t\t\t}\n\n\n\t\t\tif (isset( $condition['to'] )) {\n\t\t\t\tarray_push( $conditionPieces, $qtys . ' <= ' . $adapter->quote( $condition['to'] ) );\n\t\t\t}\n\n\n\t\t\tif (count( $conditionPieces )) {\n\t\t\t\t$select->having( implode( ' AND ', $conditionPieces ) );\n\t\t\t}\n\n\t\t\treturn $this;\n\t\t}",
"public function addFlags($flags): string\n {\n return view('utility.partials.flags')\n ->with([\n 'flags' => $flags,\n ])->render();\n }",
"function add_filter( $tag = '', $function_to_add = '', $priority = 10, $accepted_args = 1 ) {\n\n // bail early if no callable\n if( !is_callable($function_to_add) ) return;\n\n $tag = \"sapwood/component/{$tag}/id={$this->uuid}\";\n\n\t\t// add\n\t\tadd_filter( $tag, $function_to_add, $priority, $accepted_args );\n\n\t}",
"public function appendFlag($value) {\n return $this->append(self::FLAG, $value);\n }",
"function getListFilter($col,$key) {\n\t\t\tif($col == 'unit') {\n\t\t\t\tglobal $conn, $conf;\n\t\t\t\trequire_once($conf['gate_dir'].'model/m_unit.php');\n\t\t\t\t\n\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\n\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t}\n\t\t\tif($col == 'tahun')\n\t\t\t\treturn \"substring(cast(cast(r.tglusulan as date) as varchar),1,4) = '$key'\";\n\t\t\tif($col == 'input'){\n\t\t\t\tif(!empty($key)){\n\t\t\t\t\tif($key == 'Y')\n\t\t\t\t\t\treturn \"r.isinput = 'Y'\";\n\t\t\t\t\telse\n\t\t\t\t\t\treturn \"(r.isinput = 'T' or r.isinput is null)\";\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"private function find_flag($flag)\n\t{\n\t\tif (preg_match('/\\s+'.preg_quote($flag).'\\s+/', ' '.$this->request.' '))\n\t\t{\n\t\t\t$this->request = preg_replace('/\\s+'.preg_quote($flag).'\\s+/', ' ', ' '.$this->request.' ', 1);\n\t\t\t$this->request = trim($this->request);\n\n\t\t\treturn TRUE;\n\t\t}\n\n\t\treturn FALSE;\n\t}",
"protected function addWhere($column, $operator, $value, $boolean)\n {\n // We check if a third parameter is passed to the method. If not, we'll set the default operator to '='.\n if (! isset($value)) {\n $value = $operator;\n $operator = '=';\n } else {\n $operator = strtoupper($operator);\n }\n\n // Next we check if the operator is valid.\n if (! in_array($operator, $this->operators)) {\n throw new Exception(\"{$operator} is not a valid Operator.\");\n }\n\n // If this is the first WHERE clause, we don't need to prepend the statement with an 'AND' or 'OR'.\n if (count($this->wheres) === 0) {\n $boolean = 'WHERE';\n }\n\n // Finally we add the full query to the wheres array.\n $placeholder = $this->addToParamCache($column, $value);\n\n // \"WHERE|AND|OR column =|>|<|... some_value\"\n $this->wheres[] = trim(sprintf(\"%s %s %s %s\", $boolean, $column, $operator, $placeholder));\n }",
"public function setFlag($var)\n {\n GPBUtil::checkString($var, True);\n $this->flag = $var;\n\n return $this;\n }",
"public function addFilterQuery($fq) {}"
] | [
"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.43283302",
"0.43188384",
"0.4303091",
"0.42975077",
"0.42824125",
"0.42712805",
"0.4271049",
"0.42467004",
"0.42377502",
"0.42230907"
] | 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\treturn true;\n\n\t}",
"public function columnasFiltro($columnasBD) {\n $filtro=null;\n foreach ($columnasBD as $cBD) {\n\n if($cBD['tipo']=='string')\n $filtro .='LOWER('.substr($cBD['nombre'],0,1).'.'.substr($cBD['nombre'],1).') like :'.substr($cBD['nombre'],1).' or '; \n else\n $filtro .=substr($cBD['nombre'],0,1).'.'.substr($cBD['nombre'],1).' = :'.substr($cBD['nombre'],1).' or '; \n }\n $filtro= substr($filtro,0, -4);\n \n return $filtro;\n }",
"public function scopeFilteredByString($query, $page, $column, $value){\n return self::where($column, \"like\", \"%$value%\")\n ->orderBy(\"created_at\", \"desc\")\n ->offset(self::PER_PAGE * ($page - 1))\n ->limit(self::PER_PAGE);\n }",
"public function filterByTheme($theme = null)\n\t{\n\t\tif(preg_match('/[\\%\\*]/', $theme)) {\n\t\t\treturn $this->addUsingAlias(cre8ContentTypePeer::THEME, str_replace('*', '%', $theme), Criteria::LIKE);\n\t\t} else {\n\t\t\treturn $this->addUsingAlias(cre8ContentTypePeer::THEME, $theme, Criteria::EQUAL);\n\t\t}\n\t}",
"function Query_Filter()\r\n {\r\n $sql = \"select cod_materia , descricao_materia from materia where 1=1 \";\r\n if ( $this->getcod_materia() != \"\" ) \r\n $sql = $sql . \" and cod_materia = \".$this->getcod_materia();\r\n if ( $this->getdescrica_materia() != \"\" ) \r\n $sql = $sql . \" and descrica_materia like '%\".$this->getdescrica_materia().\"%' \";\r\n\r\n $result = mysql_query( $sql );\r\n return $result;\r\n }",
"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($builder),\n ])->execute($column, $value);\n }",
"function sap_filter_where( $where = '' ) {\n $where .= \" OR (mt1.meta_key = 'sap_site_id' AND CAST(mt1.meta_value AS CHAR) = '')\";\n return $where;\n}",
"public static function brokerByColumnSearch($column = '', $value = '')\n {\n return false;\n }",
"function filterStr($field, $value) {\n if (\"$value\" !== '') {\n if ($value[0] === '=') {\n $this->where($field, '=', trim( substr($value, 1) ));\n } else {\n $wrapped = $this->table->grammar->wrap($field);\n\n switch ($value[0]) {\n case '^':\n $cond = '= 1';\n case '?':\n isset($cond) or $cond = '!= 0';\n $this->raw_where(\"LOCATE(?, $wrapped) $cond\", array($value));\n break;\n\n case '%':\n $this->raw_where(\"$wrapped LIKE ?\", array($value));\n break;\n\n default:\n $this->where($field, '=', trim($value));\n break;\n }\n }\n }\n }",
"public function scopeMime($query, $value)\n {\n $query->whereMime($value);\n }",
"public function filterByAttribute($query, Attribute $attribute, $value): void;",
"function addCourseFamilySelectFilter($displayName, $columnName)\n\t{\n\t\t$db = DB::getHandle();\n\t\t$db->RESULT_TYPE = MYSQL_ASSOC;\n\t\t$sql = 'select distinct courseFamily from courses';\n\t\t$db->query($sql);\n\t\twhile ( $db->next_record() ) {\n\t\t\t$this->selectFilters[$columnName][$db->Record['courseFamily']] = $db->Record['courseFamily'];\n\t\t}\n\t\t$this->selectFilters[$columnName]['!displayName'] = $displayName;\n\t}",
"public function filterByModule($module = null)\n\t{\n\t\tif(preg_match('/[\\%\\*]/', $module)) {\n\t\t\treturn $this->addUsingAlias(cre8ContentTypePeer::MODULE, str_replace('*', '%', $module), Criteria::LIKE);\n\t\t} else {\n\t\t\treturn $this->addUsingAlias(cre8ContentTypePeer::MODULE, $module, Criteria::EQUAL);\n\t\t}\n\t}",
"public function removeFilterQuery($fq) {}",
"public function filterByMatricula($matricula = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($matricula)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $matricula)) {\n $matricula = str_replace('*', '%', $matricula);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(AbogadoPeer::MATRICULA, $matricula, $comparison);\n }",
"public function hasFamilyNameRegexFilter(){\n return $this->_has(5);\n }",
"public function filterByBoTheme($boTheme = null, $comparison = null)\n\t{\n\t\tif (null === $comparison) {\n\t\t\tif (is_array($boTheme)) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t} elseif (preg_match('/[\\%\\*]/', $boTheme)) {\n\t\t\t\t$boTheme = str_replace('*', '%', $boTheme);\n\t\t\t\t$comparison = Criteria::LIKE;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(Oops_Db_EmployeePeer::BO_THEME, $boTheme, $comparison);\n\t}",
"public function filter($value)\n {\n \t$value[0] = strtolower($value[0]);\n \t$value = preg_replace(\"/Peer$/\", '', $value);\n \t\n \t$filter = new Zend_Filter_Word_CamelCaseToUnderscore();\n \t$value = $filter->filter($value);\n\n \treturn $value;\n }",
"public function filter($value)\n {\n \t$value = ucfirst($value);\n \t\n \t// To camel case\n \tif (false !== strpos($value, '_')) {\n\t \t$filter = new Zend_Filter_Word_UnderscoreToCamelCase();\n\t \t$value = $filter->filter($value);\n \t}\n \t\n \t$value .= 'Peer';\n \treturn $value;\n }",
"function setFact($value) {\n\t\treturn $this->setColumnValue('fact', $value, BaseModel::COLUMN_TYPE_VARCHAR);\n\t}",
"public function getFilterQuery()\n {\n return $this->fq->getQuery();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): FilterOperatorSchema {\n return new FilterOperatorSchema();\n }",
"public function getFilters($resolvedAmbiguousColumns) {\n if ($this->filters) {\n return $this->filters;\n }\n\n $filters = [];\n\n foreach ($this->ajaxRequestData['columns'] as $column) {\n if ($column['searchable'] && !empty($column['name'])) {\n if (!empty($column['search']['value'])) {\n $columnName = $this->getResolvedAmbiguousFilter($column['name'], $resolvedAmbiguousColumns);\n $filters[$columnName] = $column['search']['value'];\n }\n }\n }\n\n return $this->filters = $filters;\n }",
"public function hasColumnQualifierRegexFilter(){\n return $this->_has(6);\n }",
"public function addExpandFilterQuery($fq) {}",
"public function filter($value) {\r\n \r\n $value = parent::filter($value);\r\n return strtolower((string) $value); // zend library doesn't lowercase so we have to do it \r\n }",
"public function scopeSearch($query, $field, $value)\n {\n\n if (in_array($field, ['name', 'oneline', 'description'])) {\n\n return $query->where($field, 'LIKE', \"%$value%\");\n\n }\n\n return false;\n\n }",
"public function setFacebookAttribute($value)\n {\n $this->attributes['facebook'] = mb_strtolower($value);\n }",
"public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(IntentFormsPeer::ID, $key, Criteria::EQUAL);\n\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.42321563",
"0.4227022",
"0.42248398",
"0.42070875",
"0.41957775",
"0.4174866",
"0.41746536",
"0.41744718",
"0.4172275",
"0.41529834"
] | 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\\Framework\\DataObject $params);",
"protected function rawFilter($filter) {\n //Log::debug('query: ',$filter);\n\t\t// Build a query based on filter $filter\n\t\t$query = Inventory::query()\n ->select('Inventory.objectID', 'Inventory.Item', 'Inventory.Quantity', 'Inventory.Created', 'Inventory.Status', 'Inventory.Order_Line', 'Inventory.UOM')\n ->orderBy('Created', 'desc');\n\t\tif(isset($filter['objectID']) && strlen($filter['objectID']) > 3) {\n\t\t\t$query->where('Inventory.objectID', 'like', $filter['objectID'] . '%');\n\t\t}\n\t\tif(isset($filter['Item']) && strlen($filter['Item']) > 3) {\n\t\t\t$query->where('Inventory.Item', 'like', $filter['Item'] . '%');\n\t\t}\n\t\tif(isset($filter['Created']) && strlen($filter['Created']) > 6) {\n\t\t\t$query->where('Inventory.Created', 'like', $filter['Created'] . '%');\n\t\t}\n if(isset($filter['Status']) && is_array($filter['Status']) > 0) {\n $query->whereRaw(\"Inventory.Status in ('\" . implode(\"','\", $filter['Status']) . \"')\");\n } elseif(isset($filter['Status']) && strlen($filter['Status']) > 1) {\n $query->where('Inventory.Status', 'like', $filter['Status'] . '%');\n }\n if(isset($filter['Order_Line']) && strlen($filter['Order_Line']) > 3) {\n $query->where('Inventory.Order_Line', 'like', $filter['Order_Line'] . '%');\n }\n if(isset($input['UOM']) && strlen($input['UOM']) > 3) {\n $query->where('Inventory.UOM', '=', $input['UOM']);\n }\n /*\n * container.parent should generate this sql request\n * select Inventory.* from Inventory join container inv on inv.objectID = Inventory.objectID where inv.parentID = 6208220881;\n */\n if(isset($filter['container.parent']) && strlen($filter['container.parent']) > 3) {\n $query\n ->join('container as inv', 'inv.objectID', '=', 'Inventory.objectID')\n ->where('inv.parentID',$filter['container.parent']);\n }\n //TODO remove this if statement, check usage first\n if(isset($filter['Location.parent']) && strlen($filter['Location.parent']) > 3) {\n $query->whereRaw('objectID in (select inv.objectID from container plt join container gc on gc.parentID = plt.objectID join container inv on inv.parentID = gc.objectID where plt.parentID = '.$filter['Location.parent'].')');\n }\n if(isset($filter['locationID']) && strlen($filter['locationID']) > 3) {\n $query->join('container as inv', 'inv.objectID', '=', 'Inventory.objectID')\n ->join('container as gc', 'gc.objectID', '=', 'inv.parentID')\n ->join('container as plt', 'plt.objectID', '=', 'gc.parentID')\n ->where('plt.parentID', $filter['locationID']);\n }\n //dd(__METHOD__.'('.__LINE__.')',compact('filter','query'));\n return $query;\n }",
"function filterStr($field, $value) {\n if (\"$value\" !== '') {\n if ($value[0] === '=') {\n $this->where($field, '=', trim( substr($value, 1) ));\n } else {\n $wrapped = $this->table->grammar->wrap($field);\n\n switch ($value[0]) {\n case '^':\n $cond = '= 1';\n case '?':\n isset($cond) or $cond = '!= 0';\n $this->raw_where(\"LOCATE(?, $wrapped) $cond\", array($value));\n break;\n\n case '%':\n $this->raw_where(\"$wrapped LIKE ?\", array($value));\n break;\n\n default:\n $this->where($field, '=', trim($value));\n break;\n }\n }\n }\n }",
"public function filterByOeidorigbin($oeidorigbin = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($oeidorigbin)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(SoAllocatedLotserialTableMap::COL_OEIDORIGBIN, $oeidorigbin, $comparison);\n }",
"public function searchItems($phrase=\"\") {\n $sql = \"SELECT item_id, name, state, owner_id FROM items WHERE item_id IS NOT NULL AND state > '0' AND name LIKE :p \".F::getUserConstraints();\n $query = $this->db->prepare($sql);\n $query->execute(array(':p' => \"%\".$phrase.\"%\"));\n return $query->fetchAll(); \n }",
"function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}",
"function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}",
"function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}",
"function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}",
"function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}",
"function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}",
"function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}",
"function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}",
"function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}",
"function filterField(&$item, $key, $field)\n {\n $item = $item->{$field};\n }",
"function &getFilter()\n {\n // override \n }",
"abstract public function filter(ProxyQueryInterface $query, string $alias, string $field, FilterData $data): void;",
"function getFilterQuery($key, $condition, $value, $originalValue, $type = 'normal')\r\n\t{\r\n\t\t$originalValue = trim($value, \"'\");\r\n\t\t$this->encryptFieldName($key);\r\n\t\t$str = ' ('.$key.' '.$condition.' '.$value.' OR '.$key.' LIKE \\'%\"'.$originalValue.'\"%\\')';\r\n\t\t/*\tswitch ($condition) {\r\n\t\t\tcase '=':\r\n\t\t$str = ' ('.$key.' '.$condition.' '.$value.' OR '.$key.' LIKE \\'%\"'.$originalValue.'\"%\\')';\r\n\t\tbreak;\r\n\t\tdefault:\r\n\t\t$str = \" $key $condition $value \";\r\n\t\tbreak;\r\n\t\t}*/\r\n\t\treturn $str;\r\n\t}",
"function ciniki_artcatalog_sapos_itemSearch($ciniki, $tnid, $args) {\n\n if( $args['start_needle'] == '' ) {\n return array('stat'=>'ok', 'items'=>array());\n }\n\n //\n // Query for the taxes for artcatalog\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbDetailsQueryDash');\n $rc = ciniki_core_dbDetailsQueryDash($ciniki, 'ciniki_artcatalog_settings', 'tnid', $tnid,\n 'ciniki.artcatalog', 'taxes', 'taxes');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n if( isset($rc['taxes']) ) {\n $tax_settings = $rc['taxes'];\n } else {\n $tax_settings = array();\n }\n\n //\n // Set the default taxtype for the item\n //\n $taxtype_id = 0;\n if( isset($tax_settings['taxes-default-taxtype']) ) {\n $taxtype_id = $tax_settings['taxes-default-taxtype'];\n }\n\n //\n // Prepare the query\n //\n $strsql = \"SELECT ciniki_artcatalog.id, \"\n . \"ciniki_artcatalog.name, \"\n . \"ciniki_artcatalog.size, \"\n . \"ciniki_artcatalog.framed_size, \"\n . \"ciniki_artcatalog.price, \"\n . \"ciniki_artcatalog.media \"\n . \"FROM ciniki_artcatalog \"\n . \"WHERE ciniki_artcatalog.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \"AND (ciniki_artcatalog.name LIKE '\" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR ciniki_artcatalog.name LIKE ' %\" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \") \"\n . \"\";\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbHashQuery');\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.artcatalog', 'item');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n\n $items = array();\n foreach($rc['rows'] as $item) {\n $details = array(\n 'status'=>0,\n 'object'=>'ciniki.artcatalog.item',\n 'object_id'=>$item['id'],\n 'description'=>$item['name'],\n 'quantity'=>1,\n 'flags'=>0x40,\n 'unit_amount'=>0,\n 'unit_discount_amount'=>0,\n 'unit_discount_percentage'=>0,\n 'taxtype_id'=>$taxtype_id, \n 'notes'=>'',\n );\n\n if( $item['price'] != '' ) {\n $details['unit_amount'] = $item['price'];\n }\n if( $item['media'] != '' ) {\n $details['description'] .= ', ' . $item['media'];\n }\n if( $item['framed_size'] != '' ) {\n $details['description'] .= ', framed ' . $item['framed_size'];\n } elseif( $item['size'] != '' ) {\n $details['description'] .= ', unframed ' . $item['size'];\n }\n $items[] = array('item'=>$details);\n }\n\n return array('stat'=>'ok', 'items'=>$items); \n}",
"public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(ItemInCartTableMap::COL_ID, $key, Criteria::EQUAL);\n }",
"function getFilterQuery($key, $condition, $value, $originalValue, $type = 'normal')\r\n\t{\r\n\t\t$originalValue = trim($value, \"'\");\r\n\t\t$this->encryptFieldName($key);\r\n\t\tswitch ($condition) {\r\n\t\t\tcase '=':\r\n\t\t\t\t$str = \" ($key $condition $value OR $key LIKE \\\"$originalValue',%\\\"\".\r\n\t\t\t\t\" OR $key LIKE \\\"%:'$originalValue',%\\\"\".\r\n\t\t\t\t\" OR $key LIKE \\\"%:'$originalValue'\\\"\".\r\n\t\t\t\t\" )\";\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\t$str = \" $key $condition $value \";\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\treturn $str;\r\n\t}",
"public function filter($value) {\r\n \r\n $value = parent::filter($value);\r\n return strtolower((string) $value); // zend library doesn't lowercase so we have to do it \r\n }",
"public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(rlsTradeNamePeer::ID, $key, Criteria::EQUAL);\n }",
"protected function GetSQLQueryForQueryRestrictionForActiveFilter()\n {\n $aValues = TTools::MysqlRealEscapeArray($this->aActiveFilterData);\n $sEscapedTargetTable = MySqlLegacySupport::getInstance()->real_escape_string($this->sItemTableName);\n $sEscapedTargetMLTTable = MySqlLegacySupport::getInstance()->real_escape_string('shop_article_'.$this->sItemTableName.'_mlt');\n\n $sItemListQuery = \"SELECT `{$sEscapedTargetMLTTable}`.*\n FROM `{$sEscapedTargetTable}`\n INNER JOIN `{$sEscapedTargetMLTTable}` ON `{$sEscapedTargetTable}`.`id` = `{$sEscapedTargetMLTTable}`.`target_id`\n WHERE \".$this->GetTargetTableNameField().\" IN ('\".implode(\"','\", $aValues).\"')\";\n\n return $sItemListQuery;\n }",
"public function filterByCustidShiptoid($custID, $shiptoID = '') {\n\t\t$this->filterByCustid($custID);\n\t\tif ($shiptoID) {\n\t\t\t$this->filterByShiptoid($shiptoID);\n\t\t}\n\t\treturn $this;\n\t}",
"function sample_items_search_is_item($id) {\n return strpos($id, SAMPLE_ITEMS_SEARCH_PREFIX) === 0;\n}",
"public static function get_course_code_from_original_id($original_course_id_value, $original_course_id_name)\n {\n $t_cfv = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);\n $table_field = Database::get_main_table(TABLE_EXTRA_FIELD);\n $extraFieldType = EntityExtraField::COURSE_FIELD_TYPE;\n\n $original_course_id_value = Database::escape_string($original_course_id_value);\n $original_course_id_name = Database::escape_string($original_course_id_name);\n\n $sql = \"SELECT item_id\n FROM $table_field cf\n INNER JOIN $t_cfv cfv\n ON cfv.field_id=cf.id\n WHERE\n variable = '$original_course_id_name' AND\n value = '$original_course_id_value' AND\n cf.extra_field_type = $extraFieldType\n \";\n $res = Database::query($sql);\n $row = Database::fetch_object($res);\n if ($row) {\n return $row->item_id;\n } else {\n return 0;\n }\n }",
"public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(DonatedItemTableMap::COL_DI_ID, $key, Criteria::EQUAL);\n }"
] | [
"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.43993068",
"0.4393179",
"0.43643674",
"0.4348483",
"0.43375662",
"0.43316925",
"0.43119448",
"0.43063423",
"0.42856988"
] | 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_kode),true);\n\t\t$criteria->compare('LOWER(programkerja_nama)',strtolower($this->programkerja_nama),true);\n\t\t$criteria->compare('LOWER(programkerja_ket)',strtolower($this->programkerja_ket),true);\n\t\tif(!empty($this->programkerja_nourut)){\n\t\t\t$criteria->addCondition('programkerja_nourut = '.$this->programkerja_nourut);\n\t\t}\n\t\tif(!empty($this->subprogramkerja_id)){\n\t\t\t$criteria->addCondition('subprogramkerja_id = '.$this->subprogramkerja_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subprogramkerja_kode)',strtolower($this->subprogramkerja_kode),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_nama)',strtolower($this->subprogramkerja_nama),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_ket)',strtolower($this->subprogramkerja_ket),true);\n\t\tif(!empty($this->subprogramkerja_nourut)){\n\t\t\t$criteria->addCondition('subprogramkerja_nourut = '.$this->subprogramkerja_nourut);\n\t\t}\n\t\tif(!empty($this->kegiatanprogram_id)){\n\t\t\t$criteria->addCondition('kegiatanprogram_id = '.$this->kegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kegiatanprogram_kode)',strtolower($this->kegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_nama)',strtolower($this->kegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_ket)',strtolower($this->kegiatanprogram_ket),true);\n\t\tif(!empty($this->kegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('kegiatanprogram_nourut = '.$this->kegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->subkegiatanprogram_id)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_id = '.$this->subkegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subkegiatanprogram_kode)',strtolower($this->subkegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_nama)',strtolower($this->subkegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_ket)',strtolower($this->subkegiatanprogram_ket),true);\n\t\tif(!empty($this->subkegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_nourut = '.$this->subkegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->rekening1debit_id)){\n\t\t\t$criteria->addCondition('rekening1debit_id = '.$this->rekening1debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1debit_kode)',strtolower($this->rekening1debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1debit_nama)',strtolower($this->rekening1debit_nama),true);\n\t\tif(!empty($this->rekening2debit_id)){\n\t\t\t$criteria->addCondition('rekening2debit_id = '.$this->rekening2debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2debit_kode)',strtolower($this->rekening2debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2debit_nama)',strtolower($this->rekening2debit_nama),true);\n\t\tif(!empty($this->rekening3debit_id)){\n\t\t\t$criteria->addCondition('rekening3debit_id = '.$this->rekening3debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3debit_kode)',strtolower($this->rekening3debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3debit_nama)',strtolower($this->rekening3debit_nama),true);\n\t\tif(!empty($this->rekening4debit_id)){\n\t\t\t$criteria->addCondition('rekening4debit_id = '.$this->rekening4debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4debit_kode)',strtolower($this->rekening4debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4debit_nama)',strtolower($this->rekening4debit_nama),true);\n\t\tif(!empty($this->rekening5debit_id)){\n\t\t\t$criteria->addCondition('rekening5debit_id = '.$this->rekening5debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5debit_kode)',strtolower($this->rekening5debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5debit_nama)',strtolower($this->rekening5debit_nama),true);\n\t\tif(!empty($this->rekening1kredit_id)){\n\t\t\t$criteria->addCondition('rekening1kredit_id = '.$this->rekening1kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1kredit_kode)',strtolower($this->rekening1kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1kredit_nama)',strtolower($this->rekening1kredit_nama),true);\n\t\tif(!empty($this->rekening2kredit_id)){\n\t\t\t$criteria->addCondition('rekening2kredit_id = '.$this->rekening2kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2kredit_kode)',strtolower($this->rekening2kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2kredit_nama)',strtolower($this->rekening2kredit_nama),true);\n\t\tif(!empty($this->rekening3kredit_id)){\n\t\t\t$criteria->addCondition('rekening3kredit_id = '.$this->rekening3kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3kredit_kode)',strtolower($this->rekening3kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3kredit_nama)',strtolower($this->rekening3kredit_nama),true);\n\t\tif(!empty($this->rekening4kredit_id)){\n\t\t\t$criteria->addCondition('rekening4kredit_id = '.$this->rekening4kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4kredit_kode)',strtolower($this->rekening4kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4kredit_nama)',strtolower($this->rekening4kredit_nama),true);\n\t\tif(!empty($this->rekening5kredit_id)){\n\t\t\t$criteria->addCondition('rekening5kredit_id = '.$this->rekening5kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5kredit_kode)',strtolower($this->rekening5kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5kredit_nama)',strtolower($this->rekening5kredit_nama),true);\n\t\t\n $criteria->compare('subkegiatanprogram_aktif', $this->subkegiatanprogram_aktif);\n $criteria->compare('programkerja_aktif', $this->programkerja_aktif);\n $criteria->compare('subprogramkerja_aktif', $this->subprogramkerja_aktif);\n $criteria->compare('kegiatanprogram_aktif', $this->kegiatanprogram_aktif);\n//$criteria->order = 'programkerja_id,subprogramkerja_id,kegiatanprogram_id,subkegiatanprogram_id';\n\t\t\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n\t}",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\t\t\n\t\t$criteria->with = array('partnerSystem', 'deliverySpec');\n\n\t\t$criteria->compare('t.id',$this->id);\n\t\t$criteria->compare('partner_system_id',$this->partner_system_id);\n\t\t$criteria->compare('partner_delivery_spec',$this->partner_delivery_spec,true);\n\t\t$criteria->compare('delivery_spec_id',$this->delivery_spec_id);\n\t\tif ($this->partnerSystemName) {\n\t\t\t$criteria->mergeWith(array(\n\t\t\t\t'condition'=>\"partnerSystem.name like concat('%', :partnerSystemName, '%')\",\n\t\t\t\t'params'=>array(':partnerSystemName'=>$this->partnerSystemName)\n\t\t\t));\n\t\t}\n\t\tif ($this->deliverySpecName) {\n\t\t\tif (strtolower($this->deliverySpecName) === '[not set]') {\n\t\t\t\t$criteria->mergeWith(array(\n\t\t\t\t\t'condition'=>'delivery_spec_id is null'\n\t\t\t\t));\n\t\t\t} else {\n\t\t\t\t$criteria->mergeWith(array(\n\t\t\t\t\t'condition'=>\"deliverySpec.name like concat('%', :deliverySpecName, '%')\",\n\t\t\t\t\t'params'=>array(':deliverySpecName'=>$this->deliverySpecName)\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'pagination' => array(\n\t\t\t\t'pageSize' => Yii::app()->user->getState('pageSize', Yii::app()->params['defaultPageSize']),\n\t\t\t),\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function getFilterClauses($tn)\n {\n $clauses = '';\n switch ($this->filt_fk_category_id)\n {\n case null:\n case 'all':\n // Get all results hence do not set any clause. \n break;\n case 'none':\n // Get transactions with unset categories.\n $clauses .= \"AND ($tn.fk_category_id IS NULL) \";\n break;\n default:\n $clauses .= \"AND ($tn.fk_category_id = {$this->filt_fk_category_id}) \";\n break;\n }\n\n switch ($this->filt_fk_merchant_id)\n {\n case null: // No key set hence find all.\n case 'all':\n break;\n case 'none':\n // Not set\n $clauses .= \"AND ($tn.fk_merchant_id IS NULL) \";\n break;\n default:\n $clauses .= \"AND ($tn.fk_merchant_id = {$this->filt_fk_merchant_id}) \";\n break;\n }\n\n if ($this->filt_credit != null)\n {\n $clauses .= \"AND ($tn.credit = {$this->filt_credit}) \";\n }\n\n if ($this->filt_debit != null)\n {\n $clauses .= \"AND ($tn.debit = {$this->filt_debit}) \";\n }\n\n if ($this->filt_description != null)\n {\n $clauses .= \"AND ($tn.description LIKE '%{$this->filt_description}%') \";\n }\n\n // TODO find out if and how to do LIKE for description and amounts\n\n\n return $clauses;\n }",
"function setSearchFilter($alias=null,$prop_name=null,$prop_value=null,\n $search_type='=') {\n\tif (!($this->_searchEnabled === true)) { return false; }\n\tif (!$this->isProperty($alias,$prop_name)) {\n\t\treturn $this->_searchDisable();\n\t\t}\n\tif (!is_array($this->_searchFilters)) {\n\t\treturn $this->_searchDisable();\n\t\t}\n\t$q = $this->getPropertyQuoted($alias,$prop_name);\n\tif (!is_bool($q)) { return $this->_searchDisable(); }\n\tif ($this->getPropertyIsDate($alias,$prop_name) === true) {\n\t\tif ($prop_value == 'now()') { $q = false; }\n\t\t}\n\t($q) ? $d = '\"' : $d = '';\n\tswitch($search_type) {\n\t\tcase '!=':\n\t\tcase '=':\n\t\tcase '>':\n\t\tcase '<':\n\t\tbreak;\n\t\tcase 'not in':\n\t\tcase 'in':\n\t\t\tif (!is_array($prop_value) or count($prop_value) < 1) {\n\t\t\t\treturn $this->_searchDisable();\n\t\t\t\t}\n\t\tbreak;\n\t\tcase 'not like':\n\t\tcase 'like':\n\t\t\tif (!$q) { return $this->_searchDisable(); }\n\t\tbreak;\n\t\t}\n\tif ($search_type == 'in' or $search_type == 'not in') {\n\t\tfor($j=0; $j < count($prop_value); $j++) {\n\t\t\t$prop_value[$j] = $d . addslashes($prop_value[$j]) . $d;\n\t\t\t}\n\t\t$this->_searchFilters[] = $alias . '.'\n\t\t. $this->getPropertyField($alias,$prop_name)\n\t\t. ' ' . $search_type . '(' . $d . implode(',',$prop_value) . $d . ')';\n\t\t} else {\n\t\t$this->_searchFilters[] = $alias . '.'\n\t\t. $this->getPropertyField($alias,$prop_name)\n\t\t. ' ' . $search_type . ' ' . $d . addslashes($prop_value) . $d;\n\t\t}\n\treturn true;\n\t}",
"public function filterByTblTicket($tblTicket, $comparison = null)\n\t{\n\t\tif ($tblTicket instanceof TblTicket) {\n\t\t\treturn $this\n\t\t\t\t->addUsingAlias(TblFacturePeer::ID_FACTURE, $tblTicket->getIdFacture(), $comparison);\n\t\t} elseif ($tblTicket instanceof PropelCollection) {\n\t\t\treturn $this\n\t\t\t\t->useTblTicketQuery()\n\t\t\t\t->filterByPrimaryKeys($tblTicket->getPrimaryKeys())\n\t\t\t\t->endUse();\n\t\t} else {\n\t\t\tthrow new PropelException('filterByTblTicket() only accepts arguments of type TblTicket or PropelCollection');\n\t\t}\n\t}",
"public function filterBySpecg($specg = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($specg)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECG, $specg, $comparison);\n }",
"public function searchwfarstatus()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n$criteria->condition=\"t.invoicetypeid = 2 and t.recordstatus in (select b.wfbefstat\nfrom workflow a\ninner join wfgroup b on b.workflowid = a.workflowid\ninner join groupaccess c on c.groupaccessid = b.groupaccessid\ninner join usergroup d on d.groupaccessid = c.groupaccessid\ninner join useraccess e on e.useraccessid = d.useraccessid\nwhere upper(a.wfname) = upper('listinvar') and upper(e.username)=upper('\".Yii::app()->user->name.\"'))\";\n\t\t$criteria->compare('invoiceid',$this->invoiceid,true);\n\t\t$criteria->compare('invoiceno',$this->invoiceno,true);\n\t\t$criteria->compare('pono',$this->pono,true);\n\t\t$criteria->compare('sono',$this->sono,true);\n\t\t$criteria->compare('addressbookid',$this->addressbookid);\n\t\t$criteria->compare('amount',$this->amount,true);\n\t\t$criteria->compare('currencyid',$this->currencyid);\n\t\t$criteria->compare('rate',$this->rate,true);\n\t\t$criteria->compare('recordstatus',$this->recordstatus);\n\t\t$criteria->compare('invoicetypeid',$this->invoicetypeid,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'pagination'=>array(\n 'pageSize'=> Yii::app()->user->getState('pageSize',Yii::app()->params['defaultPageSize']),\n ),'criteria'=>$criteria,\n\t\t));\n\t}",
"function getListFilter($col,$key) {\n\t\t\tif($col == 'unit') {\n\t\t\t\tglobal $conn, $conf;\n\t\t\t\trequire_once($conf['gate_dir'].'model/m_unit.php');\n\t\t\t\t\n\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\n\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t}\n\t\t\tif($col == 'tahun')\n\t\t\t\treturn \"substring(cast(cast(r.tglusulan as date) as varchar),1,4) = '$key'\";\n\t\t\tif($col == 'input'){\n\t\t\t\tif(!empty($key)){\n\t\t\t\t\tif($key == 'Y')\n\t\t\t\t\t\treturn \"r.isinput = 'Y'\";\n\t\t\t\t\telse\n\t\t\t\t\t\treturn \"(r.isinput = 'T' or r.isinput is null)\";\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public function get_spec_filters()\r\n\t{\r\n\t\t$filters = $this->db->query(\"\r\n\t\t\tSELECT\r\n\t\t\t\tfeature_id,\r\n\t\t\t\tname,\r\n\t\t\t\tspec_filter_default\r\n\t\t\tFROM\r\n\t\t\t\ttb_spec_feature\r\n\t\t\tWHERE\r\n\t\t\t\tspec_filter=1\r\n\t\t\tORDER BY\r\n\t\t\t\tname ASC\r\n\t\t\");\r\n\t\treturn $filters->result_array();\r\n\t}",
"function filterStr($field, $value) {\n if (\"$value\" !== '') {\n if ($value[0] === '=') {\n $this->where($field, '=', trim( substr($value, 1) ));\n } else {\n $wrapped = $this->table->grammar->wrap($field);\n\n switch ($value[0]) {\n case '^':\n $cond = '= 1';\n case '?':\n isset($cond) or $cond = '!= 0';\n $this->raw_where(\"LOCATE(?, $wrapped) $cond\", array($value));\n break;\n\n case '%':\n $this->raw_where(\"$wrapped LIKE ?\", array($value));\n break;\n\n default:\n $this->where($field, '=', trim($value));\n break;\n }\n }\n }\n }",
"public function addFilterQuery($fq) {}",
"public function filterByTechspecname($techspecname = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($techspecname)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_TECHSPECNAME, $techspecname, $comparison);\n }",
"protected function filters(Builder $builder)\n {\n return $builder->wheres;\n }",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\t\t$criteria=new CDbCriteria;\n\t\t\n\t\t$hotel_branch_id = yii::app()->user->branch_id;\n\t\t$criteria->condition=\"t.branch_id = $hotel_branch_id\";\n\t\t$criteria->compare('t.guest_id',$this->guest_id);\n\t\t//$criteria->compare('guest_salutation_id',$this->guest_salutation_id);\n\t\t$criteria->compare('guest_name',$this->guest_name,true);\n\t\t$criteria->compare('guest_address',$this->guest_address,true);\n\t\t$criteria->compare('guest_phone',$this->guest_phone, true);\n\t\t$criteria->compare('guestCountry.country_name',$this->guest_country_id, true);\n\t\t$criteria->compare('guest_mobile',$this->guest_mobile, true);\n\t\t$criteria->compare('guest_identity_id',$this->guest_identity_id);\n\t\t$criteria->compare('guest_identity_no',$this->guest_identity_no);\n\t\t$criteria->compare('guest_identity_issu',$this->guest_identity_issu);\n\t\t$criteria->compare('guest_identiy_expire',$this->guest_identiy_expire);\n\t\t$criteria->compare('guest_gender',$this->guest_gender,true);\n\t\t$criteria->compare('guest_email',$this->guest_email,true);\n\t\t$criteria->compare('guestCompany.comp_name',$this->guest_company_id, true);\n\t\t$criteria->compare('guest_remarks',$this->guest_remarks);\n\t\t$criteria->compare('guest_dob',$this->guest_dob);\n\t\t$criteria->compare('t.branch_id',$this->branch_id);\n\t\t$criteria->compare('user_id',$this->user_id);\n\t\t\n\t\t$criteria->with=array('guestCountry'=>array('select'=>'guestCountry.country_name'),'guestCompany'=>array('select'=>'guestCompany.comp_name'));\n\t\t//$criteria->with=array('guestCompany'=>array('select'=>'guestCompany.comp_name'));\n\t\t\n\t\t$criteria->order = \"guest_name ASC\";\n\t\treturn new CActiveDataProvider($this, array('criteria'=>$criteria,\n\t\t'pagination'=>array('pageSize'=>50)\n\t\t));\n\t}",
"public function __invoke(Builder $query, $value, string $property): Builder\n {\n return $query->where(function($inner) use($value, $property){\n $isFirstField = true;\n\n if(is_array($value)){\n $value = implode(config('repository.filters.search.separator', ','), $value);\n }\n foreach ($this->searchColumns as $columnName) {\n try {\n $value = \"%{$value}%\";\n $this->addToQuery($inner, ($isFirstField || $this->forceAnd), $columnName, $value);\n $isFirstField = false;\n }catch (\\Exception $e) {\n }\n }\n return $inner;\n });\n }",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('fTaskNo',$this->fTaskNo,true);\n\t\t$criteria->compare('fCatalogueNo',$this->fCatalogueNo,true);\n\t\t$criteria->compare('fAttachNo',$this->fAttachNo,true);\n\t\t$criteria->compare('fAttachName',$this->fAttachName,true);\n\t\t$criteria->compare('fAttachFalseName',$this->fAttachFalseName,true);\n\t\t$criteria->compare('fItemNo',$this->fItemNo,true);\n\t\t$criteria->compare('fOldTaskNo',$this->fOldTaskNo,true);\n\t\t$criteria->compare('fTheme',$this->fTheme,true);\n\t\t$criteria->compare('fContent',$this->fContent,true);\n\t\t$criteria->compare('fRemarks',$this->fRemarks,true);\n\t\t$criteria->compare('fTaskType',$this->fTaskType,true);\n\t\t$criteria->compare('fSubmitUser',$this->fSubmitUser,true);\n\t\t$criteria->compare('fSubmitDate',$this->fSubmitDate);\n\t\t$criteria->compare('fConfirmUser',$this->fConfirmUser,true);\n\t\t$criteria->compare('fConfirmDate',$this->fConfirmDate);\n\t\t$criteria->compare('fCreateUser',$this->fCreateUser,true);\n\t\t$criteria->compare('fCreateDate',$this->fCreateDate);\n\t\t$criteria->compare('fStatus',$this->fStatus,true);\n\t\t$criteria->compare('fUpdateUser',$this->fUpdateUser,true);\n\t\t$criteria->compare('fUpdateDate',$this->fUpdateDate);\n\t\t$criteria->compare('fRemarks1',$this->fRemarks1,true);\n\t\t$criteria->compare('fRemarks2',$this->fRemarks2,true);\n\t\t$criteria->compare('fRemarks3',$this->fRemarks3,true);\n\t\t$criteria->compare('fRemarks4',$this->fRemarks4,true);\n\t\t$criteria->compare('fRemarks5',$this->fRemarks5,true);\n\t\t$criteria->compare('fUserGroup',$this->fUserGroup,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"function SetupAutoSuggestFilters($fld, $pageId = null) {\r\n\t\tglobal $gsLanguage;\r\n\t\t$pageId = $pageId ?: $this->PageID;\r\n\t\tswitch ($fld->FldVar) {\r\n\t\tcase \"x_Serie_Netbook\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `NroSerie`, `NroSerie` AS `DispFld` FROM `equipos`\";\r\n\t\t\t$sWhereWrk = \"`NroSerie` LIKE '{query_value}%'\";\r\n\t\t\t$this->Serie_Netbook->LookupFilters = array(\"dx1\" => \"`NroSerie`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Serie_Netbook, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Id_Hardware\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `NroMac`, `NroMac` AS `DispFld` FROM `equipos`\";\r\n\t\t\t$sWhereWrk = \"`NroMac` LIKE '{query_value}%'\";\r\n\t\t\t$this->Id_Hardware->LookupFilters = array();\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Id_Hardware, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Serie_Server\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Nro_Serie`, `Nro_Serie` AS `DispFld` FROM `servidor_escolar`\";\r\n\t\t\t$sWhereWrk = \"`Nro_Serie` LIKE '{query_value}%'\";\r\n\t\t\t$this->Serie_Server->LookupFilters = array(\"dx1\" => \"`Nro_Serie`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Serie_Server, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\tcase \"x_Apellido_Nombre_Solicitante\":\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Apellido_Nombre`, `Apellido_Nombre` AS `DispFld` FROM `referente_tecnico`\";\r\n\t\t\t$sWhereWrk = \"`Apellido_Nombre` LIKE '{query_value}%'\";\r\n\t\t\t$this->Apellido_Nombre_Solicitante->LookupFilters = array(\"dx1\" => \"`Apellido_Nombre`\");\r\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\r\n\t\t\t$sSqlWrk = \"\";\r\n\t\t\t$this->Lookup_Selecting($this->Apellido_Nombre_Solicitante, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\r\n\t\t\tif ($sSqlWrk <> \"\")\r\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public function getSearchFilter($useRequest = true)\n {\n $filter = parent::getSearchFilter($useRequest);\n\n unset($filter['AUTO_SEARCH_TEXT_BUTTON']);\n\n $where = \\Gems_Snippets_AutosearchFormSnippet::getPeriodFilter($filter, $this->db, null, 'yyyy-MM-dd HH:mm:ss');\n if ($where) {\n $filter[] = $where;\n }\n\n if (! isset($filter['gto_id_organization'])) {\n $filter['gto_id_organization'] = $this->currentUser->getRespondentOrgFilter();\n }\n $filter['gsu_active'] = 1;\n\n // When we dit not select a specific status we skip the deleted status\n if (!isset($filter['token_status'])) {\n $filter['grc_success'] = 1;\n }\n\n if (isset($filter['forgroupid'])) {\n $values = explode('|', $filter['forgroupid']);\n if(count($values) > 1) {\n $groupType = array_shift($values);\n if ('g' == $groupType) {\n $filter['ggp_id_group'] = $values;\n } elseif ('r' == $groupType) {\n $filter['gtf_id_field'] = $values;\n }\n }\n unset($filter['forgroupid']);\n }\n \n if (isset($filter['main_filter'])) {\n switch ($filter['main_filter']) {\n case 'hasnomail':\n $filter[] = sprintf(\n \"((gr2o_email IS NULL OR gr2o_email = '' OR gr2o_email NOT RLIKE '%1\\$s') AND\n ggp_respondent_members = 1 AND (gto_id_relationfield IS NULL OR gto_id_relationfield < 1) AND gr2o_mailable = 1) \n OR\n ((grr_email IS NULL OR grr_email = '' OR grr_email NOT RLIKE '%1\\$s') AND\n ggp_respondent_members = 1 AND gto_id_relationfield > 0 AND grr_mailable = 1)\",\n str_replace('\\'', '\\\\\\'', trim(\\MUtil_Validate_SimpleEmail::EMAIL_REGEX, '/'))\n );\n $filter[] = '(gto_valid_until IS NULL OR gto_valid_until >= CURRENT_TIMESTAMP)';\n $filter['gto_completion_time'] = null;\n // Exclude not mailable, we don't want to ask them for email if we are not allowed to used it anyway\n $filter[] = 'gr2t_mailable > 0';\n break;\n\n case 'notmailable':\n $filter[] = '(((gto_id_relationfield IS NULL OR gto_id_relationfield < 1) AND gr2o_mailable = 0) OR (gto_id_relationfield > 0 AND grr_mailable = 0) OR gr2t_mailable = 0) AND ggp_respondent_members = 1';\n $filter[] = '(gto_valid_until IS NULL OR gto_valid_until >= CURRENT_TIMESTAMP)';\n $filter['gto_completion_time'] = null;\n break;\n\n case 'notmailed':\n $filter['gto_mail_sent_date'] = null;\n $filter[] = '(gto_valid_until IS NULL OR gto_valid_until >= CURRENT_TIMESTAMP)';\n $filter['gto_completion_time'] = null;\n break;\n\n case 'tomail':\n $filter[] = sprintf(\n \"(gr2o_email IS NOT NULL AND gr2o_email != '' AND gr2o_email RLIKE '%1\\$s' AND\n ggp_respondent_members = 1 AND (gto_id_relationfield IS NULL OR gto_id_relationfield < 1) AND gr2o_mailable = 1)\n OR\n (grr_email IS NOT NULL AND grr_email != '' AND grr_email RLIKE '%1\\$s' AND\n ggp_respondent_members = 1 AND gto_id_relationfield > 0 AND grr_mailable = 1)\",\n str_replace('\\'', '\\\\\\'', trim(\\MUtil_Validate_SimpleEmail::EMAIL_REGEX, '/'))\n );\n $filter['gto_mail_sent_date'] = null;\n $filter[] = '(gto_valid_until IS NULL OR gto_valid_until >= CURRENT_TIMESTAMP)';\n $filter['gto_completion_time'] = null;\n // Exclude not mailable\n $filter[] = 'gr2t_mailable > 0';\n break;\n\n case 'toremind':\n // $filter['can_email'] = 1;\n $filter[] = 'gto_mail_sent_date < CURRENT_TIMESTAMP';\n $filter[] = '(gto_valid_until IS NULL OR gto_valid_until >= CURRENT_TIMESTAMP)';\n $filter['gto_completion_time'] = null;\n break;\n\n default:\n break;\n }\n unset($filter['main_filter']);\n }\n\n return $filter;\n }",
"function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_customer_id\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `customer_id`, `customer_name` AS `DispFld` FROM `tbl_customer`\";\n\t\t\t$sWhereWrk = \"`customer_name` LIKE '{query_value}%'\";\n\t\t\t$fld->LookupFilters = array();\n\t\t\t$lookuptblfilter = \"`kode_depo` = '\".@$_SESSION[\"KodeDepo\"].\"'\";\n\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->customer_id, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `customer_name`\";\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\t}\n\t}",
"function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once($conf['gate_dir'].'model/m_unit.php');\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periodebobot' :\n\t\t\t\t\treturn \"f.kodeperiodebobot='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periode' :\n\t\t\t\t\treturn \"n.kodeperiode='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periodetim' :\n\t\t\t\t\treturn \"kodeperiode='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'penilai' :\n\t\t\t\t\treturn \"idpenilai='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"public function actionFilterFirms()\n\t{\n\t\tYiiSession::set('waitinglist_searchoptions','subspecialty-id',$_POST['subspecialty_id']);\n\n\t\techo CHtml::tag('option', array('value'=>''), CHtml::encode('All firms'), true);\n\n\t\tif (!empty($_POST['subspecialty_id'])) {\n\t\t\t$firms = $this->getFilteredFirms($_POST['subspecialty_id']);\n\n\t\t\tforeach ($firms as $id => $name) {\n\t\t\t\techo CHtml::tag('option', array('value'=>$id), CHtml::encode($name), true);\n\t\t\t}\n\t\t}\n\t}",
"public function makeGridFilter($table, $grid_query) {\r\n $table_filter = array();\r\n\tif( isset($grid_query['filter']) ){\r\n\t foreach ($grid_query['filter'] as $key => $val){\r\n\t\tif (preg_match('/[a-z_]+/', $key)){\r\n\t\t $table_filter[] = \"$key LIKE '%$val%'\";\r\n\t\t}\r\n\t }\r\n\t}\r\n return $table_filter;\r\n }",
"function SetupAutoSuggestFilters($fld, $pageId = null) {\n\t\tglobal $gsLanguage;\n\t\t$pageId = $pageId ?: $this->PageID;\n\t\tswitch ($fld->FldVar) {\n\t\tcase \"x_DIAGNOSAAWAL_SEP\":\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `Code`, `Code` AS `DispFld`, `Description` AS `Disp2Fld` FROM `refdiagnosis`\";\n\t\t\t$sWhereWrk = \"`Code` LIKE '%{query_value}%' OR `Description` LIKE '%{query_value}%' OR CONCAT(`Code`,'\" . ew_ValueSeparator(1, $this->DIAGNOSAAWAL_SEP) . \"',`Description`) LIKE '{query_value}%'\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->LookupFilters = array();\n\t\t\t$fld->LookupFilters += array(\"s\" => $sSqlWrk, \"d\" => \"\");\n\t\t\t$sSqlWrk = \"\";\n\t\t\t$this->Lookup_Selecting($this->DIAGNOSAAWAL_SEP, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" LIMIT \" . EW_AUTO_SUGGEST_MAX_ENTRIES;\n\t\t\tif ($sSqlWrk <> \"\")\n\t\t\t\t$fld->LookupFilters[\"s\"] .= $sSqlWrk;\n\t\t\tbreak;\n\t\t}\n\t}",
"public function buildGrideFilters() \r\n {\r\n $request = Request::getRequest();\r\n \r\n $where = array();\r\n if (isset($request['filter']) && count($request['filter']) > 0) {\r\n foreach ($request['filter'] as $key => $value) {\r\n if ($value == '' || $value == 'all') {\r\n continue;\r\n }\r\n\r\n if (is_numeric($value)) {\r\n switch ($key) {\r\n case 'category':\r\n $where[] = 'row.id IN (SELECT product_id FROM modx_mm_p2c_link WHERE modx_id IN ('.intval($value).'))';\r\n break;\r\n default:\r\n $where[] = 'row.'.$key.' = '.$value;\r\n break;\r\n }\r\n } else {\r\n switch ($key) {\r\n case 'category':\r\n $exp = array_filter(explode(',', $value));\r\n $exp = count($exp) > 0 ? implode(',', $exp) : '';\r\n $where[] = 'row.id IN (SELECT product_id FROM modx_mm_p2c_link WHERE modx_id IN ('.$exp.'))';\r\n break;\r\n case 'create_at':\r\n $where[] = 'row.'.$key.' = \"'.$value.'\"';\r\n break;\r\n case 'closed_at':\r\n $where[] = 'row.'.$key.' = \"'.$value.'\"';\r\n break;\r\n case 'payed_at':\r\n $where[] = 'row.'.$key.' = \"'.$value.'\"';\r\n break;\r\n default:\r\n $where[] = 'row.'.$key.' Like \"%'.$value.'%\"';\r\n break;\r\n }\r\n \r\n }\r\n }\r\n }\r\n \r\n return count($where) > 0 ? ' WHERE '.implode(' AND ', $where) : '';\r\n }",
"public function scopeSearch($query, $field, $value)\n {\n\n if (in_array($field, ['name', 'oneline', 'description'])) {\n\n return $query->where($field, 'LIKE', \"%$value%\");\n\n }\n\n return false;\n\n }",
"function functionFilter($value)\n\t{\n\t\treturn 'worked';\n\t}",
"public function filterBySpecf($specf = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($specf)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECF, $specf, $comparison);\n }",
"public function findAllProduitCheckbox(Filtre $filtre): Query\n {\n $query= $this->findAllAvailableCatalogue();\n\n if($filtre->getIsBelleFrance()) {\n $query = $query\n ->andWhere(\"u.produit_belle_france like :filtre\")\n ->setParameter('filtre', $filtre->getIsBelleFrance());\n }\n if($filtre->getIsBio()) {\n $query = $query\n ->andWhere(\"u.produit_bio like :filtre\")\n ->setParameter('filtre',$filtre->getisBio());\n }\n return $query->getQuery();\n }",
"public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n $criteria = new CDbCriteria;\n $criteria->select = 't.*, rs.status_name';\n $criteria->join = 'left join cb_dev_groots.retailer_status as rs on t.status = rs.id';\n $criteria->compare('id', $this->id);\n $criteria->order = \"id DESC\";\n $criteria->compare('name', $this->name, true);\n $criteria->compare('retailer_code', $this->retailer_code, true);\n $criteria->compare('VAT_number', $this->VAT_number, true);\n $criteria->compare('email', $this->email, true);\n $criteria->compare('password', $this->password, true);\n $criteria->compare('mobile', $this->mobile, true);\n $criteria->compare('telephone', $this->telephone, true);\n $criteria->compare('address', $this->address, true);\n $criteria->compare('city', $this->city, true);\n $criteria->compare('state', $this->state, true);\n $criteria->compare('pincode', $this->pincode, true);\n// $criteria->compare('image_url', $this->image_url, true);\n $criteria->compare('website', $this->website, true);\n $criteria->compare('contact_person1', $this->contact_person1, true);\n// $criteria->compare('contact_person2', $this->contact_person2, true);\n //$criteria->compare('key_brand_stocked',$this->key_brand_stocked,true);\n// $criteria->compare('product_categories', $this->product_categories, true);\n// $criteria->compare('categories_of_interest', $this->categories_of_interest, true);\n// $criteria->compare('store_size', $this->store_size);\n //$criteria->compare('status', $this->status);\n $criteria->compare('status', $this->status, true);\n //$criteria->compare('request_status',$this->request_status);\n $criteria->compare('created_date', $this->created_date, true);\n $criteria->compare('modified_date', $this->modified_date, true);\n $criteria->compare('geolocation', $this->geolocation, true);\n $criteria->compare('owner_phone', $this->owner_phone, true);\n $criteria->compare('owner_email', $this->owner_email, true);\n $criteria->compare('billing_email', $this->billing_email, true);\n $criteria->compare('settlement_days', $this->settlement_days, true);\n $criteria->compare('collection_agent_id', $this->collection_agent_id, true);\n $criteria->compare('total_payable_amount', $this->total_payable_amount, true);\n $criteria->compare('allocated_warehouse_id', $this->allocated_warehouse_id, true);\n $criteria->compare('sales_rep_id', $this->sales_rep_id, true);\n $criteria->compare('delivery_time', $this->delivery_time, true);\n $criteria->compare('rs.status_name', $this->status_name, true);\n $criteria->compare('retailer_grade_type', $this->retailer_grade_type, true);\n $criteria->compare('retailer_pricing_type', $this->retailer_pricing_type, true);\n $criteria->compare('alternate_email', $this->alternate_email, true);\n $criteria->compare('discount', $this->discount, true);\n $criteria->compare('discount_type', $this->discount_type, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'pagination' => array('pageSize' => 45,),\n ));\n }",
"function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'periode': return \"periode = '$key'\";\n\t\t\t\tcase 'kodemk': return \"kodemk = '$key'\";\n\t\t\t\tcase 'kelasmk': return \"kelasmk = '$key'\";\n\t\t\t\tcase 'sistemkuliah': return \"sistemkuliah = '$key'\";\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once(Route::getModelPath('unit'));\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t}\n\t\t}"
] | [
"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.42602012",
"0.4256135",
"0.42510295",
"0.42150056",
"0.41925076",
"0.4191867",
"0.41881353",
"0.41874394",
"0.4183229",
"0.41680694"
] | 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 }\n\n return $query;\n }",
"function search($name)\n {\n return mysqli_query($this->conn,\n \"SELECT wine.*,category.* \n FROM `wine` \n INNER JOIN `category` ON category.category_id = wine.categoryid \n WHERE `name` like '%$name%' \n or `category_name` like '%$name%'\");\n }",
"public function filterByName($name = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($name)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $name)) {\n $name = str_replace('*', '%', $name);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(CanonTableMap::COL_NAME, $name, $comparison);\n }",
"public function filterByName($name = null)\n\t{\n\t\tif(preg_match('/[\\%\\*]/', $name)) {\n\t\t\treturn $this->addUsingAlias(cre8ContentTypePeer::NAME, str_replace('*', '%', $name), Criteria::LIKE);\n\t\t} else {\n\t\t\treturn $this->addUsingAlias(cre8ContentTypePeer::NAME, $name, Criteria::EQUAL);\n\t\t}\n\t}",
"abstract public function filter($name, $params = array());",
"public function name($value) {\n return (!$this->requestAllData($value)) ? $this->builder->where('name', 'like', '%'.$value.'%') : null;\n }",
"public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\t\t\n\t\t$criteria->with = array('partnerSystem', 'deliverySpec');\n\n\t\t$criteria->compare('t.id',$this->id);\n\t\t$criteria->compare('partner_system_id',$this->partner_system_id);\n\t\t$criteria->compare('partner_delivery_spec',$this->partner_delivery_spec,true);\n\t\t$criteria->compare('delivery_spec_id',$this->delivery_spec_id);\n\t\tif ($this->partnerSystemName) {\n\t\t\t$criteria->mergeWith(array(\n\t\t\t\t'condition'=>\"partnerSystem.name like concat('%', :partnerSystemName, '%')\",\n\t\t\t\t'params'=>array(':partnerSystemName'=>$this->partnerSystemName)\n\t\t\t));\n\t\t}\n\t\tif ($this->deliverySpecName) {\n\t\t\tif (strtolower($this->deliverySpecName) === '[not set]') {\n\t\t\t\t$criteria->mergeWith(array(\n\t\t\t\t\t'condition'=>'delivery_spec_id is null'\n\t\t\t\t));\n\t\t\t} else {\n\t\t\t\t$criteria->mergeWith(array(\n\t\t\t\t\t'condition'=>\"deliverySpec.name like concat('%', :deliverySpecName, '%')\",\n\t\t\t\t\t'params'=>array(':deliverySpecName'=>$this->deliverySpecName)\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'pagination' => array(\n\t\t\t\t'pageSize' => Yii::app()->user->getState('pageSize', Yii::app()->params['defaultPageSize']),\n\t\t\t),\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function getFilter(string $name): StringFilterInterface;",
"public function scopeName($query,$name){\n $query->where('name','like',\"%$name%\");\n\n }",
"public function nameSearch($name): self\n {\n return $this->andFilterWhere(['like', 'users.name', $name]);\n }",
"public function setInputFilterSpecification($spec)\n {\n $this->inputFilterSpecification = $spec;\n }",
"public function filterByName($name)\n {\n $this->filter[] = $this->field('name').' = '.$this->quote($name);\n return $this;\n }",
"public function search($name)\n {\n return Product::where('name', 'like', '%'.$name.'%')->get();\n }",
"protected function _getFilterKey($name)\n {\n return is_string($name) ? $name : serialize($name);\n }",
"function setFilterName($val){\n $this->file_name_filter = $val;\n }",
"public function filterByProductId($value) {\n $this->_filter->equalTo($this->_nameMapping['product'], $value);\n }",
"public function getProductsByName($name) {\n\t\t$like = \"%\".$name.\"%\";\n\t\n\t\t$query = \"SELECT *\n\t\t\t\t FROM product\n\t\t\t\t WHERE name LIKE ?\";\n\t\n\t\t$result = DatabaseController::executeQuery($query, array($like));\n\t\treturn $result;\n\t}",
"public function getInputFilterSpecification()\n {\n return array(\n 'name' => array(\n 'required' => true,\n 'filters' => array(\n array('name' => 'StripTags'),\n array('name' => 'StringTrim'),\n ),\n ),\n );\n }",
"public function hasFilter(string $name): bool;",
"final public function filter($name)\n {\n if ($this->_input_filter !== null) {\n return $this->_input_filter->filter($name);\n }\n\n App::getInstance()->includeFile('Sonic/InputFilter.php');\n $this->_input_filter = new InputFilter($this->request());\n return $this->_input_filter->filter($name);\n }",
"public function filterByname($name = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($name)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $name)) {\n $name = str_replace('*', '%', $name);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(rlsTradeNamePeer::NAME, $name, $comparison);\n }",
"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_kode),true);\n\t\t$criteria->compare('LOWER(programkerja_nama)',strtolower($this->programkerja_nama),true);\n\t\t$criteria->compare('LOWER(programkerja_ket)',strtolower($this->programkerja_ket),true);\n\t\tif(!empty($this->programkerja_nourut)){\n\t\t\t$criteria->addCondition('programkerja_nourut = '.$this->programkerja_nourut);\n\t\t}\n\t\tif(!empty($this->subprogramkerja_id)){\n\t\t\t$criteria->addCondition('subprogramkerja_id = '.$this->subprogramkerja_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subprogramkerja_kode)',strtolower($this->subprogramkerja_kode),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_nama)',strtolower($this->subprogramkerja_nama),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_ket)',strtolower($this->subprogramkerja_ket),true);\n\t\tif(!empty($this->subprogramkerja_nourut)){\n\t\t\t$criteria->addCondition('subprogramkerja_nourut = '.$this->subprogramkerja_nourut);\n\t\t}\n\t\tif(!empty($this->kegiatanprogram_id)){\n\t\t\t$criteria->addCondition('kegiatanprogram_id = '.$this->kegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kegiatanprogram_kode)',strtolower($this->kegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_nama)',strtolower($this->kegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_ket)',strtolower($this->kegiatanprogram_ket),true);\n\t\tif(!empty($this->kegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('kegiatanprogram_nourut = '.$this->kegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->subkegiatanprogram_id)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_id = '.$this->subkegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subkegiatanprogram_kode)',strtolower($this->subkegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_nama)',strtolower($this->subkegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_ket)',strtolower($this->subkegiatanprogram_ket),true);\n\t\tif(!empty($this->subkegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_nourut = '.$this->subkegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->rekening1debit_id)){\n\t\t\t$criteria->addCondition('rekening1debit_id = '.$this->rekening1debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1debit_kode)',strtolower($this->rekening1debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1debit_nama)',strtolower($this->rekening1debit_nama),true);\n\t\tif(!empty($this->rekening2debit_id)){\n\t\t\t$criteria->addCondition('rekening2debit_id = '.$this->rekening2debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2debit_kode)',strtolower($this->rekening2debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2debit_nama)',strtolower($this->rekening2debit_nama),true);\n\t\tif(!empty($this->rekening3debit_id)){\n\t\t\t$criteria->addCondition('rekening3debit_id = '.$this->rekening3debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3debit_kode)',strtolower($this->rekening3debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3debit_nama)',strtolower($this->rekening3debit_nama),true);\n\t\tif(!empty($this->rekening4debit_id)){\n\t\t\t$criteria->addCondition('rekening4debit_id = '.$this->rekening4debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4debit_kode)',strtolower($this->rekening4debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4debit_nama)',strtolower($this->rekening4debit_nama),true);\n\t\tif(!empty($this->rekening5debit_id)){\n\t\t\t$criteria->addCondition('rekening5debit_id = '.$this->rekening5debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5debit_kode)',strtolower($this->rekening5debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5debit_nama)',strtolower($this->rekening5debit_nama),true);\n\t\tif(!empty($this->rekening1kredit_id)){\n\t\t\t$criteria->addCondition('rekening1kredit_id = '.$this->rekening1kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1kredit_kode)',strtolower($this->rekening1kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1kredit_nama)',strtolower($this->rekening1kredit_nama),true);\n\t\tif(!empty($this->rekening2kredit_id)){\n\t\t\t$criteria->addCondition('rekening2kredit_id = '.$this->rekening2kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2kredit_kode)',strtolower($this->rekening2kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2kredit_nama)',strtolower($this->rekening2kredit_nama),true);\n\t\tif(!empty($this->rekening3kredit_id)){\n\t\t\t$criteria->addCondition('rekening3kredit_id = '.$this->rekening3kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3kredit_kode)',strtolower($this->rekening3kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3kredit_nama)',strtolower($this->rekening3kredit_nama),true);\n\t\tif(!empty($this->rekening4kredit_id)){\n\t\t\t$criteria->addCondition('rekening4kredit_id = '.$this->rekening4kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4kredit_kode)',strtolower($this->rekening4kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4kredit_nama)',strtolower($this->rekening4kredit_nama),true);\n\t\tif(!empty($this->rekening5kredit_id)){\n\t\t\t$criteria->addCondition('rekening5kredit_id = '.$this->rekening5kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5kredit_kode)',strtolower($this->rekening5kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5kredit_nama)',strtolower($this->rekening5kredit_nama),true);\n\t\t\n $criteria->compare('subkegiatanprogram_aktif', $this->subkegiatanprogram_aktif);\n $criteria->compare('programkerja_aktif', $this->programkerja_aktif);\n $criteria->compare('subprogramkerja_aktif', $this->subprogramkerja_aktif);\n $criteria->compare('kegiatanprogram_aktif', $this->kegiatanprogram_aktif);\n//$criteria->order = 'programkerja_id,subprogramkerja_id,kegiatanprogram_id,subkegiatanprogram_id';\n\t\t\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n\t}",
"public function filter_method_name() {\n\t\t// TODO: Define your filter method here\n\t}",
"public function scopeName($query, $name){\n $query->where('name', 'LIKE', \"%$name%\");\n }",
"public function filterOptionRecipientName($collection, $column)\n {\n $filterValue = $column->getFilter()->getValue();\n if (!$filterValue)\n {\n return;\n }\n\n // remove spaces\n $filterValue = $this->removeSpaces($filterValue);\n\n $collection->getSelect()\n ->where('CONCAT(recipient_firstname, recipient_lastname) LIKE ?', \"%{$filterValue}%\");\n }",
"public function filterByName($name = null, $comparison = Criteria::EQUAL)\n\t{\n\t\tif (is_array($name)) {\n\t\t\tif ($comparison == Criteria::EQUAL) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t} elseif (preg_match('/[\\%\\*]/', $name)) {\n\t\t\t$name = str_replace('*', '%', $name);\n\t\t\tif ($comparison == Criteria::EQUAL) {\n\t\t\t\t$comparison = Criteria::LIKE;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(MapPeer::NAME, $name, $comparison);\n\t}",
"public static function getProductsByName($name) {\n\n // echo $course_id;\n $db = Database::getDB();\n $query = 'SELECT * FROM products p \n INNER JOIN categories c ON p.productCategory = c.categoryID \n INNER JOIN brands b ON p.productBrand = b.brandID \n INNER JOIN clothing g ON p.productClothing = g.clothingID \n WHERE p.productName LIKE :name\n ORDER BY productID';\n // WHERE p.productName LIKE :name'; \n try {\n $statement = $db->prepare($query);\n $statement->bindValue(':name', \"%$name%\");\n // $statement->bindValue(1, \"%PHP%\", PDO::PARAM_STR);\n //$statement->execute(array(\"%PHP%\"));\n $statement->execute(); \n $products = $statement->fetchAll();\n $statement->closeCursor(); \n \n return $products;\n } catch (PDOException $e) {\n $error_message = $e->getMessage();\n // display_db_error($error_message);\n }\n\n }",
"public function filterByNameT($nameT = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($nameT)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliStockcardSTableMap::COL_NAME_T, $nameT, $comparison);\n }",
"public static function apply(Builder $builder, $value) {\n \n return $builder->whereRaw('LOWER(`products`.`name`) LIKE ? ',[trim(strtolower($value)).'%']);\n }",
"public function addFilter(string $name, $value): void;"
] | [
"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.4762713",
"0.4760446",
"0.47521222",
"0.47379074",
"0.47314185",
"0.4721401",
"0.4718233",
"0.46896607",
"0.4681741",
"0.46798992"
] | 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 {\n $db = Zend_Registry::get('dbAdapter');\n\n $query = $db->select()\n ->from( array(\"m\" => \"meal_extras\") ) \n ->where( \"m.cost = \" . $cost );\n\n return $db->fetchRow($query); \n }",
"public static function getClickableFilterElements() {\n static::getFilteredItems();\n $filter = Config::get('filter_array');\n $params = [];\n $costs = [];\n $sortable = Config::get('sortable');\n foreach (self::$_data as $item_id => $item) {\n $costs[] = $item['cost'][0];\n foreach ($sortable as $sort) {\n $filtered = 0;\n $f = $filter;\n if( isset($f[$sort]) ) {\n unset($f[$sort]);\n }\n if( $f ) {\n foreach ($f as $key => $value) {\n if( !isset($item[$key]) AND !in_array($key, ['min_cost', 'max_cost']) ) {\n $filtered = 1;\n } else {\n switch ($key) {\n case 'min_cost':\n if( $item['cost'][0] < $value[0] ) {\n $filtered = 1;\n }\n break;\n case 'max_cost':\n if( $item['cost'][0] > $value[0] ) {\n $filtered = 1;\n }\n break;\n default:\n $flag = 0;\n foreach ($item[$key] AS $element) {\n if( in_array($element, $value) ) {\n $flag = 1;\n }\n }\n if( !$flag ) {\n $filtered = 1;\n }\n break;\n }\n }\n }\n }\n if( !$filtered AND isset($item[$sort]) ) {\n foreach ($item[$sort] AS $value) {\n if( !in_array($value, Arr::get($params, $sort, [])) ) {\n $params[$sort][] = $value;\n }\n }\n }\n }\n }\n $min = $costs ? min($costs) : 0;\n $max = $costs ? max($costs) : 0;\n return [\n 'filter' => $params,\n 'min' => $min,\n 'max' => $max,\n ];\n }",
"public function setCost($cost)\n {\n //argument 1 must be a integer or float\n Argument::i()->test(1, 'int', 'float');\n $this->query['cost'] = $cost;\n \n return $this;\n }",
"public function filterByCosto($costo = null, $comparison = null)\n\t{\n\t\tif (null === $comparison) {\n\t\t\tif (is_array($costo)) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t} elseif (preg_match('/[\\%\\*]/', $costo)) {\n\t\t\t\t$costo = str_replace('*', '%', $costo);\n\t\t\t\t$comparison = Criteria::LIKE;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(ImpresionPeer::COSTO, $costo, $comparison);\n\t}",
"public function filterRows()\n {\n if (!empty($this->request->query())) {\n $columns = $this->getGrid()->getColumns();\n $tableColumns = $this->getValidGridColumns();\n\n foreach ($columns as $columnName => $columnData) {\n // skip rows that are not to be filtered\n if (!$this->canFilter($columnName, $columnData)) {\n continue;\n }\n // user input check\n if (!$this->canUseProvidedUserInput($this->getRequest()->get($columnName))) {\n continue;\n }\n // column check. Since the column data is coming from a user query\n if (!$this->canUseProvidedColumn($columnName, $tableColumns)) {\n continue;\n }\n $operator = $this->extractFilterOperator($columnName, $columnData)['operator'];\n\n $this->doFilter($columnName, $columnData, $operator, $this->getRequest()->get($columnName));\n }\n }\n }",
"function filter($st_results, $param, $minVal, $maxVal)\n{\n\tforeach ($st_results as $key=>$row)\n\t{\n\t\t$col = $row[$param];\t\n\t\tif ($col < $minVal || $col > $maxVal)\n\t\t\tunset($st_results[$key]); \t// delete row from array\n\t}\n\n\treturn $st_results;\n}",
"public static function filterQuery(ModelCriteria $query, Parameter $filter) {\n\t \t$column = $filter->get('column','Undefined');\n\n\t \tif (is_callable(array($query, 'filterBy'.ucfirst($column)), false, $filterBy)) {\n\t \t\t// Add OR statement while necessary\n\t \t\tif ($filter->get('chainOrStatement')) $query->_or();\n\t \t\t\n\t \t\t$query = call_user_func_array(array($query, $filterBy), array($filter->get('value','')));\n\t\t}\n\n\t\treturn $query;\n\t }",
"public function setCost($var)\n {\n GPBUtil::checkFloat($var);\n $this->cost = $var;\n\n return $this;\n }",
"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 ->join('categories', 'subcategories.category_id', '=', 'categories.id')\n ->select('products.*', 'categories.categories_name')\n ->where('products.price','>=', $min_price)\n ->where('products.price','<=', $max_price)\n ->Paginate(12);\n return json_encode($products);\n }",
"public function Filter($filter=null){\n $results = $this->where(function($query) use ($filter){\n if($filter){\n $query->where('cliente','LIKE',\"%{$filter}%\" or 'vendedor','LIKE',\"%{$filter}%\" or 'data','LIKE',\"%{$filter}%\")->orderBy(\"%{$filter}%\", 'desc')->get() ;\n }\n });\n return $results;\n }",
"public function setMinCost(string $min_cost)\n {\n $this->min_cost = $min_cost;\n }",
"function filterHouses($start, $end, $guests, $minPrice, $maxPrice) {\r\n\t\tglobal $conn;\r\n\r\n\t\t$stmt = $conn->prepare('SELECT Houses.* , (Houses.SingleBeds + 2*Houses.DoubleBeds) AS Guests, Reservation.StartDate, Reservation.EndDate FROM Houses\r\n\t\t\t\t\t\t\t\tLEFT JOIN Reservation ON Reservation.HouseID = Houses.ID\r\n\t\t\t\t\t\t\t\tWHERE ((Reservation.StartDate > \"11-6-2019\" OR Reservation.EndDate < \"13-7-2019\"))\r\n\t\t\t\t\t\t\t\tAND Guests > ? \r\n\t\t\t\t\t\t\t\tAND DailyCost > \"50\"' );\r\n\t\t\r\n\t\t// $stmt->execute();\r\n\t\t// $guests=2;\r\n\t\t// $stmt->execute(array($guests));\r\n\t\t\r\n\t\t// $stmt->execute([$start, $end, $guests, $minPrice]);\r\n\t\treturn $stmt->fetchAll();\r\n\t}",
"public function scopePrice($query, $min = null, $max = null)\n {\n if($min)\n $query->where('internet_price', '>=', $min);\n if($max)\n $query->where('internet_price', '<=', $max)->where('internet_price', '!=', 0);\n return $query;\n }",
"private function filter()\n {\n $this->builder->where(function ($builder) {\n collect($this->request->get('filter', []))->each(function ($value, $column) use ($builder) {\n $this->guardFilter($column);\n $this->filterColumn($builder, $column, $value);\n });\n });\n }",
"public function filterByCoTributacao($coTributacao = null, $comparison = null)\n {\n if (is_array($coTributacao)) {\n $useMinMax = false;\n if (isset($coTributacao['min'])) {\n $this->addUsingAlias(ClientePeer::CO_TRIBUTACAO, $coTributacao['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($coTributacao['max'])) {\n $this->addUsingAlias(ClientePeer::CO_TRIBUTACAO, $coTributacao['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(ClientePeer::CO_TRIBUTACAO, $coTributacao, $comparison);\n }",
"public function filterOn(Builder $query)\n {\n if (is_array($this->filterRequest)) {\n foreach ($this->filterRequest as $field => $value) {\n $query->where($field, \"=\", $value);\n }\n }\n }",
"public function filterByShopId($shopId = null, $comparison = null)\n\t{\n\t\tif (is_array($shopId)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($shopId['min'])) {\n\t\t\t\t$this->addUsingAlias(CustomerPeer::SHOP_ID, $shopId['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($shopId['max'])) {\n\t\t\t\t$this->addUsingAlias(CustomerPeer::SHOP_ID, $shopId['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(CustomerPeer::SHOP_ID, $shopId, $comparison);\n\t}",
"public static function getClickableFilterElements() {\n $items = Filter::getFilteredItems();\n $result = array();\n foreach( $items AS $item ) {\n if ($item->brand_alias) {\n $result[$item->id]['brand'][] = $item->brand_alias;\n }\n if ($item->model_alias) {\n $result[$item->id]['model'][] = $item->model_alias;\n }\n if ($item->size_alias) {\n $result[$item->id]['size'][] = $item->size_alias;\n }\n if ($item->size_alias) {\n $result[$item->id]['available'][] = $item->available;\n }\n if ($item->cost) {\n $result[$item->id]['cost'][] = $item->cost;\n }\n if($item->specification_value_alias AND $item->specification_alias) {\n $result[$item->id][$item->specification_alias][] = $item->specification_value_alias;\n }\n }\n foreach ($result as $key => $value) {\n foreach ($value as $_key => $val) {\n $result[$key][$_key] = array_unique($result[$key][$_key]);\n }\n }\n $filter = conf::get('filter_array');\n $params = array();\n $costs = array();\n $sortable = conf::get('sortable');\n foreach ($result as $item_id => $item) {\n $costs[] = $item['cost'][0];\n foreach ($sortable as $sort) {\n $filtered = 0;\n $f = $filter;\n if( isset($f[$sort]) ) {\n unset($f[$sort]);\n }\n if( $f ) {\n foreach ($f as $key => $value) {\n if( !isset($item[$key]) AND !in_array($key, array('min_cost', 'max_cost')) ) {\n $filtered = 1;\n } else {\n switch ($key) {\n case 'min_cost':\n if( $item['cost'][0] < $value[0] ) {\n $filtered = 1;\n }\n break;\n case 'max_cost':\n if( $item['cost'][0] > $value[0] ) {\n $filtered = 1;\n }\n break;\n default:\n $flag = 0;\n foreach ($item[$key] AS $element) {\n if( in_array($element, $value) ) {\n $flag = 1;\n }\n }\n if( !$flag ) {\n $filtered = 1;\n }\n break;\n }\n }\n }\n }\n if( !$filtered AND isset($item[$sort]) ) {\n foreach ($item[$sort] AS $value) {\n $params[$sort][] = $value;\n }\n }\n }\n }\n foreach ($params as $key => $value) {\n $params[$key] = array_unique($value);\n }\n //newdie($params);\n $min = 999999;\n $max = 0;\n foreach ($costs as $cost) {\n if ($cost < $min) {\n $min = $cost;\n }\n if ($cost > $max) {\n $max = $cost;\n }\n }\n return array(\n 'filter' => $params,\n 'min' => $min,\n 'max' => $max,\n );\n }",
"public function filter(array $filter)\n { return $this->model->filter($filter);\n }",
"public function filterQuery(callable $callable, $flag = Collection::FILTER_USE_VALUE);",
"public function filterByCoedicion($coedicion = null, $comparison = null)\n\t{\n\t\tif (is_array($coedicion)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($coedicion['min'])) {\n\t\t\t\t$this->addUsingAlias(EdicionPeer::COEDICION, $coedicion['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($coedicion['max'])) {\n\t\t\t\t$this->addUsingAlias(EdicionPeer::COEDICION, $coedicion['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(EdicionPeer::COEDICION, $coedicion, $comparison);\n\t}",
"public function show(Cost $cost)\n {\n //\n }",
"public function addPriceFilter ($index, $range, $rate)\n {\n $from = $range * ($index - 1);\n $to = $range * $index;\n $this->getSelect()->where('price:[' . $from . ' TO ' . $to . ']');\n }",
"public function setWeightFilter($min = 0, $max = 50000) {\n\t\t//$max = $max + 10000;\n\t\t$this->SearchObject->setFilterRange('rank_like', $min, $max);\n\t\treturn TRUE;\n\t}",
"public function filter(Builder $dataSource)\r\n {\r\n $model = $dataSource->getModel();\r\n $filters = [];\r\n\r\n if ($this->_separated) {\r\n foreach ($this->_fields as $field => $criteria) {\r\n if ($field === static::COLUMN_ID) {\r\n $value = (int) $this->_value;\r\n if (!is_numeric($this->_value)) {\r\n continue;\r\n }\r\n $field = $model->getPrimary();\r\n } elseif ($field === static::COLUMN_NAME) {\r\n $field = $model->getNameExpr();\r\n }\r\n if (null === $this->_value) {\r\n $filter = new \\Elastica\\Query\\Filtered();\r\n $filterMissing = new \\Elastica\\Filter\\Missing($field);\r\n //$filterMissing->addParam(\"existence\", true);\r\n //$filterMissing->addParam(\"null_value\", true);\r\n $filter->setFilter($filterMissing);\r\n\r\n $filters[] = $filter;\r\n } else {\r\n if ($criteria === static::CRITERIA_EQ) {\r\n $filter = new \\Elastica\\Query\\Term();\r\n $filter->setTerm($field, $this->_value);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_IN) {\r\n if (is_array($this->_value)) {\r\n $filter = new \\Elastica\\Query\\Terms($field, $this->_value);\r\n } else {\r\n $filter = new \\Elastica\\Query\\Term();\r\n $filter->setTerm($field, $this->_value);\r\n }\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_NOTEQ) {\r\n $filter = new \\Elastica\\Query\\Term();\r\n $filter->setTerm($field, $this->_value);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_LIKE) {\r\n $filter = new \\Elastica\\Query\\Match();\r\n $filter->setField($field, $this->_value);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_BEGINS) {\r\n //$filter = new \\Elastica\\Query\\Prefix();\r\n //$filter->setPrefix($field, $this->_value);\r\n //$filters[] = $filter;\r\n $filter = new \\Elastica\\Query\\QueryString();\r\n $filter->setQuery($this->_value);\r\n $filter->setDefaultField($field);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_MORE) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['gt' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_LESS) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['lt' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_MORER) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['gte' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n } elseif ($criteria === static::CRITERIA_LESSER) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['lte' => $this->_value]);\r\n $boost = $this->getBoostParam($field);\r\n $filter->setParam('boost', $boost);\r\n $filters[] = $filter;\r\n }\r\n }\r\n }\r\n } else {\r\n $filters = new \\Elastica\\Query\\MultiMatch();\r\n $fields = [];\r\n foreach ($this->_fields as $field => $criteria) {\r\n if ($field === static::COLUMN_ID) {\r\n $value = (int) $this->_value;\r\n if (!is_numeric($this->_value)) {\r\n continue;\r\n }\r\n $field = $model->getPrimary();\r\n } elseif ($field === static::COLUMN_NAME) {\r\n $field = $model->getNameExpr();\r\n }\r\n $boost = $this->getBoostParam($field);\r\n $fields[] = $field.'^'.$boost;\r\n }\r\n $slop = $this->getSlopParam();\r\n $filters->setParam('slop', $slop);\r\n $filters->setFields($fields);\r\n $filters->setTieBreaker(0.3);\r\n $filters->setType(\\Elastica\\Query\\MultiMatch::TYPE_BEST_FIELDS);\r\n //$filters->setType(\\Elastica\\Query\\MultiMatch::TYPE_MOST_FIELDS);\r\n $filters->setQuery($this->_value);\r\n }\r\n\r\n\r\n return $filters;\r\n }",
"protected function addFilterOperation(Builder &$query)\n {\n if ( isset($this->value[ 'isNull' ]) && is_bool($this->value[ 'isNull' ]) ) {\n $this->isNullOperation($query);\n } elseif ( $this->operationType == 'operation' && $this->isOperationValueAllowed($this->value) ) {\n $this->filterAllowedOperations($query);\n } elseif ( $this->operationType == 'date_range' ) {\n $this->filterByDateRange($query);\n } elseif ( $this->field_name ) {\n $query->where($this->field_name, $this->value);\n }\n\n return $query;\n }",
"public function filterOptionCod($collection, $column)\n\t{\n\t\t$filterValue = intval($column->getFilter()->getValue());\n\n\t\tif($filterValue === 0)\n\t\t{\n\t\t\t$collection->getSelect()->where(\"cod = '0.00'\");\n\t\t}\n\n\t\tif($filterValue === 1)\n\t\t{\n\t\t\t$collection->getSelect()->where(\"cod > 0\");\n\t\t}\n\t}",
"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 = $collection->getConnection( );\n\t\t\t\t$sql = $adapter->prepareSqlCondition( 'at_' . $field . '.qty', $condition );\n\t\t\t\t$collection->getSelect( )->where( $sql );\n\t\t\t}\n\n\t\t\treturn $this;\n\t\t}"
] | [
"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.4618848",
"0.46019",
"0.4587627",
"0.45868784",
"0.45853838",
"0.45528188",
"0.45497254",
"0.4542464",
"0.45100248",
"0.45098975"
] | 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 = 'filter_' . $filter;\n \t\tif (method_exists('tx_tcaobjects_divForm', $filterFunction)) {\n \t\t\t$value = tx_tcaobjects_divForm::$filterFunction($value, $property, $param1, $param2);\n \t\t}\n \t}\n \treturn $value;\n }",
"public function propertize($property)\n {\n // Sanitize the string from all characters except alpha numeric.\n return preg_replace('/[^A-Za-z0-9_]+/i', '', $property);\n }",
"function setSearchFilter($alias=null,$prop_name=null,$prop_value=null,\n $search_type='=') {\n\tif (!($this->_searchEnabled === true)) { return false; }\n\tif (!$this->isProperty($alias,$prop_name)) {\n\t\treturn $this->_searchDisable();\n\t\t}\n\tif (!is_array($this->_searchFilters)) {\n\t\treturn $this->_searchDisable();\n\t\t}\n\t$q = $this->getPropertyQuoted($alias,$prop_name);\n\tif (!is_bool($q)) { return $this->_searchDisable(); }\n\tif ($this->getPropertyIsDate($alias,$prop_name) === true) {\n\t\tif ($prop_value == 'now()') { $q = false; }\n\t\t}\n\t($q) ? $d = '\"' : $d = '';\n\tswitch($search_type) {\n\t\tcase '!=':\n\t\tcase '=':\n\t\tcase '>':\n\t\tcase '<':\n\t\tbreak;\n\t\tcase 'not in':\n\t\tcase 'in':\n\t\t\tif (!is_array($prop_value) or count($prop_value) < 1) {\n\t\t\t\treturn $this->_searchDisable();\n\t\t\t\t}\n\t\tbreak;\n\t\tcase 'not like':\n\t\tcase 'like':\n\t\t\tif (!$q) { return $this->_searchDisable(); }\n\t\tbreak;\n\t\t}\n\tif ($search_type == 'in' or $search_type == 'not in') {\n\t\tfor($j=0; $j < count($prop_value); $j++) {\n\t\t\t$prop_value[$j] = $d . addslashes($prop_value[$j]) . $d;\n\t\t\t}\n\t\t$this->_searchFilters[] = $alias . '.'\n\t\t. $this->getPropertyField($alias,$prop_name)\n\t\t. ' ' . $search_type . '(' . $d . implode(',',$prop_value) . $d . ')';\n\t\t} else {\n\t\t$this->_searchFilters[] = $alias . '.'\n\t\t. $this->getPropertyField($alias,$prop_name)\n\t\t. ' ' . $search_type . ' ' . $d . addslashes($prop_value) . $d;\n\t\t}\n\treturn true;\n\t}",
"protected function filter_columns( $properties = [], $field = null ) {\n\t\t$columns = $this->columns;\n\n\t\tif( count( $properties ) ) {\n\t\t\t$columns = array_filter(\n\t\t\t\t$columns,\n\t\t\t\tfunction( $column ) use( $properties ) {\n\t\t\t\t\tforeach( $properties as $key => $value ) {\n\t\t\t\t\t\tif( ! isset( $column[ $key ] ) || $column[ $key ] !== $value )\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\n\t\tif( $field ) {\n\t\t\t$columns = array_reduce(\n\t\t\t\t$columns,\n\t\t\t\tfunction( $fields, $column ) use( $field ) {\n\t\t\t\t\t$fields[] = $column[ $field ];\n\t\t\t\t\treturn $fields;\n\t\t\t\t},\n\t\t\t\t[]\n\t\t\t);\n\t\t}\n\n\t\treturn $columns;\n\t}",
"public function __invoke(Builder $query, $value, string $property): Builder\n {\n return $query->where(function($inner) use($value, $property){\n $isFirstField = true;\n\n if(is_array($value)){\n $value = implode(config('repository.filters.search.separator', ','), $value);\n }\n foreach ($this->searchColumns as $columnName) {\n try {\n $value = \"%{$value}%\";\n $this->addToQuery($inner, ($isFirstField || $this->forceAnd), $columnName, $value);\n $isFirstField = false;\n }catch (\\Exception $e) {\n }\n }\n return $inner;\n });\n }",
"function get_filter_property($where = NULL)\r\n {\r\n // Load model\r\n $this->load->module_model('property_info', 'property_info_model');\r\n \r\n // Information extract\r\n if($where !== NULL)\r\n {\r\n $limt = array_key_exists('limit',$where) ? $where['limit'] : NULL; \r\n $offset = array_key_exists('offset',$where) ? $where['offset'] : NULL;\r\n $filter_where_data = array_key_exists('where',$where) ? $where['where'] : NULL;\r\n }\r\n \r\n // Add filter\r\n $this->property_info_model->add_filters($filter_where_data);\r\n \r\n // Add filter join type\r\n $this->property_info_model->add_filter_join('Name','and');\r\n \r\n // Query information\r\n $query_return['list_of_properties'] = $this->property_info_model->list_items($limt,$offset,'id','asc',FALSE);\r\n $query_return['search_count'] = $this->property_info_model->list_items_total();\r\n\r\n return $query_return;\r\n }",
"protected function filterProperty(\\ReflectionProperty $property)\n {\n $name = $property->getName();\n\n // TODO: Allow configuration of the properties to filter.\n // For now hard code none-underscore-prefixed properties.\n if ('_' === substr($name, 0, 1)) {\n return false;\n }\n\n if (null !== $this->onlyInclude && (! in_array($name, $this->onlyInclude, true))) {\n return false;\n }\n\n if (in_array($name, $this->ignore, true) ) {\n return false;\n }\n\n return true;\n }",
"public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(ItemPropertyPeer::ID, $key, Criteria::EQUAL);\n\t}",
"function filterStr($field, $value) {\n if (\"$value\" !== '') {\n if ($value[0] === '=') {\n $this->where($field, '=', trim( substr($value, 1) ));\n } else {\n $wrapped = $this->table->grammar->wrap($field);\n\n switch ($value[0]) {\n case '^':\n $cond = '= 1';\n case '?':\n isset($cond) or $cond = '!= 0';\n $this->raw_where(\"LOCATE(?, $wrapped) $cond\", array($value));\n break;\n\n case '%':\n $this->raw_where(\"$wrapped LIKE ?\", array($value));\n break;\n\n default:\n $this->where($field, '=', trim($value));\n break;\n }\n }\n }\n }",
"public function getCriteriaWhere($criteria) {\n return '';\n }",
"public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n//\t\t$criteria->with = 'componentproperty';\n//\t\tfor($i=1;$i<=20;$i++){\n//\t\t $criteria->compare('p_'.$i,$this->componentproperty->{'p_'.$i});\n// }\n// $criteria->compare('availabilid',$this->componentproperty->availabilid);\n\n $criteria->compare('partnumberid',$this->partnumberid);\n\t\t$criteria->compare('partnumber',$this->partnumber,true);\n\t\t$criteria->compare('type',$this->type);\n\t\t$criteria->compare('pathid',$this->pathid);\n\t\t$criteria->compare('updated',$this->updated,true);\n\t\t$criteria->compare('is_assembly',$this->is_assembly);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('date_acquired',$this->date_acquired,true);\n\t\t$criteria->compare('property_type',$this->property_type,true);\n\t\t$criteria->compare('sub_type',$this->sub_type,true);\n\t\t$criteria->compare('property_status',$this->property_status,true);\n\t\t$criteria->compare('mls_id',$this->mls_id,true);\n\t\t$criteria->compare('getlongitude',$this->getlongitude,true);\n\t\t$criteria->compare('getlatitude',$this->getlatitude,true);\n\t\t$criteria->compare('property_street',$this->property_street,true);\n\t\t$criteria->compare('property_city',$this->property_city,true);\n\t\t$criteria->compare('property_state',$this->property_state,true);\n\t\t$criteria->compare('property_zipcode',$this->property_zipcode,true);\n\t\t$criteria->compare('property_price',$this->property_price,true);\n\t\t$criteria->compare('bedrooms',$this->bedrooms,true);\n\t\t$criteria->compare('bathrooms',$this->bathrooms,true);\n\t\t$criteria->compare('house_square_footage',$this->house_square_footage,true);\n\t\t$criteria->compare('stories',$this->stories,true);\n\t\t$criteria->compare('garages',$this->garages,true);\n\t\t$criteria->compare('pool',$this->pool,true);\n\t\t$criteria->compare('spa',$this->spa,true);\n\t\t$criteria->compare('year_biult_id',$this->year_biult_id,true);\n\t\t$criteria->compare('lot_acreage',$this->lot_acreage,true);\n\t\t$criteria->compare('amenities_fireplace_id',$this->amenities_fireplace_id,true);\n\t\t$criteria->compare('amenities_stove',$this->amenities_stove,true);\n\t\t$criteria->compare('amenities_refrigerator',$this->amenities_refrigerator,true);\n\t\t$criteria->compare('amenities_dishwasher',$this->amenities_dishwasher,true);\n\t\t$criteria->compare('agent_name',$this->agent_name,true);\n\t\t$criteria->compare('agent_phone_office',$this->agent_phone_office,true);\n\t\t$criteria->compare('agent_phone_fax',$this->agent_phone_fax,true);\n\t\t$criteria->compare('agent_phone_home',$this->agent_phone_home,true);\n\t\t$criteria->compare('agent_phone_mobile',$this->agent_phone_mobile,true);\n\t\t$criteria->compare('agent_email',$this->agent_email,true);\n\t\t$criteria->compare('agent_address',$this->agent_address,true);\n\t\t$criteria->compare('agent_city',$this->agent_city,true);\n\t\t$criteria->compare('agent_state',$this->agent_state,true);\n\t\t$criteria->compare('agent_zipcode',$this->agent_zipcode,true);\n\t\t$criteria->compare('agent_website_address',$this->agent_website_address,true);\n\t\t$criteria->compare('brokerage_name',$this->brokerage_name,true);\n\t\t$criteria->compare('brokerage_phone_office',$this->brokerage_phone_office,true);\n\t\t$criteria->compare('brokerage_phone_fax',$this->brokerage_phone_fax,true);\n\t\t$criteria->compare('brokerage_phone_home',$this->brokerage_phone_home,true);\n\t\t$criteria->compare('brokerage_phone_mobile',$this->brokerage_phone_mobile,true);\n\t\t$criteria->compare('brokerage_email',$this->brokerage_email,true);\n\t\t$criteria->compare('brokerage_address',$this->brokerage_address,true);\n\t\t$criteria->compare('brokerage_city',$this->brokerage_city,true);\n\t\t$criteria->compare('brokerage_state',$this->brokerage_state,true);\n\t\t$criteria->compare('brokerage_zipcode',$this->brokerage_zipcode,true);\n\t\t$criteria->compare('brokerage_logo_image_link',$this->brokerage_logo_image_link,true);\n\t\t$criteria->compare('brokerage_website_address',$this->brokerage_website_address,true);\n\t\t$criteria->compare('area',$this->area,true);\n\t\t$criteria->compare('subdivision',$this->subdivision,true);\n\t\t$criteria->compare('schools',$this->schools,true);\n\t\t$criteria->compare('community_name',$this->community_name,true);\n\t\t$criteria->compare('community_features',$this->community_features,true);\n\t\t$criteria->compare('property_description',$this->property_description,true);\n\t\t$criteria->compare('property_fetatures',$this->property_fetatures,true);\n\t\t$criteria->compare('fireplace_features',$this->fireplace_features,true);\n\t\t$criteria->compare('heating_features',$this->heating_features,true);\n\t\t$criteria->compare('exterior_construction_features',$this->exterior_construction_features,true);\n\t\t$criteria->compare('roofing_features',$this->roofing_features,true);\n\t\t$criteria->compare('interior_features',$this->interior_features,true);\n\t\t$criteria->compare('exterior_features',$this->exterior_features,true);\n\t\t$criteria->compare('sales_history',$this->sales_history,true);\n\t\t$criteria->compare('tax_history',$this->tax_history,true);\n\t\t$criteria->compare('foreclosure',$this->foreclosure,true);\n\t\t$criteria->compare('short_sale',$this->short_sale,true);\n\t\t$criteria->compare('title',$this->title,true);\n\t\t$criteria->compare('page_link',$this->page_link,true);\n\t\t$criteria->compare('photo1',$this->photo1,true);\n\t\t$criteria->compare('photo2',$this->photo2,true);\n\t\t$criteria->compare('photo3',$this->photo3,true);\n\t\t$criteria->compare('photo4',$this->photo4,true);\n\t\t$criteria->compare('photo5',$this->photo5,true);\n\t\t$criteria->compare('photo6',$this->photo6,true);\n\t\t$criteria->compare('photo7',$this->photo7,true);\n\t\t$criteria->compare('photo8',$this->photo8,true);\n\t\t$criteria->compare('photo9',$this->photo9,true);\n\t\t$criteria->compare('photo10',$this->photo10,true);\n\t\t$criteria->compare('photo11',$this->photo11,true);\n\t\t$criteria->compare('photo12',$this->photo12,true);\n\t\t$criteria->compare('photo13',$this->photo13,true);\n\t\t$criteria->compare('photo14',$this->photo14,true);\n\t\t$criteria->compare('photo15',$this->photo15,true);\n\t\t$criteria->compare('photo16',$this->photo16,true);\n\t\t$criteria->compare('photo17',$this->photo17,true);\n\t\t$criteria->compare('photo18',$this->photo18,true);\n\t\t$criteria->compare('photo19',$this->photo19,true);\n\t\t$criteria->compare('photo20',$this->photo20,true);\n\t\t$criteria->compare('photo21',$this->photo21,true);\n\t\t$criteria->compare('photo22',$this->photo22,true);\n\t\t$criteria->compare('photo23',$this->photo23,true);\n\t\t$criteria->compare('photo24',$this->photo24,true);\n\t\t$criteria->compare('photo25',$this->photo25,true);\n\t\t$criteria->compare('uploaded_time',$this->uploaded_time,true);\n\t\t$criteria->compare('expire_date',$this->expire_date,true);\n\t\t$criteria->compare('timestamp',$this->timestamp);\n\t\t$criteria->compare('property_county',$this->property_county,true);\n\t\t$criteria->compare('csv_uploaded_id',$this->csv_uploaded_id);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('property_id',$this->property_id);\n\t\t$criteria->compare('property_owner_id',$this->property_owner_id);\n\t\t$criteria->compare('property_room_type',$this->property_room_type);\n\t\t$criteria->compare('property_max_persons',$this->property_max_persons);\n\t\t$criteria->compare('property_bed_rooms',$this->property_bed_rooms);\n\t\t$criteria->compare('property_desc',$this->property_desc,true);\n\t\t$criteria->compare('property_available_date',$this->property_available_date,true);\n\t\t$criteria->compare('property_cost',$this->property_cost);\n\t\t$criteria->compare('property_create_time',$this->property_create_time);\n\t\t$criteria->compare('property_update_time',$this->property_update_time);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function testSearchOnProperty()\r\n {\r\n // create a new Repository to be used later\r\n $repo = $this->em->getRepository(Communication::class);\r\n\r\n // create an array with values to search with\r\n $cleanQuery = array();\r\n $cleanQuery[] = 'Cosmo';\r\n\r\n // query the database\r\n $results = $repo->CommunicationSearch($cleanQuery);\r\n\r\n // Assert that size of the query returns the expected number of results\r\n $this->assertEquals(3, sizeof($results));\r\n }",
"public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(ActionPropertyPeer::ID, $key, Criteria::EQUAL);\n }",
"function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'periode': return \"periode = '$key'\";\n\t\t\t\tcase 'kodemk': return \"kodemk = '$key'\";\n\t\t\t\tcase 'kelasmk': return \"kelasmk = '$key'\";\n\t\t\t\tcase 'sistemkuliah': return \"sistemkuliah = '$key'\";\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once(Route::getModelPath('unit'));\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t}\n\t\t}",
"public function matchThisPropertyAndCustomersSearch($real_property_id)\n {\n \t$a = array();\n \t$o = Doctrine_Query::create()->from('OperationRealProperty')->where(\"real_property_id = $real_property_id\")->execute();\n\n \t$ope_filter = 'sp.operation_id IS NULL';\n \t$cur_filter = 'sp.currency_id IS NULL';\n \t$min_filter = 'sp.min_price = 0';\n \t$max_filter = 'sp.max_price = 0';\n\n \tforeach ($o as $value) {\n \t\t$ope_filter .= ' OR sp.operation_id = '.$value->getOperationId();\n \t\t$cur_filter .= ' OR sp.currency_id = '.$value->getCurrencyId();\n \t\t$min_filter .= ' OR sp.min_price <= '.$value->getPrice();\n \t\t$max_filter .= ' OR sp.max_price >= '.$value->getPrice();\n \t}\n \t$rProperty = RealPropertyTable::getInstance()->find($real_property_id);\n \t\n \tif ($rProperty) {\n \t\t$vendor_id = $rProperty->getAppUserId();\n \t\t$bedroom_id = $rProperty->getBedroomId();\n \t\t$pro_type_id = $rProperty->getPropertyTypeId();\n \t\t$geo_zone_id = $rProperty->getGeoZoneId();\n \t\t$city_id = $rProperty->getCityId();\n \t\t$neighbor_id = $rProperty->getNeighborhoodId();\n \t\t\n \t\t$f = \"(sp.bedroom_id IS NULL OR sp.bedroom_id = $bedroom_id) AND \".\n \t\t\t\t \"(sp.property_type_id IS NULL OR sp.property_type_id = $pro_type_id) AND \".\n \t\t\t\t \"(sp.geo_zone_id IS NULL OR sp.geo_zone_id = $geo_zone_id) AND \".\n \t\t\t\t \"(sp.city_id IS NULL OR sp.city_id = $city_id) AND \".\n \t\t\t\t \"(sp.neighborhood_id IS NULL OR sp.neighborhood_id = $neighbor_id) AND \".\n \t\t\t\t \"($ope_filter) AND \".\n \t\t\t\t \"($cur_filter) AND \".\n \t\t\t\t \"($min_filter) AND \".\n \t\t\t\t \"($max_filter)\";\n\n \t\t$q = Doctrine_Query::create()->from('SearchProfile sp')->leftJoin('sp.AppUser u')->where($f);\n \t\t\n \t\tif ($q->count() > 0) {\n \t\t\t$d = $q->execute();\n \t\t\t\n \t\t\tforeach ($d as $res) {\n \t\t\t\t// upd search_match\n \t\t\t\tself::updSearchMatchOnRealPropertyReg($res->getId(), $vendor_id, $neighbor_id);\n\n \t\t\t\t// customer emails\n \t\t\t\t$a[$res->AppUser->getEmail()] = $res->AppUser->getName().' '.$res->AppUser->getLastName();\n \t\t\t}\n \t\t}\n \t}\n \treturn $a;\n }",
"protected static function make_where($criteria)\r\n\t{\r\n\t\tif (empty($criteria)) {\r\n\t\t\treturn '';\r\n\t\t}\r\n\r\n\t\t$where = array();\r\n\t\tforeach ($criteria as $key => $value) {\r\n\r\n\t\t\tif ($key == 'having') { //non-where argument passed with criteria\r\n\t\t\t\tcontinue;\r\n\t\t\t} else {\r\n\t\t\t\t$where[] = self::db()->make_parameter($key, $value, static::$_find_prefix);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!empty($where)) {\r\n\t\t\treturn 'WHERE '.implode(' AND ', $where);\r\n\t\t}\r\n\t}",
"public function criteriaSearch()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n $criteria->compare('id',$this->id);\n\t\t$criteria->compare('LOWER(kode)',strtolower($this->kode),true);\n\t\t$criteria->compare('LOWER(nama)',strtolower($this->nama),true);\n\t\t$criteria->compare('LOWER(alamat)',strtolower($this->alamat),true);\n\t\t$criteria->compare('LOWER(email)',strtolower($this->email),true);\n\t\t$criteria->compare('LOWER(keterangan)',strtolower($this->keterangan),true);\n\t\t$criteria->compare('LOWER(create_time)',strtolower($this->create_time),true);\n\t\t$criteria->compare('LOWER(update_time)',strtolower($this->update_time),true);\n\t\t$criteria->compare('create_login',$this->create_login);\n\t\t$criteria->compare('update_login',$this->update_login);\n\t\t$criteria->compare('LOWER(telepon)',strtolower($this->telepon),true);\n\t\t$criteria->compare('LOWER(rekening)',strtolower($this->rekening),true);\n\t\t$criteria->compare('LOWER(kontak)',strtolower($this->kontak),true);\n\n\t\treturn $criteria;\n\t}",
"function property_search () \n\t{ \n\t\t$location = preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['location']); \n\t\t$type = preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['type']); \n\t\t$buyrent = preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['buyrent']); \n\n\t\t$room_no_min = preg_replace('/[^0-9]/', '', $_GET['room_no_min']);\n\t\t$room_no_max = preg_replace('/[^0-9]/', '', $_GET['room_no_max']);\n\n\t\t// This replaces characters in the input string if need be for security reasons \n\t\t$min_val_buy = ( isset( $_GET['min_val_buy'] ) ) ? $_GET['min_val_buy'] : $_GET['min_val_rent'];\n\t\t$max_val_buy = ( isset( $_GET['max_val_buy'] ) ) ? $_GET['max_val_buy'] : $_GET['max_val_rent'];\n\n\t\t$min_val_rent = $_GET['min_val_rent'];\n\t\t$max_val_rent = $_GET['max_val_buy'];\n\n\n\t\t$meta_query = array( 'relation' => 'AND' );\n\t\tif($location) {\n\t\t\t$meta_query[] = array(\n\t\t\t\t'relation' => 'OR',\n\t\t\t\tarray(\n\t\t\t\t\t'key' => 'property_country',\n\t\t\t\t\t'value' => $location,\n\t\t\t\t\t'compare' => 'LIKE'\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'key' => 'property_city',\n\t\t\t\t\t'value' => $location,\n\t\t\t\t\t'compare' => 'LIKE'\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'key' => 'property_location',\n\t\t\t\t\t'value' => $location,\n\t\t\t\t\t'compare' => 'LIKE'\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t\tif($type != 'select') {\n\t\t\t$meta_query[] = array(\n\t\t\t\t'key' => 'property_type',\n\t\t\t\t'value' => $type,\n\t\t\t\t'compare' => '='\n\t\t\t);\n\t\t}\n\n\t\tif($buyrent != 'select') {\n\t\t\tif($buyrent == 'buy') $buyrent = 'sale'; // select value \"buy\" differs in context from met_value \"sale\"\n\t\t\t$meta_query[] = array(\n\t\t\t\t'key' => 'sale_or_rent',\n\t\t\t\t'value' => $buyrent,\n\t\t\t\t'compare' => '='\n\t\t\t);\n\t\t}\n\n\t\t$meta_query[] = array(\n\t\t\t'key' => 'number_of_bedrooms',\n\t\t\t'value' => intval($room_no_min),\n\t\t\t'type' => 'numeric',\n\t\t\t'compare' => '>='\n\t\t);\n\n\t\t$meta_query[] = array(\n\t\t\t'key' => 'number_of_bedrooms',\n\t\t\t'value' => intval($room_no_max),\n\t\t\t'type' => 'numeric',\n\t\t\t'compare' => '<='\n\t\t);\n\n\t\t$meta_query[] = array(\n\t\t\t'key' => 'property_price',\n\t\t\t'value' => intval($min_val_buy),\n\t\t\t'type' => 'numeric',\n\t\t\t'compare' => '>='\n\t\t);\n\n\t\t$meta_query[] = array(\n\t\t\t'key' => 'property_price',\n\t\t\t'value' => intval($max_val_buy),\n\t\t\t'type' => 'numeric',\n\t\t\t'compare' => '<='\n\t\t);\n\n\t\t// Property search query goes here\n\n\t\t$args = array(\n\t\t\t'post_type' => 'properties',\n\t\t\t'meta_query' => $meta_query\n\t\t);\n\n\t\tif( isset( $_GET['sort'] ) ) {\n\t\t\tif($_GET['sort'] == 'newest') {\n\t\t\t\t$args['orderby'] = 'date';\n\t\t\t\t$args['order'] = 'DESC';\n\t\t\t}\n\t\t\tif($_GET['sort'] == 'oldest') {\n\t\t\t\t$args['orderby'] = 'date';\n\t\t\t\t$args['order'] = 'ASC';\n\t\t\t}\n\t\t\tif($_GET['sort'] == 'price highest') {\n\t\t\t\t$args['meta_key'] = 'property_price';\n\t\t\t\t$args['orderby'] = 'meta_value_num';\n\t\t\t\t$args['order'] = 'DESC';\n\t\t\t}\n\t\t\tif($_GET['sort'] == 'price lowest') {\n\t\t\t\t$args['meta_key'] = 'property_price';\n\t\t\t\t$args['orderby'] = 'meta_value_num';\n\t\t\t\t$args['order'] = 'ASC';\n\t\t\t}\n\t\t}\n\n\t\t$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;\n\t\t$args['paged'] = $paged;\n\n\t\t$results = new WP_Query( $args );\n\n\t\tif(($results == 0) || ($results == false) || ($results == NULL) || !is_object($results) || !($results->have_posts())) {\n\t\t\treturn $results;\n }\n\t\telse {\n\t\t\treturn $results;\n }\n\t\n}",
"function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once($conf['gate_dir'].'model/m_unit.php');\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periodebobot' :\n\t\t\t\t\treturn \"f.kodeperiodebobot='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periode' :\n\t\t\t\t\treturn \"n.kodeperiode='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periodetim' :\n\t\t\t\t\treturn \"kodeperiode='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'penilai' :\n\t\t\t\t\treturn \"idpenilai='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"public static function doCountJoinAllExceptActionPropertyString(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(ActionPropertyPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n ActionPropertyPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY should not affect count\n\n // Set the correct dbName\n $criteria->setDbName(ActionPropertyPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(ActionPropertyPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(ActionPropertyPeer::ACTION_ID, ActionPeer::ID, $join_behavior);\n\n $criteria->addJoin(ActionPropertyPeer::TYPE_ID, ActionPropertyTypePeer::ID, $join_behavior);\n\n $criteria->addJoin(ActionPropertyPeer::ID, ActionPropertyIntegerPeer::ID, $join_behavior);\n\n $criteria->addJoin(ActionPropertyPeer::ID, ActionPropertyDatePeer::ID, $join_behavior);\n\n $criteria->addJoin(ActionPropertyPeer::ID, ActionPropertyDoublePeer::ID, $join_behavior);\n\n $criteria->addJoin(ActionPropertyPeer::ID, ActionPropertyOrgStructurePeer::ID, $join_behavior);\n\n $criteria->addJoin(ActionPropertyPeer::ID, ActionPropertyFDRecordPeer::ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }",
"public function where($property, $value = null, $strict = null)\n {\n if (empty($value) || !is_string($value)) {\n throw new ApplicationException('You must provide a string value to compare with when executing a \"where\" '\n . 'query for CMS object collections.');\n }\n\n if (!isset($strict) || !is_bool($strict)) {\n $strict = true;\n }\n\n return $this->filter(function ($object) use ($property, $value, $strict) {\n if (!array_key_exists($property, $object->settings)) {\n return false;\n }\n\n return $strict\n ? $object->settings[$property] === $value\n : $object->settings[$property] == $value;\n });\n }",
"public function filterByActionPropertyString($actionPropertyString, $comparison = null)\n {\n if ($actionPropertyString instanceof ActionPropertyString) {\n return $this\n ->addUsingAlias(ActionPropertyPeer::ID, $actionPropertyString->getid(), $comparison);\n } elseif ($actionPropertyString instanceof PropelObjectCollection) {\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n\n return $this\n ->addUsingAlias(ActionPropertyPeer::ID, $actionPropertyString->toKeyValue('id', 'id'), $comparison);\n } else {\n throw new PropelException('filterByActionPropertyString() only accepts arguments of type ActionPropertyString or PropelCollection');\n }\n }",
"public static function doSelectJoinAllExceptActionPropertyString(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $criteria = clone $criteria;\n\n // Set the correct dbName if it has not been overridden\n // $criteria->getDbName() will return the same object if not set to another value\n // so == check is okay and faster\n if ($criteria->getDbName() == Propel::getDefaultDB()) {\n $criteria->setDbName(ActionPropertyPeer::DATABASE_NAME);\n }\n\n ActionPropertyPeer::addSelectColumns($criteria);\n $startcol2 = ActionPropertyPeer::NUM_HYDRATE_COLUMNS;\n\n ActionPeer::addSelectColumns($criteria);\n $startcol3 = $startcol2 + ActionPeer::NUM_HYDRATE_COLUMNS;\n\n ActionPropertyTypePeer::addSelectColumns($criteria);\n $startcol4 = $startcol3 + ActionPropertyTypePeer::NUM_HYDRATE_COLUMNS;\n\n ActionPropertyIntegerPeer::addSelectColumns($criteria);\n $startcol5 = $startcol4 + ActionPropertyIntegerPeer::NUM_HYDRATE_COLUMNS;\n\n ActionPropertyDatePeer::addSelectColumns($criteria);\n $startcol6 = $startcol5 + ActionPropertyDatePeer::NUM_HYDRATE_COLUMNS;\n\n ActionPropertyDoublePeer::addSelectColumns($criteria);\n $startcol7 = $startcol6 + ActionPropertyDoublePeer::NUM_HYDRATE_COLUMNS;\n\n ActionPropertyOrgStructurePeer::addSelectColumns($criteria);\n $startcol8 = $startcol7 + ActionPropertyOrgStructurePeer::NUM_HYDRATE_COLUMNS;\n\n ActionPropertyFDRecordPeer::addSelectColumns($criteria);\n $startcol9 = $startcol8 + ActionPropertyFDRecordPeer::NUM_HYDRATE_COLUMNS;\n\n $criteria->addJoin(ActionPropertyPeer::ACTION_ID, ActionPeer::ID, $join_behavior);\n\n $criteria->addJoin(ActionPropertyPeer::TYPE_ID, ActionPropertyTypePeer::ID, $join_behavior);\n\n $criteria->addJoin(ActionPropertyPeer::ID, ActionPropertyIntegerPeer::ID, $join_behavior);\n\n $criteria->addJoin(ActionPropertyPeer::ID, ActionPropertyDatePeer::ID, $join_behavior);\n\n $criteria->addJoin(ActionPropertyPeer::ID, ActionPropertyDoublePeer::ID, $join_behavior);\n\n $criteria->addJoin(ActionPropertyPeer::ID, ActionPropertyOrgStructurePeer::ID, $join_behavior);\n\n $criteria->addJoin(ActionPropertyPeer::ID, ActionPropertyFDRecordPeer::ID, $join_behavior);\n\n\n $stmt = BasePeer::doSelect($criteria, $con);\n $results = array();\n\n while ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $key1 = ActionPropertyPeer::getPrimaryKeyHashFromRow($row, 0);\n if (null !== ($obj1 = ActionPropertyPeer::getInstanceFromPool($key1))) {\n // We no longer rehydrate the object, since this can cause data loss.\n // See http://www.propelorm.org/ticket/509\n // $obj1->hydrate($row, 0, true); // rehydrate\n } else {\n $cls = ActionPropertyPeer::getOMClass();\n\n $obj1 = new $cls();\n $obj1->hydrate($row);\n ActionPropertyPeer::addInstanceToPool($obj1, $key1);\n } // if obj1 already loaded\n\n // Add objects for joined Action rows\n\n $key2 = ActionPeer::getPrimaryKeyHashFromRow($row, $startcol2);\n if ($key2 !== null) {\n $obj2 = ActionPeer::getInstanceFromPool($key2);\n if (!$obj2) {\n\n $cls = ActionPeer::getOMClass();\n\n $obj2 = new $cls();\n $obj2->hydrate($row, $startcol2);\n ActionPeer::addInstanceToPool($obj2, $key2);\n } // if $obj2 already loaded\n\n // Add the $obj1 (ActionProperty) to the collection in $obj2 (Action)\n $obj2->addActionProperty($obj1);\n\n } // if joined row is not null\n\n // Add objects for joined ActionPropertyType rows\n\n $key3 = ActionPropertyTypePeer::getPrimaryKeyHashFromRow($row, $startcol3);\n if ($key3 !== null) {\n $obj3 = ActionPropertyTypePeer::getInstanceFromPool($key3);\n if (!$obj3) {\n\n $cls = ActionPropertyTypePeer::getOMClass();\n\n $obj3 = new $cls();\n $obj3->hydrate($row, $startcol3);\n ActionPropertyTypePeer::addInstanceToPool($obj3, $key3);\n } // if $obj3 already loaded\n\n // Add the $obj1 (ActionProperty) to the collection in $obj3 (ActionPropertyType)\n $obj3->addActionProperty($obj1);\n\n } // if joined row is not null\n\n // Add objects for joined ActionPropertyInteger rows\n\n $key4 = ActionPropertyIntegerPeer::getPrimaryKeyHashFromRow($row, $startcol4);\n if ($key4 !== null) {\n $obj4 = ActionPropertyIntegerPeer::getInstanceFromPool($key4);\n if (!$obj4) {\n\n $cls = ActionPropertyIntegerPeer::getOMClass();\n\n $obj4 = new $cls();\n $obj4->hydrate($row, $startcol4);\n ActionPropertyIntegerPeer::addInstanceToPool($obj4, $key4);\n } // if $obj4 already loaded\n\n // Add the $obj1 (ActionProperty) to the collection in $obj4 (ActionPropertyInteger)\n $obj1->setActionPropertyInteger($obj4);\n\n } // if joined row is not null\n\n // Add objects for joined ActionPropertyDate rows\n\n $key5 = ActionPropertyDatePeer::getPrimaryKeyHashFromRow($row, $startcol5);\n if ($key5 !== null) {\n $obj5 = ActionPropertyDatePeer::getInstanceFromPool($key5);\n if (!$obj5) {\n\n $cls = ActionPropertyDatePeer::getOMClass();\n\n $obj5 = new $cls();\n $obj5->hydrate($row, $startcol5);\n ActionPropertyDatePeer::addInstanceToPool($obj5, $key5);\n } // if $obj5 already loaded\n\n // Add the $obj1 (ActionProperty) to the collection in $obj5 (ActionPropertyDate)\n $obj1->setActionPropertyDate($obj5);\n\n } // if joined row is not null\n\n // Add objects for joined ActionPropertyDouble rows\n\n $key6 = ActionPropertyDoublePeer::getPrimaryKeyHashFromRow($row, $startcol6);\n if ($key6 !== null) {\n $obj6 = ActionPropertyDoublePeer::getInstanceFromPool($key6);\n if (!$obj6) {\n\n $cls = ActionPropertyDoublePeer::getOMClass();\n\n $obj6 = new $cls();\n $obj6->hydrate($row, $startcol6);\n ActionPropertyDoublePeer::addInstanceToPool($obj6, $key6);\n } // if $obj6 already loaded\n\n // Add the $obj1 (ActionProperty) to the collection in $obj6 (ActionPropertyDouble)\n $obj1->setActionPropertyDouble($obj6);\n\n } // if joined row is not null\n\n // Add objects for joined ActionPropertyOrgStructure rows\n\n $key7 = ActionPropertyOrgStructurePeer::getPrimaryKeyHashFromRow($row, $startcol7);\n if ($key7 !== null) {\n $obj7 = ActionPropertyOrgStructurePeer::getInstanceFromPool($key7);\n if (!$obj7) {\n\n $cls = ActionPropertyOrgStructurePeer::getOMClass();\n\n $obj7 = new $cls();\n $obj7->hydrate($row, $startcol7);\n ActionPropertyOrgStructurePeer::addInstanceToPool($obj7, $key7);\n } // if $obj7 already loaded\n\n // Add the $obj1 (ActionProperty) to the collection in $obj7 (ActionPropertyOrgStructure)\n $obj1->setActionPropertyOrgStructure($obj7);\n\n } // if joined row is not null\n\n // Add objects for joined ActionPropertyFDRecord rows\n\n $key8 = ActionPropertyFDRecordPeer::getPrimaryKeyHashFromRow($row, $startcol8);\n if ($key8 !== null) {\n $obj8 = ActionPropertyFDRecordPeer::getInstanceFromPool($key8);\n if (!$obj8) {\n\n $cls = ActionPropertyFDRecordPeer::getOMClass();\n\n $obj8 = new $cls();\n $obj8->hydrate($row, $startcol8);\n ActionPropertyFDRecordPeer::addInstanceToPool($obj8, $key8);\n } // if $obj8 already loaded\n\n // Add the $obj1 (ActionProperty) to the collection in $obj8 (ActionPropertyFDRecord)\n $obj1->setActionPropertyFDRecord($obj8);\n\n } // if joined row is not null\n\n $results[] = $obj1;\n }\n $stmt->closeCursor();\n\n return $results;\n }",
"function filterMenu($properties = array(), $objs, $recursiveLevel = 0, $currentLevel = 0) {\r\n\t\t$currentLevel ++;\r\n\t\tif ($recursiveLevel >= 1 && $recursiveLevel < $currentLevel)\r\n\t\t\treturn;\r\n\t\tforeach ( $properties as $property => $value ) {\r\n\t\t\tforeach ( $objs as $obj ) {\r\n\t\t\t\tif (! isset ( $obj->$property ))\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\tif (is_bool ( $value ))\r\n\t\t\t\t\t$this->boolFilter ( $value, $property, $properties, $obj, &$objs, $recursiveLevel, $currentLevel );\r\n\t\t\t\telse\r\n\t\t\t\t\t$this->arrayFilter ( $value, $property, $properties, $obj, &$objs, $recursiveLevel, $currentLevel );\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $objs;\r\n\t}",
"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_kode),true);\n\t\t$criteria->compare('LOWER(programkerja_nama)',strtolower($this->programkerja_nama),true);\n\t\t$criteria->compare('LOWER(programkerja_ket)',strtolower($this->programkerja_ket),true);\n\t\tif(!empty($this->programkerja_nourut)){\n\t\t\t$criteria->addCondition('programkerja_nourut = '.$this->programkerja_nourut);\n\t\t}\n\t\tif(!empty($this->subprogramkerja_id)){\n\t\t\t$criteria->addCondition('subprogramkerja_id = '.$this->subprogramkerja_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subprogramkerja_kode)',strtolower($this->subprogramkerja_kode),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_nama)',strtolower($this->subprogramkerja_nama),true);\n\t\t$criteria->compare('LOWER(subprogramkerja_ket)',strtolower($this->subprogramkerja_ket),true);\n\t\tif(!empty($this->subprogramkerja_nourut)){\n\t\t\t$criteria->addCondition('subprogramkerja_nourut = '.$this->subprogramkerja_nourut);\n\t\t}\n\t\tif(!empty($this->kegiatanprogram_id)){\n\t\t\t$criteria->addCondition('kegiatanprogram_id = '.$this->kegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kegiatanprogram_kode)',strtolower($this->kegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_nama)',strtolower($this->kegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(kegiatanprogram_ket)',strtolower($this->kegiatanprogram_ket),true);\n\t\tif(!empty($this->kegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('kegiatanprogram_nourut = '.$this->kegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->subkegiatanprogram_id)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_id = '.$this->subkegiatanprogram_id);\n\t\t}\n\t\t$criteria->compare('LOWER(subkegiatanprogram_kode)',strtolower($this->subkegiatanprogram_kode),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_nama)',strtolower($this->subkegiatanprogram_nama),true);\n\t\t$criteria->compare('LOWER(subkegiatanprogram_ket)',strtolower($this->subkegiatanprogram_ket),true);\n\t\tif(!empty($this->subkegiatanprogram_nourut)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_nourut = '.$this->subkegiatanprogram_nourut);\n\t\t}\n\t\tif(!empty($this->rekening1debit_id)){\n\t\t\t$criteria->addCondition('rekening1debit_id = '.$this->rekening1debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1debit_kode)',strtolower($this->rekening1debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1debit_nama)',strtolower($this->rekening1debit_nama),true);\n\t\tif(!empty($this->rekening2debit_id)){\n\t\t\t$criteria->addCondition('rekening2debit_id = '.$this->rekening2debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2debit_kode)',strtolower($this->rekening2debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2debit_nama)',strtolower($this->rekening2debit_nama),true);\n\t\tif(!empty($this->rekening3debit_id)){\n\t\t\t$criteria->addCondition('rekening3debit_id = '.$this->rekening3debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3debit_kode)',strtolower($this->rekening3debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3debit_nama)',strtolower($this->rekening3debit_nama),true);\n\t\tif(!empty($this->rekening4debit_id)){\n\t\t\t$criteria->addCondition('rekening4debit_id = '.$this->rekening4debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4debit_kode)',strtolower($this->rekening4debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4debit_nama)',strtolower($this->rekening4debit_nama),true);\n\t\tif(!empty($this->rekening5debit_id)){\n\t\t\t$criteria->addCondition('rekening5debit_id = '.$this->rekening5debit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5debit_kode)',strtolower($this->rekening5debit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5debit_nama)',strtolower($this->rekening5debit_nama),true);\n\t\tif(!empty($this->rekening1kredit_id)){\n\t\t\t$criteria->addCondition('rekening1kredit_id = '.$this->rekening1kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening1kredit_kode)',strtolower($this->rekening1kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening1kredit_nama)',strtolower($this->rekening1kredit_nama),true);\n\t\tif(!empty($this->rekening2kredit_id)){\n\t\t\t$criteria->addCondition('rekening2kredit_id = '.$this->rekening2kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening2kredit_kode)',strtolower($this->rekening2kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening2kredit_nama)',strtolower($this->rekening2kredit_nama),true);\n\t\tif(!empty($this->rekening3kredit_id)){\n\t\t\t$criteria->addCondition('rekening3kredit_id = '.$this->rekening3kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening3kredit_kode)',strtolower($this->rekening3kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening3kredit_nama)',strtolower($this->rekening3kredit_nama),true);\n\t\tif(!empty($this->rekening4kredit_id)){\n\t\t\t$criteria->addCondition('rekening4kredit_id = '.$this->rekening4kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening4kredit_kode)',strtolower($this->rekening4kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening4kredit_nama)',strtolower($this->rekening4kredit_nama),true);\n\t\tif(!empty($this->rekening5kredit_id)){\n\t\t\t$criteria->addCondition('rekening5kredit_id = '.$this->rekening5kredit_id);\n\t\t}\n\t\t$criteria->compare('LOWER(rekening5kredit_kode)',strtolower($this->rekening5kredit_kode),true);\n\t\t$criteria->compare('LOWER(rekening5kredit_nama)',strtolower($this->rekening5kredit_nama),true);\n\t\t\n $criteria->compare('subkegiatanprogram_aktif', $this->subkegiatanprogram_aktif);\n $criteria->compare('programkerja_aktif', $this->programkerja_aktif);\n $criteria->compare('subprogramkerja_aktif', $this->subprogramkerja_aktif);\n $criteria->compare('kegiatanprogram_aktif', $this->kegiatanprogram_aktif);\n//$criteria->order = 'programkerja_id,subprogramkerja_id,kegiatanprogram_id,subkegiatanprogram_id';\n\t\t\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n\t}",
"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}",
"public function getUserByExternalProperty($prop)\n\t{\t\t\n\t\t//TODO: Implement this service call.\n\t\treturn false;\t\n\t}",
"protected function filterProperty(\n string $property,\n $values,\n QueryBuilder $queryBuilder,\n QueryNameGeneratorInterface $queryNameGenerator,\n string $resourceClass,\n string $operationName = null\n ) {\n if (!$this->isPropertyEnabled($property, $resourceClass)) {\n return;\n }\n\n if (!is_array($values) ||\n !isset($values[self::PARAMETER_LATITUDE]) ||\n !isset($values[self::PARAMETER_LONGITUDE]) ||\n !isset($values[self::PARAMETER_DISTANCE])\n ) {\n return;\n }\n\n if (Booking::class !== $resourceClass) {\n return;\n }\n\n $aliasSlot = $this->createUniqueAlias('slot');\n $aliasLocation = $this->createUniqueAlias('location');\n\n $queryBuilder\n ->innerJoin('o.slot', $aliasSlot)\n ->innerJoin(sprintf('%s.location', $aliasSlot), $aliasLocation);\n\n $earthBox = 'earth_box(ll_to_earth(:latitude, :longitude), :distance)';\n $lltoEarth = sprintf('ll_to_earth(%1$s.latitude, %1$s.longitude)', $aliasLocation);\n $condition = sprintf('contains(%s,%s) = TRUE', $earthBox, $lltoEarth);\n $queryBuilder\n ->andWhere($condition)\n ->setParameter(':distance', $values[self::PARAMETER_DISTANCE])\n ->setParameter(':latitude', $values[self::PARAMETER_LATITUDE])\n ->setParameter(':longitude', $values[self::PARAMETER_LONGITUDE]);\n }"
] | [
"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.4673803",
"0.46688798",
"0.46674418",
"0.46549645",
"0.4653801",
"0.46067658",
"0.46019042",
"0.45962957",
"0.45953366",
"0.45880932"
] | 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);\n\n return $this->render('indexfree', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider, \n ]);\n }",
"public static function course_archive_wc_filter_free( $query ){\n\n if( isset( $_GET['course_filter'] ) && 'free' == $_GET['course_filter']\n && 'course' == $query->get( 'post_type') && $query->is_main_query() ){\n\n // get all the free WooCommerce products\n // will be used later to check for course with the id as meta\n $woocommerce_free_product_ids = get_posts( array(\n 'post_type' => 'product',\n 'posts_per_page' => '1000',\n 'fields' => 'ids',\n 'meta_query'=> array(\n 'relation' => 'OR',\n array(\n 'key'=> '_regular_price',\n 'value' => 0,\n ),\n array(\n 'key'=> '_sale_price',\n 'value' => 0,\n ),\n ),\n ));\n\n // setup the course meta query\n $meta_query = array(\n 'relation' => 'OR',\n array(\n 'key' => '_course_woocommerce_product',\n 'compare' => 'NOT EXISTS',\n ),\n array(\n 'key' => '_course_woocommerce_product',\n 'value' => $woocommerce_free_product_ids,\n 'compare' => 'IN',\n ),\n );\n\n // manipulate the query to return free courses\n $query->set('meta_query', $meta_query );\n\n }// end if course_filter\n\n return $query;\n\n }",
"public function isFreeNowFilter(): self\n {\n $subQuery = Tasks::find()\n ->select(['doer_id'])\n ->andFilterWhere(['=', 'status_task', 'На исполнении']);\n\n return $this->andWhere(['not', ['users.id' => $subQuery]]);\n }",
"public function freeInput(bool $freeInput)\n {\n $this->freeInput = $freeInput;\n\n return $this;\n }",
"public function setFreeArea($free_area)\n {\n $this->free_area = $free_area;\n\n return $this;\n }",
"public function searchFree($query, $value);",
"public function is_free() {\n\t\treturn $this->getPlan()->is_free();\n\t}",
"public function is_free(): bool {\n\t\t/**\n\t\t * Filters whether it's a free transaction made via a coupon.\n\t\t *\n\t\t * @since 4.5.0\n\t\t *\n\t\t * @param bool $is_free True if it's a free transaction.\n\t\t * @param Transaction $transaction Transaction model.\n\t\t *\n\t\t * @return bool True if it's a free transaction made via a coupon.\n\t\t */\n\t\treturn apply_filters(\n\t\t\t'learndash_model_transaction_is_free',\n\t\t\t(bool) $this->getAttribute( self::$meta_key_is_free, false ),\n\t\t\t$this\n\t\t);\n\t}",
"public function setFreeAddedCategory(\\Nogrod\\eBaySDK\\MerchantData\\CategoryType $freeAddedCategory)\n {\n $this->freeAddedCategory = $freeAddedCategory;\n return $this;\n }",
"public function getFreeLeaders() {\n return $this->createQueryBuilder('l')\n ->where('SIZE(l.games) = 0')\n ->getQuery()\n ->getResult()\n ;\n }",
"public function getPricePlansWithFreeStorefronts()\n {\n if ($this->price_plans_with_free_storefronts == 0) {\n $db = DataAccess::getInstance();\n\n $price_plans_with_free_storefront = array();\n\n $sql = \"SELECT plan_item FROM \"\n . geoTables::plan_item_registry . \" WHERE (`index_key` = 'free_storefronts' AND `val_string` = '1')\";\n $plans_with_free_storefronts = $db->Execute($sql);\n $price_plans_with_free_storefront = array();\n if (!$plans_with_free_storefronts || ($plans_with_free_storefronts->RecordCount() == 0)) {\n $this->price_plans_with_free_storefronts = $price_plans_with_free_storefront;\n return $this->price_plans_with_free_storefronts;\n } else {\n while ($price_plan_list = $plans_with_free_storefronts->FetchRow()) {\n $registry_item = explode(\":\", $price_plan_list['plan_item']);\n array_push($price_plans_with_free_storefront, $registry_item[1]);\n }\n $this->price_plans_with_free_storefronts = $price_plans_with_free_storefront;\n }\n }\n return $this->price_plans_with_free_storefronts;\n }",
"public function addFreeOperation(FieldInterface $field): void\n {\n $this->freeFieldNames[] = $field->getName();\n }",
"public function actionFree() {\n\n\t\t$model = new BuffLike();\n\n\t\t$buff_likes = BuffLike::find()->where( [ 'user_id' => $this->user->id ] )->all();\n\n\t\t$facebook_accounts = ConnectHelper::get_access_token_by_username( $this->user->username );\n\n\t\tif ( $model->load( Yii::$app->request->post() ) && $model->save() ) {\n\n\t\t\t$model->user_id = $this->user->id;\n\t\t\t$model->free = true;\n\t\t\t$model->save();\n\n\t\t\tYii::$app->session->setFlash( 'success', true );\n\n\t\t\treturn $this->refresh();\n\t\t}\n\n\t\treturn $this->render( 'free', [\n\t\t\t'model' => $model,\n\t\t\t'buff_likes' => $buff_likes,\n\t\t\t'facebook_accounts' => $facebook_accounts\n\t\t] );\n\t}",
"public function searchDepositoPlanilla()\r\n\t\t{\r\n\t\t\t$query = DepositoPlanilla::find();\r\n\r\n\t\t\t$dataProvider = New ActiveDataProvider([\r\n\t\t\t\t\t\t\t\t\t'query' => $query,\r\n\t\t\t\t]);\r\n\r\n\t\t\t$query->where('id_contribuyente =:id_contribuyente',\r\n\t\t\t\t\t\t\t\t\t[':id_contribuyente' => $this->id_contribuyente]);\r\n\t\t\tif ( $this->recibo > 0 ) {\r\n\t\t\t\t$query->andWhere('DP.recibo =:recibo',[':recibo' => $this->recibo]);\r\n\t\t\t}\r\n\r\n\t\t\t$query->alias('DP')\r\n\t\t\t\t ->joinWith('deposito R', true, 'INNER JOIN')\r\n\t\t\t\t ->joinWith('condicion C', true, 'INNER JOIN');\r\n\r\n\t\t\treturn $dataProvider;\r\n\r\n\t\t}",
"function call_update_always_free()\n{\n\talways_free(\"SEARCH_FEMALE\");\n\talways_free(\"SEARCH_MALE\");\n\talways_free_full(\"SEARCH_FEMALE_FULL1\");\n\talways_free_full(\"SEARCH_MALE_FULL1\");\n\n}",
"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}",
"static function filter($db, $request, $columns, &$bindings)\n {\n $dtColumns = self::pluck($columns, 'dt');\n\n // General column search\n if (isset($request['search']) && $request['search']['value'] != '') {\n $str = $request['search']['value'];\n\n $db = $db->where(function ($db) use ($request, $dtColumns, $columns, $str) {\n for ($i = 0, $ien = count($request['columns']); $i < $ien; $i++) {\n $requestColumn = $request['columns'][$i];\n $columnIdx = array_search($requestColumn['data'], $dtColumns);\n $column = $columns[$columnIdx];\n\n if ($requestColumn['searchable'] == 'true') {\n $db = $db->orWhereRaw($column['db'] . ' like ' . \"'%\" . $str . \"%'\");\n }\n }\n\n return $db;\n });\n }\n\n // Individual column filtering\n $db = $db->where(function ($db) use ($request, $dtColumns, $columns) {\n for ($i = 0, $ien = count($request['columns']); $i < $ien; $i++) {\n $requestColumn = $request['columns'][$i];\n $columnIdx = array_search($requestColumn['data'], $dtColumns);\n $column = $columns[$columnIdx];\n\n $str = $requestColumn['search']['value'];\n\n if ($requestColumn['searchable'] == 'true' && $str != '') {\n $db = $db->whereRaw($column['db'] . ' like ' . \"'%\" . $str . \"%'\");\n }\n }\n\n return $db;\n });\n\n return $db;\n }",
"private function isFreeCall() {\n if($this->userfield == 'free' || substr($this->dst, 0, 1) == '*') {\n return true;\n } else {\n return false;\n }\n }",
"public function searchObatSupplierGF()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\n $criteria->with = array('obatalkes','supplier');\n\t\t$criteria->compare('LOWER(obatalkes.obatalkes_nama)', strtolower($this->obatalkes_nama),true);\n\t\t$criteria->compare('LOWER(obatalkes.obatalkes_kode)', strtolower($this->obatalkes_kodeobat),true);\n $criteria->compare('LOWER(supplier.supplier_nama)',strtolower($this->supplier_nama),true);\n\t\t$criteria->compare('LOWER(supplier.supplier_kode)',strtolower($this->supplier_kode),true);\n\t\t$criteria->compare('LOWER(supplier.supplier_alamat)',strtolower($this->supplier_alamat),true);\n\t\t$criteria->compare('t.obatalkes_id',$this->obatalkes_id);\n\t\t$criteria->compare('t.supplier_id',$this->supplier_id);\n\t\t$criteria->compare('t.obatsupplier_id',$this->obatsupplier_id);\n\t\t$criteria->compare('t.satuankecil_id',$this->satuankecil_id);\n\t\t$criteria->compare('t.satuanbesar_id',$this->satuanbesar_id);\n\t\t$criteria->compare('t.hargabelibesar',$this->hargabelibesar);\n\t\t$criteria->compare('t.diskon_persen',$this->diskon_persen);\n\t\t$criteria->compare('t.hargabelikecil',$this->hargabelikecil);\n\t\t$criteria->compare('t.ppn_persen',$this->ppn_persen);\n $criteria->order='supplier.supplier_kode ASC';\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function filterByDepositoLegal($depositoLegal = null, $comparison = null)\n\t{\n\t\tif (null === $comparison) {\n\t\t\tif (is_array($depositoLegal)) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t} elseif (preg_match('/[\\%\\*]/', $depositoLegal)) {\n\t\t\t\t$depositoLegal = str_replace('*', '%', $depositoLegal);\n\t\t\t\t$comparison = Criteria::LIKE;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(EdicionPeer::DEPOSITO_LEGAL, $depositoLegal, $comparison);\n\t}",
"static function filter ( $request, $columns, $query)\r\n\t{\r\n $query->where(function($query) use($columns,$request) {\r\n \r\n \r\n\t\t$globalSearch = array();\r\n\t\t$columnSearch = array();\r\n\t\t$dtColumns = self::pluck( $columns, 'dt' );\r\n $newstring = \"\";\r\n\t\tif ( isset($request['search']) && $request['search']['value'] != '' ) {\r\n\t\t\t$str = $request['search']['value'];\r\n\r\n\t\t\tfor ( $i=0, $ien=count($request['columns']) ; $i<$ien ; $i++ ) {\r\n\t\t\t\t$requestColumn = $request['columns'][$i];\r\n\t\t\t\t$columnIdx = array_search( $requestColumn['data'], $dtColumns );\r\n\t\t\t\t$column = $columns[ $columnIdx ];\r\n\r\n\t\t\t\tif ( $requestColumn['searchable'] == 'true' ) {\r\n\t\t\t\t\t//$binding = self::bind( $bindings, '%'.$str.'%', PDO::PARAM_STR );\r\n\t\t\t\t\t//$globalSearch[] = \"`\".$column['db'].\"` LIKE \".$binding;\r\n\t\t\t\t\tif($column['db']==='main_agent') {\r\n\t\t\t\t\t\t$query->orWhereHas('mainagent', function($query) use ($str) {\r\n\t\t\t\t\t\t\t$query->WhereHas('user', function($query) use($str) {\r\n\t\t\t\t\t\t\t\t$query->where('first_name','LIKE','%'.$str.'%')->orWhere('last_name','LIKE','%'.$str.'%');\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t} elseif($column['db']==='influencers') {\r\n \r\n } else {\r\n\t\t\t\t\t\t$query->orWhere($column['db'],'LIKE','%'.$str.'%');\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n \r\n\t\t// Individual column filtering\r\n\t\t/*for ( $i=0, $ien=count($request['columns']) ; $i<$ien ; $i++ ) {\r\n\t\t\t$requestColumn = $request['columns'][$i];\r\n\t\t\t$columnIdx = array_search( $requestColumn['data'], $dtColumns );\r\n\t\t\t$column = $columns[ $columnIdx ];\r\n\r\n\t\t\t$str = $requestColumn['search']['value'];\r\n\r\n\t\t\tif ( $requestColumn['searchable'] == 'true' &&\r\n\t\t\t $str != '' ) {\r\n\t\t\t\t$binding = self::bind( $bindings, '%'.$str.'%', PDO::PARAM_STR );\r\n\t\t\t\t$columnSearch[] = \"`\".$column['db'].\"` LIKE \".$binding;\r\n\t\t\t}\r\n\t\t}*/\r\n\r\n\t\t// Combine the filters into a single string\r\n\t\t/*$where = '';\r\n\r\n\t\tif ( count( $globalSearch ) ) {\r\n\t\t\t$where = '('.implode(' OR ', $globalSearch).')';\r\n\t\t}\r\n\r\n\t\tif ( count( $columnSearch ) ) {\r\n\t\t\t$where = $where === '' ?\r\n\t\t\t\timplode(' AND ', $columnSearch) :\r\n\t\t\t\t$where .' AND '. implode(' AND ', $columnSearch);\r\n\t\t}\r\n\r\n\t\tif ( $where !== '' ) {\r\n\t\t\t$where = 'WHERE '.$where;\r\n\t\t}\r\n\r\n\t\treturn $where;*/\r\n \r\n return $query;\r\n });\r\n return $query;\r\n\t}",
"function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once($conf['gate_dir'].'model/m_unit.php');\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periodebobot' :\n\t\t\t\t\treturn \"f.kodeperiodebobot='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periode' :\n\t\t\t\t\treturn \"n.kodeperiode='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'periodetim' :\n\t\t\t\t\treturn \"kodeperiode='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'penilai' :\n\t\t\t\t\treturn \"idpenilai='$key'\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"public function filterByClienteCallefiscal($clienteCallefiscal = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($clienteCallefiscal)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $clienteCallefiscal)) {\n $clienteCallefiscal = str_replace('*', '%', $clienteCallefiscal);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(ClientePeer::CLIENTE_CALLEFISCAL, $clienteCallefiscal, $comparison);\n }",
"function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'periode': return \"periode = '$key'\";\n\t\t\t\tcase 'kodemk': return \"kodemk = '$key'\";\n\t\t\t\tcase 'kelasmk': return \"kelasmk = '$key'\";\n\t\t\t\tcase 'sistemkuliah': return \"sistemkuliah = '$key'\";\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once(Route::getModelPath('unit'));\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t}\n\t\t}",
"function filterStr($field, $value) {\n if (\"$value\" !== '') {\n if ($value[0] === '=') {\n $this->where($field, '=', trim( substr($value, 1) ));\n } else {\n $wrapped = $this->table->grammar->wrap($field);\n\n switch ($value[0]) {\n case '^':\n $cond = '= 1';\n case '?':\n isset($cond) or $cond = '!= 0';\n $this->raw_where(\"LOCATE(?, $wrapped) $cond\", array($value));\n break;\n\n case '%':\n $this->raw_where(\"$wrapped LIKE ?\", array($value));\n break;\n\n default:\n $this->where($field, '=', trim($value));\n break;\n }\n }\n }\n }",
"function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'periodebayar': return \"tglbayar BETWEEN '$key-01-01' AND '$key-12-31'\";\n\t\t\t}\n\t\t}",
"public function columnasFiltro($columnasBD) {\n $filtro=null;\n foreach ($columnasBD as $cBD) {\n\n if($cBD['tipo']=='string')\n $filtro .='LOWER('.substr($cBD['nombre'],0,1).'.'.substr($cBD['nombre'],1).') like :'.substr($cBD['nombre'],1).' or '; \n else\n $filtro .=substr($cBD['nombre'],0,1).'.'.substr($cBD['nombre'],1).' = :'.substr($cBD['nombre'],1).' or '; \n }\n $filtro= substr($filtro,0, -4);\n \n return $filtro;\n }",
"function isFreeShipping($total_price = null) {\n\t\t// doprava muze byt zdarma bud proto, ze CENA ZBOZI V KOSIKU JE VYSSI NEZ NEJNIZSI MOZNA MEZ PRO DOPRAVU ZDARMA\n\t\t// anebo v kosiku mam ZBOZI, KTERE UMOZNUJE DOPRAVU ZDARMA ((neostrata nad 1200,- || syncare nad 700,-) && GEIS s platbou predem) \n\t\t/*\n\t\t * zjistim nejmensi moznou cenu objednavky, od ktere je doprava zdarma (mimo osobni odber)\n\t\t * a pokud mam objednavku alespon v dane hodnote, je mozna doprava zdarma\n\t\t */\n\t\tApp::import('Model', 'Shipping');\n\t\t$this->Shipping = &new Shipping;\n\t\t$shipping = $this->Shipping->lowestFreeShipping();\n\t\t\n\t\t// pokud nemam rovnou zadanou cenu zbozi, musim vytahnout data z kosiku\n\t\tif (!$total_price) {\n\t\t\t$total_price = $this->totalPrice();\n\t\t}\n\n\t\t$free = $total_price > $shipping['Shipping']['free'];\n\t\t\n\t\t// doprava je mozna zdarma vzdy jen pro GEIS platbu predem - ID 32, 35\n\t\t$manufacturer_free_shipping_ids = array(32, 35);\n\t\t$i = 0;\n\t\twhile (!$free && $i < count($manufacturer_free_shipping_ids)) {\n\t\t\t$manufacturer_free_shipping_id = $manufacturer_free_shipping_ids[$i];\n\t\t\t$free = $free || $this->CartsProduct->Product->OrderedProduct->Order->manufacturers_free_shipping($manufacturer_free_shipping_id);\n\t\t\t$i++;\n\t\t}\n\t\t\n\t\tif (!$free) {\n\t\t\t$free = $free || $this->CartsProduct->Product->OrderedProduct->Order->cart_product_count_free_shipping($manufacturer_free_shipping_id);\n\t\t}\n\n\t\treturn $free;\n\t}",
"public function getFreeCompanies() { return $this->FreeCompanies; }"
] | [
"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.4140906",
"0.41277003",
"0.4091731",
"0.40900597",
"0.4072967",
"0.40566006",
"0.40464744",
"0.4035079",
"0.40292892",
"0.40205657"
] | 0.63954246 | 0 |
Subsets and Splits