Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the test_example_logicalfunction if you to query the database you simply use the query function:

The function takes an array as a parmater:


keydescriptionexample
tabletable we are selecting from

table' => 'test'

orderbyorder by columns'orderby' => array('c2')
columnscolumns we are interested in'columns' => array('c1','c2')
wherefilter to apply - an array (column, value, operator)'where' => array(array('column' => 'c2', 'value' => 1, 'operator' => '=')


Code Block
languagephp
titlequery function example
$querytable = $this->query(array('columns' => array('property_id', 'idMod'), 'table' => 'properties_modules'));


If you need to do more and wanted to access the rogo database object all you would have to do is use the $this->db variable.

...