Skip to content
stanistan edited this page May 10, 2011 · 1 revision

Parameters:

  • (string) Either in the format of table_name.field or an AQL statement
  • (mixed) In standard usage, this will be an identifier (ID or IDE), but this can also be an array of identifiers

Returns:

  • If the second parameter is an array, the return will be a nested record set, multiple rows.
  • If the first parameter is AQL, the return will be an array of values, like one row (or many if PARAM2 is an array) of aql::select
  • If the first parameter is in the format table_name.field, the return will be either a string, or an array of strings, depending on the second paramter.

Examples:

echo aql::value('artist.name', 10); // Pink Floyd
print_r(aql::value(' artist { name } ', 10)); // array('artist_id' => 10, 'artist_ide' => 'Dfjiefjdf3j', 'name' => 'Pink Floyd')
print_r(aql::value(' artist { name } ', array(10, 2));
/*
array(
    0 => array(
        'artist_id' => 10, 'artist_ide' => 'Dfjiefjdf3j', 'name' => 'Pink Floyd'
    ),
    1 => array(
         'artist_id' => 2, 'artist_ide' => 'DFjdiopea1', 'name' => 'U2'
    )
);
*/
Clone this wiki locally