Skip to content

Commit

Permalink
Added examples for param from makeInnerQuery() method.
Browse files Browse the repository at this point in the history
git-svn-id: http://voip.null.ro/svn/ansql/trunk@132 dbfed7de-b0aa-0410-b6a1-c7e608b77fc9
  • Loading branch information
monica committed Jan 6, 2015
1 parent 3d46731 commit 51ebac0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -3091,6 +3091,9 @@ protected static function makeOrderClause($order)
/**
* Adding an inner query to a WHERE clause
* @param $inner_query Array of params for defining the inner query
* Ex: array("column"=>"user_id", "relation"=>"IN"/"NOT IN","table"=>"users","inner_table"=>"banned_users", "inner_column"=>"user_id", "conditions"=>array("reason"=>"abuse"))
* inner_column can be omitted if it's the same as 'column'. Ex: array("column"=>"user_id", "relation"=>"IN"/"NOT IN","table"=>"users","inner_table"=>"banned_users", "inner_column"=>"user_id", "conditions"=>array("reason"=>"abuse"))
* You can specify the inner values directly: Ex: array("column"=>"user_id", "relation"=>"IN"/"NOT IN","table"=>"users", "options"=>"1,2,3,4")
* @param $table Table to use for the column on which the inner query is applied
* @param $where Clause to append to
* @return WHERE clause
Expand Down

0 comments on commit 51ebac0

Please sign in to comment.