import v2.0.0.0_RC3 | 2012-07-01
https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
* @subpackage Table
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Table.php 16733 2009-07-15 13:16:50Z ralph $
|
||||
* @version $Id: Table.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -41,20 +41,20 @@ require_once 'Zend/Db/Table/Definition.php';
|
||||
*/
|
||||
class Zend_Db_Table extends Zend_Db_Table_Abstract
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* __construct() - For concrete implementation of Zend_Db_Table
|
||||
*
|
||||
* @param string|array $config string can reference a Zend_Registry key for a db adapter
|
||||
* OR it can refernece the name of a table
|
||||
* @param unknown_type $definition
|
||||
* @param unknown_type $definition
|
||||
*/
|
||||
public function __construct($config = array(), $definition = null)
|
||||
{
|
||||
if ($definition !== null && is_array($definition)) {
|
||||
$definition = new Zend_Db_Table_Definition($definition);
|
||||
}
|
||||
|
||||
|
||||
if (is_string($config)) {
|
||||
if (Zend_Registry::isRegistered($config)) {
|
||||
trigger_error(__CLASS__ . '::' . __METHOD__ . '(\'registryName\') is not valid usage of Zend_Db_Table, '
|
||||
@ -73,12 +73,12 @@ class Zend_Db_Table extends Zend_Db_Table_Abstract
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
parent::__construct($config);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user