Best Atoum code snippet using realtime
idealo_set_and_get_setting.php
Source:idealo_set_and_get_setting.php
...16 WHERE configuration_key = '" . $key . "'17 LIMIT 1");18 return xtc_db_fetch_array($value_query);// false if $key doesn't exist19}20$_realtime_code_db = getRealConfigurationValue('MODULE_IDEALO_REALTIME_CODE');21$_realtime_variant_db = getRealConfigurationValue('MODULE_IDEALO_REALTIME_VARIANT');22$_realtime_warehouse_db = getRealConfigurationValue('MODULE_IDEALO_REALTIME_WAREHOUSE');23$certificate_db = getRealConfigurationValue('MODULE_IDEALO_REALTIME_CERTIFICATE');24$testmode_db = getRealConfigurationValue('MODULE_IDEALO_REALTIME_TESTMODE');25$campaign_db = getRealConfigurationValue('MODULE_IDEALO_CAMPAIGN');26$shop_id_db = getRealConfigurationValue('MODULE_IDEALO_REALTIME_SHOP_ID');27$password_db = getRealConfigurationValue('MODULE_IDEALO_REALTIME_PASSWORD');28$pagesize_db = getRealConfigurationValue('MODULE_IDEALO_REALTIME_PAGESIZE');29$shipping_comment_db = getRealConfigurationValue('MODULE_IDEALO_REALTIME_SHIPPINGCOMMENT');30$_realtime_cat_filter_db = getRealConfigurationValue('MODULE_IDEALO_REALTIME_CAT_FILTER');31$_realtime_cat_filter_value_db = getRealConfigurationValue('MODULE_IDEALO_REALTIME_CAT_FILTER_VALUE');32$_realtime_brand_filter_db = getRealConfigurationValue('MODULE_IDEALO_REALTIME_BRAND_FILTER');33$_realtime_brand_filter_value_db = getRealConfigurationValue('MODULE_IDEALO_REALTIME_BRAND_FILTER_VALUE');34$_realtime_article_filter_db = getRealConfigurationValue('MODULE_IDEALO_REALTIME_ARTICLE_FILTER');35$_realtime_article_filter_value_db = getRealConfigurationValue('MODULE_IDEALO_REALTIME_ARTICLE_FILTER_VALUE');36/*37 * realtime_code value38*/39//is realtime_warehouse_value set?40if(isset($_POST['realtime_code'])) {41 // does a dataset exist?42 if( $_realtime_code_db !== false ) {43 if( $_POST['realtime_code'] != $_realtime_code_db['configuration_value'] ) {44 xtc_db_query("update " . TABLE_CONFIGURATION . "45 set configuration_value = '" . $_POST['realtime_code'] . "'46 where configuration_key = 'MODULE_IDEALO_REALTIME_CODE'");47 }48 } else {49 // insert data50 xtc_db_query("insert into " . TABLE_CONFIGURATION . "51 (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added)52 values ('MODULE_IDEALO_REALTIME_CODE', '" . $_POST['realtime_code'] . "', 6, 1, '', now()) ");53 }54 $_realtime_code = stripcslashes($_POST['realtime_code']);55} else {56 $_realtime_code = "";57}58/*59 * realtime_variant value60*/61//is realtime_variant_value set?62if( isset($_POST['realtime_variant'])) {63 // does a dataset exist?64 if( $_realtime_variant_db !== false ) {65 if( $_POST['realtime_variant'] != $_realtime_variant_db['configuration_value'] ) {66 xtc_db_query("update " . TABLE_CONFIGURATION . "67 set configuration_value = '" . $_POST['realtime_variant'] . "'68 where configuration_key = 'MODULE_IDEALO_REALTIME_VARIANT'");69 }70 } else {71 // insert data72 xtc_db_query("insert into " . TABLE_CONFIGURATION . "73 (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added)74 values ('MODULE_IDEALO_REALTIME_VARIANT', '" . $_POST['realtime_variant'] . "', 6, 1, '', now()) ");75 }76 $_realtime_variant = stripcslashes($_POST['realtime_variant']);77} else {78 $_realtime_variant = "";79}80/*81 * realtime_warehouse value82*/83//is realtime_warehouse_value set?84if( isset($_POST['realtime_warehouse'])) {85 // does a dataset exist?86 if( $_realtime_warehouse_db !== false ) {87 if( $_POST['realtime_warehouse'] != $_realtime_warehouse_db['configuration_value'] ) {88 xtc_db_query("update " . TABLE_CONFIGURATION . "89 set configuration_value = '" . $_POST['realtime_warehouse'] . "'90 where configuration_key = 'MODULE_IDEALO_REALTIME_WAREHOUSE'");91 }92 } else {93 // insert data94 xtc_db_query("insert into " . TABLE_CONFIGURATION . "95 (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added)96 values ('MODULE_IDEALO_REALTIME_WAREHOUSE', '" . $_POST['realtime_warehouse'] . "', 6, 1, '', now()) ");97 }98 $_realtime_warehouse_value = stripcslashes($_POST['realtime_warehouse']);99} else {100 $_realtime_warehouse_value = "";101}102/*103 * cat filter value104 */105// is cat_filter_value set? 106if( isset($_POST['cat_filter_value'])) {107 // does a dataset exist?108 if( $_realtime_cat_filter_value_db !== false ) {109 // update value if $_POST['cat_filter_value'] != $_realtime_quoting_db110 if( $_POST['cat_filter_value'] != $_realtime_cat_filter_value_db['configuration_value'] ) {111 xtc_db_query("update " . TABLE_CONFIGURATION . "112 set configuration_value = '" . $_POST['cat_filter_value'] . "'113 where configuration_key = 'MODULE_IDEALO_REALTIME_CAT_FILTER_VALUE'");114 }115 } else {116 // insert data117 xtc_db_query("insert into " . TABLE_CONFIGURATION . "118 (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added)119 values ('MODULE_IDEALO_REALTIME_CAT_FILTER_VALUE', '" . $_POST['cat_filter_value'] . "', 6, 1, '', now()) ");120 }121 $_realtime_cat_filter_value = stripcslashes($_POST['cat_filter_value']);122} else {123 $_realtime_cat_filter_value = "";124}125/*126 * cat filter127 */128// is cat_filter set? 129if( isset($_POST['cat_filter'])) {130 // does a dataset exist?131 if( $_realtime_cat_filter_db !== false ) {132 // update value if $_POST['cat_filter'] != $_realtime_quoting_db133 if( $_POST['cat_filter'] != $_realtime_cat_filter_db['configuration_value'] ) {134 xtc_db_query("update " . TABLE_CONFIGURATION . "135 set configuration_value = '" . $_POST['cat_filter'] . "'136 where configuration_key = 'MODULE_IDEALO_REALTIME_CAT_FILTER'");137 }138 } else {139 // insert data140 xtc_db_query("insert into " . TABLE_CONFIGURATION . "141 (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added)142 values ('MODULE_IDEALO_REALTIME_CAT_FILTER', '" . $_POST['cat_filter'] . "', 6, 1, '', now()) ");143 }144 $_realtime_cat_filter = stripcslashes($_POST['cat_filter']);145} else {146 $_realtime_cat_filter = "";147}148/*149 * brand filter value150 */151// is brand_filter_value set? 152if( isset($_POST['brand_filter_value'])) {153 // does a dataset exist?154 if( $_realtime_brand_filter_value_db !== false ) {155 // update value if $_POST['brand_filter_value'] != $_realtime_quoting_db156 if( $_POST['brand_filter_value'] != $_realtime_brand_filter_value_db['configuration_value'] ) {157 xtc_db_query("update " . TABLE_CONFIGURATION . "158 set configuration_value = '" . $_POST['brand_filter_value'] . "'159 where configuration_key = 'MODULE_IDEALO_REALTIME_BRAND_FILTER_VALUE'");160 }161 } else {162 // insert data163 xtc_db_query("insert into " . TABLE_CONFIGURATION . "164 (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added)165 values ('MODULE_IDEALO_REALTIME_BRAND_FILTER_VALUE', '" . $_POST['brand_filter_value'] . "', 6, 1, '', now()) ");166 }167 $_realtime_brand_filter_value = stripcslashes($_POST['brand_filter_value']);168} else {169 $_realtime_brand_filter_value = "";170}171/*172 * brand filter173 */174// is brand_filter set? 175if( isset($_POST['brand_filter'])) {176 // does a dataset exist?177 if( $_realtime_brand_filter_db !== false ) {178 // update value if $_POST['brand_filter'] != $_realtime_quoting_db179 if( $_POST['brand_filter'] != $_realtime_brand_filter_db['configuration_value'] ) {180 xtc_db_query("update " . TABLE_CONFIGURATION . "181 set configuration_value = '" . $_POST['brand_filter'] . "'182 where configuration_key = 'MODULE_IDEALO_REALTIME_BRAND_FILTER'");183 }184 } else {185 // insert data186 xtc_db_query("insert into " . TABLE_CONFIGURATION . "187 (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added)188 values ('MODULE_IDEALO_REALTIME_BRAND_FILTER', '" . $_POST['brand_filter'] . "', 6, 1, '', now()) ");189 }190 $_realtime_brand_filter = stripcslashes($_POST['brand_filter']);191} else {192 $_realtime_brand_filter = "";193}194/*195 * article filter value196 */197// is article_filter_value set? 198if( isset($_POST['article_filter_value'])) {199 // does a dataset exist?200 if( $_realtime_article_filter_value_db !== false ) {201 // update value if $_POST['article_filter_value'] != $_realtime_quoting_db202 if( $_POST['article_filter_value'] != $_realtime_article_filter_value_db['configuration_value'] ) {203 xtc_db_query("update " . TABLE_CONFIGURATION . "204 set configuration_value = '" . $_POST['article_filter_value'] . "'205 where configuration_key = 'MODULE_IDEALO_REALTIME_ARTICLE_FILTER_VALUE'");206 }207 } else {208 209 // insert data210 xtc_db_query("insert into " . TABLE_CONFIGURATION . "211 (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added)212 values ('MODULE_IDEALO_REALTIME_ARTICLE_FILTER_VALUE', '" . $_POST['article_filter_value'] . "', 6, 1, '', now()) ");213 }214 $_realtime_article_filter_value = stripcslashes($_POST['article_filter_value']);215} else {216 $_realtime_article_filter_value = "";217}218/*219 * article filter220 */221// is article_filter set? 222if( isset($_POST['article_filter'])) {223 // does a dataset exist?224 if( $_realtime_article_filter_db !== false ) {225 // update value if $_POST['article_filter'] != $_realtime_quoting_db226 if( $_POST['article_filter'] != $_realtime_article_filter_db['configuration_value'] ) {227 xtc_db_query("update " . TABLE_CONFIGURATION . "228 set configuration_value = '" . $_POST['article_filter'] . "'229 where configuration_key = 'MODULE_IDEALO_REALTIME_ARTICLE_FILTER'");230 }231 } else {232 // insert data233 xtc_db_query("insert into " . TABLE_CONFIGURATION . "234 (configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added)235 values ('MODULE_IDEALO_REALTIME_ARTICLE_FILTER', '" . $_POST['article_filter'] . "', 6, 1, '', now()) ");236 }237 $_realtime_article_filter = stripcslashes($_POST['article_filter']);238} else {239 $_realtime_article_filter = "";240}241/*242 * certificate243 */244// is certificate set? 245if( isset( $_POST [ 'certificate' ] ) ) {246 // does a dataset exist?247 if( $certificate_db !== false ) {248 // update value if $_POST['testmode'] != $quoting_db249 if( $_POST [ 'certificate' ] != $certificate_db [ 'configuration_value' ] ) {250 xtc_db_query( "update " . TABLE_CONFIGURATION . "251 set configuration_value = '" . $_POST [ 'certificate' ] . "'252 where configuration_key = 'MODULE_IDEALO_REALTIME_CERTIFICATE'" );253 }...
idealo_definition.php
Source:idealo_definition.php
...24$version_location_idealo = 'http://ftp.idealo.de/software/modules/version.xml';25$new_idealo_version_text = '';26 if( @file_get_contents ( $version_location_idealo ) !== false ) {27 $xml_idealo = simplexml_load_file ( $version_location_idealo );28 $version_idealo = ( string ) $xml_idealo->realtime->xt_systeme;29 $idealo_module_download = ( string )$xml_idealo->download->url;30 $old_version_idealo = explode ( '.', $version_number_idealo );31 $new_version_idealo = explode ( '.', $version_idealo );32 $idealo_version_text_modified = TEXT_NEW_IDEALO_MODULE_01 . $version_idealo . TEXT_NEW_IDEALO_MODULE_02 . ' ' . TEXT_IDEALO_CSV_TEAM;33 $idealo_version_text_no_modified = TEXT_NEW_IDEALO_MODULE_01 . $version_idealo . TEXT_NEW_IDEALO_MODULE_02 . ' <a href="' . $idealo_module_download . '" target="_newtab"><b>zur Download-Seite</b></a>'; // DokuMan - 2012-08-21 - removed "blink"-tag34 35 if ( count ( $old_version_idealo ) == count ( $new_version_idealo ) ){36 37 if (38 ( $old_version_idealo [0] < $new_version_idealo [0] )39 or40 (41 $old_version_idealo [0] == $new_version_idealo [0]42 and43 $old_version_idealo[1] < $new_version_idealo [1]44 )45 or46 (47 $old_version_idealo [0] == $new_version_idealo [0]48 and49 $old_version_idealo [1] == $new_version_idealo [1]50 and51 $old_version_idealo [2] < $new_version_idealo [2]52 53 )54 ){55 if ( TEXT_IDEALO_REALTIME_MODIFIED == 'no' ){56 57 $new_idealo_version_text = $idealo_version_text_no_modified;58 59 }else{60 61 $new_idealo_version_text = $idealo_version_text_modified;62 63 }64 65 }66 67 }68 }69 70define( 'NEW_IDEALO_REALTIME_VERSION_TEXT', $new_idealo_version_text );71define( 'MODULE_IDEALO_REALTIME_TEXT_DESCRIPTION', 'Realtime - Idealo' );72define( 'MODULE_IDEALO_REALTIME_TEXT_TITLE', xtc_image(DIR_WS_CATALOG.'export/idealo_realtime/logo_blue_small.png').' - Realtime');73define('MODULE_IDEALO_REALTIME_FILE_TITLE' , '<hr noshade>User');74define('MODULE_IDEALO_REALTIME_FILE_DESC' , 'Ihr Benutzername für den Webservice. Falls Sie noch nicht für die Nutzung des Webservice freigeschaltet sind, wenden Sie sich bitte an csv@idealo.de' );75define('IDEALO_REALTIME_TESTMODE_ACTIVE', '<b>Testmodus</b><br>Wenn aktiv, werden keine Logindaten im Modul benötigt. ');76define('URL', '<b>URL für Webservice</b>');77define('URL_HINT', 'URL für Request');78define('SHOP_ID','<b>ShopID</b>');79define('SHOP_ID_HINT','ID Ihres Shops bei Idealo (wird Ihnen bei Anmeldung mitgeteilt)');80define('PASSWORT', '<b>Passwort</b>');81define('PASSWORT_HINT', 'Ihr Passwort. Falls Sie noch nicht für die Nutzung des Webservice freigeschaltet sind, wenden Sie sich bitte an csv@idealo.de');82define('PAGESIZE', '<b>Pagesize</b>');83define('PAGESIZE_HINT', 'Anzahl der Angebote, welche pro Aufruf gesendet werden sollen. Es werden maximal 100 Angebote pro Aufruf zurückgeliefert, grössere Werte für den pageSize-Parameter sind nicht zulässig. Empfohlen sind 100');84define('CERTIFICATE_TEXT', '<b>Zertifikatsprüfung</b>');85define('CERTIFICATE_TEXT_DESCRIPTION', 'Bei Deaktivierung der Zertifikatsprüfung, werden Daten an Idealo geschickt, ohne dass das Zertifikat überprüft wird.');86define('PAYMENT', '<hr noshade><b>Zahlungsarten</b>');87define('CODEXTRAFEE_HINT', 'Die Gebühren die zusätzlich vom Zustelldienst für Nachnahme verlangt werden.<br />Beispiel: "2" wenn die Zustellergebühren 2 Euro betragen');88define('PAYMENTEXTRAFEE', 'Zusatzgebühren bei');89define('PAYMENTEXTRAFEE_HINT', 'Die Gebühren die zusätzlich zu den normalen Versandkosten anfallen.');90define('PAYMENTEXTRAFEE_INPUT_FIX', 'EUR fixe Gebühren Bsp.: 5.00');91define('PAYMENTEXTRAFEE_INPUT_NOFIX', '% vom Warenwert Bsp.: 3.5');92define('PAYMENTEXTRAFEE_RADIO_SCINCLUSIVE', '<b>inkl.</b> VK');93define('PAYMENTEXTRAFEE_RADIO_SCNOTINCLUSIVE', '<b>exkl.</b> VK');94define('SHIPPINGCOMMENT', '<hr noshade><b>Versandkommentar</b>');95define('SHIPPINGCOMMENT_HINT', 'Max. 100 Zeichen');96define('CURRENCY','EUR');97define('SHIPPING','<hr noshade><b>Versandländer / Versandkosten</b>');98define('EXPORT','Bitte den Sicherungsprozess AUF KEINEN FALL unterbrechen. Dieser kann einige Minuten in Anspruch nehmen.');99define('CAMPAIGNS','<hr noshade><b>Kampagnen:</b>');100define('CAMPAIGNS_DESC','Mit Kampagne zur Nachverfolgung verbinden.');101define('TEXT_WARANTY_IDEALO_REALTIME', '* Idealo übernimmt keine Haftung für den einwandfreien Betrieb, die Funktionalität des Moduls, der Sicherheit der übertragenen Daten und Haftung für etwaige Schäden. Idealo kann den Service der Module jederzeit einstellen. Mit der Nutzung der Module stimmt der Kooperationspartner dem vorgenannten Haftungsausschluss von Idealo zu.');102define('DATE_FORMAT_EXPORT', '%d.%m.%Y'); 103define('DISPLAY_PRICE_WITH_TAX','true');104define('COMMENTLENGTH', 100);105define('COSTUMER_STATUS', '1');106define('EXPORT_TEXT', '<hr noshade><b>Artikel bei Idealo aktualisieren?</b>');107define('REAL_TEXT', 'URL für Echtzeitaktualisierung (bitte an Idealo schicken):');108define('TESTFILE', 'Testdatei erstellen?');109define('SHIPPING_TEXT_01', '<b>Versand nach ');110define('SHIPPING_TEXT_02', '</b>Geben Sie die Versandkosten ein.');111define('SHIPPING_TEXT_03', 'z.B. 5.95');112define('SHIPPING_TEXT_04', 'Geben Sie an, ab welchem Warenwert der Versand kostenlos erfolgt.');113define('SHIPPING_TEXT_05', 'z.B. 100');114define('SHIPPING_TEXT_06', 'Wählen Sie aus, wie die Versandkosten berechnet werden.');115define('ARTICLE_ID','artikelId');116define('BRAND','hersteller');117define('PRODUCT_NAME','bezeichnung');118define('CATEGORIE','kategorie');119define('DESCRIPTION_SHORT','beschreibung_kurz');120define('DESCRIPTION_SHORT_LONG','beschreibung_lang');121define('IMAGE','bild');122define('DEEPLINK','deeplink');123define('PRICE','preis');124define('EAN','ean');125define('DELIVERY','lieferzeit');126define('CAMPAIGN', '94511215'); 127define('IDEALO_REALTIME_LINK', 'export/idealo_realtime/idealo_realtime.php');128define('IDEALO_REALTIME', 'export/idealo_realtime/');129define('IDEALO_TEXT_MISSING_CONFIG', '<font color="#FF0000"><b>* bitte einen Wert eintragen!</b></font>');130define('IDEALO_TEXT_MISSING_SHIPPING', '<font color="#FF0000"><b>* Versandkosten für min. ein Land aktivieren!</b></font>');131define('IDEALO_TEXT_MISSING_PAYMENT', '<font color="#FF0000"><b>* für jedes aktivierte Versandland min. eine Zahlungsart aktivieren!</b></font>');132define('IDEALO_TEXT_MISSING_COSTS_IDEALO_DE', '<font color="#FF0000"><b>* geben Sie die Versandkosten ein!<br></b></font>');133define ( 'IDEALO_REALTIME_CRON_TABLE', 'idealo_realtime_cron' );134define ( 'IDEALO_REQUEST_ERROR_TABLE', 'idealo_realtime_failed_request' );135$_realtime_cat_filter_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_CAT_FILTER' LIMIT 1");136$_realtime_cat_filter_db = xtc_db_fetch_array($_realtime_cat_filter_query);137$_realtime_cat_filter = $_realtime_cat_filter_db [ 'configuration_value' ];138$_realtime_cat_filter_value_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_CAT_FILTER_VALUE' LIMIT 1");139$_realtime_cat_filter_value_db = xtc_db_fetch_array($_realtime_cat_filter_value_query);140$_realtime_cat_filter_value = $_realtime_cat_filter_value_db [ 'configuration_value' ];141$_realtime_brand_filter_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_BRAND_FILTER' LIMIT 1");142$_realtime_brand_filter_db = xtc_db_fetch_array($_realtime_brand_filter_query);143$_realtime_brand_filter = $_realtime_brand_filter_db [ 'configuration_value' ];144$_realtime_brand_filter_value_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_BRAND_FILTER_VALUE' LIMIT 1");145$_realtime_brand_filter_value_db = xtc_db_fetch_array($_realtime_brand_filter_value_query);146$_realtime_brand_filter_value = $_realtime_brand_filter_value_db [ 'configuration_value' ];147$_realtime_article_filter_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_ARTICLE_FILTER' LIMIT 1");148$_realtime_article_filter_db = xtc_db_fetch_array($_realtime_article_filter_query);149$_realtime_article_filter = $_realtime_article_filter_db [ 'configuration_value' ];150$_realtime_article_filter_value_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_ARTICLE_FILTER_VALUE' LIMIT 1");151$_realtime_article_filter_value_db = xtc_db_fetch_array($_realtime_article_filter_value_query);152$_realtime_article_filter_value = $_realtime_article_filter_value_db [ 'configuration_value' ];153define('IDEALO_REALTIME_ARTICLE_FILTER_VALUE', $_realtime_article_filter_value);154define('IDEALO_REALTIME_ARTICLE_EXPORT', $_realtime_article_filter);155define('IDEALO_REALTIME_ARTICLE_FILTER', '<hr noshade><b>Filter nach Artikelnummer</b>');156define('IDEALO_REALTIME_ARTICLE_FILTER_SELECTION', 'Wählen Sie aus, ob die Artikel gefiltert, oder "nur diese" exportiert werden sollen.');157define('IDEALO_REALTIME_ARTICLE_FILTER_TEXT', 'Geben Sie hier die Artikelnummern ein. Trennen Sie die Artikelnummern mit einem Semikolon ";".');158define('IDEALO_REALTIME_BRAND_FILTER_VALUE', $_realtime_brand_filter_value);159define('IDEALO_REALTIME_BRAND_EXPORT', $_realtime_brand_filter);160define('IDEALO_REALTIME_BRAND_FILTER', '<b>Filter nach Hersteller</b>');161define('IDEALO_REALTIME_BRAND_FILTER_SELECTION', 'Wählen Sie aus, ob die Hersteller gefiltert, oder "nur diese" exportiert werden sollen.');162define('IDEALO_REALTIME_BRAND_FILTER_TEXT', 'Geben Sie hier die Hersteller ein. Trennen Sie die Hersteller mit einem Semikolon ";".');163define('IDEALO_REALTIME_CAT_FILTER_VALUE', $_realtime_cat_filter_value);164define('IDEALO_REALTIME_CAT_EXPORT', $_realtime_cat_filter);165define('IDEALO_REALTIME_CAT_FILTER', '<b>Filter nach Kategorien</b>');166define('IDEALO_REALTIME_CAT_FILTER_SELECTION', 'Wählen Sie aus, ob die Kategorien gefiltert, oder "nur diese" exportiert werden sollen.');167define('IDEALO_REALTIME_CAT_FILTER_TEXT', 'Geben Sie hier die Kategorien ein. Trennen Sie die Kategorien mit einem Semikolon ";". Es genügt, einen Teilpfad der Kategorie anzugeben. wird der Teilpfad in der Kategorie eines Artikels gefunden, wird dieser gefiltert. Z.B. Filter "TV": alle Kategorien mit "TV" als Teilpfad (z.B. TV->LCD und TV->Plasma) werden gefiltert. Filter "LCD": alle Artikel mit dem Teilpfad "LCD" werden gefiltert. "TV->Plasma" wird exportiert.');168define('IDEALO_REALTIME_MIN_ORDER_TITLE', '<hr noshade><b>Mindestbestellwert</b>');169define('IDEALO_REALTIME_MIN_ORDER', 'Mindestbestellwert: ');170define('IDEALO_REALTIME_MIN_EXTRA_COSTS', '<b>Mindermengenzuschlag</b>');171define('IDEALO_REALTIME_MIN_ORDER_EXTRA_PRICE', ' EUR Mindermengenzuschlag unter ');172define('IDEALO_REALTIME_SUM', ' EUR Warenwert, bereits in den Versandkosten enthalten.');173define('IDEALO_REALTIME_MIN_ORDER_VALUE', '<b>Mindestbestellwert</b>');174define('IDEALO_REALTIME_MIN_ORDER_TEXT', 'Tragen Sie Ihren Mindestbestellwert ein. Verwenden Sie als Dezimaltrenner das Punktzeichen, z.B. 5.00. Die betreffenden Angebote erhalten automatisch einen entsprechenden Versandkommentar.');175define('IDEALO_REALTIME_MIN_ORDER_BORDER_TEXT', 'Tragen Sie die Höhe des Zuschlages ein. Verwenden Sie als Dezimaltrenner das Punktzeichen, z.B. 2.99. ');176define('IDEALO_REALTIME_MIN_ORDER_BORDER_VALUE', '<b>Mindermengengrenze</b>');177define('IDEALO_REALTIME_MIN_ORDER_PRICE_TEXT', 'Tragen Sie den Betrag ein, ab welchem der Mindermengenzuschlag nicht mehr anfällt. Verwenden Sie als Dezimaltrenner das Punktzeichen, z.B. 49.95');178define('IDEALO_REALTIME_EXPORT_TEXT', '<hr noshade><b>Aktualisieren</b>');...
RealtimeQueuesController.php
Source:RealtimeQueuesController.php
...6use Symfony\Component\HttpFoundation\Request;7use Symfony\Component\HttpFoundation\Response;8use Symfony\Component\Routing\Annotation\Route;9/**10 * @Route("/realtime/queues")11 */12class RealtimeQueuesController extends AbstractController13{14 /**15 * @Route("/", name="realtime_queues_index", methods={"GET"})16 */17 public function index(): Response18 {19 $realtimeQueues = $this->getDoctrine()20 ->getRepository(RealtimeQueues::class)21 ->findAll();22 return $this->render('realtime_queues/index.html.twig', [23 'realtime_queues' => $realtimeQueues,24 ]);25 }26 /**27 * @Route("/new", name="realtime_queues_new", methods={"GET","POST"})28 */29 public function new(Request $request): Response30 {31 $realtimeQueue = new RealtimeQueues();32 $form = $this->createForm(RealtimeQueuesType::class, $realtimeQueue);33 $form->handleRequest($request);34 if ($form->isSubmitted() && $form->isValid()) {35 $entityManager = $this->getDoctrine()->getManager();36 $entityManager->persist($realtimeQueue);37 $entityManager->flush();38 return $this->redirectToRoute('realtime_queues_index');39 }40 return $this->render('realtime_queues/new.html.twig', [41 'realtime_queue' => $realtimeQueue,42 'form' => $form->createView(),43 ]);44 }45 /**46 * @Route("/{name}", name="realtime_queues_show", methods={"GET"})47 */48 public function show(RealtimeQueues $realtimeQueue): Response49 {50 return $this->render('realtime_queues/show.html.twig', [51 'realtime_queue' => $realtimeQueue,52 ]);53 }54 /**55 * @Route("/{name}/edit", name="realtime_queues_edit", methods={"GET","POST"})56 */57 public function edit(Request $request, RealtimeQueues $realtimeQueue): Response58 {59 $form = $this->createForm(RealtimeQueuesType::class, $realtimeQueue);60 $form->handleRequest($request);61 if ($form->isSubmitted() && $form->isValid()) {62 $this->getDoctrine()->getManager()->flush();63 return $this->redirectToRoute('realtime_queues_index');64 }65 return $this->render('realtime_queues/edit.html.twig', [66 'realtime_queue' => $realtimeQueue,67 'form' => $form->createView(),68 ]);69 }70 /**71 * @Route("/{name}", name="realtime_queues_delete", methods={"DELETE"})72 */73 public function delete(Request $request, RealtimeQueues $realtimeQueue): Response74 {75 if ($this->isCsrfTokenValid('delete'.$realtimeQueue->getName(), $request->request->get('_token'))) {76 $entityManager = $this->getDoctrine()->getManager();77 $entityManager->remove($realtimeQueue);78 $entityManager->flush();79 }80 return $this->redirectToRoute('realtime_queues_index');81 }82}...
realtime
Using AI Code Generation
1use \mageekguy\atoum\realtime;2use \mageekguy\atoum\realtime;3use \mageekguy\atoum\realtime;4use \mageekguy\atoum\realtime;5use \mageekguy\atoum\realtime;6use \mageekguy\atoum\realtime;7use \mageekguy\atoum\realtime;8use \mageekguy\atoum\realtime;9use \mageekguy\atoum\realtime;10use \mageekguy\atoum\realtime;11use \mageekguy\atoum\realtime;12use \mageekguy\atoum\realtime;13use \mageekguy\atoum\realtime;14use \mageekguy\atoum\realtime;15use \mageekguy\atoum\realtime;16use \mageekguy\atoum\realtime;
realtime
Using AI Code Generation
1require_once __DIR__ . '/vendor/autoload.php';2use \mageekguy\atoum;3$runner = new atoum\scripts\runner();4$runner->addTestsFromDirectory(__DIR__ . '/tests/units');5$runner->run();6require_once __DIR__ . '/vendor/autoload.php';7use \mageekguy\atoum;8$runner = new atoum\scripts\runner();9$runner->addTestsFromDirectory(__DIR__ . '/tests/units');10$runner->run();11require_once __DIR__ . '/vendor/autoload.php';12use \mageekguy\atoum;13$runner = new atoum\scripts\runner();14$runner->addTestsFromDirectory(__DIR__ . '/tests/units');15$runner->run();16require_once __DIR__ . '/vendor/autoload.php';17use \mageekguy\atoum;18$runner = new atoum\scripts\runner();19$runner->addTestsFromDirectory(__DIR__ . '/tests/units');20$runner->run();21require_once __DIR__ . '/vendor/autoload.php';22use \mageekguy\atoum;23$runner = new atoum\scripts\runner();24$runner->addTestsFromDirectory(__DIR__ . '/tests/units');25$runner->run();26require_once __DIR__ . '/vendor/autoload.php';27use \mageekguy\atoum;28$runner = new atoum\scripts\runner();29$runner->addTestsFromDirectory(__DIR__ . '/tests/units');30$runner->run();31require_once __DIR__ . '/vendor/autoload.php';32use \mageekguy\atoum;
realtime
Using AI Code Generation
1require_once __DIR__ . '/vendor/autoload.php';2use \mageekguy\atoum;3$runner = new atoum\scripts\runner();4$runner->addTestsFromDirectory(__DIR__ . '/tests/units');5$runner->run();6require_once __DIR__ . '/vendor/autoload.php';7use \mageekguy\atoum;8$runner = new atoum\scripts\runner();9$runner->addTestsFromDirectory(__DIR__ . '/tests/units');10$runner->run();11require_once __DIR__ . '/vendor/autoload.php';12use \mageekguy\atoum;13$runner = new atoum\scripts\runner();14$runner->addTestsFromDirectory(__DIR__ . '/tests/units');15$runner->run();16require_once __DIR__ . '/vendor/autoload.php';17use \mageekguy\atoum;18$runner = new atoum\scripts\runner();19$runner->addTestsFromDirectory(__DIR__ . '/tests/units');20$runner->run();21require_once __DIR__ . '/vendor/autoload.php';22use \mageekguy\atoum;23$runner = new atoum\scripts\runner();24$runner->addTestsFromDirectory(__DIR__ . '/tests/units');25$runner->run();26require_once __DIR__ . '/vendor/autoload.php';27use \mageekguy\atoum;28$runner = new atoum\scripts\runner();29$runner->addTestsFromDirectory(__DIR__ . '/tests/units');30$runner->run();31require_once __DIR__ . '/vendor/autoload.php';32use \mageekguy\atoum;
realtime
Using AI Code Generation
1$test->setTestNamespace('Atoum\Realtime');2$test->setTestNamespace('Atoum\Realtime\Classes');3$test->setTestNamespace('Atoum\Realtime\Classes\Realtime');4$test->setTestNamespace('Atoum\Realtime');5$test->setTestNamespace('Atoum\Realtime\Classes');6$test->setTestNamespace('Atoum\Realtime\Classes\Realtime');7$test->setTestNamespace('Atoum\Realtime\Classes\Realtime\Classes');8$test->setTestNamespace('Atoum\Realtime\Classes\Realtime\Classes\Realtime');9$test->setTestNamespace('Aootstrap.php');
realtime
Using AI Code Generation
1use atoum\realtime;2$test = new realtime\test();3$test->setTestNamespace('tests\units');4$test->setTestDirectory('tests/units');5$tem\->Run();6$test->disalayResults();7$test->displayCodeCoverage();8use atoum\realtime;9$test = new realtime\test();10$test->setTestNamespace('tests\units');11$test->setTestDirectory(etests/units'\C12$test->run();13$test->displayResults();14$test->displayCodeCoverage();15use atoum\realtime;16$test = new realtime\test();17$test->setTestNamespace('tests\units');18$test->setTestDirectory('tests/units');19$test->run();20$test->displayResults();21$test->displayCodeCoverage();22use atoum\realtime;23$test = new realtime\test();24$test->setTestNamespace('
realtime
Using AI Code Generation
1$realtime = new realtime();2$realtime->setPath('realtime.php');3$realtime->setFrequency(1);4$realtime->setFormat('json');5$realtime->setMethod('get');6$realtime->setParams(array('name'=>'John','age'=>25));7$realtime->start();8$realtime->stop();9$realtime->getResult();10array(11 'details' => array(12);13array(14 'details' => array(15);16array(17 'details' => array(18);19array(20 'details' => array(21);22array(23 'setTestNamespace('Atoum\Realtime\Classes\Realtime\Classes\Realtime\Classes\Realtime');24$test->setTestNamespace('Atoum\Realtime\Classes\Realtime\Classes\Realtime\Classes\Realtime\Classes');25$test->setTestNamespace('Atoum\Realtime\Classes\Realtime\Classes\Realtime\Classes\Realtime\Classes\Realtime');26$test->setTestNamespace('Atoum\Realtime\Classes\Realtime\Classes\Realtime\Classes\Realtime\Classes\Realtime\Classes');27$test->setTestNamespace('Atoum\Realtime\Classes\Realtime\Classes\Realtime\Classes\Realtime\Classes\Realtime\Classes\Realtime');28$test->setTestNamespace('Atoum\Realtime\Classes\Realtime\Classes\Realtime\Classes\Realtime\Classes\Realtime\Classes\Realtime\Classes');29$test->setTestNamespace('Atoum\Realtime\Classes\Realtime\Classes\Realtime\Classes\Realtime\Classes\Realtime\Classes\Realtime\Classes\Realtime');30$test->setTestNamespace('Atoum\Re
realtime
Using AI Code Generation
1$test->setBootstrapFile(realpath(__DIR__ . '/bootstrap.php'));2$test->addTestsFromDirectory(realpath(__DIR__ . '/tests/units'));3$test->run();4require_once __DIR__ . '/vendor/autoload.php';5require_once __DIR__ . '/vendor/atoum/atoum/classes/autoloader.php';6spl_autoload_register(array('mageekguy\atoum\autoloader', 'autoloader'));
realtime
Using AI Code Generation
1$test->setTestNamespace('Realtime');2$test->setBootstrapFile('bootstrap.php');3$test->addTestsFromDirectory('tests/Realtime');4$test->addExtension('Realtime\atoum\extension\realtime');5$test->addExtension(new \mageekguy\atoum\report\fields\runner\result\logo());6$test->setTestNamespace('Realtime');7$test->setBootstrapFile('bootstrap.php');8$test->addTestsFromDirectory('tests/Realtime');9$test->addExtension('Realtime\atoum\extension\realtime');10$test->addExtension(new \mageekguy\atoum\report\fields\runner\result\logo());11$test->setTestNamespace('Realtime');12$test->setBootstrapFile('bootstrap.php');13$test->addTestsFromDirectory('tests/Realtime');14$test->addExtension('Realtime\atoum\extension\realtime');15$test->addExtension(new \mageekguy\atoum\report\fields\runner\result\logo());16$test->setTestNamespace('Realtime');17$test->setBootstrapFile('bootstrap.php');18$test->addTestsFromDirectory('tests/Realtime');19$test->addExtension('Realtime\atoum\extension\realtime');20$test->addExtension(new \mageekguy\atoum\report\fields\runner\result\logo());21$test->setTestNamespace('Realtime');22$test->setBootstrapFile('bootstrap.php');23$test->addTestsFromDirectory('tests/Realtime');24$test->addExtension('Realtime\atoum\extension\realtime');25$test->addExtension(new \mageekguy\atoum\report\fields\runner\result\logo());26$test->setTestNamespace('Realtime');27$test->setBootstrapFile('bootstrap.php');
realtime
Using AI Code Generation
1$realtime = new realtime();2$realtime->setPath('realtime.php');3$realtime->setFrequency(1);4$realtime->setFormat('json');5$realtime->setMethod('get');6$realtime->setParams(array('name'=>'John','age'=>25));7$realtime->start();8$realtime->stop();9$realtime->getResult();10array(11 'details' => array(12);13array(14 'details' => array(15);16array(17 'details' => array(18);19array(20 'details' => array(21);22array(
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Trigger Selenium automation tests on a cloud-based Grid of 3000+ real browsers and operating systems.
Test now for FreeGet 100 minutes of automation test minutes FREE!!