mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
modifying file headers
removing tabs in file I found them in all code should use spaces If your editor allows set tabs to 4 spaces :) git-svn-id: https://svn.cakephp.org/repo/trunk/cake@132 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
ce08562f5d
commit
d84575c565
7 changed files with 30 additions and 42 deletions
48
libs/dbo.php
48
libs/dbo.php
|
@ -23,30 +23,30 @@
|
|||
* Example usage:
|
||||
*
|
||||
* <code>
|
||||
require('dbo_mysql.php'); // or 'dbo_postgres.php'
|
||||
|
||||
// create and connect the object
|
||||
$db = new DBO_MySQL(array( // or 'DBO_Postgres'
|
||||
'host'=>'localhost',
|
||||
'login'=>'username',
|
||||
'password'=>'password',
|
||||
'database'=>'database'));
|
||||
|
||||
// read the whole query result array (of rows)
|
||||
$all_rows = $db->all("SELECT a,b,c FROM table");
|
||||
|
||||
// read the first row with debugging on
|
||||
$first_row_only = $db->one("SELECT a,b,c FROM table WHERE a=1", TRUE);
|
||||
|
||||
// emulate the usual way of reading query results
|
||||
if ($db->query("SELECT a,b,c FROM table")) {
|
||||
while ( $row = $db->farr() ) {
|
||||
print $row['a'].$row['b'].$row['c'];
|
||||
}
|
||||
}
|
||||
|
||||
// show a log of all queries, sorted by execution time
|
||||
$db->showLog(TRUE);
|
||||
* require('dbo_mysql.php'); // or 'dbo_postgres.php'
|
||||
*
|
||||
* // create and connect the object
|
||||
* $db = new DBO_MySQL(array( // or 'DBO_Postgres'
|
||||
* 'host'=>'localhost',
|
||||
* 'login'=>'username',
|
||||
* 'password'=>'password',
|
||||
* 'database'=>'database'));
|
||||
*
|
||||
* // read the whole query result array (of rows)
|
||||
* $all_rows = $db->all("SELECT a,b,c FROM table");
|
||||
*
|
||||
* // read the first row with debugging on
|
||||
* $first_row_only = $db->one("SELECT a,b,c FROM table WHERE a=1", TRUE);
|
||||
*
|
||||
* // emulate the usual way of reading query results
|
||||
* if ($db->query("SELECT a,b,c FROM table")) {
|
||||
* while ( $row = $db->farr() ) {
|
||||
* print $row['a'].$row['b'].$row['c'];
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* // show a log of all queries, sorted by execution time
|
||||
* $db->showLog(TRUE);
|
||||
* </code>
|
||||
*
|
||||
* @filesource
|
||||
|
|
|
@ -17,9 +17,7 @@
|
|||
* Purpose: Error Messages Defines
|
||||
*
|
||||
* @filesource
|
||||
* @author Michal Tatarynowicz <tatarynowicz@gmail.com>
|
||||
* @author Larry E. Masters aka PhpNut <nut@phpnut.com>
|
||||
* @author Kamil Dzielinski aka Brego <brego.dk@gmail.com>
|
||||
* @author Cake Authors/Developers
|
||||
* @copyright Copyright (c) 2005, Cake Authors/Developers
|
||||
* @link https://developers.nextco.com/cake/wiki/Authors Authors/Developers
|
||||
* @package cake
|
||||
|
|
|
@ -20,9 +20,7 @@
|
|||
* Test with $flay = new Flay(); $flay->test();
|
||||
*
|
||||
* @filesource
|
||||
* @author Michal Tatarynowicz <tatarynowicz@gmail.com>
|
||||
* @author Larry E. Masters aka PhpNut <nut@phpnut.com>
|
||||
* @author Kamil Dzielinski aka Brego <brego.dk@gmail.com>
|
||||
* @author Cake Authors/Developers
|
||||
* @copyright Copyright (c) 2005, Cake Authors/Developers
|
||||
* @link https://developers.nextco.com/cake/wiki/Authors Authors/Developers
|
||||
* @package cake
|
||||
|
|
|
@ -25,9 +25,7 @@
|
|||
* - schema-related cross-table ($has_one, $has_many, $belongs_to)
|
||||
*
|
||||
* @filesource
|
||||
* @author Michal Tatarynowicz <tatarynowicz@gmail.com>
|
||||
* @author Larry E. Masters aka PhpNut <nut@phpnut.com>
|
||||
* @author Kamil Dzielinski aka Brego <brego.dk@gmail.com>
|
||||
* @author Cake Authors/Developers
|
||||
* @copyright Copyright (c) 2005, Cake Authors/Developers
|
||||
* @link https://developers.nextco.com/cake/wiki/Authors Authors/Developers
|
||||
* @package cake
|
||||
|
|
|
@ -18,9 +18,7 @@
|
|||
* Parses the request URL into controller, action, and params
|
||||
*
|
||||
* @filesource
|
||||
* @author Michal Tatarynowicz <tatarynowicz@gmail.com>
|
||||
* @author Larry E. Masters aka PhpNut <nut@phpnut.com>
|
||||
* @author Kamil Dzielinski aka Brego <brego.dk@gmail.com>
|
||||
* @author Cake Authors/Developers
|
||||
* @copyright Copyright (c) 2005, Cake Authors/Developers
|
||||
* @link https://developers.nextco.com/cake/wiki/Authors Authors/Developers
|
||||
* @package cake
|
||||
|
|
|
@ -18,9 +18,7 @@
|
|||
* Templating for Controller class.
|
||||
*
|
||||
* @filesource
|
||||
* @author Michal Tatarynowicz <tatarynowicz@gmail.com>
|
||||
* @author Larry E. Masters aka PhpNut <nut@phpnut.com>
|
||||
* @author Kamil Dzielinski aka Brego <brego.dk@gmail.com>
|
||||
* @author Cake Authors/Developers
|
||||
* @copyright Copyright (c) 2005, Cake Authors/Developers
|
||||
* @link https://developers.nextco.com/cake/wiki/Authors Authors/Developers
|
||||
* @package cake
|
||||
|
|
|
@ -18,9 +18,7 @@
|
|||
* The main "loop"
|
||||
*
|
||||
* @filesource
|
||||
* @author Michal Tatarynowicz <tatarynowicz@gmail.com>
|
||||
* @author Larry E. Masters aka PhpNut <nut@phpnut.com>
|
||||
* @author Kamil Dzielinski aka Brego <brego.dk@gmail.com>
|
||||
* @author Cake Authors/Developers
|
||||
* @copyright Copyright (c) 2005, Cake Authors/Developers
|
||||
* @link https://developers.nextco.com/cake/wiki/Authors Authors/Developers
|
||||
* @package cake
|
||||
|
|
Loading…
Reference in a new issue