datasource:PHPARRAY

The datasource:PHPARRAY is used when the items listed with:

  • are not found out into the database or
  • must be calculated function of some complicated rules and you cannot obtain all the results by using a simple SQL query

 

This datasource is usually used when your datasource is too complicated and you cannot obtain all the results you need by executing one single SQL query.

Reference

Go to Top
path data type req def uobj description
bindsTorunneable
  
 
  
Has to return a PHP array formated this way:
  1. "column1" => "value of row 1, column 1",
  2. "column2" => "value of row 1, column 2",
  3. ),
  4. "column1" => "value of row 2, column 1",
  5. "column2" => "value of row 2, column 2",
  6. ),
  7. "column1" => "value of row 3, column 1",
  8. "column2" => "value of row 3, column 2",
  9. ),
  10. )

Examples

Go to Top

Example 1: List bound to a php-datasource

 

Example 2: Define a datasource which contains all the letters from alphabet