Find Jobs
Hire Freelancers

Amend this code from static to dynamic

$30-250 USD

ที่ทำเสร็จแล้ว
โพสต์ ประมาณ 10 ปีที่ผ่านมา

$30-250 USD

ชำระเงินเมื่อส่งงาน
Hi, I'm using this composer package: [login to view URL] It's essentially a business ruleset engine for php. Here is a hardcoded example I got working: [login to view URL] However, what I require are that rules are derived from a database. Instead of them being hardcoded in the above example. So lets say I have an array. $values = array(); $values['country'] = 'Canada'; $values['country'] = 'USA'; $values['country'] = 'UK'; $values['device'] = 'mobile'; $values['device'] = 'tablet'; $values['device'] = 'desktop'; So in pseudo code: loop through every array category (country, device) create new rule. $rb['country]->condition (equalTo or contains) (array value - UK, USA, Canada). once the rules are created then $rb->create( rb->logicalAnd( rb->logicalOr( ... insert rules for country ), ... insert rules for device ), function() { execute something } ); I hope you get the idea. Essentially, the rules need to be generated from the data. There can be multiple logicalOR rules in the 1 logical AND instance. Thanks
รหัสโปรเจกต์: 5562659

เกี่ยวกับโปรเจกต์

7 ข้อเสนอ
โปรเจกต์ระยะไกล
ใช้งานอยู่ 10 ปีที่ผ่านมา

กำลังมองหาการสร้างรายได้ใช่ไหม?

ประโยชน์ของการประมูลกับ Freelancer

กำหนดงบประมาณและกรอบเวลาของคุณ
รับเงินจากการงานของคุณ
อธิบายข้อเสนอของคุณในภาพรวม
ลงทะเบียนและเสนอราคาฟรี
หมอบหมายให้:
รูปอวาตาร์ของผู้ใช้
Hi Good day I can do this project for you. I can make the rule set based from database than hardcoded. Looking forward to hear from you. Thanks Rinsad
$134 USD ใน 2 วัน
4.9 (321 รีวิว)
7.3
7.3
7 ฟรีแลนซ์กำลังเสนอราคาโดยเฉลี่ย $149 USD สำหรับงานนี้
รูปอวาตาร์ของผู้ใช้
i see from the description basic idea of you need something changed from the rules function , we need to discuss more on freelancer message board then i can finish the code for you asap so let me know details.
$257 USD ใน 1 วัน
4.9 (300 รีวิว)
7.5
7.5
รูปอวาตาร์ของผู้ใช้
Hello Sir, We have team of developers proficient in web development and scripting. Though we are new to freelancer but have completed over 100 projects with 100% client satisfaction. We have read your description about rule engine thoroughly. We are interested in working with you on this project. Looking forward to hear from you on this project. Thanks Shiv Agrawal SuiGen Solutions
$100 USD ใน 2 วัน
5.0 (5 รีวิว)
3.7
3.7
รูปอวาตาร์ของผู้ใช้
Hello, Greetings and hope you are doing well. I have seen your requirement for your project we can do it for you. we are 9 programmers work in team. we have more experience in PHP, Wordpress, Joomla, Magento, Development and Webdesigning. We are looking for opportunities to work for your project. Our motto is to provide ‘absolute quality deliverables with very affordable rates’. We would like to assure you that you will get daily update from our side and life time support for your project. Thank You and looking forward to hear from you. Thanks & Regards, Mansi Bhalodi
$185 USD ใน 5 วัน
4.8 (3 รีวิว)
3.3
3.3
รูปอวาตาร์ของผู้ใช้
I think what you need is an extension of the RuleBuilder class, for instance with the following syntax: ...... $rb->DBconnection = $mydbconnection; // gives the current db connection to the builder $rule = $rb->create( $rb->logicalAnd( $rb->logicalOrFromDBColumn('countriesTable','countryName') // values are from countryName column $rb->logicalOrFromDBColumn('devcesTable','deviceType') ) i.e. you specify the logical Or with two arguments that say what is the table and what is the column wher values come from. At the beginning you give to the builder class the information of the currently open DB connection. Or you can specify a more complex SQL query with a syntax like the following: $rb->logicalOrFromDBQuery('SELECT countryName FROM countries WHERE etc etc') I can do such an extension in 1 day max.
$90 USD ใน 1 วัน
5.0 (3 รีวิว)
3.0
3.0

เกี่ยวกับลูกค้า

ปักธงของ UNITED KINGDOM
London, United Kingdom
5.0
1
เป็นสมาชิกตั้งแต่ พ.ค. 9, 2012

การยืนยันลูกค้า

ขอบคุณ! เราได้ส่งลิงก์สำหรับเครดิตฟรีให้คุณทางอีเมลแล้ว
เกิดข้อผิดพลาดขณะส่งอีเมลของคุณ กรุณาลองอีกครั้ง
โลโก้ Freelancer Thailand / ภาษาไทย ช่วยเหลือและสนับสนุน FreelancerประเภทโปรเจคการประกวดFreelancerองค์กรแพ็กเกจสมาชิกโครงการ Freelancer ชั้นแนวหน้าการจัดการโปรเจคงานในพื้นที่Photo Anywhereหน้าจัดแสดงผลงานAPI สำหรับนักพัฒนาได้รับการยืนยันDesktop App เกี่ยวกับเกี่ยวกับเราวิธีใช้งานความปลอดภัยนักลงทุนแผนผังเว็บไซต์เรื่องราวข่าวออกสื่อทีมรางวัลข่าวประชาสัมพันธ์ร่วมงานกับเรา ข้อกำหนดนโยบายความเป็นส่วนตัวข้อกำหนดและเงื่อนไขนโยบายลิขสิทธิ์ข้อพึงปฏิบัติค่าธรรมเนียมและค่าบริการหุ้นส่วนEscrow.comLoadshiftWarrior Forum แอปโลโก้ Apple App Store โลโก้ Google Play
ไม่สามารถคัดลอกไปยังคลิปบอร์ดได้ โปรดลองอีกครั้งหลังปรับเปลี่ยนการอนุญาต
คัดลอกไปยังคลิปบอร์ดแล้ว
ผู้ใช้ที่ลงทะเบียน งานที่มีการโพสต์ทั้งหมด
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
กำลังโหลดตัวอย่าง
ได้รับอนุญาตสำหรับตำแหน่งทางภูมิศาสตร์
เซสชั่นการเข้าสู่ระบบของคุณหมดอายุและคุณได้ออกจากระบบแล้ว กรุณาเข้าสู่ระบบอีกครั้ง