Skip to content

Commit

Permalink
Bad examples, documentation exists
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher authored and cedric-anne committed Oct 30, 2023
1 parent f232c27 commit e0539b1
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/DBmysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -1096,23 +1096,6 @@ public function runFile($path)
/**
* Instanciate a Simple DBIterator
*
* Examples =
* foreach ($DB->request("select * from glpi_states") as $data) { ... }
* foreach ($DB->request("glpi_states") as $ID => $data) { ... }
* foreach ($DB->request("glpi_states", "ID=1") as $ID => $data) { ... }
* foreach ($DB->request("glpi_states", "", "name") as $ID => $data) { ... }
* foreach ($DB->request("glpi_computers",array("name"=>"SBEI003W","entities_id"=>1),array("serial","otherserial")) { ... }
*
* Examples =
* array("id"=>NULL)
* array("OR"=>array("id"=>1, "NOT"=>array("state"=>3)));
* array("AND"=>array("id"=>1, array("NOT"=>array("state"=>array(3,4,5),"toto"=>2))))
*
* FIELDS name or array of field names
* ORDER name or array of field names
* LIMIT max of row to retrieve
* START first row to retrieve
*
* @param string|string[] $tableorsql Table name, array of names or SQL query
* @param string|string[] $crit String or array of filed/values, ex array("id"=>1), if empty => all rows
* (default '')
Expand Down

0 comments on commit e0539b1

Please sign in to comment.