Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for Metafox/lib/DB/storage.php between version 1.2 and 1.3

version 1.2, 2005/11/07 20:37:25 version 1.3, 2011/06/17 13:56:39
Line 16 
Line 16 
  * @category   Database   * @category   Database
  * @package    DB   * @package    DB
  * @author     Stig Bakken <stig@php.net>   * @author     Stig Bakken <stig@php.net>
  * @copyright  1997-2005 The PHP Group   * @copyright  1997-2007 The PHP Group
  * @license    http://www.php.net/license/3_0.txt  PHP License 3.0   * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
  * @version    CVS: $Id$   * @version    CVS: $Id$
  * @link       http://pear.php.net/package/DB   * @link       http://pear.php.net/package/DB
Line 36  require_once 'DB.php';
Line 36  require_once 'DB.php';
  * @category   Database   * @category   Database
  * @package    DB   * @package    DB
  * @author     Stig Bakken <stig@php.net>   * @author     Stig Bakken <stig@php.net>
  * @copyright  1997-2005 The PHP Group   * @copyright  1997-2007 The PHP Group
  * @license    http://www.php.net/license/3_0.txt  PHP License 3.0   * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
  * @version    Release: 1.7.6   * @version    Release: 1.7.14RC2
  * @link       http://pear.php.net/package/DB   * @link       http://pear.php.net/package/DB
  */   */
 class DB_storage extends PEAR  class DB_storage extends PEAR
Line 293  class DB_storage extends PEAR
Line 293  class DB_storage extends PEAR
     function &create($table, &$data)      function &create($table, &$data)
     {      {
         $classname = strtolower(get_class($this));          $classname = strtolower(get_class($this));
         $obj =& new $classname($table);          $obj = new $classname($table);
         foreach ($data as $name => $value) {          foreach ($data as $name => $value) {
             $obj->_properties[$name] = true;              $obj->_properties[$name] = true;
             $obj->$name = &$value;              $obj->$name = &$value;
Line 445  class DB_storage extends PEAR
Line 445  class DB_storage extends PEAR
      */       */
     function store()      function store()
     {      {
           $params = array();
           $vars = array();
         foreach ($this->_changes as $name => $foo) {          foreach ($this->_changes as $name => $foo) {
             $params[] = &$this->$name;              $params[] = &$this->$name;
             $vars[] = $name . ' = ?';              $vars[] = $name . ' = ?';

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top