Products information

QueryInterfacePro v1.0

Working with XML between interfaces made a easy.

No need to write xml parsers or classes to contain xml values.
The QueryInterfacePro build the needed classes at runtime for you.
Fetures
  • Dynamasic build classes from XML
  • Dynamasic build XML from classes
  • Build-in validation of fields
  • Simplified use

Sample code

<?php
  
include('inc/Template.inc');
  
html_head();
?>

<?php


   
include('inc/QueryInterfacePro.inc');

   
/* Start test information */

   
class Test {
       var 
$person;
   }
   
   class 
TestPerson {
      var 
$firstname;
      var 
$lastname;
      var 
$zip;
      var 
$phone;
      var 
$email;
      var 
$address;
   }

   class 
TestAddress{
      var 
$street;
      var 
$street_no;
      var 
$city;
   }

   
// First we create the test
   
$test = new Test();

   
// Then we create a person
   
$person = new TestPerson();
   
$person->firstname "John";
   
$person->lastname "Doe";
   
$person->email "john.doe@doe.com";
   
$person->zip "45-678";
   
   
//create address 
   
$address = new TestAddress();
   
$address->city "Newyork";
   
$address->street "street";
   
$address->street_no 1;
   
   
//add address to person
   
$person->address $address;
   
   
//Now add the person to the test
   
$test->person[] = $person;

   
// Then we create a second person
   
$person = new TestPerson();
   
$person->firstname "John SE";
   
$person->lastname "Doe SE";
   
$person->email "john.doe.se@doe.com";
   
$person->zip "45-678";
   
   
//create address 
   
$address = new TestAddress();
   
$address->city "Newyork";
   
$address->street "street";
   
$address->street_no 2;
   
   
//add address to person
   
$person->address $address;
   
   
//Now add the person to the test
   
$test->person[] = $person;
   
   
   
//Create QueryInterfacePro
   
$query = new QueryInterfacePro();
   
   
//Create XML from classes 
   
print "<h2>XML from classes</h2><div><textarea class=\"secureBigField\">";
   print 
$query->build($test);
   print 
"</textarea><br/><br/>";
   
   
   
//Create some XML
   
$xml "<news>
             <author>GreenQuery</author>
             <version>1.0</version>
             <radio>
               <channel>
                    <feq>123.4</feq>
               </channel>
               <channel>
                    <feq>121.4</feq>
               </channel>
               <channel>
                    <feq>17.34</feq>
               </channel>
             </radio>
             <tv>
               <show>
                    <name>Letterman</name>
                    <time>9 am</time>
               </show>
               <show>
                    <name>Toons</name>
                    <time>7 am</time>
               </show>
               <show>
                    <name>Lord of the rings 2</name>
                    <time>6 pm</time>
               </show>
             </tv>
           </news>  
          "
;
   
   
//Create php Classes from XML
   
$news $query->parseXML($xml);
   
   
//View classes 
   
print "<h2>Classes from XML</h2><div><textarea class=\"secureBigField\">";
   
var_dump($news);
   print 
"</textarea>";
   
?>
<?php
  html_end
();
?>

View Sample

SecureForm v1.2

Encrypted data from your form POST's and query strings.

Fetures
  • No more hidden values
  • Encrypted data
  • Build-in validation of fields
    • Email validation
    • Number validation
    • Length validation
  • Eliminate bot(s)
  • Simplified use

Sample code

<?php
  
include('inc/Template.inc');
  
html_head();
?>

<?php
    
include('inc/secureform.php');
    
   
$secureForm = new SecureForm('NiCe&SeCuRe!');
  
   
/* Creating fields */ 
   
$secureForm->add("firstname","text");
   
$secureForm->add("email","email","jeff@hotmail.com",true,"myemail",0,"cemail");
   
$secureForm->add("address","text");
   
$secureForm->add("zip","number","",true,"",4);

   
/* Printing input fields */ 
   
print "<h2>Input Fields</h2><div><textarea class=\"secureBigField\">";
   
$secureForm->printField("firstname");
   
$secureForm->printField("email");
   
$secureForm->printField("address");
   
$secureForm->printField("zip");
   
$secureForm->save();
   print 
"</textarea></div><br/><br/>";

   
/* Debug session */ 
   
print "<h2>Session data dump</h2><div><pre>";
    
var_dump($_SESSION);
   print 
"</pre></div><br><br>";

   
/* Load form (from other or same page) */ 
   
$secureForm2 = new SecureForm('NiCe&SeCuRe!');
   
$secureForm2->load();

   
/* Debug secureForm to see all "real" data */ 
   
print "<h2>SecureForm data dump</h2><div><pre>";
   
var_dump($secureForm2);
   print 
"</pre></div><br><br>";
?>
<?php
  html_end
();
?>

View Sample

DrumRoll v2.1

No more writing line upon line of code, to fill CLASSES from a $_REQUEST, or a SQL query.

Fetures
  • Prefill CLASSES from $_REQUEST
  • Prefill CLASSES from SQL
  • BUILD SQL
    • UPDATE
    • UPDATE BY FIELD
    • INSERT
    • SELECT
    • SELECT BY FIELD

Sample code

<?php
  
include('inc/Template.inc');
  
html_head();
?>

<?php


   
include('inc/DrumRoll.inc');

   
/* Start test information */

   
class TestClass {
      var 
$firstname;
      var 
$lastname;
      var 
$street;
      var 
$street_no;
      var 
$city;
      var 
$zip;
      var 
$phone;
      var 
$email;
   }


   
$vars = array("firstname"=>"Jeff",
                 
"lastname"=>"Marshall",
                 
"email"=>"jeff@hotmail.com");
   
$field "email";
   
$class="TestClass";
   
/* end test information */


    
$drum = new DrumRoll();
   
$instance $drum->roll($class,$vars);

    print 
"<h2> DrummRoll Class </h2>";
    print 
"<div><pre>";
    
var_dump($instance);
    print 
"</pre></div>";

    print 
"<h2> insert SQL </h2>";
    print 
"<div><pre>";
    print 
$drum->rolldbInsert($instance,"test") . "\n\n";
    print 
$drum->rolldbInsert($vars,"test") . "\n\n";
    print 
"</pre></div>";

    if (
$field != ""){
        print 
"<h2> update SQL </h2>";
        print 
"<div><pre>";
        print 
$drum->rolldbUpdate($instance,"test",$field) . "\n\n";
        print 
$drum->rolldbUpdate($vars,"test",$field) . "\n\n";
        print 
"</pre></div>";
    }
    print 
"<h2> Select SQL </h2>";
    print 
"<div><pre>";
    print 
$drum->rolldbSelect($instance,"test") . "\n\n";
    print 
$drum->rolldbSelect($vars,"test") . "\n\n";
    print 
"</pre></div>";

    if (
$field != ""){
        print 
"<h2> Select by field SQL </h2>";
        print 
"<div><pre>";
        print 
$drum->rolldbSelect($instance,"test",$field) . "\n\n";
        print 
$drum->rolldbSelect($vars,"test",$field) . "\n\n";
        print 
"</pre></div>";
    }

    if (
$res != ""){
        
$users[] = $drum->rolldb("usr",$res);
        print 
"<h2> DrumRoll DB </h2>";
        print 
"<div><pre>";
        
var_dump(new usr());
        
var_dump($users);
        print 
"</pre></div>";
    }

?>
<?php
  html_end
();
?>

View Sample

CVR data v1.0

Simple and easy validation or prefill CVR information

Fetures
  • Search by CVR number
  • Company information
    • Registration date
    • Address
    • Phone
    • Fax
    • Email
    • TypeOf company
    • Credit information
    • Number of employees
    • Advertisement/Marketing
    • And more...

Sample code

<?php
  
include('inc/Template.inc');
  
html_head();
?>

<?php

  
include('inc/CVR.inc');
   
  
$cvr = new CVR(25980069);
  
$cvr_data $cvr->load();
   print 
"<h2>Fields from CVR</h2><div>";

  foreach (
$cvr_data as $cvr_key=>$cvr_value){
    print 
"<strong class=\"boldstyle\">" $cvr_key "</strong>: => $cvr_value <br/>";
  }
  print 
"</div><br/><br/>";

   print 
"<h2>CVR DataDump</h2><div><pre>";
     
var_dump($cvr); 
   print 
"</pre></div>";
  


?>
<?php
  html_end
();
?>

View Sample
All Copyrigths Reserved